Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

sound works for root account but not for user account

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
sixpiece45000
Posts: 15
Joined: 2021-01-17 18:40

sound works for root account but not for user account

#1 Post by sixpiece45000 »

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.

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

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

#2 Post by peter_irich »

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

Peter.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#3 Post by Head_on_a_Stick »

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.
deadbang

sixpiece45000
Posts: 15
Joined: 2021-01-17 18:40

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

#4 Post by sixpiece45000 »

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

#5 Post by sixpiece45000 »

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

#6 Post by sixpiece45000 »

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

#7 Post by sixpiece45000 »

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

#8 Post by sixpiece45000 »

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

#9 Post by sixpiece45000 »

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:~#

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#10 Post by Head_on_a_Stick »

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.
deadbang

sixpiece45000
Posts: 15
Joined: 2021-01-17 18:40

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

#11 Post by sixpiece45000 »

sounds good, it won't let me unmute for some reason...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#12 Post by Head_on_a_Stick »

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.
deadbang

sixpiece45000
Posts: 15
Joined: 2021-01-17 18:40

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

#13 Post by sixpiece45000 »

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

#14 Post by sixpiece45000 »

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

#15 Post by sixpiece45000 »

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

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

#16 Post by sixpiece45000 »

You have a module conflict, here: es1371 (kernel-oss) and snd_ens1371(alsa)
try to use the same hardware.
Make sure to not load es1371 but use the alsa module instead, especially since
alsa is default for linux-2.6.x.

However, this has absolutely nothing to do with KDE.

HS
Hendrik Says all this but I don't know how to do what he is saying...

sixpiece45000
Posts: 15
Joined: 2021-01-17 18:40

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

#17 Post by sixpiece45000 »

Code: Select all

sixpiece@Kagan:/etc/pulse$ pactl list short sinks
0	alsa_output.default	module-alsa-sink.c	s16le 2ch 48000Hz	IDLE
1	null	module-null-sink.c	s16le 2ch 44100Hz	SUSPENDED
2	fifo_output	module-pipe-sink.c	s16le 2ch 44100Hz	SUSPENDED
3	rtp	module-null-sink.c	s16be 2ch 44100Hz	SUSPENDED
still not sucessful but found out that pulse audio does not work like it won't start , it's not found. tried to edit the client.conf /etc/pulse files as well as the others default.pa and the other . going to leave it for now..

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#18 Post by Head_on_a_Stick »

This is nothing to do with conflicting kernel modules because if that was the case then sound wouldn't work for root either.

Please post the output of this command as your normal user:

Code: Select all

amixer
Be sure to use code tags for the output (as you have for your last post).
deadbang

sixpiece45000
Posts: 15
Joined: 2021-01-17 18:40

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

#19 Post by sixpiece45000 »

Code: Select all

sixpiece@Kagan:/$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 65536 [100%] [on]
  Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 65536 [100%] [on]
  Front Right: Capture 65536 [100%] [on]
sixpiece@Kagan:/$ 


sixpiece45000
Posts: 15
Joined: 2021-01-17 18:40

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

#20 Post by sixpiece45000 »

it's working I don't know why ... thank you.

Post Reply