Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
suspend2-sources-2.6.15-r6 killed my usb mouse [Solved]
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
MethodGuy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 88

PostPosted: Wed Feb 22, 2006 10:37 pm    Post subject: suspend2-sources-2.6.15-r6 killed my usb mouse [Solved] Reply with quote

after applying suspend2-sources-2.6.15-r6 on gentoo-sources-2.6.15-r1 my usb mouse stopped working the synaptics touchpad still works.
I upgraded suspend2-sources from version 2.6.14-r7 to 2.6.15-r1 on the same kernel gentoo-sources-2.6.15-r1.

This is the dmesg | grep USB for suspend2-sources-2.6.14-r7
Code:

USB Universal Host Controller Interface driver v2.3
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
usb 1-2: new low speed USB device using uhci_hcd and address 2
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb 3-1: new full speed USB device using uhci_hcd and address 2
scsi0 : SCSI emulation for USB Mass Storage devices
USB Mass Storage support registered.
input: USB HID v1.00 Mouse [Kensington Kensington USB Wheel Mouse] on usb-0000:00:1d.0-2
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PWRB USB1 USB2 USB3  LAN  EC0 COMA MODE


This is the dmesg | grep USB for suspend2-sources-2.6.15-r6
Code:

USB Universal Host Controller Interface driver v2.3
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
usb 1-2: new low speed USB device using uhci_hcd and address 2
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb 3-1: new full speed USB device using uhci_hcd and address 2
scsi0 : SCSI emulation for USB Mass Storage devices
USB Mass Storage support registered.
input: Kensington Kensington USB Wheel Mouse as /class/input/input5
input: USB HID v1.00 Mouse [Kensington Kensington USB Wheel Mouse] on usb-0000:00:1d.0-2
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PWRB USB1 USB2 USB3  LAN  EC0 COMA MODE


this is my xorg.conf
Code:

#USB mouse
Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "IMPS/2"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5"
   Option       "Emulate3Buttons"  "yes"
EndSection

# Touchpad
Section "InputDevice"
      Identifier  "Synaptics"
         Driver      "synaptics"
        Option      "Device" "/dev/input/mice"
   Option      "Protocol" "auto-dev"
   Option      "Emulate3Buttons" "yes"
EndSection

EndSection


those are the USB entries in my .config
Code:

CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_MON=y

_________________
ERROR: Keyboard not found! Press any key to continue.


Last edited by MethodGuy on Sat Feb 25, 2006 11:46 am; edited 1 time in total
Back to top
View user's profile Send private message
Abraxa
Apprentice
Apprentice


Joined: 14 Jun 2005
Posts: 174
Location: Germany

PostPosted: Thu Feb 23, 2006 6:39 am    Post subject: Reply with quote

When you do a
Code:
cat /dev/input/mice
and move the mouse, do you see characters appearing on the console? If not, do you see them for /dev/psaux?

Greetings,
-Soeren
Back to top
View user's profile Send private message
MethodGuy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 88

PostPosted: Thu Feb 23, 2006 9:47 am    Post subject: Reply with quote

Nothing no characters inside the console when I move the usb mouse for either of the 2
Code:

cat /dev/input/mice
cat /dev/psaux

_________________
ERROR: Keyboard not found! Press any key to continue.
Back to top
View user's profile Send private message
Abraxa
Apprentice
Apprentice


Joined: 14 Jun 2005
Posts: 174
Location: Germany

PostPosted: Thu Feb 23, 2006 1:03 pm    Post subject: Reply with quote

Code:
input: Kensington Kensington USB Wheel Mouse as /class/input/input5

Somehow that line slipped me when I first read the messages...

Doing a
Code:
cat /sys/class/input/input5/dev
should show you a device id like ie. 13:32 - I personally would go and see if there's a device with major 13/minor 32 somewhere in /dev/ or just make one with
Code:
mknod /dev/input/usbmouse c 13 32
(with your major/minor, of course) and see if a
Code:
cat /dev/input/usbmouse
shows data when the mouse is being moved. If it does we at least now know how to access it and can set up udev if necessary... though maybe there's an easier way that I'm not aware of :)

-Soeren
Back to top
View user's profile Send private message
MethodGuy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 88

PostPosted: Thu Feb 23, 2006 6:56 pm    Post subject: Reply with quote

