Mouse and keyboard stop working when X server starts
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mouse and keyboard stop working when X server starts
I randomly started up my laptop one day and the mouse and keyboard stopped responding once GDM's login screen came up. Everything works fine from the console, but even if I run startx from the login shell the mouse and keyboard do not work, even though everything else in GNOME runs perfectly.
I am using an HP dv6426us laptop running Ubuntu 9.04 (i686 architecture with the 2.6.28-15-generic kernel). Below is a copy of my xorg.conf file, just in case there might be something wrong with that. I will try and put more information on, but seeing as I have to use a different computer to post this thread, copying over log files and stuff is difficult for the moment (though I am going to try and copy them over to a flash drive).
Looking into the log file, I found that the AllowEmptyInput option on the ServerFlags was set to true, which meant the server was disabling any devices with certain mouse and keyboard drivers, hence my problem. I quickly reverted the configuration file to its original form and added the following:
Finally, it worked. However it left a number of other problems. When I logged in, an error box came up saying HAL could not be started (see the uploaded screenshot). I checked the init script and confirmed it was not running. If I start it up, the keyboard starts acting strange, and whenever I press a key it acts like I pressed two or three times. The entire system works fine if I leave HAL off, but having it off is stopping certain GNOME capabilities, such as the brightness tool on one of my panels.
Just got it working. Thanks! I 'll go into details later! But X works, keyboard works :-).
I have ran killall Xorg 7 times in an SSH from my Windows because of the bug. Ctrl-Alt-Fx wasn't even working! So I vimmed /etc/X11/xorg.conf, added the option, :xed out, and ran startx, and still wasn't working! I'm on Raspbian and running a website, if it matters. Also, Xorg -configure is complaining about not being able to create listening sockets...?
I get that but 11 years ago xorg was not capable of auto configuration and now it is. Just pointing out the age of the thread, that's all. It's called necro-bumping and is normally discouraged on a most forums. If a mod has an issue, they will chime in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.