Rectify wifi mouse defeating Suspend

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
norm.h
Level 5
Level 5
Posts: 601
Joined: Tue Mar 23, 2010 11:45 am
Location: Oxfordshire, UK

Rectify wifi mouse defeating Suspend

Post by norm.h »

1) Run: cat /proc/bus/input/devices to establish enabled devices.

Example:

XHC S3 *enabled pci:0000:00:14.0 - is the Logitech mouse
PWRB S3 *enabled platform:PNP0C0C:00 - is the Power button
SLPB S3 *enabled platform:PNP0C0E:00 - is the Sleep button
LID0 S3 *enabled platform:PNP0C0D:00 - is the Lid button

2) Run cat /proc/acpi/wakeup to find:

XHC S3 *enabled pci:0000:00:14.0
XDCI S4 *disabled
HDAS S4 *disabled pci:0000:00:1f.3
PWRB S3 *enabled platform:PNP0C0C:00
SLPB S3 *enabled platform:PNP0C0E:00
LID0 S3 *enabled platform:PNP0C0D:00

3) As Administrator [root], create a new file: disable-usb-wake.conf in /etc/tmpfiles.d:

sudo touch /etc/tmpfiles.d/disable-usb-wake.conf

4) Still as administrator, edit the new file:

sudo xed /etc/tmpfiles.d/disable-usb-wake.conf [assuming xed is the running file editor]

Edit by copying the following line into it:

w /proc/acpi/wakeup - - - - XHC

Save & Close

5) Reboot

6) Run cat /proc/acpi/wakeup to check:

XHC S3 *disabled pci:0000:00:14.0


Reference: viewtopic.php?f=90&t=261465
shooter902
Level 1
Level 1
Posts: 16
Joined: Fri Jun 10, 2016 2:30 am

Re: Rectify wifi mouse defeating Suspend

Post by shooter902 »

This worked for me thank you! :D

My configuration looked a bit different than your example..I don't know, maybe it is the same and I'm to inexperienced to know??

1.My USB mouse, I had to look for the PCI address on 10.0
2.Then run "cat /proc/acpi/wakeup" and look for the Sysf node 10.0 which was XHC0
3.And my etc/tmpfiles.d/disable-usb-wake.conf looked like this

Thanks Again!!
Attachments
1.My USB mouse, I had to look for the PCI address on 10.0
1.My USB mouse, I had to look for the PCI address on 10.0
2.Then run "cat /proc/acpi/wakeup" and look for the Sysf node 10.0 which was XHC0
2.Then run "cat /proc/acpi/wakeup" and look for the Sysf node 10.0 which was XHC0
Wakeup Status.png (13.9 KiB) Viewed 177 times
3.And my etc/tmpfiles.d/disable-usb-wake.conf looked like this
3.And my etc/tmpfiles.d/disable-usb-wake.conf looked like this
neogeo
Level 1
Level 1
Posts: 9
Joined: Thu Mar 30, 2017 1:51 am

Re: Rectify wifi mouse defeating Suspend

Post by neogeo »

Hello.
I have the same problem with suspend and wakening PC but, what if i wnat to disable more devices like GLAN, XHC, EHC1 and EHC2 ???
How to sintax that?
I have try to do that but sleep working only for firs line device :(
I need to sleep them all through "disable-usb-wake.conf" file...


TNX
Iacta Alea Est
antikythera
Level 6
Level 6
Posts: 1436
Joined: Thu Jul 02, 2020 12:52 pm
Contact:

Re: Rectify wifi mouse defeating Suspend

Post by antikythera »

neogeo wrote:
Wed Sep 16, 2020 12:52 am
Hello.
I have the same problem with suspend and wakening PC but, what if i wnat to disable more devices like GLAN, XHC, EHC1 and EHC2 ???
How to sintax that?
I have try to do that but sleep working only for firs line device :(
I need to sleep them all through "disable-usb-wake.conf" file...


TNX
Please open a new topic. What you are asking is far more complex and merits it's own more thorough discussion and approach to the above.
Don't take life so seriously, nobody gets out alive anyway!
AMSTRAD CPC6128 - 128KB RAM, 3" Hitachi Floppy Diskette Drive, External Sony Cassette Recorder, Locomotive BASIC 1.1, CTM-644 Monitor
Post Reply

Return to “Tutorials”