Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no sound for non root users - No sound from alsa (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
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Dec 30, 2004 7:18 pm    Post subject: no sound for non root users - No sound from alsa (solved) Reply with quote

I just did a fresh gentoo install and I am not getting any sound. I followed the Gentoo Linux ALSA Guide to help me set this up.

I have a Creative Soundblaster Live Audiology 2 zx
Code:
# lspci | grep -i audio
0000:02:07.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)


which uses the emu10k1 driver

here is my make.conf
/etc/make.conf wrote:

CFLAGS="-O2 -pipe -fomit-frame-pointer -march=k8"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j2"
GENTOO_MIRRORS="ftp://mirror.nutsmaas.nl/gentoo/"
USE="qt -gnome kde dvd alsa oss cdr cups foomaticdb ppds usb ntpl"
ALSA_TOOLS="as10k1 ac3dec"
ALSA_CARDS="emu10k1"


I did a emerge alsa-driver alsa-oss alsa-utlis

Code:
# emerge -s alsa-driver alsa-oss alsa-utils awesfx alsa-tools alsa-firmware
mware
Searching...
[ Results for search key : alsa-driver ]
[ Applications found : 1 ]

*  media-sound/alsa-driver
      Latest version available: 1.0.7-r3
      Latest version installed: 1.0.7-r3
      Size of downloaded files: 1,786 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture kernel modules
      License:     GPL-2 LGPL-2.1


Searching...
[ Results for search key : alsa-oss ]
[ Applications found : 1 ]

*  media-libs/alsa-oss
      Latest version available: 1.0.7
      Latest version installed: 1.0.7
      Size of downloaded files: 218 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture OSS compatibility layer.
      License:     GPL-2


Searching...
[ Results for search key : alsa-utils ]
[ Applications found : 1 ]

*  media-sound/alsa-utils
      Latest version available: 1.0.6
      Latest version installed: 1.0.6
      Size of downloaded files: 144 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture Utils (alsactl, alsamixer,
etc.)
      License:     GPL-2


Searching...
[ Results for search key : awesfx ]
[ Applications found : 1 ]

*  media-sound/awesfx
      Latest version available: 0.5.0d
      Latest version installed: 0.5.0d
      Size of downloaded files: 366 kB
      Homepage:    http://www.alsa-project.org/~iwai/awedrv.html#Utils
      Description: AWE Utilities - sfxload
      License:     GPL-2


Searching...
[ Results for search key : alsa-tools ]
[ Applications found : 1 ]

*  media-sound/alsa-tools
      Latest version available: 1.0.7
      Latest version installed: 1.0.7
      Size of downloaded files: 755 kB
      Homepage:    http://www.alsa-project.org
      Description: Advanced Linux Sound Architecture tools
      License:     GPL-2



Searching...
[ Results for search key : alsa-firmware ]
[ Applications found : 1 ]

*  media-sound/alsa-firmware
      Latest version available: 1.0.7
      Latest version installed: 1.0.7
      Size of downloaded files: 1,017 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture firmware
      License:     GPL-2


here is my /etc/modules.d/alsa
/etc/modules.d/alsa wrote:
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

# ALSA portion
#####alias char-major-116 snd
# OSS/Free portion
#####alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
alias snd-card-0 snd-emu10k1
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
#####alias sound-service-0-0 snd-mixer-oss
#####alias sound-service-0-1 snd-seq-oss
#####alias sound-service-0-3 snd-pcm-oss
#####alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
####options snd cards_limit=1

after editing that i did a modules-update
and added alsa to boot runlevel
Code:
# rc-update add alsasound boot
# /etc/init.d/alsasound start


the /etc/devfs.conf looks ok
/etc/devfsd.conf wrote:
# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660


I also made sure all of the amixersettings where on high all jacks are in the right socket (sound works in windows) and volume controls are all on high (my speakers should be blasting). But still I don't get any sound.


Last edited by <3 on Fri Dec 31, 2004 8:37 am; edited 3 times in total
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Dec 30, 2004 9:03 pm    Post subject: Re: No sound from alsa Reply with quote

<3 wrote:
here is my /etc/modules.d/alsa
/etc/modules.d/alsa wrote:
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

