You are not logged in.
I'm using XFCE4 with ALSA Audio Driver, PulseAudio and Compiz-Reloaded.
I installed libcanberra and libcanberra-pulseaudio.
I enable bootup, shutdown, and reboot sound by enter this command line.
Root: "systemctl enable canberra-system-bootup"
User: "sudo systemctl enable canberra-system-bootup"
I also enable "Enable event sounds" and "Enable input feedback sounds"
When I bootup, shutdown, or reboot the computer. The sound effects are not playing.
The oga sound files are located in "/usr/share/sounds/freedesktop/stereo/"
Does anyone know how to fix it?
Last edited by ABOhiccups (2020-05-08 19:55:23)
Offline
Reread the wiki page: your steps are both incomplete and wrong (or poorly transcribed).
Last edited by jasonwryan (2020-05-08 20:07:01)
Offline
I have reread the wiki page and I did follow a steps. The bootup, shutdown, and reboot sounds are not playing. The correct oga sound files are located in freedesktop directory (default).
Offline
Check the status of the service:
$ systemctl status canberra-system-bootup.service --no-pager -l
● canberra-system-bootup.service - Play Bootup Sound
Loaded: loaded (/usr/lib/systemd/system/canberra-system-bootup.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Condition: start condition failed at Sat 2020-05-09 10:04:13 EDT; 6min ago
└─ ConditionPathExists=/usr/share/sounds/freedesktop/stereo/system-bootup.oga was not met
May 09 10:04:13 archi systemd[1]: Condition check resulted in Play Bootup Sound being skipped.
It looks like "/usr/share/sounds/freedesktop/stereo/system-bootup.oga" doesn't exist.
$ sudo cp service-login.oga system-bootup.oga
...and it will work.
Xfce also now supports triggers/events at login, logout, shutdown, restart, suspend, hibernate, hybrid-sleep and switch-user so you could use gtk-canberra-play to execute a sound at any of those events. To configure, look in Settings Manager > Session and Startup > Application Autostart. Create a new entry and set the appropriate trigger event.
Offline