I would like to set a keyboard shortcut which suspends my PC when pressed (instead of manually clicking power icon and then selecting ‘Suspend’). I would need to know the command for this, since it’s required to be set in the keyboard shortcuts menu. So far I have tried systemctl suspend, and although it does work, it seems to have a different effect on my PC , since my PC case does not flash the LED when it’s suspended this way. When I suspend using the graphical way (power icon->suspend), the LED flashes correct when suspended. This makes me think my systemctl suspend command may not be the correct way of suspending, so my question is, what is the right command for this?
BTW I am using Manjaro Xfce if that makes any difference.
I don’t know what is the deal with your LED’s (flashing or not flashing …)
I would prefer them to not be flashing …
but I do use this quite often when listening to something while already in bed and I don’t want to get up to shut the system down …
for example sleep 30m && systemctl suspend
when the podcast is 30 minutes long …
Thanks for the answers ! Ok, I guess I should stick with systemctl suspend then. Is that the same command that is executed when the ‘Suspend’ button is pressed?
Does anyone happen to know what hardcoded command is used for that button?
Thanks for clarifying
For some my corsair case LED recognizes it as a sleep, and it flashes the LED, whilst original one didn’t make it flash. The flash is kinda useful for me because I can glance at my PC from far away to see if it’s in sleep or actually shut down (in which case it doesn’t flash at all when off)