k I followed your instructions and created the node
Code:

mknod /dev/input/usbmouse c 13 69


and now when I open console and than
Code:

cat /dev/input/usbmouse

and move my usb mouse I see alot of characters in the console.
What I forgot to mention and actually just found out now is after a cold boot my usb mouse doesnt work but if I log out of X than log back in the usb mouse works.
Same for hibernating after I resume from hibernation no usb mouse but if if i logout than log back in it works

thanks for all your help until now
_________________
ERROR: Keyboard not found! Press any key to continue.
Back to top
View user's profile Send private message
Abraxa
Apprentice
Apprentice


Joined: 14 Jun 2005
Posts: 174
Location: Germany

PostPosted: Thu Feb 23, 2006 9:30 pm    Post subject: Reply with quote

By default udev only adds the following devices to /dev/input automatically:
Code:
# input devices
KERNEL=="mice",         NAME="input/%k", MODE="0644"
KERNEL=="mouse*",       NAME="input/%k", MODE="0644"
KERNEL=="event*",       NAME="input/%k", MODE="0600"
KERNEL=="js*",          NAME="input/%k", MODE="664"
KERNEL=="ts*",          NAME="input/%k", MODE="0600"

(taken from /etc/udev/rules.d/50-udev.rules)

As you can see, input* isn't among them. So let's make udev recognize your mouse, too, by creating a file called 49-usbmouse.rules in /etc/udev/rules.d with the following content:
Code:
KERNEL=="input*", NAME="input/%k", MODE="0644"


When you reboot your computer it should then automatically create /dev/input/input5 which you can use in your X.org configuration:
Code:
#USB mouse
Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "IMPS/2"
   Option       "Device" "/dev/input/input5"
   Option       "ZAxisMapping" "4 5"
   Option       "Emulate3Buttons"  "yes"
EndSection


Let me know if it worked, please, I haven't done that before either ;)

Good luck,
-Soeren
Back to top
View user's profile Send private message
MethodGuy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 88

PostPosted: Fri Feb 24, 2006 8:07 pm    Post subject: Reply with quote

I followed your instruction but X failed to start
the node input was not created
_________________
ERROR: Keyboard not found! Press any key to continue.
Back to top
View user's profile Send private message
MethodGuy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 88

PostPosted: Sat Feb 25, 2006 11:45 am    Post subject: Reply with quote

Well I guess it's solved the only thing I did was rename the identifier to Mouse2 than change the order in which the usb mouse and the touchpad are in xorg.conf
Code:

Section "InputDevice"
  Identifier "Synaptics"
  Driver "synaptics"
  Option "Device" "/dev/input/mice"
  Option "SendCoreEvents" "true"
  Option   "Protocol"   "auto-dev"
  Option   "LeftEdge"      "1700"
  Option   "RightEdge"     "5300"
  Option   "TopEdge"       "1700"
  Option   "BottomEdge"    "4200"
  Option   "FingerLow"   "25"
  Option   "FingerHigh"   "30"
  Option   "MaxTapTime"   "180"
  Option   "MaxTapMove"   "220"
  Option   "VertScrollDelta" "100"
  Option   "MinSpeed"   "0.09"
  Option   "MaxSpeed"   "0.18"
  Option   "AccelFactor"   "0.0015"
  Option   "PalmMinWidth" "70"
  Option   "PalmMinZ" "200"
  Option   "SHMConfig"   "on"
EndSection

#USB mouse
Section "InputDevice"
   Identifier   "Mouse2"
   Driver       "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5"
   Option       "Emulate3Buttons"  "yes"
   Option      "SendCoreEvents" "true"   
EndSection

Section "ServerLayout"
   Identifier     "X.org Configured"
   Option  "BlankTime"  "5"     # Blank the screen after 5 minutes (Fake)
     Option  "StandbyTime"  "10"  # Turn off screen after 10 minutes (DPMS)
     Option  "SuspendTime"  "20"  # Full suspend after 20 minutes
     Option  "OffTime"  "30"      # Turn off after half an hour
   Screen      0  "Screen0" 0 0
   InputDevice    "Keyboard0" "CoreKeyboard"
   InputDevice "Mouse2"
     InputDevice "Synaptics"    
EndSection



Thanks Abraxa for your help
_________________
ERROR: Keyboard not found! Press any key to continue.
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