LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-11-2009, 09:26 PM   #1
reg.doug
LQ Newbie
 
Registered: Aug 2009
Location: Very far north
Distribution: openSuSE, Arch
Posts: 14

Rep: Reputation: 0
Keyboard randomly fails when X starts


I have a Dell laptop with TinyMeLinux 2008.1 installed.

When I boot normally, the keyboard is totally unresponsive, rendering login impossible. However, when I boot in "failsafe" (single-user) mode and start X with "init 5" it works.

Even then, the keyboard will sometimes randomly fail when I start an application. In this case, logging out fixes the problem and I can log in and work normally. I have not ever had the keyboard fail after re-login.

There is a similar thread in LQ, but it did not fix my problem.

Thanks in advance

Reggie
dominic+k+92 at inbox dot com (remove +; replace at and dot)
 
Old 08-12-2009, 08:21 AM   #2
Laurens73
Member
 
Registered: Aug 2009
Location: Zeewolde, Flevoland NL
Distribution: Debian squeeze (Gnome) on netbooks; Debian Lenny on servers and Debian wheezy (XFCE) on new laptops
Posts: 144

Rep: Reputation: 23
Some distros don't create a configuration in xorg.conf at install doing an auto detect at startup today. Maybe this isn't the right configuration for your system. If you lookup your /etc/X11/xorg.conf file, can you find something like this: ?

Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection
and further on in the same file:

Code:
Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules"         "xorg"
    Option         "XkbModel"         "pc105"
    Option         "XkbLayout"        "us"
    Option         "XkbVariant"       "alt-intl"
    Option         "XkbOptions"       "lv3:ralt_switch"
EndSection
 
Old 08-12-2009, 03:44 PM   #3
reg.doug
LQ Newbie
 
Registered: Aug 2009
Location: Very far north
Distribution: openSuSE, Arch
Posts: 14

Original Poster
Rep: Reputation: 0
My /etc/X11/xorg.conf was a bit different.

First, the ServerLayout was at the end of the file and it called the layout "Layout1"

Secondly, my Keyboard did not have options "CoreKeyboard" or "XkbRules"

I changed "Layout1" to "Layout0" and moved ServerLayout to the top of the file as well as adding "CoreKeyboard" and "XkbRules" to the keyboard section

Normal boot still doesn't work, but as ever before "init 5" works from single user mode. I don't understand why a normal boot should be any different that one that loads X from single user mode.

Thanks for your help, unfortunately I still have a problem.

Do you think that it could be due to dbus-x11, like it is attributed to in this post? What is dbus-x11?

Further advice would be very welcome.
 
Old 08-13-2009, 12:07 PM   #4
Laurens73
Member
 
Registered: Aug 2009
Location: Zeewolde, Flevoland NL
Distribution: Debian squeeze (Gnome) on netbooks; Debian Lenny on servers and Debian wheezy (XFCE) on new laptops
Posts: 144

Rep: Reputation: 23
dbus-x11 communicates between the devices and the processes running on the system. If it doesn't do what it's meant for all your external devices like your keyboard, mouse, etc. won't work anymore. Perhaps trying to re-install the previous version or a newer version would suffice. Try taking a look into the /var/cache/apt/archives folder and search for a version of dbus-x11 as root:

Code:
cd /var/cache/apt/archives/
ls dbus-x11*
For example in my cache dir are the following files visible:

Code:
dbus-x11_1.2.14-3_i386.deb  dbus-x11_1.2.16-2_i386.deb
dbus-x11_1.2.1-5_i386.deb
In my case the dbus-x11_1.2.16-2 version is the latest and dbus-x11_1.2.14-3 would be the first candidate to try:

Code:
dpkg -i dbus-x11_1.2.14-3_i386.deb
In your case the second version in your row of course.


If this doesn't solve the problem, the part about HAL managing the input devices after an upgrade could also help. Remember to re-install the latest version again if it didn't work
 
  


Reply

Tags
failure, keyboard, login


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java keyboard randomly not responding kstan Linux - Software 5 07-25-2007 11:28 AM
keyboard and touchpad stop responding randomly damnsynaptic Linux - Laptop and Netbook 10 06-05-2006 05:40 PM
Association with wireless AP fails randomly kbolino Linux - Wireless Networking 6 05-01-2006 07:39 AM
System locks up randomly, and sometimes fails to boot Likosin Linux - Hardware 2 01-30-2006 06:07 AM
Keyboard and Mouse randomly stop working link470 Linux - Hardware 3 08-03-2005 07:12 PM


All times are GMT -5. The time now is 01:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration