You are not logged in.
Pages: 1
I have a keyboard and a mouse, all are bluetooth. I want to be able to wake up my laptop from suspend by pressing keys on the keyboard or by moving the mouse. I have tried some things, but nothing worked. What I've tried so far:
- The official wiki guide on bluetooth: https://wiki.archlinux.org/title/blueto … om_suspend. I've added the udev rule as explained, but no avail.
- The first link I found: https://bbs.archlinux.org/viewtopic.php?id=127871. OP uses a wireless dongle, which I don't use for my laptop. The solution is a udev rule, which didn't work for me.
- Some other related link https://bbs.archlinux.org/viewtopic.php?id=282360. This didn't give me much info, but I also remembered about TLP. This didn't work as well.
I connected a regular USB mouse, went into suspend, and even then the laptop wouldn't wake up. It wake up only if I press keys on an integrated
keyboard, or press the touchpad. I looked around in BIOS, but I didn't find any setting relating to USB wake from suspend.
Any ideas?
EDIT: The laptop I use is ASUS Vivobook
Last edited by sv-cheats-1 (2023-09-19 20:52:34)
Offline
As for the regular USB mouse, to enable wake up you should run
lsusband figure out which bus is the mouse. Then run
sudo echo enabled > /sys/bus/usb/devices/BUS/power/wakeupwhere "BUS" is replaced with the actual bus number of your mouse.
https://askubuntu.com/questions/848698/ … nux-distro
https://www.makeuseof.com/wake-your-lin … b-devices/
https://askubuntu.com/questions/1268107 … e-keyboard
I don't know if there will be a solution for the bluetooth devices. I'll do some more digging later.
Offline
This is my lsusb:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 002: ID 13d3:5458 IMC Networks USB2.0 HD UVC WebCam
Bus 003 Device 004: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubI looked up the BLE adapter's name and found this:
- A long thread on Intel forums. I've updated the BIOS, nothing but the version number have changed.
https://community.intel.com/t5/Wireless … -p/1379623
- This thread with exactly the same problem, but no valuable replies
https://bbs.archlinux.org/viewtopic.php?id=282360
I've tried your suggestion:
and figure out which bus is the mouse. Then run
sudo echo enabled > /sys/bus/usb/devices/BUS/power/wakeup
on my USB mouse, and it works. I repeated the steps for BLE, and it didn't work.
I think (though I might be wrong) that the issue might be that the BLE adapter turns off when going into suspend. This was outlined here
https://ubuntuforums.org/newreply.php?p … &noquote=1
but no replies.
Is there any way to prevent the adapter from turning off?
Offline
It might be possible using S0 or Suspend-to-Idle sleep mode. This is where the system isn't actually powered off, but is supposed to be in a low power state. On Windows this is used to update while sleeping, which means the network adapter is on. Both WiFi and Bluetooth are usually handled by the same adapter.
There are a couple problems with this, though. The first being that it would require changing some kernel configurations.
https://docs.kernel.org/admin-guide/pm/ … nd-to-idle
The second is that it might not automatically enter a low power state.
https://www.reddit.com/r/linuxquestions … y_support/
This issue could probably be worked around by creating a custom systemd target for suspend which runs some commands to lower the clock speed and/or voltage of your CPU/GPU.
S0 sleep is only supported on newer hardware, but a quick search makes it seem like your laptop is new enough to support it. You need to check in the BIOS to see if it's actually enabled or not. It should be called something like "Standby type" or "Sleep type" and might have an option for "Windows" (S0) or "Linux" (Likely S3). I should be able to look through my laptop's BIOS later today (Lenovo Legion 7) to see what it's called there. I changed that option when I got it, if I recall correctly.
To understand more about the difference between sleep states:
https://www.crazyengineers.com/threads/ … s4-s5.3238
Update: Unfortunately, I didn't find any option for sleep in my BIOS.
Last edited by Skidout (2023-09-20 18:57:43)
Offline
Pages: 1