LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-21-2005, 07:16 AM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
alsa work with root or sudo but not user


Running debian 3.1, testing.

Probably has something to do with the screwed-up way alsa mutes everything by default.

as root, this works fine.
# mpg123 audiofile.mp3

or, as user, this works fine,
$ sudo mpg123 audiofile.mp3

but, as user, this does not work,
$ mpg123 audiofile.mp3

I've tried sudo alsamixer, and it looks like practically everything is set to off, but I don't know how to turn it on.
 
Old 10-21-2005, 07:25 AM   #2
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
I figured out how to un-mute everything in alsamixer, but it didn't help. I still get this error when I try to play anything with mpg123:

Can't find a suitable libao driver. (Is device in use?)

Again, everything works just fine as root or sudo.
 
Old 10-21-2005, 07:29 AM   #3
Q-Fireball
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
Did you add the user to the audio group?
http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix
 
Old 10-21-2005, 10:12 AM   #4
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
I was the groups thing. I knew it had to something simple. Thank you.

Although, whoever makes alsa could certainly do a better job of creating a less user hostil install process. Why do they just assume that people will just know these archaic detials?
 
Old 10-24-2005, 09:28 AM   #5
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
alsa is broken, again, as usual

I guess I posted too soon. Alsa is broken for users again. I don't know why. I shut down normally, brought the system up normally. And now alsa doesn't work for users.

By the way, can anybody please tell me why alsa is designed to be unusable? Is there some huge security issue with users having access to their own audio? Why is alsa off by default? And why do users have to be added to an audio group? And why isn't this stuff explained during installation?

Frankly, I sometimes wonder if linux bashers aren't partially right.
 
Old 10-24-2005, 01:53 PM   #6
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Nevermind, I got it. Not sure how.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 11:39 AM
allow sudo for www user to run root shell script cccc *BSD 12 07-23-2005 03:48 PM
root password doesn't work when I use sudo ... bucovaina78 Linux - Security 5 11-10-2004 02:50 PM
SUDO as *non-root* user spratty Linux - Newbie 3 05-19-2004 03:35 AM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration