Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-04-28 13:43:19

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

system sounds

I have been researching all morning and am having no luck installing a system sound theme. I have the theme saved to both /home/myname/.local/share/sounds and /usr/share/sounds I also set it in settings manager-xsettings-Net-sound theme name

but no sounds come up. My normal music files play fine also youtube etc but no system sounds. In audio mixer playback I have
system sound set to 100% but underneath the slider it stays at silence how can I make it recognize the system sound theme I have se up?

Offline

#2 2022-04-28 14:29:03

KBar
Member
Registered: 2021-11-05
Posts: 372

Re: system sounds

For full support, libcanberra is required.

What does dpkg -l '*canberra*' return?


Xubuntu 20.04

Offline

#3 2022-04-28 18:07:12

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

I am at work now but will try when I get home, thanks. It seems like there should be an easy way to get and apply sound themes in xfce4

Offline

#4 2022-04-28 19:23:14

agashamu
Member
Registered: 2021-03-01
Posts: 23

Re: system sounds

This topic may help:
https://forum.xfce.org/viewtopic.php?id=15670
Not all sound themes work in Xfce.

Online

#5 2022-04-28 21:03:55

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

cmcanulty@Dell660s:~$  dpkg -l '*canberra*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                          Version       Architecture Description
+++-=============================-=============-============-======================================>
ii  gnome-session-canberra        0.30-7ubuntu1 amd64        GNOME session log in and log out sound>
ii  libcanberra-dev:amd64         0.30-7ubuntu1 amd64        simple interface for playing event sou>
ii  libcanberra-gtk-common-dev    0.30-7ubuntu1 all          simple interface for playing event sou>
ii  libcanberra-gtk-dev:amd64     0.30-7ubuntu1 amd64        simple interface for playing event sou>
ii  libcanberra-gtk-module:amd64  0.30-7ubuntu1 amd64        translates GTK+ widgets signals to eve>
ii  libcanberra-gtk-module:i386   0.30-7ubuntu1 i386         translates GTK+ widgets signals to eve>
ii  libcanberra-gtk0:amd64        0.30-7ubuntu1 amd64        GTK+ helper for playing widget event s>
ii  libcanberra-gtk0:i386         0.30-7ubuntu1 i386         GTK+ helper for playing widget event s>
ii  libcanberra-gtk3-0:amd64      0.30-7ubuntu1 amd64        GTK+ 3.0 helper for playing widget eve>
ii  libcanberra-gtk3-module:amd64 0.30-7ubuntu1 amd64        translates GTK3 widgets signals to eve>
ii  libcanberra-pulse:amd64       0.30-7ubuntu1 amd64        PulseAudio backend for libcanberra
ii  libcanberra0:amd64            0.30-7ubuntu1 amd64        simple abstract interface for playing >
ii  libcanberra0:i386             0.30-7ubuntu1 i386         simple abstract interface for playing >
lines 1-18/18 (END)

Offline

#6 2022-04-28 21:28:30

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,817

Re: system sounds

Can you also post back the results of:

ls -l /usr/share/sounds
ls -l ~/.local/share/sounds
xfconf-query -c xsettings -p /Net/EnableEventSounds
xfconf-query -c xsettings -p /Net/EnableInputFeedbackSounds
xfconf-query -c xsettings -p /Net/SoundThemeName
env | grep GTK_MODULES
ls -l /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo
ls -l ~/.local/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo

Offline

#7 2022-04-28 21:48:05

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

update, I get good feedback but still no system sounds:

cmcanulty@Dell660s:~$ xfconf-query -c xsettings -lv | grep -i sound
/Net/EnableEventSounds          true
/Net/EnableInputFeedbackSounds  true
/Net/SoundThemeName             /usr/share/sounds/wolf
cmcanulty@Dell660s:~$

Offline

#8 2022-04-28 22:57:02

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,817

Re: system sounds

Can you run each one of those lines as a separate command and post back the output?

Offline

#9 2022-04-29 13:17:21

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

well I should have given up on system sounds because now I have no sound for anything also now alsamixer shows an error even though I just reinstalled it

cmcanulty@Dell660s:~$ alsamixer
cannot open mixer: No such file or directory
cmcanulty@Dell660s:~$

audiomixer says no output devices I am using hdmi for the monitor and sound. All worked perfectly until I stupidly tried to get system sounds to work.



