How to wake Ubuntu from sleep with wireless mouse/keyboard

How to wake Ubuntu from sleep with wireless mouse/keyboard? When your laptop is closed, and you want to start the work? First, enter the command lsusb. This will show you the names of your USB devices, like this: $ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005:

How to wake Ubuntu from sleep with wireless mouse/keyboard? When your laptop is closed, and you want to start the work? First, enter the command lsusb. This will show you the names of your USB devices, like this: $ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005:

How to wake Ubuntu from sleep with wireless mouse/keyboard? When your laptop is closed, and you want to start the work?

First, enter the command lsusb. This will show you the names of your USB devices, like this:

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0bda:5521 Realtek Semiconductor Corp. Integrated_Webcam_HD
Bus 001 Device 004: ID 27c6:538d Shenzhen Goodix Technology Co.,Ltd. FingerPrint
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 006: ID 0cf3:e009 Qualcomm Atheros Communications
Bus 001 Device 002: ID 046d:c341 Logitech, Inc. Logitech Mechanical keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Find the name of the device you want to use to wake the computer (for example, Dell Computer Corp. Keyboard) and note the number next to Bus (example: Bus 001).

Type:

$ sudo vim /sys/bus/usb/devices/usb1/power/wakeup

replacing the number in usb1 with the device’s Bus number (without the 0’s in front, e.g. Bus 001 > usb1).

Change the word disabled to enabled and save the file.

When you enter to directory: $ ls /sys/bus/usb/devices/usb1/1-1/power

active_duration control runtime_enabled wakeup_abort_count wakeup_last_time_ms
async level runtime_status wakeup_active wakeup_max_time_ms
autosuspend persist runtime_suspended_time wakeup_active_count wakeup_total_time_ms
autosuspend_delay_ms runtime_active_kids runtime_usage wakeup_count
connected_duration runtime_active_time wakeup wakeup_expire_count
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments