enable sound events in xfce4-appearance-settings doesn't work

Bug #1321445 reported by Scott Moore on 2014-05-20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Manual Tests
xfce4-session (Fedora)
In Progress
xfce4-settings (Ubuntu)

Bug Description

Enabling sound events in xfce4-appearance-settings doesn't work. Minimizing & maximizing a window doesn't make any sound as described in the testcase.

Description of problem:
There are no sounds for xfce events, though both options are activated in xfce4-settings-manager.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. login to xfce
2. enable event sounds in xfconf
3. click around

Actual results:

Expected results:

Additional info:

From upstream bug https://bugzilla.xfce.org/show_bug.cgi?id=4367

 Stephan Arts editbugs 2008-10-19 06:26:38 CEST

(In reply to comment #24)
> Thanks for adding a support for this.
> Anyways there is a problem how to play logout sound on logout/restart ?

Yes, for that to work, xfce4-session needs support for libcanberra... Since we are at a feature-freeze for 4.6, that won't be added now.

I am closing this bug since the related XSETTINGS have been added now.

You need to submit separate bugreports for libcanberra support in xfce4-session and xfwm4 (targeted at 4.8)

I know this worked in the past...

Do you have libcanberra and sound-theme-freedesktop (or some sound theme) installed?

$ rpm -q libcanberra libcanberra-gtk2 libcanberra-gtk3 sound-theme-freedesktop

Maybe this is related to pulseaudio or a muted special sound channel?
Just guessing...

So, some more info:

xfconf-query -c xsettings -p /Net/SoundThemeName

env | grep GTK_MODULES

ls /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo

which canberra-gtk-play

You may need to set SoundThemeName to 'freedesktop' and export GTK_MODULES=canberra-gtk-module:canberra-gtk-module

(In reply to Kevin Fenzi from comment #4)

> xfconf-query -c xsettings -p /Net/SoundThemeName

> env | grep GTK_MODULES

> ls /usr/share/sounds/default/stereo
<not found>

# find /usr/share/sounds/* -name stereo

> which canberra-gtk-play

> You may need to set SoundThemeName to 'freedesktop' and export
> GTK_MODULES=canberra-gtk-module:canberra-gtk-module
Where should I put the export statement? Is this still a bug?

No success so far, no sounds ...

> xfconf-query -c xsettings -p /Net/SoundThemeName

> env | grep GTK_MODULES

> ls /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo
alarm-clock-elapsed.oga dialog-warning.oga
audio-channel-front-center.oga message-new-instant.oga
audio-channel-front-left.oga message.oga
audio-channel-front-right.oga network-connectivity-established.oga
audio-channel-rear-center.oga network-connectivity-lost.oga
audio-channel-rear-left.oga phone-incoming-call.oga
audio-channel-rear-right.oga phone-outgoing-busy.oga
audio-channel-side-left.oga phone-outgoing-calling.oga
audio-channel-side-right.oga power-plug.oga
audio-test-signal.oga power-unplug.oga
audio-volume-change.oga screen-capture.oga
bell.oga service-login.oga
camera-shutter.oga service-logout.oga
complete.oga suspend-error.oga
device-added.oga trash-empty.oga
device-removed.oga window-attention.oga
dialog-error.oga window-question.oga

> which canberra-gtk-play

Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu Package testing tracker.

A list of all reports related to this bug can be found here:

tags: added: package-qa-testing
Scott Moore (scottbomb) on 2014-05-20
affects: ubuntu → xfce4-settings (Ubuntu)
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xfce4-settings (Ubuntu):
status: New → Confirmed

Could it be an issue with PulseAudio? I found something that Pulse can't write to sockets in some circumstances according to missing access rights or the like?

It seems unlikely, but you could try removing


and relogin and see?

(In reply to Kevin Fenzi from comment #8)
> It seems unlikely, but you could try removing
> alsa-plugins-pulseaudio
> and relogin and see?

I don't understand what's going on here…

I have removed all the pulseaudio crap. But ALSA doesn't detect the internal sound card, alsamixer does only see SPDIF HDMI that I don't use.

Thats odd, as pulse uses alsa... so if alsa doesn't see the card, I wouldn't expect it to work under pulseaudio either. ;(

Well, PulseAudio sees the card and there's generally sound available (e.g. Clase-Mail, Firefox, etc.). But Alsa only doesn't detect the internal chip, only HDMI SPDIF is offered. But that's a general issue and has nothing to do with canberra support in Xfce.

Changed in xfce4-settings (Ubuntu):
importance: Undecided → Low

Setting to rawhide to prevent upcoming EOL warnings.

Maybe that user can reproduce and knows the solution and it's a duplication:


This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:

I'll try to reproduce when Xfce 4.12 has officially arrived in Fedora.

Changed in xfce4-session (Fedora):
importance: Unknown → Medium
status: Unknown → In Progress


For window event sounds to work there have to be sound files for them.

I have created them manually, and that worked.

Changed in xfce4-settings (Ubuntu):
status: Confirmed → Invalid

The test case mentioned in the bug description requires additional steps, including the creation of sound files for window-minimized/-maximized:

- install libcanberra-gtk-module and libcanberra-pulse
- set GTK_MODULES="canberra-gtk-module" (can be done via /etc/X11/Xsession.d/56xubuntu-session)
- create both window-minimized.oga and window-maximized.oga in /usr/share/sounds/freedesktop/stereo
- relog

Also, the command "xfconf-query -c xsettings -p /Net/SoundThemeName" should return 'default'.

Kev Bowring (flocculant) on 2018-10-01
Changed in ubuntu-manual-tests:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.