Tiny Core Extensions > TCE Q&A Forum
Retaining alsamixer settings between boots
SamK:
In OnBoot is alsa, alsa-oss and alsamixergui. The mixer settings are lost between boots. How to preserve them?
I am using persistent home, opt and tce on USB flash drive and not using TC backup when exiting.
tinypoodle:
See info alsa.tcz
SamK:
--- Quote from: tinypoodle on July 27, 2010, 10:56:18 AM ---See info alsa.tcz
--- End quote ---
Tried alsactl store without success.
Not sure if it is necessary to start from bootlocal.sh as alsa initializes OK without it - but tried it anyway. Again no success.
Is this meant to work as described when persistent storage is being used and backups are not run By TC on exit?
tinypoodle:
--- Quote from: SamK on July 27, 2010, 11:38:28 AM ---
--- Quote from: tinypoodle on July 27, 2010, 10:56:18 AM ---See info alsa.tcz
--- End quote ---
Tried alsactl store without success.
--- End quote ---
--- Code: ---alsactl restore -f /path/to/stored/statefile
--- End code ---
SamK:
The issue seems to be that the guidance in alsa.tcz favours users not using persistent storage and therefore backing up their data at the end of each TC session. As I am using persistent storage the advice is not appropriate.
alsactl store by default creates /etc/asound.state. This is in a non-persistent location and therefore does not survive between boots.
I can see a couple of ways around this:
* Backup at TC close (which is unsuitable for my purposes)
* Save the output of alsactl store to /home/tc/.alsacfg/asound.state
From /etc/bootlocal.sh run alsactl restore -f /home/tc/.alsacfg/asound.state
If this works, perhaps it might be added to the notes in alsa.tcz
Navigation
[0] Message Index
[#] Next page
Go to full version