cmcanulty@Dell660s:~$ xfconf-query -c xsettings -lv | grep -i sound
/Net/EnableEventSounds          true
/Net/EnableInputFeedbackSounds  true
/Net/SoundThemeName             /usr/share/sounds/wolf
cmcanulty@Dell660s:~$ /Net/EnableEventSounds   
bash: /Net/EnableEventSounds: No such file or directory
cmcanulty@Dell660s:~$ /Net/EnableInputFeedbackSounds
bash: /Net/EnableInputFeedbackSounds: No such file or directory
cmcanulty@Dell660s:~$ /Net/SoundThemeName   
bash: /Net/SoundThemeName: No such file or directory
cmcanulty@Dell660s:~$

Last edited by cmcanulty (2022-04-29 13:32:27)

Offline

#10 2022-04-29 13:42:08

KBar
Member
Registered: 2021-11-05
Posts: 372

Re: system sounds

I will redirect you to ToZ's reply.

Can you try the executing the commands he listed out one by one and post back the outputs inside code tags?


Xubuntu 20.04

Offline

#11 2022-04-29 15:55:32

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

cmcanulty@Dell660s:~$ ls -l /usr/share/sounds
total 304
drwxr-xr-x 2 root root   4096 Apr 28 09:17 49-kdesoundthemes-birds-1.0
drwxr-xr-x 2 root root   4096 May  6  2021 alsa
-rw-rw-r-- 1 root root  34829 Apr 28 08:52 bark.oga
-rwxrwxrwx 1 root root  13322 May 24  2012 bark.ogg
-rw-rw-r-- 1 root root 170443 Apr 28 08:52 dog-littlebark2.oga
-rw-rw-r-- 1 root root  15531 Apr 28 08:21 dog-littlebark2.ogg
-rwxrwxrwx 1 root root  16702 Nov 24  2015 dog-littlebark2.wav
drwxr-xr-x 3 root root   4096 Jul 31  2020 freedesktop
drwxr-xr-x 2 root root   4096 Apr 26  2021 GNUstep
drwxr-xr-x 2 root root   4096 Apr 29 09:26 opl3
drwxr-xr-x 2 root root   4096 Jul 31  2020 purple
drwxr-xr-x 2 root root   4096 Dec 16  2020 sf2
drwxr-xr-x 2 root root   4096 Oct 12  2021 sf3
drwxr-xr-x 2 root root   4096 Apr 12  2021 sfz
drwxr-xr-x 2 root root   4096 Jul 31  2020 sound-icons
drwxr-xr-x 2 root root   4096 Jul 31  2020 speech-dispatcher
drwxr-xr-x 3 root root   4096 Apr 28 09:17 wolf
cmcanulty@Dell660s:~$ ls -l ~/.local/share/sounds
total 368
-rw-rw-r-- 1 cmcanulty cmcanulty  53079 Apr 28 09:11 '151492-natural bird sound.mp3'
-rw-rw-r-- 1 cmcanulty cmcanulty  63783 Apr 28 09:09 '167092-Ubuntu Startup.ogg'
drwxrwxr-x 2 cmcanulty cmcanulty   4096 Apr 28 09:15  49-kdesoundthemes-birds-1.0
-rw-rw-r-- 1 root      root       34829 Apr 28 08:52  bark.oga
-rwxrwxrwx 1 cmcanulty cmcanulty  13322 May 24  2012  bark.ogg
-rw-rw-r-- 1 root      root      170443 Apr 28 08:52  dog-littlebark2.oga
-rw-rw-r-- 1 cmcanulty cmcanulty  15531 Apr 28 08:21  dog-littlebark2.ogg
-rw-r--r-- 1 cmcanulty cmcanulty     77 Apr 28 08:18  index.theme
drwxr-xr-x 2 cmcanulty cmcanulty   4096 Apr 28 08:53  stereo
drwxr-xr-x 3 cmcanulty cmcanulty   4096 Feb 26  2011  wolf
cmcanulty@Dell660s:~$ xfconf-query -c xsettings -p /Net/EnableEventSounds
true
cmcanulty@Dell660s:~$ xfconf-query -c xsettings -p /Net/EnableInputFeedbackSounds
true
cmcanulty@Dell660s:~$ xfconf-query -c xsettings -p /Net/SoundThemeName
/usr/share/sounds/wolf
cmcanulty@Dell660s:~$ env | grep GTK_MODULES
GTK_MODULES=gail:atk-bridge
cmcanulty@Dell660s:~$ ls -l /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo
ls: cannot access '/usr/share/sounds//usr/share/sounds/wolf/stereo': No such file or directory
cmcanulty@Dell660s:~$ ls -l ~/.local/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo
ls: cannot access '/home/cmcanulty/.local/share/sounds//usr/share/sounds/wolf/stereo': No such file or directory
cmcanulty@Dell660s:~$ 

