You are not logged in.

#1 2007-03-19 19:26:53

clos
Member
Registered: 2007-03-18
Posts: 22

Audio driver does not load on startup

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

#2 2007-03-19 20:19:08

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: Audio driver does not load on startup

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. smile

Offline

#3 2007-03-19 20:30:17

clos
Member
Registered: 2007-03-18
Posts: 22

Re: Audio driver does not load on startup

My user is in the audio group and alsa is in the deamons list

Offline

#4 2007-03-19 20:49:14

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Re: Audio driver does not load on startup

try as root

alsaconf

Offline

#5 2007-03-19 21:06:11

clos
Member
Registered: 2007-03-18
Posts: 22

Re: Audio driver does not load on startup

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

#6 2007-03-19 21:11:51

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Re: Audio driver does not load on startup

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

#7 2007-03-19 21:16:03

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: Audio driver does not load on startup

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

#8 2007-03-19 21:22:20

clos
Member
Registered: 2007-03-18
Posts: 22

Re: Audio driver does not load on startup

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

#9 2007-03-19 21:24:02

clos
Member
Registered: 2007-03-18
Posts: 22

Re: Audio driver does not load on startup

noriko wrote:

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 ?

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

#10 2007-03-19 21:27:16

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Re: Audio driver does not load on startup

try this

 amixer set Master 90% unmute
 amixer set PCM 85% unmute

Offline

#11 2007-03-19 22:10:22

clos
Member
Registered: 2007-03-18
Posts: 22

Re: Audio driver does not load on startup

rayjgu3 wrote:

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

#12 2007-03-19 22:24:51

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Re: Audio driver does not load on startup

alsactl store

did you check the wiki before posting?
http://wiki.archlinux.org/index.php/Alsa
please search wiki & forums before posting

Offline

#13 2007-03-19 22:25:30

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: Audio driver does not load on startup

/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

#14 2007-03-20 01:36:36

clos
Member
Registered: 2007-03-18
Posts: 22

Re: Audio driver does not load on startup

buddabrod wrote:
/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

#15 2007-03-20 01:41:14

clos
Member
Registered: 2007-03-18
Posts: 22

Re: Audio driver does not load on startup

rayjgu3 wrote:
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

#16 2007-03-20 02:10:56

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: Audio driver does not load on startup

Logically you have to set your mixer settings _before_ you save them via "alsactl store"

Offline

#17 2007-03-20 11:00:12

Aziere
Member
Registered: 2007-03-16
Posts: 23

Re: Audio driver does not load on startup

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

#18 2007-03-20 22:52:49

clos
Member
Registered: 2007-03-18
Posts: 22

Re: Audio driver does not load on startup

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

Board footer

Powered by FluxBB