sound works for root account but not for user account

New to Debian (Or Linux in general)? Ask your questions here!

sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-17 18:42

Hello, I have tried to make the sound work for a created user account but cannot get it to work whereas for the root user there is no issue with the sound working. Thanks.
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby peter_irich » 2021-01-17 18:49

Enter user in group "audio", then log out and log in.

Peter.
peter_irich
 
Posts: 1308
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: sound works for root account but not for user account

Postby Head_on_a_Stick » 2021-01-17 19:47

I don't think users need to be in the audio group for their speakers to work.

@OP: please post the output of this command for your normal user:
Code: Select all
speaker-test

The command is supplied by the alsa-utils package.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-17 20:03

peter_irich wrote:Enter user in group "audio", then log out and log in.

Peter.


the user is already in the audio group.
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-17 20:04

Head_on_a_Stick wrote:I don't think users need to be in the audio group for their speakers to work.

@OP: please post the output of this command for your normal user:
Code: Select all
speaker-test

The command is supplied by the alsa-utils package.


sixpiece@Kagan:/etc$ speaker-test

speaker-test 1.1.8

Le périphérique de lecture est default
Les paramètres du flux sont 48000Hz, S16_LE, 1 canaux
Utilisation de 16 octaves de 'pink noise'
La fréquence est 48000Hz (demandée 48000Hz)
L'intervalle de la taille du tampon est de 192 à 2097152
L'intervalle de la taille de la période est de 64 à 699051
Taille max. de tampon 2097152 utilisée
Périodes = 4
was set period_size = 524288
was set buffer_size = 2097152
0 - Avant Gauche
Temps par période = 11,527054
0 - Avant Gauche
Temps par période = 13,248261
0 - Avant Gauche
Temps par période = 11,463859
0 - Avant Gauche
Temps par période = 11,566965
0 - Avant Gauche
Temps par période = 11,679687
0 - Avant Gauche
Temps par période = 11,602993
0 - Avant Gauche
Temps par période = 11,602105
0 - Avant Gauche
Temps par période = 13,786299
0 - Avant Gauche
Temps par période = 11,730190
0 - Avant Gauche
Temps par période = 11,888259
0 - Avant Gauche
Temps par période = 12,103541
0 - Avant Gauche
Temps par période = 12,613058
0 - Avant Gauche
Temps par période = 11,596672
0 - Avant Gauche

I cancelled it after a while...
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-17 20:10

there was a message to the effect that :

a sound board outside of my peripheral has been employed I might try restarting it I just removed it , maybe this was easy and hopefully so...
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-17 20:12

it's still not solved... I think there might be the wrong sound card selected not sure exactly...
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-17 20:34

peter_irich wrote:Enter user in group "audio", then log out and log in.

Peter.



sixpiece@Kagan:~$ groups
sixpiece cdrom floppy audio dip video plugdev netdev lpadmin scanner
sixpiece@Kagan:~$
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-18 00:18

This is the one that works it hisses ... but I watched Youtube videos. Not sure if it reveals anomalies in configuration. Thank you for your help.

root@Kagan:~# speaker-test

speaker-test 1.1.8

Le périphérique de lecture est default
Les paramètres du flux sont 48000Hz, S16_LE, 1 canaux
Utilisation de 16 octaves de 'pink noise'
La fréquence est 48000Hz (demandée 48000Hz)
L'intervalle de la taille du tampon est de 2048 à 16384
L'intervalle de la taille de la période est de 1024 à 1024
Taille max. de tampon 16384 utilisée
Périodes = 4
was set period_size = 1024
was set buffer_size = 16384
0 - Front Left
Temps par période = 2,501644
0 - Front Left
Temps par période = 2,458419
0 - Front Left
Temps par période = 2,977178
0 - Front Left
Temps par période = 2,987545
0 - Front Left
Temps par période = 2,985257
0 - Front Left
Temps par période = 2,987852
0 - Front Left
11Temps par période = 2,991523
0 - Front Left
Temps par période = 2,991459
0 - Front Left
^CErreur en écriture: -4,Appel système interrompu
xrun_recovery failed: -4,Appel système interrompu
Échec du transfer: Appel système interrompu
root@Kagan:~#
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby Head_on_a_Stick » 2021-01-18 17:29

sixpiece45000 wrote:I watched Youtube videos

Never run the graphical desktop as root.

The speaker-test output from your normal user appears to show a working audio system so I would suggest checking the volume level and mute status. The amixer command can provide output relating to that but please be sure to use code tags if you want to post terminal output.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-18 17:42

sounds good, it won't let me unmute for some reason...
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby Head_on_a_Stick » 2021-01-18 17:50

How exactly are you trying to unmute and how exactly does it fail? Please post actual commands and error messages rather than a vague description.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-18 18:32

Thank you...

when I click pavucontrol the button near the speaker shows an x ES1371 Creative labs I am not sure if this is the correct selection.

I tried commands like unmute and they worked or unmute 100% but still no sound... I will keep a better log of my attempts now that you want failed attempts... to make sure that I am trying something... I can give you my search history and Youtube history . I found youtube had nothing to offer. I tried changing the volume on alsamixer. The main problem I see is that the alsamixer seems to have a different sound card as in pavucontrol

Here is a list of websites I consulted... https://askubuntu.com/questions/77522/c ... ize-volume
https://duckduckgo.com/?q=enable+sound+ ... any&ia=web
https://unix.stackexchange.com/question ... mutebutton
https://www.bing.com/search?q=unmute+in ... A1&PC=U531
https://vitux.com/how-to-control-audio- ... mand-line/ I followed the steps on this website
there are more websites and attempts . The point is that the sound is still not working..
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-19 06:48

sixpiece@Kagan:/proc/asound$ lsmod
Module Size Used by
rfkill 28672 1
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
ghash_clmulni_intel 16384 0
vmw_balloon 20480 0
intel_rapl_perf 16384 0
snd_ens1371 32768 3
snd_ac97_codec 147456 1 snd_ens1371
joydev 24576 0
sg 36864 0
serio_raw 16384 0
ac97_bus 16384 1 snd_ac97_codec
gameport 16384 1 snd_ens1371
snd_rawmidi 40960 1 snd_ens1371
snd_seq_device 16384 1 snd_rawmidi
pcspkr 16384 0
snd_pcm 114688 2 snd_ac97_codec,snd_ens1371
snd_timer 36864 1 snd_pcm
snd 94208 12 snd_seq_device,snd_timer,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_ens1371
soundcore 16384 1 snd
vmw_vmci 81920 1 vmw_balloon
evdev 28672 7
ac 16384 0
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 57344 3 parport_pc,lp,ppdev
ip_tables 28672 0
x_tables 45056 1 ip_tables
autofs4 49152 2
ext4 745472 1
crc16 16384 1 ext4
mbcache 16384 1 ext4
jbd2 122880 1 ext4
crc32c_generic 16384 0
fscrypto 32768 1 ext4
ecb 16384 0
sd_mod 61440 3
hid_generic 16384 0
usbhid 57344 0
hid 139264 2 usbhid,hid_generic
sr_mod 28672 0
cdrom 65536 1 sr_mod
ata_generic 16384 0
crc32c_intel 24576 2
aesni_intel 200704 0
aes_x86_64 20480 1 aesni_intel
crypto_simd 16384 1 aesni_intel
cryptd 28672 3 crypto_simd,ghash_clmulni_intel,aesni_intel
vmwgfx 331776 5
glue_helper 16384 1 aesni_intel
ttm 126976 1 vmwgfx
psmouse 172032 0
drm_kms_helper 208896 1 vmwgfx
xhci_pci 16384 0
uhci_hcd 49152 0
xhci_hcd 266240 1 xhci_pci
ehci_pci 16384 0
ehci_hcd 94208 1 ehci_pci
drm 495616 8 vmwgfx,drm_kms_helper,ttm
ata_piix 36864 0
e1000 155648 0
usbcore 294912 6 xhci_hcd,ehci_pci,usbhid,ehci_hcd,xhci_pci,uhci_hcd
mptspi 28672 2
mptscsih 32768 1 mptspi
mptbase 81920 2 mptspi,mptscsih
scsi_transport_spi 40960 1 mptspi
libata 270336 2 ata_piix,ata_generic
usb_common 16384 1 usbcore
scsi_mod 249856 7 mptspi,sd_mod,scsi_transport_spi,mptscsih,libata,sg,sr_mod
i2c_piix4 24576 0
button 16384 0