yet the file does exist see n below
/home/cmcanulty/.local/share/sounds/wolf/stereo/

yet all I want now is some sound on my computer this system sound thing borked all sound  thank you

Last edited by cmcanulty (2022-04-29 15:57:26)

Offline

#12 2022-04-29 16:15:42

KBar
Member
Registered: 2021-11-05
Posts: 372

Re: system sounds

That's because of an incorrect command substitution. Pay attention to pathname duplication:

ls: cannot access '/usr/share/sounds//usr/share/sounds/wolf/stereo': No such file or directory

Since we know the name of sound theme and that its subdirectory at least exists, can you directly list its contents with:

ls -l /usr/share/sounds/wolf

An even better listing would be:

find /usr/share/sounds/wolf

Last edited by KBar (2022-04-29 16:16:40)


Xubuntu 20.04

Offline

#13 2022-04-29 16:19:18

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

cmcanulty@Dell660s:~$ ls -l /usr/share/sounds/wolf
total 8
-rw-r--r-- 1 root root   75 Feb 26  2011 index.theme
drwxr-xr-x 2 root root 4096 Apr 28 09:17 stereo
cmcanulty@Dell660s:~$ find /usr/share/sounds/wolf
/usr/share/sounds/wolf
/usr/share/sounds/wolf/stereo
/usr/share/sounds/wolf/stereo/desktop-logout.ogg
/usr/share/sounds/wolf/stereo/dialog-question.ogg
/usr/share/sounds/wolf/stereo/dialog-information.ogg
/usr/share/sounds/wolf/stereo/blocked popup.ogg
/usr/share/sounds/wolf/stereo/dialog-warning.ogg
/usr/share/sounds/wolf/stereo/bell.ogg
/usr/share/sounds/wolf/stereo/dialog-error.ogg
/usr/share/sounds/wolf/stereo/desktop-login.ogg
/usr/share/sounds/wolf/index.theme
cmcanulty@Dell660s:~$ 

I just need my system sound now this borked all sound

Offline

#14 2022-04-29 21:43:53

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,817

Re: system sounds

cmcanulty@Dell660s:~$ env | grep GTK_MODULES
GTK_MODULES=gail:atk-bridge

There were 2 problems with the system sounds:

  1. The canberra module was not enabled.

  2. The wolf sound theme is missing many of the available sound events.

Once you get the issue with the sound not working, we can return here to get it set up. Unfortunately, I'm not that familiar with the sound system - perhaps someone else can assist with getting it fixed.

Offline

#15 2022-04-29 22:15:38

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

thanks all. I will keep at it

Offline

#16 2022-05-01 15:46:14

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

I have zeroed in on the issue, I think. There seems to be a missing sound card driver. It did work fine until a few days ago. Here is some terminal output. I did search for missing drivers and none found. Any help please.

cmcanulty@Dell660s:~$ inxi -A
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio driver: N/A 
cmcanulty@Dell660s:~$ sudo alsa force-reload
[sudo] password for cmcanulty: 
Unloading ALSA sound driver modules: (none loaded).
Loading ALSA sound driver modules: (none to reload).
cmcanulty@Dell660s:~$ 

Offline

#17 2022-05-01 16:29:56

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

nothing

cmcanulty@Dell660s:~$ dpkg -l '*canberra*
> 

Also some new insights:

OK I have purged and reinstalled pulse and alsa and still no luck however I have no info. Alsa finds no sound card driver

 sudo alsa force-reload
Unloading ALSA sound driver modules: (none loaded).
Loading ALSA sound driver modules: (none to reload).

also my sound card is

from lspci command

Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)

so how do I install or reinstall that driver? To be clear sound worked perfectly until I decided to try to get a sytsem sound theme to work which I never did and have given up on that. I just want sound back.

Offline

#18 2022-05-01 17:41:40

KBar
Member
Registered: 2021-11-05
Posts: 372

Re: system sounds

cmcanulty wrote:

nothing

cmcanulty@Dell660s:~$ dpkg -l '*canberra*
> 

