You are not logged in.
Pages: 1
Thank you very much for your insight.
I tried to change the name of the file, but it didn’t help. However, I think that I found the confusion. If I suspend the computer using the log out option in the xfce menu, or if I directly use the command line using xfce tools (xfce4-session-logout –suspend), then the script won’t be effective. However, if I run the pm-suspend command, then the script will work.
I looked a discussion in the xfce forum, and it seems to be normal behaviour https://forum.xfce.org/viewtopic.php?id=9760. It seems that there is a way around that when using systemd, but I am unsure if it is possible to do something similar without it.
Hi there,
I try to run a command before/after suspending the computer, but I am not able to do so, and I was wondering it someone can help me with that. In short, one of the things that I would like to be able to do, is to control the headphone sound after suspending the computer. In the past, with gentoo based distribution using openRC, I would create a file called sound in /usr/lib/pm-utils/sleep.d, make it executable (chmod +x) , and write :
#!/bin/sh
case "$1" in
resume)
amixer --card 1 sset Headphone 100%
esac
However, with Devuan, using SysV (and xfce), it won’t work. I have tried the amixer --card 1 sset Headphone 100% command, and everything is working just fine, so I am pretty sure that, either my script is incorrect, or it is not at the right place.
Any help would be appreciated.
Pages: 1