[Fixed] gcc now has package isl as a dependency

If you have any suggestions or ideas about improving Slackel, here's the place to post them.
Papasot
Posts: 233
Joined: 13 May 2016 22:32
Location: Patras, Greece

Re: [Fixed] gcc now has package isl as a dependency

Post by Papasot »

I did as you said, in fact I used alsamixer before but I forgot about alsactl store. I remember alsamixer automatically saves the settings when you press Esc. Anyway, alsactl store saves the settings indeed, but after rebooting the sound is muted again, and I need to do alsactl restore to bring my settings back every time I turn on the computer.
However I noticed this: if I turn on alsa in System Services, then the sound is not muted at boot and the volume settings are restored. If I turn off alsa as a system service, then sound is muted at boot again. This is weird, because in my other Slackel system alsa is not enabled in System Settings but the sound works at boot.

So, I guess I have two options:
(1) Enable alsa as a System Service. I wonder why this is not needed in my other Slackel computer though.
(2) Add "alsactl restore" somewhere, like ~/.config/openbox/autostart.sh, or /etc/rc.d/rc.local, so alsactl restore is executed at boot.
Which option is recommended?
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: [Fixed] gcc now has package isl as a dependency

Post by djemos »

I have both services alsa and pulseaudio enabled.
enable alsa as a system service, run

Code: Select all

sudo alsactl store
and always at boot time when alsa run then restore settings are reading from asound.state file. no needto run sudo alsactl restore
Papasot
Posts: 233
Joined: 13 May 2016 22:32
Location: Patras, Greece

Re: [Fixed] gcc now has package isl as a dependency

Post by Papasot »

djemos wrote:I have both services alsa and pulseaudio enabled.
enable alsa as a system service, run

Code: Select all

sudo alsactl store
and always at boot time when alsa run then restore settings are reading from asound.state file. no need to run sudo alsactl restore
I did so and everything works perfectly. Thank you Dimitri!
I am pretty sure I never touched System Services though, so alsa service is disabled by default on Slackel (same on Salix). Maybe it should be enabled by default?
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: [Fixed] gcc now has package isl as a dependency

Post by djemos »

I did this in previous releases but i do not remember why i disable it. Maybe cause problems on some pc's or laptops. I do not remember.
Look in /usr/src/zzz-settings-slackel-openbox-14.2/SLKBUILD where pulseaudio is enabled and alsa is disabled.
In /etc/rc.d/rc.alsa script sound is setting in default settings 75% and not muted. Since there is no /var/lib/alsa/asound.state file or /var/.lib/alsa/no.asound.state file. So at boot volume will be set. And a asound.state file will be created. I will enable alsa and see what happens.

This can be tested if you delete the files /var/lib/alsa/asound.state and if exists /var/lib/alsa/no.asound.state. Close volume control window it is opened.
And restart /etc/rc.d/rc.alsa scipt. Then open volume control window and see sound in 75%
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: [Fixed] gcc now has package isl as a dependency

Post by djemos »

Another solution:
Set your sound volume level as you like.
disable both alsa and pulse

Code: Select all

sudo service stop alsa
sudo service stop pulseaudio
Reboot
pulse will load mixer settings from ~/.pulse/config and then everything is how I left it at system shutdown. This way you also have per-user mixer settings.
It works for me. Try and see if it works for you.
Papasot
Posts: 233
Joined: 13 May 2016 22:32
Location: Patras, Greece

Re: [Fixed] gcc now has package isl as a dependency

Post by Papasot »

djemos wrote:Another solution:
Set your sound volume level as you like.
disable both alsa and pulse

Code: Select all

sudo service stop alsa
sudo service stop pulseaudio
Reboot
pulse will load mixer settings from ~/.pulse/config and then everything is how I left it at system shutdown. This way you also have per-user mixer settings.
It works for me. Try and see if it works for you.
This didn't work for me... Sound is still muted after reboot. But it gave me ideas how to slve the problem.
I think I know what's going on. alsamixer gives me an option called "Automute" which is enabled by default. It is in the second page of alsamixer settings and I didn't notice it before. There is no such an option on my other Slackel system where sound works on boot (apparently because the sound card is different).
How this setting didn't cause muting on boot before and now it does on this machine, I don't know. - my best bet is a recent update somehow did this. But I do know that "alsactl restore" is needed on boot because pulseaudio itself won't disable the setting."Automute". I guess pulseaudio relies on alsa to change "special" settings not found in every sound card.
So, what I did is this: I have alsa service enabled but not pulseaudio (I could have pulseaudio enabled as well, but I don't need it). alsa service enabled causes a "alsactl restore" on boot, and now the sound is not muted plus it remembers my settings. I can even change the settings via pavucontrol and it will remember those changes as well.

Problem solved. Thank you Dimitri for your support - excellent as usual.
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: [Fixed] gcc now has package isl as a dependency

Post by djemos »

In my system Automute is also enabled as i can see from the alsamixer settings. But sound do not mute on boot. But since alsa service set up to run at boot solves the problem in your system it is fine. At least we have examined the problem in depth. :-)
Papasot
Posts: 233
Joined: 13 May 2016 22:32
Location: Patras, Greece

Re: [Fixed] gcc now has package isl as a dependency

Post by Papasot »

It seems my guess about Automute was wrong then - a plausible one, given I had sound muted on boot, but nevertheless a wrong guess. At any rate, I am more than happy having alsa service enabled but not pulseaudio, and this solves the iproblem.
This system has Slackel installed since 2016, regularly updated since then. Go figure which old configuration file caused the problem - if any.
Post Reply