now according to Hendrik Sattler in what I found as a similar problem it could be a module conflict ... https://lists.debian.org/debian-kde/200 ... 00177.html . Although I am not sure how to resolve it and why it works in root and not in the user account. but this is where I am at .. .will try again tomorrow going to sleep for now...
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Re: sound works for root account but not for user account

Postby sixpiece45000 » 2021-01-19 06:48

Code: Select all
sixpiece@Kagan:/proc/asound$ lsmod
Module                  Size  Used by
rfkill                 28672  1
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
vmw_balloon            20480  0
intel_rapl_perf        16384  0
snd_ens1371            32768  3
snd_ac97_codec        147456  1 snd_ens1371
joydev                 24576  0
sg                     36864  0
serio_raw              16384  0
ac97_bus               16384  1 snd_ac97_codec
gameport               16384  1 snd_ens1371
snd_rawmidi            40960  1 snd_ens1371
snd_seq_device         16384  1 snd_rawmidi
pcspkr                 16384  0
snd_pcm               114688  2 snd_ac97_codec,snd_ens1371
snd_timer              36864  1 snd_pcm
snd                    94208  12 snd_seq_device,snd_timer,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_ens1371
soundcore              16384  1 snd
vmw_vmci               81920  1 vmw_balloon
evdev                  28672  7
ac                     16384  0
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                57344  3 parport_pc,lp,ppdev
ip_tables              28672  0
x_tables               45056  1 ip_tables
autofs4                49152  2
ext4                  745472  1
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  122880  1 ext4
crc32c_generic         16384  0
fscrypto               32768  1 ext4
ecb                    16384  0
sd_mod                 61440  3
hid_generic            16384  0
usbhid                 57344  0
hid                   139264  2 usbhid,hid_generic
sr_mod                 28672  0
cdrom                  65536  1 sr_mod
ata_generic            16384  0
crc32c_intel           24576  2
aesni_intel           200704  0
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
vmwgfx                331776  5
glue_helper            16384  1 aesni_intel
ttm                   126976  1 vmwgfx
psmouse               172032  0
drm_kms_helper        208896  1 vmwgfx
xhci_pci               16384  0
uhci_hcd               49152  0
xhci_hcd              266240  1 xhci_pci
ehci_pci               16384  0
ehci_hcd               94208  1 ehci_pci
drm                   495616  8 vmwgfx,drm_kms_helper,ttm
ata_piix               36864  0
e1000                 155648  0
usbcore               294912  6 xhci_hcd,ehci_pci,usbhid,ehci_hcd,xhci_pci,uhci_hcd
mptspi                 28672  2
mptscsih               32768  1 mptspi
mptbase                81920  2 mptspi,mptscsih
scsi_transport_spi     40960  1 mptspi
libata                270336  2 ata_piix,ata_generic
usb_common             16384  1 usbcore
scsi_mod              249856  7 mptspi,sd_mod,scsi_transport_spi,mptscsih,libata,sg,sr_mod
i2c_piix4              24576  0
button                 16384  0


now according to Hendrik Sattler in what I found as a similar problem it could be a module conflict ... https://lists.debian.org/debian-kde/200 ... 00177.html . Although I am not sure how to resolve it and why it works in root and not in the user account. but this is where I am at .. .will try again tomorrow going to sleep for now...
Last edited by sixpiece45000 on 2021-01-19 06:50, edited 1 time in total.
sixpiece45000
 
Posts: 15
Joined: 2021-01-17 18:40

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable