View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 25 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Fri Mar 10, 2006 10:40 pm 
Offline
Joined: Fri Mar 10, 2006 9:35 pm
Posts: 1
This is what I did to set the correct volumes on startup (R5A30.2)

I connected with putty(ssh) and logged in as root. Can also log in locally by pressing [Alt]+F2 and logging in as root

installed nano (apt-get install nano) for a decent text editor

nano /home/mythtv/.fluxbox/apps

below the line that says [startup] {launch_irx.sh} I added a line like:
[startup] {aumix -m 95 -w 95 -l 95}
(my goal is to turn up the line in that the sound from my PVR-350 is comming in on)

To do the same thing using alsamixer, you would run alsamixer and set all the controls the way you want, then type "alsactl store -f /home/mythtv/.alsasettings" and then edit the /home/mythtv/.fluxbox/apps file and add the line:
[startup] {alsactl restore -f /home/mythtv/.alsasettings } and save ([Ctrl]+O) and exit ([Ctrl]+X)

Restart and your sound settings should be restored.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 11, 2006 5:06 am 
Offline
Joined: Fri Dec 02, 2005 7:23 am
Posts: 171
Location: Denmark (PAL-B/G)
Tnx that worked.. tnx so mouch :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 5:33 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Had a similar isssue. Had to adjust the master volume level in Setup>Genral>3rd Screen>Master Volume.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 3:35 pm 
Offline
Joined: Thu Aug 03, 2006 6:15 am
Posts: 43
Location: College Station, TX
None of these fixed mine.

What i ended up doing is creating a new file as root in /etc/init.d called alsarestore

in the file, i added the line
Code:
alsactl restore


Then you need to make the file executable
Code:
chmod 755 alsarestore



then i ran the command
Code:
update-rc.d alsarestore start 99 2 3 4 5 . stop 99 0 1 6 .

which runs the script alsarestore as the last thing that is run at startup[/code]


Last edited by jessebs on Tue Nov 14, 2006 9:45 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 14, 2006 9:38 pm 
Offline
Joined: Thu Feb 24, 2005 1:36 am
Posts: 74
I have tried every solution in this thread and no luck. All I have to do is run 'alsactl restore' as root and everything is a-ok, but on boot I get default mixer settings. There must be a way to run this simple command after mythtv loads.
Anyone got anymore ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 14, 2006 9:43 pm 
Offline
Joined: Thu Aug 03, 2006 6:15 am
Posts: 43
Location: College Station, TX
It is odd that my solution didnt work, all it is doing is running the command 'alsactl restore' as the last command once the system boots.

Did you create the alsarestore file as root?

if not, log in as root and run the command from the /etc/init.d directory
Code:
chown root alsarestore


also, make sure the file is executable
Code:
chmod 755 alsarestore


Then (im not sure if you have to do this step again, but it wont hurt) run
Code:
update-rc.d alsarestore start 99 2 3 4 5 . stop 99 0 1 6 .


Let me know if that works


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 8:03 pm 
Offline
Joined: Thu Feb 24, 2005 1:36 am
Posts: 74
Ok weird. The chmod made the difference I think, I am still to much of a linux noob to know to do that.
But your solution doesn't work right for me at all.
If I have the update-rc.d applied and restart I get sound, but it is super messed up. I only get the left channel and it is really loud and very staticky in a weird way.
The same static thing happened to me last night when I had the update-rc.d stuff applied but I think since I didn't have the chmod done, it would still be noiseless on restart. If I ran alsactl restore manually the sound would work, but be all messed up. I thought it was a conflict from running the command 2 different ways but I guess it was the update-rc.d stuff the whole time.

So in short your solution does make the sound work on restart but has the side effect of screwing it up. If any of that is not clear let me know, or if any other info would help. Weird stuff.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 9:35 pm 
Offline
Joined: Thu Aug 03, 2006 6:15 am
Posts: 43
Location: College Station, TX
A couple of questions,

if you weren't running my startup script, and ran alsactl restore alone, the sound works fine?

If so, could you do the following at let me know the results

Run the command
Code:
runlevel

it should output something like "N #" (mine is "N 5").

The number is your current runlevel.

Once you get your runlevel, run the command
Code:
ls /etc/rc#.d/*alsa*

eg:
Code:
ls /etc/rc5.d/*alsa*

which shows all the scripts being run from the current runlevel (scripts that start with an S are starting, K are being killed, and the number corresponds to the order they are run 1-99)

you should only see one instance of a script called alsarestore

if you see more than one, issue the command (as root)

Code:
update-rc.d -f remove alsarestore


again run
Code:
ls /etc/rc#.d/*alsa*


make sure nothing is there called alsarestore

once that is done, run this again (as root)
Code:
update-rc.d alsarestore start 99 2 3 4 5 . stop 99 0 1 6 .


if that doesn't fix the problem, then I am stumped.

as long as alsactl restore is working by itself, nothing in the script should be changing its functionality.

if you get static from running alsactl restore w/out my script run
Code:
alsamixer
and make sure the levels are right. You also may not want to have them maxed out as this tends to add distortion.

Let me know how it goes.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 8:36 pm 
Offline
Joined: Thu Feb 24, 2005 1:36 am
Posts: 74
jessebs wrote:
A couple of questions,

if you weren't running my startup script, and ran alsactl restore alone, the sound works fine?



Correct.

Runlevel is N 5
the ls command shows
/etc/rc5.d/S20alsa /etc/rc5.d/S99alsarestore

I am stumped as well.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 24, 2006 10:58 pm 
Offline
Joined: Fri Apr 21, 2006 8:15 pm
Posts: 14
Location: Cleveland, OH
grantman21 wrote:
edit the /home/mythtv/.fluxbox/apps file and add the line:
[startup] {alsactl restore -f /home/mythtv/.alsasettings}


grantman21, thanks for the tip!

FYI, for me to get it to work I had to use the full path for alsactl, like this:

[startup] {/usr/sbin/alsactl restore -f /home/mythtv/.alsasettings}


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu