Xfce Forum

Sub domains
 

You are not logged in.

#26 2015-10-14 20:18:11

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [Solved] System sounds

I just tried copying that script into a file, making it executable and running it.  The variable is still not set.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#27 2015-10-14 21:30:08

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: [Solved] System sounds

the usual way:

printf "gtk-modules = \x22canberra-gtk-module\x22" > /etc/gtk-2.0/gtkrc
printf '[Settings]\ngtk-modules = canberra-gtk-module' > /etc/gtk-3.0/settings.ini
init 6

also make sure your codec is supported by canberra(canberra-gtk-play)

Last edited by sixsixfive (2015-10-14 21:31:40)

Offline

#28 2015-10-14 21:35:00

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [Solved] System sounds

That may be the usual way for you, but I prefer the simpler, more obvious way of editing the file.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#29 2015-10-14 21:40:44

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: [Solved] System sounds

Sideburns wrote:

That may be the usual way for you

nope, its actually the recommend way in gtk doc, instead of variables...

Offline

#30 2015-10-14 22:33:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

Sideburns wrote:

I just tried copying that script into a file, making it executable and running it.  The variable is still not set.

Executing it won't help. Log out and back in again, and it should be sourced during login.

Or use the method that sixsixfive suggests.

Either will work.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#31 2015-10-14 22:57:43

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [Solved] System sounds

I put it in ~/bin, but I suppose I could move it...


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#32 2017-01-03 21:50:22

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [Solved] System sounds

I know that this is an old thread, but I got here from a more recent one because I still only have those two sounds.  Checking, I have /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module and it looks exactly like the one you posted.  However, GTK_MODULES=canberra-gtk-module instead of GTK_MODULES=canberra-gtk-module:canberra-gtk-module as it should.  If there's a typo anywhere in that file, I can't see it.  Maybe I'll have to rename the current file and recreate it by copying what you have and pasting it into a new version of the file and log out and back in.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#33 2017-01-04 00:22:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

I know that this is an old thread, but I got here from a more recent one because I still only have those two sounds.

Let's refresh ourselves. What do the following commands return:

xfconf-query -c xsettings -p /Net/SoundThemeName
env | grep GTK_MODULE
ls -l /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo
which canberra-gtk-play

However, GTK_MODULES=canberra-gtk-module instead of GTK_MODULES=canberra-gtk-module:canberra-gtk-module as it should.  If there's a typo anywhere in that file, I can't see it.

As long as GTK_MODULES returns "canberra-gtk-module" somewhere in its list, it should be fine.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#34 2017-01-04 00:56:35

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [Solved] System sounds

OK, here's what I got, pasted in from a terminal:

