Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sound only root [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Wed Nov 15, 2017 2:00 pm    Post subject: sound only root [solved] Reply with quote

hello,

my sound works only at root. The user is in group audio. What can be false?

Code:
michi-kiste /home/michi # speaker-test

speaker-test 1.1.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
^CWrite error: -4,Interrupted system call
xrun_recovery failed: -4,Interrupted system call
Transfer failed: Interrupted system call


michi-kiste /home/michi # su michi
michi@michi-kiste ~ $ speaker-test

speaker-test 1.1.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/conf.c:4371:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/conf.c:4371:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/conf.c:4371:(_snd_config_evaluate) func

_________________
www.edv-bildung.de


Last edited by michi-monster on Fri Nov 17, 2017 7:50 am; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5981

PostPosted: Wed Nov 15, 2017 6:21 pm    Post subject: Reply with quote

permissions, if your audio device is not set as root:audio, then it wouldn't matter if your user is in audio or not.
as you were having previously trouble with dev manager, try to follow jaglover's hint from https://forums.gentoo.org/viewtopic-p-8141158.html#8141158

you can also check them with
Code:
ls -l /dev/snd
...
crw-rw----+ 1 root audio 116,  2 14 nov.  23:55 controlC0
...


ps: yeah sorry, told you previously i would think about that, but busy, lot of questions here, and weak memory...
Back to top
View user's profile Send private message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Thu Nov 16, 2017 2:25 pm    Post subject: Reply with quote

thanks. I have root / root in the listening. Thats ok ore what i have to change?

Code:
michi-kiste /dev/snd # ls -all
total 0
drwxr-xr-x  2 root root     240 Nov 16 13:49 .
drwxr-xr-x 16 root root    3640 Nov 16 14:43 ..
crw-------  1 root root 116,  5 Nov 16 13:49 controlC0
crw-------  1 root root 116,  2 Nov 16 13:49 controlC1
crw-------  1 root root 116, 10 Nov 16 13:49 hwC0D0
crw-------  1 root root 116,  4 Nov 16 13:49 hwC1D0
crw-------  1 root root 116,  7 Nov 16 13:49 pcmC0D0c
crw-------  1 root root 116,  6 Nov 16 13:49 pcmC0D0p
crw-------  1 root root 116,  8 Nov 16 13:49 pcmC0D1p
crw-------  1 root root 116,  9 Nov 16 13:49 pcmC0D2c
crw-------  1 root root 116,  3 Nov 16 13:49 pcmC1D3p
crw-------  1 root root 116, 33 Nov 16 13:49 timer

_________________
www.edv-bildung.de
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5981

PostPosted: Thu Nov 16, 2017 8:31 pm    Post subject: Reply with quote

that's not ok to have root:root they should be root:audio, that's why root user can use it, and an user even in audio group cannot, because the group is not audio
Like i told you, it's a problem with your device manager, that should set the permissions. And i have also told you to follow jaglover's hint in order to see if you had the same problem as the user in that thread ; which would mean using the same fix jaglover's has told him.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5981

PostPosted: Thu Nov 16, 2017 8:34 pm    Post subject: Reply with quote

krinn wrote:
that's not ok to have root:root they should be root:audio, that's why root user can use it, and an user even in audio group cannot, because the group is not audio
Like i told you, it's a problem with your device manager, that should set the permissions. And i have also told you to follow jaglover's hint in order to see if you had the same problem as the user in that thread ; which would mean using the same fix jaglover has told him.
Back to top
View user's profile Send private message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Fri Nov 17, 2017 7:50 am    Post subject: Reply with quote

Please dont be angry. I had search for the command in this thread. Now i found it.
I have add udev in the runlevel sysinit. Now it works. Many thanks.
Code:
rc-update add udev sysinit

_________________
www.edv-bildung.de
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5981

PostPosted: Fri Nov 17, 2017 1:53 pm    Post subject: Reply with quote

I'm not, but next time, if you don't know how to apply a solve or the command to use, just tell it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum