Bug 587569

Summary: PS/2 mouse dead on resume from suspend (regression from F12)
Product: [Fedora] Fedora Reporter: Panu Matilainen <pmatilai>
Component: xorg-x11-drv-mouseAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-29 04:54:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Panu Matilainen 2010-04-30 09:48:05 UTC
Description of problem:
After suspend on my desktop box, PS/2 mouse doesn't respond to anything at all. Detaching and reconnecting the plug restores the functionality though.

Version-Release number of selected component (if applicable):
xorg-x11-drv-mouse-1.5.0-4.fc13.x86_64, IF this component is to blame. The problem has persisted since upgrading from F12 to F13-pre on March 13th.

How reproducible:
100%

Steps to Reproduce:
1. Suspend system
2. Resume system
  
Actual results:
Mouse is dead until physically detached and reconnected.

Expected results:
No action needed, this used to work correctly on F11-12 (and older, AFAIR).

Additional info:
Not sure if this is actually related or relevant as I can't easily go back to older versions to test, but I happen to have a bunch of F11 logs available, and based on timestamps it seems that F11 used to emit messages like these to Xorg.log on resume:
(II) ImPS/2 Logitech Wheel Mouse: Device reopened after 1 attempts.

On F13, resume I get:
[145682.132] (EE) Unable to open evdev device "/dev/input/event4".
[145682.132] [dix] couldn't enable device 10
[145682.135] (II) config/udev: removing device ImPS/2 Logitech Wheel Mouse
[145682.135] (II) ImPS/2 Logitech Wheel Mouse: Close
[145682.135] (II) UnloadModule: "evdev"

So it ends up unloading the driver/module, no wonder it stops working :)

Physical detatch + reconnect logs the following to Xorg.log:
[145811.835] (II) config/udev: Adding input device ImPS/2 Logitech Wheel Mouse (/dev/input/mouse1)
[145811.835] (EE) No input driver/identifier specified (ignoring)
[145811.844] (II) config/udev: Adding input device ImPS/2 Logitech Wheel Mouse (/dev/input/event4)
[145811.844] (**) ImPS/2 Logitech Wheel Mouse: Applying InputClass "evdev pointer catchall"
[145811.844] (**) ImPS/2 Logitech Wheel Mouse: always reports core events
[145811.844] (**) ImPS/2 Logitech Wheel Mouse: Device: "/dev/input/event4"
[145811.845] (II) ImPS/2 Logitech Wheel Mouse: Found 3 mouse buttons
[145811.847] (II) ImPS/2 Logitech Wheel Mouse: Found scroll wheel(s)
[145811.847] (II) ImPS/2 Logitech Wheel Mouse: Found relative axes
[145811.847] (II) ImPS/2 Logitech Wheel Mouse: Found x and y relative axes
[145811.848] (II) ImPS/2 Logitech Wheel Mouse: Configuring as mouse
[145811.848] (**) ImPS/2 Logitech Wheel Mouse: YAxisMapping: buttons 4 and 5
[145811.848] (**) ImPS/2 Logitech Wheel Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[145811.849] (II) XINPUT: Adding extended input device "ImPS/2 Logitech Wheel Mouse" (type: MOUSE)
[145811.849] (**) ImPS/2 Logitech Wheel Mouse: (accel) keeping acceleration scheme 1
[145811.850] (**) ImPS/2 Logitech Wheel Mouse: (accel) acceleration profile 0
[145811.850] (**) ImPS/2 Logitech Wheel Mouse: (accel) acceleration factor: 2.000
[145811.850] (**) ImPS/2 Logitech Wheel Mouse: (accel) acceleration threshold: 4
[145811.850] (II) ImPS/2 Logitech Wheel Mouse: initialized for relative axes.

Mouse detection messages from /var/log/messages on F13:
Apr 26 09:34:23 turre kernel: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
Apr 26 09:34:23 turre kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
Apr 26 09:34:23 turre kernel: serio: i8042 AUX port at 0x60,0x64 irq 12
Apr 26 09:34:23 turre kernel: mice: PS/2 mouse device common for all mice
...
Apr 26 09:34:23 turre kernel: input: ImPS/2 Logitech Wheel Mouse as /devices/platform/i8042/serio1/input/input4

On physical reconnect to get mouse functioning again it emits something like this:
Apr 30 12:05:54 turre kernel: input: ImPS/2 Logitech Wheel Mouse as /devices/platform/i8042/serio1/input/input9
Apr 30 12:05:54 turre udevd-work[22479]: '/usr/bin/vmmouse_detect' unexpected exit with status 0x000b
Apr 30 12:05:54 turre udevd-work[22480]: '/usr/bin/vmmouse_detect' unexpected exit with status 0x000b

Comment 1 Panu Matilainen 2010-09-29 04:54:40 UTC
In F14-beta mouse is alive again after suspend. So whatever this was, it was specific to F13.