gnome-sound-properties cannot set sound preferences

Bug #258703 reported by marcobra (Marco Braida)
54
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
Nominated for Intrepid by Tim Besard

Bug Description

[intrepid] (was upgraded from Ubuntu Hardy ) now fully updated upgraded using gnome-sound-properties

All controls on the sound preferences are disabled, so i cannot choose different wav file to test.

Please see screenshot attached.

i tried to install:

sudo apt-get --reinstall --purge install ubuntu-sounds
sudo apt-get install ubuntu-desktop

But this don't solve

Thank you

Tags: iso-testing
Revision history for this message
marcobra (Marco Braida) (marcobra) wrote :
Revision history for this message
marcobra (Marco Braida) (marcobra) wrote : Re: [intrepid] gnome-sound-properties cannot set sound preferences

Running from command line i get:

gnome-sound-properties

(gnome-sound-properties:29078): libglade-WARNING **: could not find glade file 'sound-properties.glade'
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied

(gnome-sound-properties:29078): sound-properties-WARNING **: Bad setup, install the freedesktop sound theme

hope this helps

description: updated
description: updated
Revision history for this message
Nathan Handler (nhandler) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in gnome-control-center.
For future reference you might be interested to know that a lot of applications have bug reporting functionality built in to them. This can be accessed via the Report a Problem option in the Help menu for the application with which you are having an issue. You can learn more about this feature at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

Confirmed in an up to date Intrepid alpha 4 clean install.

snifer@snifer-laptop:~$ dpkg -l | grep gnome-control-center
ii gnome-control-center 1:2.23.6-0ubuntu2 utilities to configure the GNOME desktop
snifer@snifer-laptop:~$ gnome-sound-properties

(gnome-sound-properties:9225): libglade-WARNING **: could not find glade file 'sound-properties.glade'

(gnome-sound-properties:9225): sound-properties-WARNING **: Bad setup, install the freedesktop sound theme

Changed in gnome-control-center:
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, that's because the new libcanberra requires the freedesktop sound theme to work correctly and this one is not available yet in ubuntu

Changed in gnome-control-center:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
kenji (kentari006) wrote :

I'm having the same symptoms, different areas.. same disease? I was curious, and using Root has fixed the problem, at least as far as my display indicated... could this be a permission issue?

Mplayer, (K)Ubuntu Hardy.

Incoming spam (I control-c'd out of the programs, that's where the signal comes from):

