ysf
21 April 2021 22:22
1
when i suspend my system i cant use my wireless mouse to wake up but i solve it with
echo enabled > /sys/bus/usb/devices/1-1.3/power/wakeup
but how do i enable this command on every reboot (it also need root privileges to execute) so i don't need to type the commands after reboot?
You can use tmpfiles.d, for example:
1 Like
ysf:
when i suspend my system
For suspend/sleep cases, a systemd service unit maybe better choice.
There are several methods to do what you want.
Read and adjust your preferred one.
https://wiki.archlinux.org/index.php/Power_management#Suspend_and_hibernate
1 Like
ysf
21 April 2021 23:54
4
can you provide an example on this case?
No.
Have you read the linked article? Why not? Lazy?
1 Like
ysf
22 April 2021 00:42
6
im new to arch so there is something that i dont know like systemd
ysf:
i dont know like systemd
SystemD is the Engine that runs everything in an Archlinux/Garuda system. You have to start reading.
For your case that you know you can solve if you run a command, it seems suitable to use a systemd hook script. And is a perfect chance to start learning.
Read this and apply.
https://wiki.archlinux.org/index.php/Power_management#Hooks_in_/usr/lib/systemd/system-sleep
2 Likes
system
Closed
24 April 2021 01:10
8
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.