Bug 1097654 - Support in Xfce for libcanberra-gtk
Summary: Support in Xfce for libcanberra-gtk
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-session
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL: http://www.redhat.com/archives/rhl-de...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-14 09:12 UTC by Raphael Groner
Modified: 2021-05-17 15:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1067899 0 unspecified CLOSED Use separate packages for libcanberra backends 2021-02-22 00:41:40 UTC
Xfce 4367 0 None None None 2019-07-04 11:50:46 UTC

Internal Links: 1067899

Description Raphael Groner 2014-05-14 09:12:35 UTC
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:
yes

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

Actual results:
none

Expected results:
sounds

Additional info:

Comment 1 Raphael Groner 2014-05-14 09:14:15 UTC
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)

Comment 2 Kevin Fenzi 2014-05-15 02:19:21 UTC
I know this worked in the past...

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

Comment 3 Raphael Groner 2014-05-15 10:07:22 UTC
$ rpm -q libcanberra libcanberra-gtk2 libcanberra-gtk3 sound-theme-freedesktop
libcanberra-0.30-4.fc20.x86_64
libcanberra-gtk2-0.30-4.fc20.x86_64
libcanberra-gtk3-0.30-4.fc20.x86_64
sound-theme-freedesktop-0.8-3.fc20.noarch

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

Comment 4 Kevin Fenzi 2014-05-17 18:44:52 UTC
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

Comment 5 Raphael Groner 2014-05-18 10:01:57 UTC
(In reply to Kevin Fenzi from comment #4)

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

> env | grep GTK_MODULES
<nothing>

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

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

> which canberra-gtk-play
/usr/bin/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?

Comment 6 Raphael Groner 2014-05-18 10:27:17 UTC
No success so far, no sounds ...

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

> env | grep GTK_MODULES
GTK_MODULES=canberra-gtk-module:canberra-gtk-module

> 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
dialog-information.oga
 
> which canberra-gtk-play
/usr/bin/canberra-gtk-play

Comment 7 Raphael Groner 2014-06-04 04:27:55 UTC
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?

Comment 8 Kevin Fenzi 2014-06-05 01:14:49 UTC
It seems unlikely, but you could try removing 

alsa-plugins-pulseaudio

and relogin and see?

Comment 9 Raphael Groner 2014-06-05 05:34:25 UTC
(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…
https://bugzilla.redhat.com/show_bug.cgi?id=1104951

Comment 10 Raphael Groner 2014-06-05 05:38:49 UTC
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.

Comment 11 Kevin Fenzi 2014-06-06 17:10:15 UTC
Thats odd, as pulse uses alsa... so if alsa doesn't see the card, I wouldn't expect it to work under pulseaudio either. ;(

Comment 12 Raphael Groner 2014-06-06 17:51:33 UTC
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.

Comment 13 Raphael Groner 2014-12-11 17:31:51 UTC
Setting to rawhide to prevent upcoming EOL warnings.

Comment 14 Raphael Groner 2015-01-10 08:20:44 UTC
Maybe that user can reproduce and knows the solution and it's a duplication:

https://bugzilla.redhat.com/show_bug.cgi?id=1067899

Comment 15 Jaroslav Reznik 2015-03-03 17:01:25 UTC
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:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 16 Raphael Groner 2015-03-03 17:18:25 UTC
I'll try to reproduce when Xfce 4.12 has officially arrived in Fedora.

Comment 17 Raphael Groner 2020-03-23 17:39:09 UTC
Ping. Should we close here with WONTFIX?
Possible duplication in bug #1067899 is EOL'ed since over four years.

Comment 18 Raphael Groner 2020-03-23 17:39:26 UTC
Ping. Should we close here with WONTFIX?
Possible duplication in bug #1067899 is EOL'ed since over four years.

Comment 19 Kevin Fenzi 2020-04-06 00:33:43 UTC
So, I have not had any time to try and duplicate what you are seeing or get it working... and not sure when i will.

Perhaps nonamedotc could look?

or you could post to the fedora xfce list and ask for others to test there and see if they all also can't get it working?

Comment 20 Mukundan Ragavan 2020-04-06 12:27:38 UTC
yeah, I can take a look. @raphael, do you have sound working at all?

Comment 21 Norbert Jurkeit 2021-05-17 15:12:51 UTC
I've got this working with the Fedora 34 Xfce spin, more or less. Main problem: Those few sound events which are supported by Xfce and/or libcanberra have no corresponding files in pre-installed package sound-theme-freedesktop.

Package yaru-sound-theme contains at least dialog-question.oga, and external sources like ubuntu-sounds provide a few more sound files which will indeed be used.

Chances are good that sound events work if command "canberra-gtk-play -i dialog-question" produces a sound and "export GTK_MODULES=canberra-gtk-module" is specified e.g. in ~/.profile. However even with proper sound files installed the user experience is rather disappointing. For example, leafpad triggers dialog-question when you try to close it with unsaved text, but Xfce standard editor mousepad does not.


Note You need to log in before you can comment on or make changes to this bug.