retain volume setting on reboot

6 replies [Last post]
bmg002
bmg002's picture
User offline. Last seen 2 years 15 weeks ago. Offline
Joined: 07/20/2009
Points: 0

I found an irritating thing with dingux (irritating to me anyways): it doesn't retain the volume settings.  So if I mute it one day to play games and reboot it (for any reason such as to turn it off) it forgets the volume setting you had previously.  So I wrote up a little script to do this automagically.  Instructions included in the zip:

http://www.mediafire.com/?sharekey=f4e104c3ad37872b36df4e8dca141969e04e75f6e8ebb871

The Gh0ce_>0

bmg002
bmg002's picture
User offline. Last seen 2 years 15 weeks ago. Offline
Joined: 07/20/2009
Points: 0

small bug in that... in the readvol, it requires the lastvol file to exist in the local/apps/volset/ folder.  And that file must contain an integer between 0 and 100.  Haven't tested how bad this  bug will affect things... I imagine that volset is programmed to handle null input, but if this file is missing it will error.

Fix it later.

medtechgreg
medtechgreg's picture
User offline. Last seen 1 year 30 weeks ago. Offline
Joined: 09/30/2009
Points: 0

I'm kind of a Linux n00b.  But do I need Linux for my PC OS to edit the local/sbin/main.  If so, is there anyone who has that file already edited that I could download?

 

Thanks

bmg002
bmg002's picture
User offline. Last seen 2 years 15 weeks ago. Offline
Joined: 07/20/2009
Points: 0

My advice, if you want to edit "main", download something like notepad++.  What are you wanting to modify in main thought?  Most things should be already configured in there with the latest toddler distro...

 

The Gh0ce_>0

medtechgreg
medtechgreg's picture
User offline. Last seen 1 year 30 weeks ago. Offline
Joined: 09/30/2009
Points: 0

EDIT:

So I installed Dingux last night with the most recent local.zip (it was warpedflash's I believe).  You're saying that it will keep the volume setting and I don't need to edit or replace files?

medtechgreg
medtechgreg's picture
User offline. Last seen 1 year 30 weeks ago. Offline
Joined: 09/30/2009
Points: 0

Ok, replaced current local with Toddler's local and it sounds good.  Thanks for the help.

bmg002
bmg002's picture
User offline. Last seen 2 years 15 weeks ago. Offline
Joined: 07/20/2009
Points: 0

Anytime.  I am glad to help.  Also, the above stuff isn't needed anymore as it is now part of toddler's release.  Not sure if warpflash is using it or not... I just wrote it because it bothered me that the volset lacked that feature and it was a quick and dirty (and easy) fix to do using a shell script.  I'm just glad that people are enjoying my "work" (if you can call it that).

Feel free to ask me any other questions you may have... I may be able to help... or I may be able to point you in the right direction...

ttyl
The Gh0ce_>0