You are not logged in.
Pages: 1
In order for me to get my audio working in a normal user account I have to run through alsaconf every time I reboot. Although this only takes about 15 seconds, there has to be some way to load my audio driver at startup. The strange thing is that in a root account I don't have to run alsaconf at all, the audio just works.
Any Help at all would be great
Offline
Is your user in the audio group? Is alsa loaded as a daemon on startup (/etc/rc.conf)?
Haven't been here in a while. Still rocking Arch.
Offline
My user is in the audio group and alsa is in the deamons list
Offline
try as root
alsaconf
Offline
Right, like i said when i run alsaconf i get audio...but when i reboot or log out i need to run alsaconf again in order to get the sound again, so how can i load the driver permanently or make a script to do it for me
Offline
duh sorry im a bit blind sometimes
what /etc/modprobe.conf look like?
did you put modules in /etc/rc.conf?
what you get running as user
alsamixer
is there a bunch of settings to play with ?
if so you got to figure out what needs to be on/off or turned up
Offline
well, like you said sound works when you are root ... that suggests that the driver is in-fact loaded and configured ...
so i just a couple questions ... when you say audio doesn't work, what exactly do you mean ?
i.e
--> an app complains about not being able to play audio
--> audio seems to play, with no sound
and
what user do you run alsaconf as ?
The.Revolution.Is.Coming - - To fight, To hunger, To Resist!
Offline
On a fresh login my /etc/modprobe.conf looks like this
#
# /etc/modprobe.conf (for v2.6 kernels)
#
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.13 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---
My /etc/rc.conf looks like this:
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/unimaps
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
# - prefix a module with a ! to blacklist it
#
MODULES=()
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="carlo"
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
#
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)
#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng !hotplug !pcmcia network netfs
crond
kdm alsa dbus hal)
# End of file
I have unmuted all channels in alsamixer.
After I have run alsaconf my /etc/modprobe.conf looks the same, but I can hear things...
Offline
well, like you said sound works when you are root ... that suggests that the driver is in-fact loaded and configured ...
so i just a couple questions ... when you say audio doesn't work, what exactly do you mean ?
i.e
--> an app complains about not being able to play audio
--> audio seems to play, with no soundand
what user do you run alsaconf as ?
Apps do not complain about not being able to use the sound....players like Amarok will show the equalizer moving up and down, but I hear nothing.
alsaconf can only be run as root
Last edited by clos (2007-03-19 21:24:23)
Offline
try this
amixer set Master 90% unmute
amixer set PCM 85% unmute
Offline
try this
amixer set Master 90% unmute amixer set PCM 85% unmute
After running alsaconf and this code, I can hear audio....after reboot I have to run alsaconf to get the audio back
Can I make a script that will do this for me? Or does it have something to do with alsaconf having to be run as root?
Last edited by clos (2007-03-19 22:14:06)
Offline
alsactl store
did you check the wiki before posting?
http://wiki.archlinux.org/index.php/Alsa
please search wiki & forums before posting
Offline
/etc/rc.d/alsa stop && rm /etc/asound.state && /etc/rc.d/alsa start && alsactl store
Edit: oups, too slow^^
Last edited by buddabrod (2007-03-19 22:28:19)
Offline
/etc/rc.d/alsa stop && rm /etc/asound.state && /etc/rc.d/alsa start && alsactl store
Edit: oups, too slow^^
This is what that returned
[root@carlo carlo]# /etc/rc.d/alsa stop && rm /etc/asound.state && /etc/rc.d/alsa start && alsactl store
:: Saving ALSA Levels [DONE]
:: Restoring ALSA Levels [BUSY] No state is present for card MCP04
No state is present for card UART
[DONE]
Offline
alsactl store
did you check the wiki before posting?
http://wiki.archlinux.org/index.php/Alsa
please search wiki & forums before posting
For some reason alsactl store doesn't save my settings when i reboot into a normal user :-/
I edited my modules section of my /etc/rc.conf as follows:
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
# - prefix a module with a ! to blacklist it
#
MODULES=(snd-intel8x0)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
#
But it still doesn't load the driver on startup
And I don't know if this has anything to do with it or not, but I can only run alsactl store as root
Last edited by clos (2007-03-20 01:58:50)
Offline
Logically you have to set your mixer settings _before_ you save them via "alsactl store"
Offline
Pretty much foolproof way to getting alsa working as long as it autodetects the right module:
1. Login as root.
2. Run pacman -S alsa-lib alsa-utils.
3. Run alsaconf. Choose the correct soundcard. Let it save the settings to modprobe.conf.
4. Edit /etc/rc.conf. Add alsa at the end of the daemons array.
5. Run alsamixer. Set everything to how you want it.
6. Run alsactl store.
7. Run /etc/rc.d/alsa start.
Offline
I did this, it worked, but the problem is that I have to do this every time I reboot. I tried alsactl store but for some reason I have to run through alsaconf every time.
If I wanted to make a startup script to do this for me would it look something like this?
#!/bin/sh
modprobe snd-intel8x0
Last edited by clos (2007-03-20 23:03:05)
Offline
Pages: 1