[GLLUG] Sound off resume resume from suspend.

Carles Pina i Estany carles at pina.cat
Mon Feb 5 22:28:16 UTC 2024


Hi,

On 05 Feb 2024 at 17:53:16, Andrew Black via GLLUG wrote:
> I used to have a script on my WIndoze PC that switched the speaker to 0 on
> resume from suspend or hibernate.   It saved me embarrassment of playing
> bombastic organ music in a quiet library!
> 
> I wonder if I could do the same of Ubuntu.    It is in two parts
> 
>    - Detecting when you suspend or resume (I am not bothered which!)
>    - Changing the volume level to 0 (or close to 0).


I use something similar (with desktop shortcuts) to change the volume
and toggle mute or not in Debian.

This sets it to 0, to me (I think that depends of the audio
configuration will work or not for you):

amixer set Master 0%

Regarding the suspend and resume: I know that there are scripts that are
executed, but I don't know which ones right now (and might be
different on Debian or Ubuntu). Hopefully someone else will know!

Cheers,

-- 
Carles Pina i Estany
https://carles.pina.cat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20240205/58bb6944/attachment.sig>


More information about the GLLUG mailing list