WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Retaining alsamixer settings between boots  (Read 6825 times)

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Retaining alsamixer settings between boots
« Reply #15 on: August 21, 2010, 08:39:02 AM »
I'm not clear what you're referring to.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Retaining alsamixer settings between boots
« Reply #16 on: August 21, 2010, 08:57:26 AM »
I couldn't see how any option except from -s and unlikely -a would depend on the existence of a backup.
« Last Edit: August 21, 2010, 08:59:57 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Retaining alsamixer settings between boots
« Reply #17 on: August 21, 2010, 09:22:54 AM »
I have not downloaded or run the script. My comments were solely based on the information given in posts in the thread referred to.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Retaining alsamixer settings between boots
« Reply #18 on: August 21, 2010, 09:36:12 AM »
Well if you carefully read the whole thread, the option depending on backup was only added at a later stage as an extra  ;)

What i had in mind that this script is ideal even for your non-default setup to determine which files to back up (in whatever way you wish to do so)  ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline oldgit485

  • Newbie
  • *
  • Posts: 18
Re: Retaining alsamixer settings between boots
« Reply #19 on: August 21, 2010, 02:00:14 PM »
  Alsa on IBM Thinkpad , curaga and clach04 rock!
Will try to keep it brief:
After 2.8 could not get Alsa to work, just noticed wiki "Setting up sound" had changed, followed the directions, blacklisted the cs_4610 card in boot options applied the persistence instructions in the wiki and it all works beautifully.So read the wiki and use the settings the guys give hope it works for you
Thanks Guys
oldgit

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 428
Re: Retaining alsamixer settings between boots
« Reply #20 on: January 13, 2025, 12:49:37 AM »
Could you set, that in fresh installation Master vol will be on 75% by default?

The idea is that I don't have to run alsamixer every time I boot TCL. I don't want to use asound.state.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11749
Re: Retaining alsamixer settings between boots
« Reply #21 on: January 13, 2025, 01:27:19 AM »
Hi neonix
These are the instructions from alsa.tcz.info:
Code: [Select]
                ----------
If you want your alsa settings to persist across reboots, use the
command "sudo alsactl store" after alsa has been set up and
                add /usr/local/etc/alsa/asound.state to your backup
                if alsa is loaded onboot you may need "sudo alsactl restore"
                ----------
Similar instructions have been posted on this forum.

I doubt the extension will be customized to meet your needs
just so you don't have to follow the recommended instructions.

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 428
Re: Retaining alsamixer settings between boots
« Reply #22 on: January 16, 2025, 07:24:50 PM »
Then could you put "xterm alsamixer" to menu list?  (alsa.tcz)
That I don't  have to type alsamixer eveytime I boot puter.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11749
Re: Retaining alsamixer settings between boots
« Reply #23 on: January 16, 2025, 09:15:22 PM »
Hi neonix
Then could you put "xterm alsamixer" to menu list? ...
No, but you can.

Download the attachment, then:
Code: [Select]
tce-load -wil squashfs-tools
mkdir -p pkg/usr/local/share/applications
cp alsamixer.desktop pkg/usr/local/share/applications
mksquashfs pkg alsamixer.tcz
cp alsamixer.tcz /etc/sysconfig/tcedir/optional
tce-load -i alsamixer
« Last Edit: January 16, 2025, 09:17:03 PM by Rich »

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 428
Re: Retaining alsamixer settings between boots
« Reply #24 on: January 17, 2025, 07:17:39 PM »
And then, could you put alsamixer.tcz (alsamixer-set.tcz) to the repo?

It will contains:
unmute Master
75% Master vol
xterm alsamixer

Automatisation can save my precious time, especially if I have many computers with TCL installed.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11749
Re: Retaining alsamixer settings between boots
« Reply #25 on: Today at 12:24:20 AM »
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: [Select]
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

If you want this extension to set volume and unmute, alsa
must already be configured before loading this extension.

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 428
Re: Retaining alsamixer settings between boots
« Reply #26 on: Today at 04:22:13 AM »
You can use "sleep 50" to execute instruction after alsa.tcz is loaded.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11749
Re: Retaining alsamixer settings between boots
« Reply #27 on: Today at 02:14:30 PM »
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.