prime@siegfried:~/Desktop$ mplayer -quiet Inventions.mp3
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Sempron(tm) Processor 3000+ (Family: 15, Model: 44, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Inventions.mp3.
Audio file file format detected.
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
E: shm.c: shm_open() failed: Permission denied
AO: [pulse] Failed to connect to server: Connection refused
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

MPlayer interrupted by signal 2 in module: play_audio

prime@siegfried:~/Desktop$ sudo mplayer -quiet Inventions.mp3
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Sempron(tm) Processor 3000+ (Family: 15, Model: 44, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Inventions.mp3.
Audio file file format detected.
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [pulse] Failed to connect to server: Connection refused
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

MPlayer interrupted by signal 2 in module: play_audio

Revision history for this message
dano (danoex) wrote :

http://0pointer.de/public/sound-theme-freedesktop.tar.gz

extract the file in /usr/share/sounds

*someone should create a package based on this information

Revision history for this message
dano (danoex) wrote :

the sound preferences are enabled, but the system sounds are not working.
libcanberra bug?

Revision history for this message
Dave Stroud (bigdavesr) wrote :

Am having same problems Even tried to go in as root. Still greyed out as root;

Revision history for this message
Dean Loros (autocrosser) wrote :

I added the sound-theme-freedesktop as per dano's instructions. That "enabled" the tab (was grayed out before), but if you click on any arrow to test sounds other that the first one you get a crash. The first arrow plays the demo sound.
Terminal output:

(gnome-sound-properties:9154): libglade-WARNING **: could not find glade file 'sound-properties.glade'
(gnome-sound-properties:9154): sound-properties-DEBUG: setting theme freedesktop
gnome-sound-properties: pcm_pulse.c:278: pulse_write: Assertion `pcm->last_size >= (size * pcm->frame_size)' failed.
Aborted (core dumped)

Revision history for this message
Tim Besard (maleadt) wrote :

I confirm this bug on a fresh Intrepid Alpha 5. Installing the freedesktop theme makes the options available, and the sounds do play when I click the "play" buttons (in contrary to what Dean Loros wrote).
The settings however do NOT apply to the system, as I checked the "make a sound when buttons are pressed" but don't hear anything when pressing buttons.

Revision history for this message
zombiepig (nyall-zombiepigs) wrote :

Looks like there's a few parts to this one:

1. To enable all the controls on the gnome-sound-properties page, the freedesktop sound theme (from comment 7) needs to be installed to /usr/share/sounds
2. The instructions in this mailing list post (https://tango.0pointer.de/pipermail/libcanberra-discuss/2008-July/000021.html) need to be followed to enable libcanberra gtk integration. Quoted here:

"...Packagers!

If you package libcanberra, make sure to include a script like this
one in your package:

<snip>
#!/bin/sh

if [ -z "$GTK_MODULES" ] ; then
        GTK_MODULES="libcanberra-gtk-module"
else
        GTK_MODULES="$GTK_MODULES:libcanberra-gtk-module"
fi

export GTK_MODULES
</snip>

This script should be sourced in each Gnome session and will enable
the libcanberra gtk module for all gtk programs.

In fedora we install it as "libcanberra-gtk-module.sh" in
/etc/X11/xinit/xinitrc.d/. I assume other distributions have similar
directories.
..."

I think this second part is missing from the ubuntu libcanberra packages, which is preventing the system sounds from working properly even when the freedesktop theme is installed.

Revision history for this message
C de-Avillez (hggdh2) wrote :

changing as suggested in the previous comment /etc/X11/xinit/xinitrc indeed bypasses the issue.

Revision history for this message
zombiepig (nyall-zombiepigs) wrote :

hggdh - would you mind posting your /etc/X11/xinit/xinitrc? I've tried adding the changes but still can't get the sound effects to work.

Revision history for this message
Dean Loros (autocrosser) wrote :

Yes--are you making a xinitrc folder or a xinitrc.d folder? I've got what "seems" to live inside & named my folder xinitrc.d without system sounds yet....

Revision history for this message
C de-Avillez (hggdh2) wrote :

at least on my system I have a file called /etc/X11/xinit/xinitrc. I created a new file under /etc/X11/xinit/canberra.in, and appended the following line to xinitrc:

. /etc/X11/xinit/canberra.in

Then logged out and back in.

BUT -- it only worked for a while... :-( After some time pulseaudio would start a loop, filling very fast my /var filesystem (writing the same error message over and over to /var/log/user.log). Only killing pulseaudio would stop this behaviour.

So... back to square 0.

But, perhaps, a better place for this would be /etc/X11/Xsession.d.

Revision history for this message
C de-Avillez (hggdh2) wrote :

About the last comment: be carefull...

Revision history for this message
Dean Loros (autocrosser) wrote :

Thanks for the info--I think I will wait until a developer answer is available.....

Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

Confirming for a fully updated Ubuntu 8.10 (originally a fresh install from Alpha 1 or 2), 64-Bit.

Revision history for this message
James Dupin (james.dupin) wrote :

one more funny thing.

when the login screen comes up, there is the little drum sound. When I log in there is no "welcome" sound.

If I do a udev restart then I hear the welcome sound.

Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

> when the login screen comes up, there is the little drum sound. When I log in there is no "welcome" sound.

Confirmed.

Revision history for this message
zombiepig (nyall-zombiepigs) wrote :

The latest updates to libcanberra (0.6-0ubuntu1) and ubuntu-sounds (0.8) fix this issue, in that the controls are no longer disabled and the ubuntu sound theme now appears correctly as a choice of sound theme.

I'm going to file a seperate bug about the window & button sound effects not working.

Revision history for this message
zombiepig (nyall-zombiepigs) wrote :

Bug report for missing window & button sound effects:

https://bugs.launchpad.net/ubuntu/+source/libcanberra/+bug/273507

Revision history for this message
James Dupin (james.dupin) wrote :

there is a Windows login sound upon login indeed as of this morning's update but that's all the sound I get now. no other sounds can be played.
see https://bugs.launchpad.net/ubuntu/+bug/274105 I opened yesterday.

window and button in the gnome-sound-properties can be ticked on and off now but no more sounds when pressing the arrows.

Revision history for this message
Rocko (rockorequin) wrote :

gnome-sound-properties is working properly for me now, ie the Sounds tab is not disabled and I can select and play sounds.

But if you change one or more sounds (the theme then changes to 'Custom') and then change the theme to another (eg ubuntu or default), it loses the custom theme along with all your new settings, which is damned annoying.

Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

As said in comment #22, this bug has been fixed.

Changed in gnome-control-center:
status: Triaged → Fix Released
Revision history for this message
marcobra (Marco Braida) (marcobra) wrote :

Original bug is now fixed for me on Intrepid...

Thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) wrote :

I only have this message running gnome-sound-properties from terminal:

E: shm.c: shm_open() failed: Permission denied
E: shm.c: shm_open() failed: Permission denied
(gnome-sound-properties:20778): sound-properties-DEBUG: setting theme ubuntu

Thank you.

Revision history for this message
Mikhail Kuligin (mkuligin) wrote :

I have this message running mplayer from terminal:
E: shm.c: shm_open() failed: Permission denied
but video and sound played successfully
my system: Linux laptop 2.6.27-11-generic #1 SMP Thu Jan 15 11:03:58 UTC 2009 i686 GNU/Linux

tags: added: iso-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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