Because there's no matching closing quote (a single quote character).

What's the output of:

sudo lshw -class multimedia

Xubuntu 20.04

Offline

#19 2022-05-01 20:21:36

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

cmcanulty@Dell660s:~$ sudo lshw -class multimedia
[sudo] password for cmcanulty: 
  *-multimedia UNCLAIMED    
       description: Audio device
       product: 7 Series/C216 Chipset Family High Definition Audio Controller
       vendor: Intel Corporation
       physical id: 1b
       bus info: pci@0000:00:1b.0
       version: 04
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:f7d10000-f7d13fff
cmcanulty@Dell660s:~$ 

Offline

#20 2022-05-02 03:46:29

KBar
Member
Registered: 2021-11-05
Posts: 372

Re: system sounds

This confirms that the sound modules aren't loaded by the kernel. You most likely blacklisted it.

Can you share the contents of your /etc/default/grub file? Afterwards, list the following directory and paste it here:

ls -lA /etc/modprobe.d/

Xubuntu 20.04

Offline

#21 2022-05-02 11:29:13

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
cmcanulty@Dell660s:~$ ls -lA /etc/modprobe.d/
total 64
-rw-r--r-- 1 root root 2541 May  1 11:18 alsa-base.conf
-rw-r--r-- 1 root root  154 Feb 16  2020 amd64-microcode-blacklist.conf
-rw-r--r-- 1 root root  325 Mar 12  2020 blacklist-ath_pci.conf
-rw-r--r-- 1 root root 1540 May  1 08:23 blacklist.conf
-rw-r--r-- 1 root root  210 Mar 12  2020 blacklist-firewire.conf
-rw-r--r-- 1 root root  677 Mar 12  2020 blacklist-framebuffer.conf
-rw-r--r-- 1 root root  156 Jul 30  2015 blacklist-modem.conf
lrwxrwxrwx 1 root root   41 Apr 30 08:13 blacklist-oss.conf -> /lib/linux-sound-base/noOSS.modprobe.conf
-rw-r--r-- 1 root root  583 Mar 12  2020 blacklist-rare-network.conf
-rw-r--r-- 1 root root  127 Jan 22  2020 dkms.conf
-rw-r--r-- 1 root root  154 Jun 10  2020 intel-microcode-blacklist.conf
-rw-r--r-- 1 root root  347 Mar 12  2020 iwlwifi.conf
-rw-r--r-- 1 root root  379 Sep 28  2020 mdadm.conf
-rw-r--r-- 1 root root   70 Mar  9  2015 oss4-base.conf
-rw-r--r-- 1 root root 3916 Jun 23  2021 oss4-base_noALSA.conf
-rw-r--r-- 1 root root 1059 Jun 23  2021 oss4-base_noOSS3.conf
-rw-r--r-- 1 root root   68 Jan 25  2019 osspd.conf
cmcanulty@Dell660s:~$ 

Offline

#22 2022-05-02 11:36:31

KBar
Member
Registered: 2021-11-05
Posts: 372

Re: system sounds

You edited the alsa-base.conf modprobe configuration file. Generally, when you bork something, you just have to revert its config files back to its previous state.

Can you share the content of that alsa-base.conf file?


Xubuntu 20.04

Offline

#23 2022-05-02 11:45:16

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

that was probably when I was trying to get system sound theme going

# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }

# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
options snd-hda-intel model=Intel

Offline

#24 2022-05-02 11:49:45

KBar
Member
Registered: 2021-11-05
Posts: 372

Re: system sounds

Which commands did you issue? Check your Bash history file or try to recollect.

In the meantime, reinstall the alsa-base package.


Xubuntu 20.04

Offline

#25 2022-05-02 12:20:38

cmcanulty
Member
From: Beulah, Michigan
Registered: 2014-05-10
Posts: 247

Re: system sounds

I reinstalled alsa-base and every other sound app I could find a few days ago with no result. I just completely removed it and reinstalled it again and I copied alsa-base.conf from a recent backuup to modprobe.d to replace the one I I had modified and rebooted. Still no sound. Am I going to have to reinstall? That would be a nightmare but I am stuck now. Is there any other file I should replace from my backup drive? Thank you my bash history only had today. I edited bash.rc today to make it append and not overwrite history.

Last edited by cmcanulty (2022-05-02 12:59:08)

Offline

Board footer

Powered by FluxBB