[joe@khorlia ~]$ xfconf-query -c xsettings -p /Net/SoundThemeName
Borealis
[joe@khorlia ~]$ env | grep GTK_MODULE
GTK_MODULES=canberra-gtk-module
[joe@khorlia ~]$ ls -l /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo
total 2960
-rw-r--r--. 1 root root   8357 Jun 10  2012 button-pressed.ogg
-rw-r--r--. 1 root root  10284 Jun 10  2012 button-toggle-off.ogg
-rw-r--r--. 1 root root  10120 Jun 10  2012 button-toggle-on.ogg
-rw-r--r--. 1 root root 447104 Jun 10  2012 desktop-login.ogg
-rw-r--r--. 1 root root 227654 Jun 10  2012 desktop-logout.ogg
-rw-r--r--. 1 root root  10120 Jun 10  2012 desktop-switch-left.ogg
-rw-r--r--. 1 root root  10284 Jun 10  2012 desktop-switch-right.ogg
-rw-r--r--. 1 root root  10120 Jun 10  2012 device-added.ogg
-rw-r--r--. 1 root root  10284 Jun 10  2012 device-removed.ogg
-rw-r--r--. 1 root root  40703 Jun 10  2012 dialog-error.ogg
-rw-r--r--. 1 root root  11652 Jun 10  2012 dialog-information.ogg
-rw-r--r--. 1 root root  52026 Jun 10  2012 dialog-question.ogg
-rw-r--r--. 1 root root  16193 Jun 10  2012 dialog-warning.ogg
-rw-r--r--. 1 root root 225536 Jun 10  2012 Exit1_2.ogg
-rw-r--r--. 1 root root   4630 Jun 10  2012 install.sh
-rw-r--r--. 1 root root 278722 Jun 10  2012 K3b_success.ogg
-rw-r--r--. 1 root root  24192 Jun 10  2012 Knock.ogg
-rw-r--r--. 1 root root  29711 Jun 10  2012 Kopete_status.ogg
-rw-r--r--. 1 root root  30409 Jun 10  2012 message-new-instant.ogg
-rw-r--r--. 1 root root  84820 Jun 10  2012 phone-incoming-call.ogg
-rw-r--r--. 1 root root  48009 Jun 10  2012 phone-outgoing-busy.ogg
-rw-r--r--. 1 root root   7782 Jun 10  2012 README
-rw-r--r--. 1 root root  17274 Jun 10  2012 service-login.ogg
-rw-r--r--. 1 root root  14573 Jun 10  2012 service-logout.ogg
-rw-r--r--. 1 root root 397380 Jun 10  2012 Startup1_1.ogg
-rw-r--r--. 1 root root 408878 Jun 10  2012 Startup1_2.ogg
-rw-r--r--. 1 root root 413931 Jun 10  2012 Startup1_3.ogg
-rw-r--r--. 1 root root  41886 Jun 10  2012 system-ready.ogg
-rw-r--r--. 1 root root   8869 Jun 10  2012 trash-empty.ogg
-rw-r--r--. 1 root root   2860 Jun 10  2012 uninstall.sh
-rw-r--r--. 1 root root  11114 Jun 10  2012 window-close.ogg
-rw-r--r--. 1 root root  10120 Jun 10  2012 window-maximized.ogg
-rw-r--r--. 1 root root  11114 Jun 10  2012 window-minimized.ogg
-rw-r--r--. 1 root root  10284 Jun 10  2012 window-unmaximized.ogg
-rw-r--r--. 1 root root  11439 Jun 10  2012 window-unminimized.ogg
[joe@khorlia ~]$ which canberra-gtk-play
/usr/bin/canberra-gtk-play

Remember, I do get a new mail sound and a notification from some popups.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#35 2017-01-04 01:33:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

That looks good. Does the following command play the Startup1_1 sound for you?

canberra-gtk-play -i Startup1_1

Do you hear a sound when you minimize and restore a window, or close a window by clicking the X in the corner of the window?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#36 2017-01-04 01:45:20

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [Solved] System sounds

I got the startup sound.  I've never gotten any sounds except New Email and popup notification and that hasn't changed.  Where do I look to see how they're set?


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#37 2017-01-04 01:55:43

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

They should be set. Check to make sure that at Settings Manager > Appearance > Settings, that both of the event sounds check boxes are checked.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#38 2017-01-04 02:05:08

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [Solved] System sounds

AHA!  Event sounds were enabled but feedback wasn't.  (I hadn't realized that you need both selected.)  Now, I get sounds from minimizing, closing and so on.  Now, where do I go to set, unset and/or test the sounds?


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#39 2017-01-04 02:42:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

Sideburns wrote:

Now, where do I go to set, unset and/or test the sounds?

No-one has created a utility to do this, so its all manual from here. Here is a list of gtk sounds that libcanberra supports:

/*
   We generate these sounds:

   dialog-error
   dialog-warning
   dialog-information
   dialog-question
   window-new
   window-close
   window-minimized
   window-unminimized
   window-maximized
   window-unmaximized
   notebook-tab-changed
   dialog-ok
   dialog-cancel
   item-selected
   link-pressed
   link-released
   button-pressed
   button-released
   menu-click
   button-toggle-on
   button-toggle-off
   menu-popup
   menu-popdown
   menu-replace
   tooltip-popup
   tooltip-popdown
   drag-start
   drag-accept
   drag-fail
   expander-toggle-on
   expander-toggle-off

   TODO:
   scroll-xxx
   window-switch
   window-resize-xxx
   window-move-xxx

*/