# ALSA portion
#####alias char-major-116 snd
# OSS/Free portion
#####alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
alias snd-card-0 snd-emu10k1
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
#####alias sound-service-0-0 snd-mixer-oss
#####alias sound-service-0-1 snd-seq-oss
#####alias sound-service-0-3 snd-pcm-oss
#####alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
####options snd cards_limit=1


Those hashes in front of every line like this line:
####options snd cards_limit=1
did you put those in the file or was that just a mistake you made when you wrote this post?
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Dec 30, 2004 9:11 pm    Post subject: Reply with quote

the lines with the four hashes are lines that i hashed out. I just rebooted with those hash mark out but nothing changed.

I just realized though that the sound does work when I am logged in ass root for some reason non-root users cannot get sound so i tried to ...
Quote:
usermod -G users,wheel,audio,tty -s /bin/bash -d /home/cashe cashe

still the user cashe cannot play any sound.

note** changing the topic to "no sound for non root users" instead of "no sound from alsa"


Last edited by <3 on Thu Dec 30, 2004 9:32 pm; edited 2 times in total
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Dec 30, 2004 9:27 pm    Post subject: Reply with quote

No don't do that. I have an emu10k1 card and here's my alsa config try mine:
Code:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.2 2004/07/18 03:40:55 dragonheart Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-emu10k1
##  OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Dec 30, 2004 9:35 pm    Post subject: Reply with quote

i edited it too look exactly like that still doesnot work for non root users.
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Dec 30, 2004 9:55 pm    Post subject: Reply with quote

Are they in the audio group?
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Dec 30, 2004 9:57 pm    Post subject: Reply with quote

<3 wrote:
the lines with the four hashes are lines that i hashed out. I just rebooted with those hash mark out but nothing changed.

I just realized though that the sound does work when I am logged in ass root for some reason non-root users cannot get sound so i tried to ...
Quote:
usermod -G users,wheel,audio,tty -s /bin/bash -d /home/cashe cashe

still the user cashe cannot play any sound.

note** changing the topic to "no sound for non root users" instead of "no sound from alsa"


yea I just tryied adding them to audio group but still i don't get any sound.
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Dec 30, 2004 10:08 pm    Post subject: Reply with quote

Code:

ls -l /dev/sound

Let me see the results of that.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Dec 30, 2004 10:11 pm    Post subject: Reply with quote

Quote:
# ls -l /dev/sound/
total 0
crw------- 1 cashe root 14, 14 Dec 31 1969 admmidi
crw------- 1 cashe root 14, 13 Dec 31 1969 amidi
crw------- 1 cashe root 14, 9 Dec 31 1969 dmmidi
crw------- 1 cashe root 14, 2 Dec 31 1969 midi
crw------- 1 cashe root 14, 0 Dec 31 1969 mixer
crw------- 1 cashe root 14, 1 Dec 31 1969 sequencer
crw------- 1 cashe root 14, 8 Dec 31 1969 sequencer2
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Dec 30, 2004 10:13 pm    Post subject: Reply with quote

That's your problem right there the audio group should own those devices. Either add your user to the root group (not sure if that's a security issue or not so it should be a last resort) or do
chown cashe:audio *
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Dec 30, 2004 10:25 pm    Post subject: Reply with quote

Quote:
# chown cashe:audio *
bash-2.05b# ls -l
total 0
crw------- 1 cashe audio 14, 14 Dec 31 1969 admmidi
crw------- 1 cashe audio 14, 13 Dec 31 1969 amidi
crw------- 1 cashe audio 14, 9 Dec 31 1969 dmmidi
crw------- 1 cashe audio 14, 2 Dec 31 1969 midi
crw------- 1 cashe audio 14, 0 Dec 31 1969 mixer
crw------- 1 cashe audio 14, 1 Dec 31 1969 sequencer
crw------- 1 cashe audio 14, 8 Dec 31 1969 sequencer2

is this how it should look??? I still don't get any sound.
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Dec 30, 2004 10:45 pm    Post subject: Reply with quote

In /dev I found all of this too
Code:

