mouse and keyboard unresponsive when X starts (Gentoo)
Hi all, I've been using Gentoo for the past few weeks and I'm very pleased with it; portage is fantastic. I've run into some trouble, though, after running 'emerge --depclean'. When I start X windows (using 'startx') I get to the GNOME desktop I've been using up until now, but the mouse and keyboard lock up and become unresponsive (the numlock key lights up and cannot be toggled, same with scroll and caps lock though they are unlit). Both input devices work fine when connected to another computer. The keyboard works fine if I boot to a terminal, so I know the problem lies within X. I've already re-emerged xorg-server and nvidia-drivers, that didn't seem to help. My system is up-to-date.
a) Where can I find a log of the packages that were unmerged when I ran the depclean? For reasons of timing, I have a sneaking suspicion that I broke something at this point. Although I did check over the list of packages to be unmerged, I may have missed something crucial. b) The other possibility is that the problem began when I ran 'revdep-rebuild' after depclean-ing; I had to interrupt the re-emerging of the required packages halfway through. Is there a log of these actions somewhere as well? Although I think this problem results from my misuse of portage, it should be diagnosable as it stems from X - I have a fully functional system up until X starts. What can I do to try to narrow down the source of the problem? Thanks in advance for any responses. |
Hi there! :)
Firstly, glad to hear that you're using Gentoo. Secondly, I'm going to request that this thread be moved into the Gentoo subforum here on LQ. Thirdly, the problem is very likely related to either the depclean or the interrupted revdep-rebuild. The first suggestion I would have is to try revdep-rebuild again, and let it finish entirely. After that, I would say that it is probably related to HAL in some way. Your best bet is to boot up a LiveCD (whatever you used to install Gentoo), and chroot back into your installation environment. To do so, boot up the CD and do the following commands: Code:
# mkdir /mnt/gentoo Thank you, and with a little time and patience, we'll get your system back up and running smoothly. :) |
Thank you for the helpful reply! My apologies for posting in the wrong forum.
I removed xdm from the default runlevel, so I can boot to a terminal. Should I work from a chrooted environment anyway? I can also work logged in over SSH if X needs to be running to diagnose the problem. Here is the output of 'emerge --info': Code:
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 x86_64) |
It is not Gentoo. It is Linux or kernel problem. If you are using USB keyboard and USB mouse, it does this. On my setup, I have to disconnect them and reconnect to make them work again. Also you can try to have your input devices be disconnected upon boot and then connect them to provide a better chance or add a file to /etc/modprobe.d to delay loading certain modules (usbhid, usbmouse, and usbkbd). Though if your keyboard and mouse are PS/2 devices, set PS/2 as a module and put psmouse in /etc/modules.autoload.d/kernel-2.6. Then run update-modules.
You can stop the daemons hal and dbus, but I doubt that will fix your issue. If all else fails, you may have to update the firmware of your BIOS. |
Moved: This thread is more suitable in <Gentoo> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
@Electro:
The mouse is USB and the keyboard PS/2. Unplugging them before boot, then plugging them in after X startup has no effect (at least, it has no effect on the mouse, I wasn't able to try the keyboard). I stopped both hald and dbus before starting X, and there was no change. My BIOS is already at the latest version. The keyboard works fine as long as I don't start X, and so does the mouse (tested from within links using gpm). I also noticed that my second monitor isn't displaying properly, indicating that xorg.conf might be out of whack somehow. I'll try rebuilding xorg.conf from scratch. What else can I try to narrow down the problem? Does X have a debug mode where no display is opened and perhaps error messages can be read? I can't switch back to the initial terminal where I ran startx (to view output before the display is opened), because as soon as X starts, I lose the keyboard. |
You will need a line in /etc/make.conf like
Code:
INPUT_DEVICES="evdev" http://www.gentoo.org/proj/en/deskto...rade-guide.xml and http://forums.gentoo.org/viewtopic-t...+keyboard.html |
Quote:
Quote:
|
To use evdev, you need add the use flag hal dans dbus inside your /etc/make.conf
After that, you should run this : Code:
# emerge -auDNv world |
You need more than that, unless something has changed lately that I am not aware of. You need USE="hal dbus", you need INPUT_DEVICES="evdev", and you also need to copy the correct .fdi file to the correct place. However, I am not giving any more details unless he posts the log, because as evident as it might seem, it might be a different problem. :)
|
Hi all, thanks again for the helpful replies! The problem is definitely related to evdev; checking /var/log/Xorg.0.log (I can't copy/paste from this computer so I'll edit this post to include the full log later) yields some complaints about not being able to find the "evdev" module. Furthermore, my make.conf had "INPUT_DEVICES=mouse keyboard" instead of evdev. So, here is what I think I need to do:
1) Change make.conf and xorg.conf to use "evdev" for both mouse and keyboard. Add 'hal' and 'dbus' to global USE flags. 2) Run 'emerge -uDN world' to rebuild everything to use evdev (as specified in make.conf). Does this seem like a reasonable course of action? Am I missing anything? |
That's most of it.
You will also need to remove the keyboard and mouse sections of your xorg.conf (just comment them in case you need to put them back or look for something later). The last step will -hopefully- be this: Code:
cp /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi /etc/hal/fdi/policy/ |
Well, it certainly feels strange not having keyboard and mouse definitions in xorg.conf, but now I'm glad it's like that because everything works perfectly!
Thank you all so much for your time! |
In fact, since evdev can handle any input device, my /etc/X11/xorg.conf is almost empty nowadays.
|
I had the same problem for a while. There was a post at the gentoo wiki website with a tip to speed up the boot process. It suggested that you add xdm to the boot run level. I did this and half the time my mouse and keyboard did not work. Returning xdm to the default boot level solved the problem. I suppose the Xorg keyboard and mouse modules were not loading correctly. So don't do what I did just to save half a second on boot time :)
|
All times are GMT -5. The time now is 01:09 PM. |