In my testing, years ago, only some of these effects worked. I don't know why. The libcanberra implementation doesn't appear to be supported anymore - there haven't been any changes made to it since 2012. What you would do, is create, rename, etc the ogg files in the theme's stereo folder to use the names listed above. So for example, create the file "dialog-cancel.ogg" with the sound effect you want to use and see if clicking the cancel button on a dialog generates the sound effect. YMMV.

Its also important to note that this functionality is a GTK functionality, not an Xfce functionality. I don't believe Xfce directly supports sound effects - its a byproduct of being based on GTK.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#40 2017-01-04 07:23:43

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [Solved] System sounds

OK, I've saved the list in a text file and will play with it later.  I presume that links will do?  I don't plan to use all of the sounds because I don't actually want all of them, but it's nice to know what's available.  Thanx!


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#41 2017-01-07 22:01:47

mozhan
Member
Registered: 2017-01-07
Posts: 5

Re: [Solved] System sounds

hello i have the same problem to be sure that i have same configuration with @Sideburns i installed Borealis and i look there is no stereo i create it and copy also inside that folder now my outputs like that

mustafa@ozhan  ~  xfconf-query -c xsettings -p /Net/SoundThemeName
Borealis
 mustafa@ozhan  ~  env | grep GTK_MODULE
GTK_MODULES=canberra-gtk-module
 mustafa@ozhan  ~  ls -l /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo

total 2924
-rw-r--r-- 1 root root  44047 Jan  7 23:38 borealis.jpg
-rw-r--r-- 1 root root   8357 Jan  7 23:38 Click1.ogg
drwxr-xr-x 2 root root   4096 Jan  7 23:41 Config
-rw-r--r-- 1 root root  48009 Jan  7 23:38 Error1.ogg
-rw-r--r-- 1 root root  40703 Jan  7 23:38 Error2.ogg
-rw-r--r-- 1 root root 227654 Jan  7 23:38 Exit1_1.ogg
-rw-r--r-- 1 root root 225536 Jan  7 23:38 Exit1_2.ogg
-rw-r--r-- 1 root root   4630 Jan  7 23:38 install.sh
-rw-r--r-- 1 root root 278722 Jan  7 23:38 K3b_success.ogg
-rw-r--r-- 1 root root  84820 Jan  7 23:38 Kmail.ogg
-rw-r--r-- 1 root root  24192 Jan  7 23:38 Knock.ogg
-rw-r--r-- 1 root root  41886 Jan  7 23:38 Kopete_notify.ogg
-rw-r--r-- 1 root root   8869 Jan  7 23:38 Kopete_offline.ogg
-rw-r--r-- 1 root root  30409 Jan  7 23:38 Kopete_send.ogg
-rw-r--r-- 1 root root  29711 Jan  7 23:38 Kopete_status.ogg
-rw-r--r-- 1 root root   9474 Jan  7 23:38 Maximize.ogg
-rw-r--r-- 1 root root  11114 Jan  7 23:38 Minimize1.ogg
-rw-r--r-- 1 root root  11439 Jan  7 23:38 Minimize4.ogg
-rw-r--r-- 1 root root  11652 Jan  7 23:38 Popup.ogg
-rw-r--r-- 1 root root  16193 Jan  7 23:38 Question_background.ogg
-rw-r--r-- 1 root root  52026 Jan  7 23:38 Question.ogg
-rw-r--r-- 1 root root   7782 Jan  7 23:38 README
-rw-r--r-- 1 root root  10284 Jan  7 23:38 Restore_down.ogg
-rw-r--r-- 1 root root  10120 Jan  7 23:38 Restore_up.ogg
-rw-r--r-- 1 root root  10295 Jan  7 23:38 Shade_down.ogg
-rw-r--r-- 1 root root   8431 Jan  7 23:38 Shade_up.ogg
-rw-r--r-- 1 root root 397380 Jan  7 23:38 Startup1_1.ogg
-rw-r--r-- 1 root root 408878 Jan  7 23:38 Startup1_2.ogg
-rw-r--r-- 1 root root 413931 Jan  7 23:38 Startup1_3.ogg
-rw-r--r-- 1 root root 447104 Jan  7 23:38 Startup1_4.ogg
-rw-r--r-- 1 root root   2860 Jan  7 23:38 uninstall.sh
 mustafa@ozhan  ~  which canberra-gtk-play
/usr/bin/canberra-gtk-play
 mustafa@ozhan  ~  

Offline

#42 2017-01-07 22:15:23

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

mozhan wrote:

hello i have the same problem to be sure that i have same configuration with @Sideburns

What does the following return:

xfconf-query -c xsettings -lv | grep Enable

Is your system event sound volume turned up from the volume control?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#43 2017-01-07 22:59:27

mozhan
Member
Registered: 2017-01-07
Posts: 5

Re: [Solved] System sounds

xfconf-query -c xsettings -lv | grep Enable
/Net/EnableEventSounds          true
/Net/EnableInputFeedbackSounds  true
 mustafa@ozhan  ~  

and yes it is turned up

Offline

#44 2017-01-08 01:23:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

Try the (modified) Borealis sound theme from here. I copied over some of the sound files to match the events that gtk is looking for. You should get window open/close, minimize/maximize and button clicks. And as per comment #39, you can try renaming other files to test if the other sound events work for you.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#45 2017-01-08 07:35:24

mozhan
Member
Registered: 2017-01-07
Posts: 5

Re: [Solved] System sounds

Thank you so much problem solved and i have last question if i would like to change that sound theme what it should be my guide ?

Offline

#46 2017-01-08 08:07:39

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

You mean change the sound event files? There really isn't a guide that I know of. Look at the libcanberra source, specifically the info presented in comment #39, and possibly the sound theme and naming specifications. But, all you need to to do, is create sound files for the names listed in comment #39, because those are the only sound events that are supported by libcanberra.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#47 2017-01-08 22:32:27

mozhan
Member
Registered: 2017-01-07
Posts: 5

Re: [Solved] System sounds

what about can i put some sound and put the same name with those ? anyway i will try big_smile again thank you so much because as the guy said it was the only thread.

Offline

#48 2017-01-31 21:38:43

xfzfflm
Member
Registered: 2017-01-31
Posts: 6

Re: [Solved] System sounds

Hi, I got a similar problem: I do have system sound but only simple beep.

The results of the commands you listed is:

