LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-28-2009, 10:51 PM   #1
Parent5446
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
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).

Code:
Section "Monitor"
     Identifier   "Configured Monitor"
Endsection

Section "Screen"
       Identifier    "Default Screen"
       Monitor       "Configured Monitor"
       Device        "Configured Video Device"
       SubSection    "Display"
              Virtual 2432 800
       EndSubSection
EndSection

Section  "Device"
         Identifier      "Configured Video Device"
EndSection

Section "ServerFlags"
         Option   "DontZap"     "False"
Endsection
 
Old 09-07-2009, 10:30 PM   #2
Parent5446
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Question New Problems

Some more information has surfaced. I used "Xorg -configure" to make a new configuration file, and below was the result, but it still did not work.

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load  "record"
	Load  "dri2"
	Load  "glx"
	Load  "extmod"
	Load  "dri"
	Load  "dbe"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "CacheLines"         	# <i>
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "DRI"                	# [<bool>]
        #Option     "NoDDC"              	# [<bool>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "XvMCSurfaces"       	# <i>
        #Option     "PageFlip"           	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	VendorName  "Intel Corporation"
	BoardName   "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
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:

Code:
Section "ServerFlags"
	Option          "AllowEmptyInput"       "false"
EndSection
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.
Attached Images
File Type: png Screenshot.png (88.8 KB, 3 views)
 
Old 12-03-2009, 03:20 PM   #3
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Blog Entries: 8

Rep: Reputation: 15
Wink

Hey,

I had the same problem with my toshiba laptop and I used your solution:

Code:
Section "ServerFlags"
	Option          "AllowEmptyInput"       "false"
EndSection
Just got it working. Thanks! I 'll go into details later! But X works, keyboard works :-).
 
  


Reply

Tags
keyboard, laptop, mouse, ubuntu


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard and Mouse randomly stop working link470 Linux - Hardware 3 08-03-2005 07:12 PM
keyboard and mouse suddenly stop working TexasDex Linux - Hardware 2 06-04-2004 11:26 PM
Mouse and Keyboard stop working when X loads BrigitteT Linux - General 7 04-12-2004 01:21 AM
mouse & keyboard stop working! shycalais Linux - Hardware 6 03-19-2004 07:52 AM
Mouse and Keyboard stop working in any Windows Manager? dend Slackware 5 03-14-2004 06:56 PM


All times are GMT -5. The time now is 04:26 AM.

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