Score:1

How to add Startup AND Shutdown sounds to Ubuntu 20.04 LTS?

ng flag

EDIT: Got my custom startup sounds to work. Question for shutdown sounds is still on the table.

Title says it all.

I have made use of the well-known gtk-canberra-play command to Startup Applications to play the startup sound. However, I tried to dig around for usr/share/sounds/ubuntu/stereo to no luck; I think that directory no longer exists in 20.04.

I want to specify a specific OGG file for it to play - how will I be able to do that?

Also, is there a way to add shutdown sounds to Ubuntu? If so, how?

All answers are appreciated.

U been to Ubuntu avatar
cn flag
There are two other similar directories that have `stereo/` in them: `/usr/share/sounds/freedesktop/` and `/usr/share/sounds/Yaru/`. I'm not sure what you're doing with those directories, and I'm not an audio expert, but have you tried either of those for what you're looking for?
guiverc avatar
cn flag
My own start includes `paplay /usr/share/sounds/ubuntu/stereo/desktop-login.ogg` with that sound coming from the package `ubuntu-sounds`
KennyG1092 avatar
ng flag
@UbeentoUbuntu I have worked my way towards getting my custom startup sound to work by finding what sound does gtk-canberra-play play on startup, and replacing it with my own. It works now. Thanks anyways guiverc, I've read up that paplay is not a reliable method of playing startup sounds moving forward with 20.04 LTS. Anywhos, now that I managed to get startup sounds to work, I shall edit the OP to ask for help about shutdown sounds.
guiverc avatar
cn flag
I'm using & have used the method I describe for many releases up to and including *jammy* or what I'm using now. It works on *focal* no different to other releases; `paplay` is pulse-audio-play and thus is rather reliable in my experience (11.04 -> 21.10 & *jammy* thus far)
N0rbert avatar
zw flag
Login sound part is here - https://askubuntu.com/a/1349387/66509 . For logout further analysis is needed.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.