You are not logged in.

#1 2011-07-20 10:15:26

tasty_minerals
Member
Registered: 2011-03-30
Posts: 191

[SOLVED] Can't run alsamixer as a normal user

My alsamixer stopped working under normal user.

alsamixer
cannot open mixer: Invalid argument

however I can run it with options such as "alsamixer -c 0"
I assume it is not a normal behavior,  what went wrong?

Some system config files:

cat /etc/modprobe.d/alsa.conf 
options snd slots=snd_hda_intel

cat /etc/modprobe.d/sound.conf 
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel

cat .asoundrc
pcm.!default {
type hw
card 0
device 0
}
ctl.!default {
type hw
card 0
device 0
}

cat /proc/asound/cards
 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xd0600000 irq 16
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xd0210000 irq 19
29 [ThinkPadEC     ]: ThinkPad EC - ThinkPad Console Audio Control
                      ThinkPad Console Audio Control at EC reg 0x30, fw 6ZHT27WW-1.172000

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: CONEXANT Analog [CONEXANT Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

btw, after messing with esd and trying to make a "sound from several apps" sound disappeared, then I rolled back to my previous setup and now I don't have sound in "wesnoth"and some audio players that do not have an option which sound card to use like "minitunes", while qmmp, audacious and other stuff plays music, so does video players. Browsers do play music.

Last edited by tasty_minerals (2011-07-25 09:35:22)


lenovo thinkpad EDGE 13'

Offline

#2 2011-07-20 18:12:11

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] Can't run alsamixer as a normal user

What is the output of `type alsamixer`? Also, try backing up and removing your ~/.alsarc.

Last edited by Stebalien (2011-07-20 18:19:29)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2011-07-20 19:31:52

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 288

Re: [SOLVED] Can't run alsamixer as a normal user

Pulseaudio installed?

Offline

#4 2011-07-20 22:29:03

tasty_minerals
Member
Registered: 2011-03-30
Posts: 191

Re: [SOLVED] Can't run alsamixer as a normal user

Stebalien wrote:

What is the output of `type alsamixer`? Also, try backing up and removing your ~/.alsarc.

type alsamixer
alsamixer is /usr/bin/alsamixer

"Also, try backing up and removing your ~/.alsarc."
I don't have .alsarc, only .asoundrc, should I?


lenovo thinkpad EDGE 13'

Offline

#5 2011-07-20 22:35:04

tasty_minerals
Member
Registered: 2011-03-30
Posts: 191

Re: [SOLVED] Can't run alsamixer as a normal user

mkkot wrote:

Pulseaudio installed?

yes, "extra/pulseaudio 0.9.23-1 [0.76 MB] [installed]"
guess it came with one of my apps, cause I don't install it by default.

what I actually need, is a proper workaround on how and what to do to make sound work the way it intended. To make apps work, the way they do after fresh install)
As long as I understand I got everything configured, but why do some apps refuse to work (like my beloved wesnoth)? I assume that all apps by default read some sound config file to know which card to use, so where is this file, and which one should be altered?


lenovo thinkpad EDGE 13'

Offline

#6 2011-07-20 23:09:06

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] Can't run alsamixer as a normal user

tasty_minerals wrote:
Stebalien wrote:

What is the output of `type alsamixer`? Also, try backing up and removing your ~/.alsarc.

type alsamixer
alsamixer is /usr/bin/alsamixer

"Also, try backing up and removing your ~/.alsarc."
I don't have .alsarc, only .asoundrc, should I?

Sorry, I meant .asoundrc.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#7 2011-07-25 09:33:53

tasty_minerals
Member
Registered: 2011-03-30
Posts: 191

Re: [SOLVED] Can't run alsamixer as a normal user

ok, I did it. Or so it seems.
gpasswd -a yourusername audio
deleted .asoundrc then created a new one with

pcm.dsp {
    type plug
    slave.pcm "dmix"
}

ctl.dmixer {
    type hw
    card 0
}

So now, I can have sound in several apps simultaneously! unfortunately I "wesnoth" still refuses to use my card...
alsamixer can be run as normal user now too.

Last edited by tasty_minerals (2011-07-25 09:35:04)


lenovo thinkpad EDGE 13'

Offline

Board footer

Powered by FluxBB