KimB
Posts: 38
Joined: Tue Oct 09, 2012 10:38 am
Location: Norfolk, UK

No sound for one of two users

Wed Nov 21, 2012 11:34 am

I've added a second user to my pi. The sound works for the original pi user, but not when i log in and use x as the new user, Kim.

I have edited the /etc/group file and added :Kim to all the lines that had pi listed including audio.

I have issued sudo amixer cset numid=3 1 to get the sound out of the jack, but no luck.

None of the included python games or audio player (xine )output any sound.

Can anybody suggest other things I can try?

KimB
Posts: 38
Joined: Tue Oct 09, 2012 10:38 am
Location: Norfolk, UK

Re: No sound for one of two users

Wed Nov 21, 2012 7:51 pm

After checking it appears that all sound has stopped working. Hardware is ok as sound works using my xbmc card.

I am useing Debian wheezy.

I have tried reinstalling the sound driver using

Code: Select all

sudo apt-get remove alsa-utils
sudo apt-get install alsa-utils
sudo modprobe snd_bmc2835
sudo amixer cset numid=3 1
sudo reboot
sudo modprobe snd_bmc2835
Result still no sound. Can anybody help?

KimB
Posts: 38
Joined: Tue Oct 09, 2012 10:38 am
Location: Norfolk, UK

Re: No sound for one of two users

Thu Nov 22, 2012 9:24 am

Directly adding :Kim to the /etc/group file broke all sound.

I have now reverted to the original group file and sound has returned to the pi account, but still no sound on the Kim account.

Anyone help???

KimB
Posts: 38
Joined: Tue Oct 09, 2012 10:38 am
Location: Norfolk, UK

Re: No sound for one of two users [fixed]

Thu Nov 22, 2012 11:23 am

The solution:

Adding :Kim to the group file was not correct. The proper method is to use

Code: Select all

sudo adduser Kim audio
Checking the /etc/group file shows the line

audio:x:29:pi,Kim

with a comma not colon. I should have used adduser to modify the file instead of directly editing group.

Return to “Troubleshooting”