You are not logged in.

#1 2020-05-08 19:53:57

ABOhiccups
Member
Registered: 2017-08-27
Posts: 97

libcanberra bootup, shutdown, and reboot sound are not working!

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

#2 2020-05-08 20:06:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: libcanberra bootup, shutdown, and reboot sound are not working!

Reread the wiki page: your steps are both incomplete and wrong (or poorly transcribed).

Last edited by jasonwryan (2020-05-08 20:07:01)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-05-08 20:32:34

ABOhiccups
Member
Registered: 2017-08-27
Posts: 97

Re: libcanberra bootup, shutdown, and reboot sound are not working!

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).

https://wiki.archlinux.org/index.php/Libcanberra

Offline

#4 2020-05-09 14:22:08

toz
Member
Registered: 2011-10-28
Posts: 494

Re: libcanberra bootup, shutdown, and reboot sound are not working!

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

Board footer

Powered by FluxBB