# pbl: no sound for normal users
# my findings so far:
# check OS version
uwe@tux2:~$ lsb_release -a
No LSB modules are available.
Distributor ID:Ubuntu
Description:Ubuntu 22.04.3 LTS
Release:22.04
Codename:jammy
### select the right sound output
There is only one. The internal sound ...
# check for audio device
uwe@tux2:~$ lspci -v
00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01) (prog-if 80)
DeviceName: Onboard - Sound
Subsystem: Tongfang Hongkong Limited Device 1173
Flags: bus master, fast devsel, latency 32, IRQ 191, IOMMU group 14
Memory at 612d188000 (64-bit, non-prefetchable) [size=16K]
Memory at 612d000000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
# find a sound file for the tests
uwe@tux2:/usr/share$ find /usr/share/sounds/alsa -name "*.wav"
/usr/share/sounds/alsa/Front_Left.wav
/usr/share/sounds/alsa/Side_Left.wav
/usr/share/sounds/alsa/Front_Right.wav
/usr/share/sounds/alsa/Noise.wav
/usr/share/sounds/alsa/Side_Right.wav
/usr/share/sounds/alsa/Rear_Center.wav
/usr/share/sounds/alsa/Rear_Right.wav
/usr/share/sounds/alsa/Front_Center.wav
/usr/share/sounds/alsa/Rear_Left.wav
# :-( no sound with
uwe@tux2:~$ aplay /usr/share/sounds/alsa/Front_Center.wav
# :-) sound ok with
uwe@tux2:~$ sudo aplay /usr/share/sounds/alsa/Front_Center.wav
# uwe is in group audio!
uwe@tux2:~$ groups uwe
uwe : uwe adm cdrom sudo audio dip plugdev lpadmin sambashare lxd
# check access rights for /dev/snd
uwe@tux2:~$ ls /dev -la | grep snd
drwxr-xr-x 3 root root 280 Okt 5 17:52 snd
# change ownership
uwe@tux2:~$ sudo chown root:audio /dev/snd
# :D successful test with
uwe@tux2:~$ aplay /usr/share/sounds/alsa/Front_Center.wav
# a restart will change the ownership back to ### ??? ###
uwe@tux2:~$ ls -ls /dev | grep snd
0 drwxr-xr-x 3 root root 280 Okt 6 09:47 snd
# again a manually change of ownership
uwe@tux2:~$ sudo chown root:audio /dev/snd
# but now NO success with
uwe@tux2:~$ aplay /usr/share/sounds/alsa/Front_Center.wav
# ???
root@tux2:/dev/snd# ls -la
insgesamt 0
drwxr-xr-x 3 root audio 280 Okt 6 09:47 .
drwxr-xr-x 23 root root 5480 Okt 6 09:47 ..
drwxr-xr-x 2 root root 60 Okt 6 09:47 by-path
crw-rw----+ 1 root audio 116, 10 Okt 6 09:47 controlC0
crw-rw----+ 1 root audio 116, 8 Okt 6 09:47 hwC0D0
crw-rw----+ 1 root audio 116, 9 Okt 6 09:47 hwC0D2
crw-rw----+ 1 root audio 116, 3 Okt 6 09:47 pcmC0D0c
crw-rw----+ 1 root audio 116, 2 Okt 6 09:56 pcmC0D0p
crw-rw----+ 1 root audio 116, 4 Okt 6 09:47 pcmC0D3p
crw-rw----+ 1 root audio 116, 5 Okt 6 09:47 pcmC0D7p
crw-rw----+ 1 root audio 116, 6 Okt 6 09:47 pcmC0D8p
crw-rw----+ 1 root audio 116, 7 Okt 6 09:47 pcmC0D9p
crw-rw----+ 1 root audio 116, 1 Okt 6 09:47 seq
crw-rw----+ 1 root audio 116, 33 Okt 6 09:47 timer
# if I chage the ownership of by-pass to root:audio, aplay works again. But no sound via the sound test via settings.
Bookmarks