crw-------  1 chris audio    14,  14 Dec 26 23:59 admmidi
crw-------  1 chris audio    14,  13 Dec 26 23:59 amidi
lrwxrwxrwx  1 root  root          11 Dec 26 23:59 audio -> sound/audio
crw-------  1 chris root     14,  20 Oct 24 16:18 audio1
crw-------  1 chris root     14,  36 Oct 24 16:18 audio2
crw-------  1 chris root     14,  52 Oct 24 16:18 audio3
crw-------  1 chris root     14,   7 Oct 24 16:18 audioctl
crw-------  1 chris audio    14,   9 Dec 26 23:59 dmmidi
crw-------  1 chris audio    14,   2 Dec 26 23:59 midi
crw-rw----  1 root  audio    31,   0 Oct 24 16:18 mpu401data
crw-rw----  1 root  audio    31,   1 Oct 24 16:18 mpu401stat
crw-rw----  1 root  audio    35,  64 Oct 24 16:18 rmidi0
crw-rw----  1 root  audio    35,  65 Oct 24 16:18 rmidi1
crw-rw----  1 root  audio    35,  66 Oct 24 16:18 rmidi2
crw-rw----  1 root  audio    35,  67 Oct 24 16:18 rmidi3
crw-rw----  1 root  audio    35, 128 Oct 24 16:18 smpte0
crw-rw----  1 root  audio    35, 129 Oct 24 16:18 smpte1
crw-rw----  1 root  audio    35, 130 Oct 24 16:18 smpte2
crw-rw----  1 root  audio    35, 131 Oct 24 16:18 smpte3

check those on your system.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Dec 30, 2004 11:01 pm    Post subject: Reply with quote

sigh I have no idea what that stuff means. Being the m$ newb that I am file permissions scare and confuse me :cry: . Even the chown and chmod man pages are confusing. could I uninstall alsa all its files and directories and start over I have no idea what I am doinng. I followed the gentoo guide for audio and still something is wrong.
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Dec 30, 2004 11:03 pm    Post subject: Reply with quote

Are you using devfs or udev?
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Thu Dec 30, 2004 11:07 pm    Post subject: Reply with quote

Quote:
# emerge -s devfs udev
Searching...
[ Results for search key : devfs ]
[ Applications found : 1 ]

* sys-fs/devfsd
Latest version available: 1.3.25-r8
Latest version installed: 1.3.25-r8
Size of downloaded files: 41 kB
Homepage: http://www.atnf.csiro.au/~rgooch/linux/
Description: Daemon for the Linux Device Filesystem
License: GPL-2


Searching...
[ Results for search key : udev ]
[ Applications found : 2 ]

(some other stuff)

* sys-fs/udev
Latest version available: 045
Latest version installed: [ Not Installed ]
Size of downloaded files: 372 kB
Homepage: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
Description: Linux dynamic and persistent device naming support (aka userspace devfs)
License: GPL-2


hmmm it looks like i am using devfs i thought udev was installed by default. I just did a stage 1 install yesterday. should i switch to udev? and if so how would I go about doing that? emerge -C devfsd then emerge udev?
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Fri Dec 31, 2004 12:32 am    Post subject: Reply with quote

Well I was just curious to see if you had udev and if you played with the configuration file which could've potentially messed up your permissions. Try making a new user in the audio group and see if it works with the new user.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Fri Dec 31, 2004 2:11 am    Post subject: Reply with quote

I tried that earlier with no luck =/. BTW thx for you time and help. Are you on IRC? Maybe it would be easier if you helped me there.

As far as permissions go I have no idea how they got changed. I have not used chmod or chown to change any permissions. I just installed gentoo yesterday, the only thing I was install gentoo kde and a few other programs.
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Fri Dec 31, 2004 3:25 am    Post subject: Reply with quote

I can meet you on IRC what channel/server?
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Fri Dec 31, 2004 3:50 am    Post subject: Reply with quote

phew ok i got it! SOUND AT LAST!!!! I had to do chown -R root:audio *. You had the right idea but forgot the -R tag. Thx so much for your help.
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Tue Jan 04, 2005 8:37 pm    Post subject: Reply with quote

See:

https://bugs.gentoo.org/show_bug.cgi?id=72119

and

https://bugs.gentoo.org/show_bug.cgi?id=31877

That might help.
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