Click to See Complete Forum and Search --> : Slackware randomly reboots because of hotplug
MacTown06
06-05-2004, 11:50 PM
Back when I had a ps/2 mouse I installed Slackware and it worked fine when I disable hotplug. When I enable hotplug it reboots the computer a couple of minuets after each reboot.
Problem is, now I have a usb mouse, and I need hot plug in order for it to work. So I enabled hotplug at install. The mouse works but the computer still reboots when I start up.
So if you have any suggestions please reply. And if you know the command to disable and re-enable hotplug be sure and let me know.
JohnT
06-06-2004, 02:34 AM
Does it reboot only when idle?
hard candy
06-06-2004, 10:18 AM
Do you have USB enabled in the bios?
MacTown06
06-06-2004, 08:09 PM
USB is enabled in the BIOS
no, it reboots all the time
JohnT
06-06-2004, 08:13 PM
Next time you boot..dont boot to a graphical display, just boot to init1 and let it sit until it reboots to see if any errors mssg is diplayed.
MacTown06
06-07-2004, 12:49 PM
i didnt boot to graphical display, i just sat there and watched. Then after like 100 seconds it rebooted, no error messages.
Ath0s
06-07-2004, 01:36 PM
I had exactly the same thing (with Slackware also).
I didn't have time to work on it at the time, so I used a usb to ps2 adapter, connected the mouse to the ps2 port, and then disabled the hotplug support.
I forgot all about it until now ... I'll have to go back and take another look.
elderdays
06-07-2004, 01:47 PM
Originally posted by MacTown06
i didnt boot to graphical display, i just sat there and watched. Then after like 100 seconds it rebooted, no error messages.
Are you ever actually getting to a login prompt? Also what do your logs say? If you can't stay in long enough to read the logs, boot up with something else (ie. your Slackware disc or another bootable disc) and mount your drive. Poke around in /var/log.
hard candy
06-07-2004, 02:07 PM
from Slackware tips and tricks:
Slackware 9.x update: With the advent of the hotplug feature in Slackware, spontanious reboots may occur. If this happens to you, try disabling hotplug on startup:
chmod -x /etc/rc.d/rc.hotplug
until you isolate the driver that is causing the problem and put it in /etc/hotplug/blacklist.
You can use "dmesg | less" to view what error messages their is and/or "lsmod" to view the list of loaded modules.
bwkaz
06-07-2004, 06:55 PM
If they're not already there, try either putting uhci-hcd, ohci-hcd, and ehci-hcd into the hotplug.blacklist file, so they don't get loaded, or build them directly into your kernel.
You're never going to remove those modules anyway (at least, whichever of them you use), so there's no point in making them modules.
I remember something from the lfs-dev list about those modules causing issues (as modules), but I don't remember what those issues were...
Anyway, if you don't want to do that, you can just use a different boot+root disk (or rescue CD) to get a shell up, and then look at whatever kernel logs got written out to the disk just before the last reboot. That should have messages from a certain kernel module at the end; that module is probably the one you need to add to the blacklist.
MacTown06
06-13-2004, 01:35 PM
thanks guys, i did a chmod -x /etc/rc.d/rc.hotplug to turn it off and my usb mouse stoped working. But I got that fixed by adding "/sbin/modprobe uhci" to the /etc/rc.d/rc.modules file.