(Tutorial) How to disable unnecessary wake up from usb devices on Linux Ubuntu

in #linux6 years ago (edited)

Need: text editor (eg: nano on Linux Mint xfce, or gedit on other platform) from Software manager

To check what usb devices are enabled to wake up your linux, use the following command in your terminal:

>>>  nano /proc/acpi/wakeup

(P/S: nano means using nano text editor to display the outcome, for gedit just replace the nano with gedit)

enabled usb devices to wake up.png

To find out which usb devices, you have to toggle each of the enabled usb devices & test it. To toggle, use this command:

>>> sudo -s
>>> echo EHC1 > /proc/acpi/wakeup

(P/S: sudo -s meant for root access)

The command above will disable the wake up until you reboot your PC. As a permanent solution, edit this file by using your favorite text editor in root mode: /etc/rc.local

Add this line in the rc.local, in this example, only one usb hub will be disabled.

>>> echo EHC1 > /proc/acpi/wakeup

Outcome of edited rc.local:

edited rc local file.png

That's it. Now you are free from this unnecessary wake ups from this usb device :)

Cheers, follow me @sylviabrowyn & see you next time.

Support
bitcoin: 16LU4iUtePmTgNxdHP57GecL4Z64dLtS2b
ethereum: 0x235119b56c2dcb124a3a0e0907b58c3492744caa
gamecredits: GLoB8UqgS1AHCXB9ZRTQnK2WF2R4aLaXDK
litecoin: LYujeNFJ5xL4UvJpSNPWC7XCbEEvGqr1cK
zcash: t1PrZbxeQ2VA3VQUHscN4vnALPb6ihrhpjk
stratis: SfBhJ6irSowwNxeKv64w3zDMNNgaA3Cfgk
dash: XuF69by15R8ZA19euh2UNM2WwUiMpCYF4h
bitcoincash: 1Gd2ohdr9uqQpyeUHdTr6gVmfzSD2brx7y

Sort:  

Congratulations @sylviabrowyn, you have decided to take the next big step with your first post! The Steem Network Team wishes you a great time among this awesome community.


Thumbs up for Steem Network´s strategy

The proven road to boost your personal success in this amazing Steem Network

Do you already know that awesome content will get great profits by following these simple steps, that have been worked out by experts?

Congratulation for winning our 1st competition, we will transfer the payout into your account soon. Thanks for your participation.

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 60901.71
ETH 3380.21
USDT 1.00
SBD 2.55