You are not logged in.

#1 2022-09-03 11:36:15

jerryDaBaaws
Member
Registered: 2020-06-08
Posts: 115

unable to disable wake on mouse after suspend

Hey smile
per the arch wiki I tried to disable the wake on suspend via mouse movement, but it isnt working somewhy. I have a razor deathadder v2x hyperspeed connected to laptop via a 2.4GHz dongle, with Arch/sway system

steps I followed:

> cat /proc/acpi/wakeup  

Device	S-state	 Status   Sysfs node
GPP0	 S3	*enabled   pci:0000:00:01.1
GPP1	 S3	*enabled   pci:0000:00:01.2
GPP3	 S3	*enabled   pci:0000:00:02.1
GPP4	 S3	*enabled   pci:0000:00:02.2
GP17	 S3	*enabled   pci:0000:00:08.1
XHC0	 S3	*enabled   pci:0000:05:00.3
XHC1	 S3	*enabled   pci:0000:05:00.4
>  lsusb | grep -i razer

Bus 003 Device 002: ID 1532:009c Razer USA, Ltd Razer DeathAdder V2 X HyperSpeed
> grep 009c /sys/bus/usb/devices/*/idProduct         

/sys/bus/usb/devices/3-2/idProduct:009c
>  sudo nano /etc/udev/rules.d/50-wake-on-device.rules

ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="009c", ATTR{power/wakeup}="disabled", ATTR{driver/3-2/power/wakeup}="disabled"
>  sudo udevadm control --reload

but even after this, once I manually run systemctl suspend, and make some mouse movement, laptop is woken from sleep somehow.
Can somebody pls help me on what I'm doing wrong ?

ps: I've disabled my power management for nvidia card coz without it my external monitor wont turn back on after suspend/sleep , if that's relevant

nouveau.runpm=0

Last edited by jerryDaBaaws (2022-09-03 11:48:57)

Offline

#2 2022-09-03 15:22:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: unable to disable wake on mouse after suspend

Try to disable XHC0 and XHC1 - also track "dmesg -w", the device probably gets removed and re-added across the S3 and the movement signals the dongle to kick the USB.
So you'll have to ignore activity on the bus.

Offline

Board footer

Powered by FluxBB