[lm@Thinkon:~]$ xfconf-query -c xsettings -p /Net/SoundThemeName
freedesktop
[lm@Thinkon:~]$ env | grep GTK_MODULE
GTK_MODULES=canberra-gtk-module:canberra-gtk-module
[lm@Thinkon:~]$ ls -l /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereototal 520
-rw-r--r-- 1 root root 73696 Jul  3  2014 alarm-clock-elapsed.oga
-rw-r--r-- 1 root root 17015 Jul  3  2014 audio-channel-front-center.oga
-rw-r--r-- 1 root root 15675 Jul  3  2014 audio-channel-front-left.oga
-rw-r--r-- 1 root root 19019 Jul  3  2014 audio-channel-front-right.oga
-rw-r--r-- 1 root root 17099 Jul  3  2014 audio-channel-rear-center.oga
-rw-r--r-- 1 root root 14129 Jul  3  2014 audio-channel-rear-left.oga
-rw-r--r-- 1 root root 18791 Jul  3  2014 audio-channel-rear-right.oga
-rw-r--r-- 1 root root 17089 Jul  3  2014 audio-channel-side-left.oga
-rw-r--r-- 1 root root 17198 Jul  3  2014 audio-channel-side-right.oga
-rw-r--r-- 1 root root 18152 Jul  3  2014 audio-test-signal.oga
-rw-r--r-- 1 root root  5596 Jul  3  2014 audio-volume-change.oga
-rw-r--r-- 1 root root  8495 Jul  3  2014 bell.oga
-rw-r--r-- 1 root root 23142 Jul  3  2014 camera-shutter.oga
-rw-r--r-- 1 root root 21073 Jul  3  2014 complete.oga
-rw-r--r-- 1 root root  8748 Jul  3  2014 device-added.oga
-rw-r--r-- 1 root root  8500 Jul  3  2014 device-removed.oga
lrwxrwxrwx 1 root root    18 Jul  3  2014 dialog-error.oga -> dialog-warning.oga
-rw-r--r-- 1 root root  5666 Jul  3  2014 dialog-information.oga
-rw-r--r-- 1 root root 12182 Jul  3  2014 dialog-warning.oga
-rw-r--r-- 1 root root 22733 Jul  3  2014 message-new-instant.oga
-rw-r--r-- 1 root root 10429 Jul  3  2014 message.oga
lrwxrwxrwx 1 root root    16 Jul  3  2014 network-connectivity-established.oga -> device-added.oga
lrwxrwxrwx 1 root root    18 Jul  3  2014 network-connectivity-lost.oga -> device-removed.oga
-rw-r--r-- 1 root root 25889 Jul  3  2014 phone-incoming-call.oga
-rw-r--r-- 1 root root  7996 Jul  3  2014 phone-outgoing-busy.oga
-rw-r--r-- 1 root root  4792 Jul  3  2014 phone-outgoing-calling.oga
lrwxrwxrwx 1 root root    16 Jul  3  2014 power-plug.oga -> device-added.oga
lrwxrwxrwx 1 root root    18 Jul  3  2014 power-unplug.oga -> device-removed.oga
lrwxrwxrwx 1 root root    18 Jul  3  2014 screen-capture.oga -> camera-shutter.oga
-rw-r--r-- 1 root root 17274 Jul  3  2014 service-login.oga
-rw-r--r-- 1 root root 14573 Jul  3  2014 service-logout.oga
-rw-r--r-- 1 root root  6849 Jul  3  2014 suspend-error.oga
-rw-r--r-- 1 root root 38223 Jul  3  2014 trash-empty.oga
lrwxrwxrwx 1 root root    18 Jul  3  2014 window-attention.oga -> dialog-warning.oga
lrwxrwxrwx 1 root root    18 Jul  3  2014 window-question.oga -> dialog-warning.oga
[lm@Thinkon:~]$ xfconf-query -c xsettings -lv | grep Enable
/Net/EnableEventSounds          true
/Net/EnableInputFeedbackSounds  true

and commands like:

canberra-gtk-play -i bell

do give me the sound of bell.

However, the only system event sound I can get is a simple beep, no matter when deleting a file or trying to log out. Playing music using applications works fine.

I am under Arch Linux.

Thank you very much for your help! @Toz

Last edited by xfzfflm (2017-01-31 21:42:15)

Offline

#49 2017-02-01 01:30:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512

Re: [Solved] System sounds

The freedesktop theme only gives a simple beep, I believe (emptying trash sound should also work). Grab the Borealis theme thats linked above (comment #44) and give it a try - it includes more of the libcanberra-supported system sounds.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#50 2017-02-01 04:35:21

xfzfflm
Member
Registered: 2017-01-31
Posts: 6

Re: [Solved] System sounds

@Toz
Thank you!
By putting it to /usr/share/sounds I do get some more sound when opening applications etc. But when trying to log out or delete something it still gives me simple beep. Does that mean that I need to make some link to replace this beep? Thank you!

Last edited by xfzfflm (2017-02-01 05:31:24)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 8 queries executed - Memory usage: 668.4 KiB (Peak: 717.24 KiB) ]