LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-21-2009, 10:43 AM   #1
Karimo
Member
 
Registered: Aug 2007
Location: Valencia
Distribution: slackware64-current
Posts: 67

Rep: Reputation: 15
Keyboard and Mouse not working in X


Hi all!
I'm posting this thread, although there are many around there (but no one solved the problem), because, after an upgrade-all, mouse and keyboard stopped working in X under the same kernel and xorg.conf.
Both keyboard and mouse (under gpm) works perfectly in the console, but not in X, and obviously I'm exasperated wondering why.
I tried to reconfigure X with xorgsetup and xorgconfig, reinstalling entirely X.org, reinstalling hal, reinstalling dbus but nothing did the trick.
I'm running a 2.6.30.4 home-compiled kernel with all packages to -current.
Here is my package-brewed xorg.conf[-vesa] (that, I think, should work at least for mouse and keyboard):

Code:
Section "Module"
    Load        "dbe"  	# Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    #Load        "speedo"
    Load       "glx"
EndSection
Section "Files"
    RgbPath	"/usr/share/X11/rgb"
    FontPath   "/usr/share/fonts/local/"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/OTF/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/CID/"
    FontPath   "/usr/share/fonts/Speedo/"
    FontPath   "/usr/share/fonts/75dpi/:unscaled"
    FontPath   "/usr/share/fonts/100dpi/:unscaled"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/cyrillic/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
    Identifier	"Keyboard1"
    Driver	"kbd"
EndSection
Section "InputDevice"
    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/mouse"
EndSection
Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5 - 50.0
    VertRefresh 40-90
EndSection
Section "Device"
    Identifier  "VESA Framebuffer"
    Driver      "vesa"
    #VideoRam    4096
    # Insert Clocks lines here if appropriate
EndSection
Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor     "My Monitor"
   DefaultDepth 24
    Subsection "Display"
        Depth       8
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Xorg.log doesn't show anything useful.
I'm really stuck, any suggestion is really appreciated.
Thanks in advance,

Karimo

Last edited by Karimo; 08-21-2009 at 11:02 AM.
 
Old 08-21-2009, 11:15 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Have you verified that HAL is actually running, or that it has been started? If rc.hald chmodded executable?

Try from console as root before starting X:

Code:
root# /etc/rc.d./rc.hald restart

or

ps ax | grep hald
and see if helps or tells you anything.. (note the rc.hald file may have a slightly different name, but I think this is correct)

Does the system work with a default kernel? Maybe you omitted something silly from your kernel?

Finally, check the -current changelog to make sure something hasn't changed that would influence this situation.

Best of luck,
Sasha

Last edited by GrapefruiTgirl; 08-21-2009 at 11:16 AM.
 
Old 08-21-2009, 11:21 AM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
And hey wait!! Doesn't HAL need to use the evdev driver? I don't use HAL so I'm not sure about this.

Sasha
 
Old 08-21-2009, 05:43 PM   #4
Karimo
Member
 
Registered: Aug 2007
Location: Valencia
Distribution: slackware64-current
Posts: 67

Original Poster
Rep: Reputation: 15
HAL and DBus are working perfectly.
I've solved noticing that the "AllowEmptyInput" was implicitly turned On.
This option makes X.org deactivating all the input devices that are driven by kbd,mouse,[...] drivers.
Was sufficient to add a Option "AllowEmptyInput" "False" to the ServerLayout section to fix the issue.
Thanks to you all,

Greetings,

Karimo

Last edited by Karimo; 08-21-2009 at 05:45 PM.
 
  


Reply



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
Mouse and Keyboard not working on new install LarryFrigginWachs Linux - Newbie 0 07-09-2007 12:52 PM
Mouse and keyboard not working cgol03 Slackware - Installation 1 02-02-2005 09:05 AM
Mouse and Keyboard not working on install phil_stennett Mandriva 5 11-18-2004 04:29 PM
keyboard not working without mouse RH 7.3 kilobravo Linux - General 1 12-12-2003 09:45 AM
mouse and keyboard not working to_vijayarun General 1 06-30-2001 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration