LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-02-2007, 06:34 PM   #1
Captain Tram
LQ Newbie
 
Registered: Aug 2006
Posts: 22

Rep: Reputation: 15
Sound issue - Must run alsaconf every login


I have sound working great with alsa right now on my debian box, but every time I log in, or start certain applications (haven't really found the pattern here yet, but I think kmplayer using xine does it), my sound volume gets really quiet, and there's tons of line noise. This is also how my sound behaved before installing alsa, just all the time. Running alsaconf restores my sound to being awesome, but I'd just like it to be awesome all the time. I realize there's not much to go on here, but I'm willing to answer any other questions anyone has.
 
Old 05-02-2007, 10:35 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You may need to run 'alsactl store' as root, but you seem to be describing it booting properly and going nuts mid-session, right? So, yeah, xine screws with the volume, at least in some cases. I don't know what would cause the noise though. You can try editing ~/.xine/config and putting
Code:
audio.volume.mixer_volume:-1
audio.volume.remember_volume:1
in there. I don't think that's the correct way, but it was all I could do to beat xine into submission. May help you.

-- On second thought, another possibility is that it may be a problem of xine trying to use OSS or the OSS wrapper rather than alsa directly. Xine may have an option to specify that, but I don't have it installed at the moment, so I dunno. May give you something to search the web for, anyway.

Last edited by slakmagik; 05-02-2007 at 10:38 PM. Reason: late thought
 
Old 05-02-2007, 11:04 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hmm, yes, to make the comparison to my system (Slackware, what's yours? Actual 'Debian?) mine uses init scripts. I'm quite unfamiliar with Debian, so excuse me if I'm out in left field here
Upon bootup/ login, the init scripts run 'alsactl -restore' which reloads the previously saved alsa settings. The exact script is /etc/rc.d/rc.alsa .
Before shutdown (or sometime like that) the system does an 'alsactl store' to save the current settings.
So, after you go and to 'alsaconf' as root, and get it all working, do 'alsactl store' to save it.
Then, if it doesn't already exist somewhere, create a script or add a line to an existing one like rc.local, which reloads the alsa settings upon reboot.
This is just the basics of the alsa settings. If you are actually having an issue where a particular application is screwing up the alsa settings, I'm not sure what to suggest. Need some more detail, as you learn what's actually happening there..
 
Old 05-02-2007, 11:25 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
As long as you have the alsa-utils package, Debian runs alsactl from /etc/init.d/alsa-utils, which is symlinked to items in rc{0,6,S}.d. (Debian uses the lame sysv-init style init scripts.) It should take care of the store and restore, so that was just an obligatory mention.
 
  


Reply



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
Have to run alsaconf anytime I want sound to work RodWC Debian 2 09-02-2006 08:02 AM
must re-run alsaconf to get sound fatman Debian 8 08-26-2006 05:37 PM
Suse9.1/ALSA/Audigy/No Sound/I run alsaconf after reboot(s) to get sound FastFeet Linux - Hardware 23 07-12-2004 05:01 PM
Sound comes each time only when I run alsaconf. rsamurti Slackware - Installation 3 05-06-2004 06:54 AM
Run level issue after first login robertjay Linux - Newbie 15 09-17-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:27 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