NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

Touchpad not working after recover from a suspend #229405

Open astrojhgu opened 1 year ago

astrojhgu commented 1 year ago

Describe the bug

A clear and concise description of what the bug is. My getac x500g3's touch pad does not response after recovering from a suspend.

Steps To Reproduce

Steps to reproduce the behavior:

  1. systemctl suspend
  2. press power button to recover from the suspend then the touchpad does not response.

Expected behavior

The touchpad should work normally after the suspend.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

I have set the resumeCommand as

powerManagement = {
    resumeCommands = ''
      /run/current-system/sw/bin/modprobe -r psmouse
        /run/current-system/sw/bin/modprobe psmouse '';
  };

I have also tried to put the remove module command in the powerDownCommand, which does not work either.

Manually remove the module and load it again after the suspend does not work either.

Contents in /dev/input/ changes after the suspend. The files related to the mouse (touchpad) disappears.

the hwinfo output about the touchpad is attached

53: PS/2 00.0: 10500 PS/2 Mouse
  [Created at input.249]
  Unique ID: AH6Q.oV6xZUCQFf1
  Hardware Class: mouse
  Model: "ImPS/2 Generic Wheel Mouse"
  Vendor: 0x0002 
  Device: 0x0005 "ImPS/2 Generic Wheel Mouse"
  Compatible to: int 0x0210 0x0013
  Device File: /dev/input/mice (/dev/input/mouse0)
  Device Files: /dev/input/mice, /dev/input/mouse0, /dev/input/event11
  Device Number: char 13:63 (char 13:32)
  Driver Info #0:
    Buttons: 3
    Wheels: 1
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
  Config Status: cfg=new, avail=yes, need=no, active=unknown

cat /proc/bus/input/devices

I: Bus=0011 Vendor=0002 Product=0005 Version=0000
N: Name="ImPS/2 Generic Wheel Mouse"
P: Phys=isa0060/serio2/input0
S: Sysfs=/devices/platform/i8042/serio2/input/input10
U: Uniq=
H: Handlers=event11 mouse0 
B: PROP=1
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=103

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.26, NixOS, 23.05 (Stoat), 23.05pre478981.08e4dc3a907`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
bjornfor commented 1 year ago

Try latest linux kernel? Look upstream / on the internet for issues with suspend + your hardware.

wriver4 commented 1 year ago

Thinkpad T431s touchpad does not recover after suspend as well as the trackpoint.