Tiny Core Extensions > TCE Q&A Forum
Retaining alsamixer settings between boots
Rich:
Hi neonix
I provided you with a .desktop file and instructions for
creating an extension that will add alsamixer to your
desktop menu.
If you want it to set volume and unmute, add this before
running the mksquashfs command:
--- Code: ---mkdir -p pkg/usr/local/tce.installed
printf '#!/bin/sh\n\namixer set "Master" 23 unmute\n' > pkg/usr/local/tce.installed/alsamixer
chmod 755 pkg/usr/local/tce.installed/alsamixer
--- End code ---
If you want this extension to set volume and unmute, alsa
must already be configured before loading this extension.
neonix:
You can use "sleep 50" to execute instruction after alsa.tcz is loaded.
Rich:
Hi neonix
If you are talking about adding a sleep command to the
pkg/usr/local/tce.installed/alsamixer script, no you can't.
That could block other extensions from loading and their
tce.installed scripts from running for 50 secs.
neonix:
My goal is that every user who install fresh TCL, have working sound out of the box.
Why other distros can have this, and TCL don't have this? In TCL I have to make few procedures to have working sound in alsa, and wast time, when it could be automati zed.
Rich:
Hi neonix
--- Quote from: neonix on January 19, 2025, 01:42:37 AM ---My goal is that every user who install fresh TCL, have working sound out of the box. ...
--- End quote ---
Really? Your goal? Based on you actions, you don't seem very committed to "your goal".
You ask about adding alsamixer to your menu. I provided you with
a .desktop file and instructions, but you couldn't be bothered to
use them.
Run these commands:
--- Code: ---printf '#!/bin/sh\n\namixer set "Master" 23 unmute\n' > UnMute
chmod 755 UnMute
--- End code ---
You now have an executable script called UnMute that will set
the master volume at 74% and make sure it's not muted.
Place the script in your systems path (~/local/bin/, /usr/local/bin/, /usr/bin/,
whatever) and decide where to call it from. Or copy the contents and add
them to one of your startup scripts. Or create an extension.
Just remember, alsa has to be configured before you can set the volume.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version