Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Mouse+Keyboard not working in Xorg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
canabix67
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2006
Posts: 106

PostPosted: Mon Jun 15, 2009 4:56 pm    Post subject: [Solved] Mouse+Keyboard not working in Xorg Reply with quote

Hi folks,

I'm getting some weird problem on a fresh install...

I had this problem on my last install but can't seem to find the solution again... :/

Well, problem is, I've got my mouse ans keyboard useless when coming into Xorg (startx)

I suppose my kernel is OK... HID is present...

Xorg is configured with the correct use flags too, so I'm a bit lost.....

Code:
lsusb
Bus 001 Device 002: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard Receiver

_________________
If my answers frighten you then you should cease asking scary questions.


Last edited by canabix67 on Tue Jun 16, 2009 6:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
inhuman5
n00b
n00b


Joined: 09 Jan 2009
Posts: 9
Location: Portland, Oregon

PostPosted: Mon Jun 15, 2009 5:36 pm    Post subject: Reply with quote

Post your /etc/X11/xorg.conf
and any interesting console output from startx
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Mon Jun 15, 2009 5:39 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-722498-highlight-x+dbus.html
Search for x+hal, xorg 1.5+hal
Back to top
View user's profile Send private message
canabix67
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2006
Posts: 106

PostPosted: Mon Jun 15, 2009 6:01 pm    Post subject: Reply with quote

sebaro wrote:
https://forums.gentoo.org/viewtopic-t-722498-highlight-x+dbus.html
Search for x+hal, xorg 1.5+hal


hal present... so I don't think that can be the cause...

Here is my xorg.conf:

Code:

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"   # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
    Load        "type1"
    Load        "freetype"
    Load        "xtt"

# This loads the GLX module
    Load       "glx"

EndSection
# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/OTF"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/lib/X11/fonts/local/"
    FontPath   "/usr/lib/X11/fonts/misc/"
    FontPath   "/usr/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/lib/X11/fonts/Type1/"
    FontPath   "/usr/lib/X11/fonts/TrueType/"
    FontPath   "/usr/lib/X11/fonts/freefont/"
    FontPath   "/usr/lib/X11/fonts/75dpi/"
    FontPath   "/usr/lib/X11/fonts/100dpi/"
EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "fr"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "Auto" # Auto detect
    Option "Device"      "/dev/input/mice"
EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

Section "Monitor"
    Identifier  "Samsung"
    HorizSync   31.5 - 64.3
    VertRefresh 50-70
EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************
Section "Device"
    Identifier  "Geforce4"
    Driver      "nvidia"
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************

Section "Screen"
    Identifier  "Screen 1"
    Device      "Geforce4"
    Monitor     "Samsung"
    DefaultDepth 24
Subsection "Display"
        Depth       8
        Modes       "1440x900"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1440x900"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1440x900"
        ViewPort    0 0
    EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

Section "ServerLayout"

    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


For some reason, I can't seem to find the xorg log...
_________________
If my answers frighten you then you should cease asking scary questions.
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Mon Jun 15, 2009 6:11 pm    Post subject: Reply with quote

Add
Code:
Section "ServerFlags"
   Option "AutoAddDevices" "On"
   Option "AutoEnableDevices" "On"
   Option "AllowEmptyInput" "On"
EndSection

Remove
Code:
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
 
Section "InputDevice"
 
    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "fr"
 
EndSection
 
 
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
 
Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "Auto" # Auto detect
    Option "Device"      "/dev/input/mice"
EndSection

And
Code:
     InputDevice "Mouse1" "CorePointer"
     InputDevice "Keyboard1" "CoreKeyboard"

from Section "ServerLayout"

Here's my xorg.conf (usb keyboard & mouse)
Code:
# XORG-1.5

Section "Module"
   Load "dbe"
   SubSection "extmod"
      Option "omit xfree86-dga"
   EndSubSection
   Load "glx"
EndSection

Section "Files"
   FontPath "/usr/share/fonts/misc:unscaled"
   FontPath "/usr/share/fonts/100dpi:unscaled"
   FontPath "/usr/share/fonts/75dpi:unscaled"
   FontPath "/usr/share/fonts/dejavu"
   FontPath "/usr/share/fonts/freefonts"
   FontPath "/usr/share/fonts/corefonts"
   FontPath "/usr/share/fonts/encodings"
EndSection

Section "ServerFlags"
   Option "AutoAddDevices" "On"
   Option "AutoEnableDevices" "On"
   Option "AllowEmptyInput" "On"
EndSection

Section "Monitor"
   Identifier "MB19TU"
       HorizSync 31.5 - 79.0
   VertRefresh 50-70
   Option "UseEdidDpi" "FALSE"
   Option "DPI" "96x96"
   Option "DPMS"
   #DisplaySize 338 270   
EndSection

Section "Device"
   Identifier "Nvidia GeForce MX4000"
   Driver "nvidia"
   Option "NoLogo"   "Yes"
   Option "HWCursor" "On"
EndSection

Section "Screen"
   Identifier "Screen 1"
   Device "Nvidia GeForce MX4000"
   Monitor "MB19TU"
   DefaultDepth 24
   Subsection "Display"
           Depth 8
           Modes "1280x1024" "1024x768" "800x600" "640x480"
           ViewPort 0 0
   EndSubsection
   Subsection "Display"
           Depth 16
           Modes "1280x1024" "1024x768" "800x600" "640x480"
           ViewPort 0 0
   EndSubsection
   Subsection "Display"
           Depth 24
           Modes "1280x1024" "1024x768" "800x600" "640x480"
           ViewPort 0 0
   EndSubsection
EndSection

Section "ServerLayout"
   Identifier "Simple Layout"
   Screen "Screen 1"
EndSection
Back to top
View user's profile Send private message
canabix67
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2006
Posts: 106

PostPosted: Mon Jun 15, 2009 6:23 pm    Post subject: Reply with quote

Guess you must have been right... :o)

I'm following http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml at the moment.

I shall follow your advices for my xorg.conf... :)

I will report ASAP.
_________________
If my answers frighten you then you should cease asking scary questions.
Back to top
View user's profile Send private message
canabix67
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2006
Posts: 106

PostPosted: Tue Jun 16, 2009 6:38 pm    Post subject: Reply with quote

That work perfectly!! Thanks to you all...
_________________
If my answers frighten you then you should cease asking scary questions.
Back to top
View user's profile Send private message
RBJ1128
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 192

PostPosted: Wed Jun 17, 2009 1:52 am    Post subject: Reply with quote

canabix67 wrote:
That work perfectly!! Thanks to you all...


What is it that worked? I've got the same problem but no apparent solution.
_________________
-RBJ1128
Back to top
View user's profile Send private message
canabix67
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2006
Posts: 106

PostPosted: Wed Jun 17, 2009 6:54 pm    Post subject: Reply with quote

RBJ1128 wrote:
canabix67 wrote:
That work perfectly!! Thanks to you all...


What is it that worked? I've got the same problem but no apparent solution.


Try and follow that guide:

http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml
_________________
If my answers frighten you then you should cease asking scary questions.
Back to top
View user's profile Send private message
RBJ1128
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 192

PostPosted: Wed Jun 17, 2009 10:50 pm    Post subject: Reply with quote

canabix67 wrote:
RBJ1128 wrote:
canabix67 wrote:
That work perfectly!! Thanks to you all...


What is it that worked? I've got the same problem but no apparent solution.


Try and follow that guide:

http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml


The problem is that I had it working 100% in xorg-server 1.5, but when 1.6 installed it just stopped working. I have followed that guide but I still have no keyboard or mouse input while in X.
_________________
-RBJ1128
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Jun 17, 2009 11:05 pm    Post subject: Reply with quote

RBJ1128: sorry if this is redundant, but have you rebuilt all the
drivers (keyboard, mouse, evdev)?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
RBJ1128
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 192

PostPosted: Wed Jun 17, 2009 11:09 pm    Post subject: Reply with quote

albright wrote:
RBJ1128: sorry if this is redundant, but have you rebuilt all the
drivers (keyboard, mouse, evdev)?


As far as I know I have. I followed the instructions regarding qlist, but to no avail. I just removed xorg-server and subsequent drivers from package.keywords and I'm trying to roll back to xorg-server-1.5. Hopefully that does the trick for now, but I'll post the results either way.


EDIT: Rolling back from xorg-server-1.6 to xorg-server-1.5 seems to have patched it. I have no idea what was causing the problems, but I'm pretty sure that I'll see it again once 1.6 moves from the testing branch.
_________________
-RBJ1128
Back to top
View user's profile Send private message
bohemian72
n00b
n00b


Joined: 07 Oct 2004
Posts: 5

PostPosted: Thu Jun 18, 2009 1:20 am    Post subject: Reply with quote

I'm having something of the same problem and I'd like to try some of the fixes, but how does one boot to a console so that I can make the fixes? When it boots straight to X my mouse and keyboard refuse to work, of course.

Thanks.
_________________
--
The greatest thing you'll ever learn
is just to love and be loved in return.
Back to top
View user's profile Send private message
RBJ1128
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 192

PostPosted: Thu Jun 18, 2009 4:06 am    Post subject: Reply with quote

bohemian72 wrote:
I'm having something of the same problem and I'd like to try some of the fixes, but how does one boot to a console so that I can make the fixes? When it boots straight to X my mouse and keyboard refuse to work, of course.

Thanks.


Either login from another computer and perform the tasks or use another computer and temporarily remove xdm from the default runlevel. The last option (as I see it) is to boot to single-user-mode by adding "init_opts=1" to the end of your "kernel" line in grub.
_________________
-RBJ1128
Back to top
View user's profile Send private message
netcelli
Apprentice
Apprentice


Joined: 29 Nov 2005
Posts: 169

PostPosted: Thu Jun 18, 2009 6:51 am    Post subject: Reply with quote

problem solved (i used qlist)
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Thu Jun 18, 2009 7:28 am    Post subject: Reply with quote

bohemian72 wrote:
I'm having something of the same problem and I'd like to try some of the fixes, but how does one boot to a console so that I can make the fixes? When it boots straight to X my mouse and keyboard refuse to work, of course.

Thanks.

ctrl+alt+f2
Back to top
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Thu Jun 18, 2009 8:16 pm    Post subject: Reply with quote

Same problem here, can't do ctrl+alt+f2 because keyboard and mouse broken. This isn't the first time this has happened.
Try doing
emerge xf86-input-evdev
and
/etc/init.d/xdm restart
to fix it. That worked with my system.
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Thu Jun 18, 2009 8:31 pm    Post subject: Reply with quote

andrewwalker27 wrote:
Same problem here, can't do ctrl+alt+f2 because keyboard and mouse broken. This isn't the first time this has happened.


If it is enabled in the kernel then you can use the Magic SysRq key combination to release the keyboard, see

http://en.wikipedia.org/wiki/Magic_SysRq_key

Once released you can ctrl+alt+f2 into a console.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum