LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-02-2004, 10:14 AM   #1
destin
LQ Newbie
 
Registered: Dec 2003
Distribution: SlackWare / NetBSD
Posts: 24

Rep: Reputation: 15
alsactl and modules.conf problem to restore/store values


i run alsamixer, i unmute and set some values and then i type "alsactl store" and so everything in /etc/asound.state seems correct.

i put these 2 lines at my /etc/modules.conf

post-install snd-via82xx /usr/sbin/alsactl restore
pre-remove snd-via82xx /usr/sbin/alsactl store

(the driver name for my card is snd-via82xx)

i reboot and everything is muted and set to 0.
but i read this about putting those 2 lines at /etc/modules.conf:"This doesn't seem to work with a 2.6.0-test kernel. modprobe simply ignores lines with these statements. Update to this section would be appreciated."

Any ideas for how to solve this problem ??

PS:i have alsa(driver 1.0.3 , lib1.0.3b, utils 1.0.3) and kernel 2.6.4

Last edited by destin; 04-02-2004 at 10:57 AM.
 
Old 04-02-2004, 12:55 PM   #2
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
File under "works for me(TM)" YMMV

Code:
root@bilbo/etc/rc.d# cat rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local setup commands in here:
alsactl restore
If you really change settings every time you log in rather than having a default "save once" configuration, then create a file in your home directory named `.bash_logout` & call `alsactl store` from there.
 
Old 04-02-2004, 07:19 PM   #3
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
or as root in konsole command alsactl and fix your sound then command alsactl store,next time it will start as you configured it
 
Old 04-02-2004, 08:22 PM   #4
destin
LQ Newbie
 
Registered: Dec 2003
Distribution: SlackWare / NetBSD
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by moonloader
or as root in konsole command alsactl and fix your sound then command alsactl store,next time it will start as you configured it
I did give the commands you write as root.
I'll try what bnice wrote.
 
Old 04-03-2004, 09:12 AM   #5
destin
LQ Newbie
 
Registered: Dec 2003
Distribution: SlackWare / NetBSD
Posts: 24

Original Poster
Rep: Reputation: 15
Re: File under "works for me(TM)" YMMV

Quote:
Originally posted by bnice
Code:
root@bilbo/etc/rc.d# cat rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local setup commands in here:
alsactl restore
If you really change settings every time you log in rather than having a default "save once" configuration, then create a file in your home directory named `.bash_logout` & call `alsactl store` from there.
What's inside rc.local get executed after the modules are loaded ??
 
  


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
Alsactl restore problem on debian ferlopes Linux - Hardware 5 05-07-2005 03:43 PM
Alsa doesn´t save my configuration, alsactl store neither fedivh Linux - Hardware 1 01-25-2005 07:31 PM
alsactl store doralsoral Linux - Software 2 05-20-2004 10:14 PM
alsactl store promblem doralsoral Linux - Software 0 05-17-2004 11:38 PM
alsactl restore problem Guste Debian 1 02-08-2004 02:53 AM


All times are GMT -5. The time now is 08:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration