Does anybody else see this? And does anyone have a solution?
This is on Debian 12, standard kernel, standard Xfce install.:
Code: Select all
Linux debian-i7 6.1.0-12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.52-1 (2023-09-07) x86_64 GNU/Linux
Code: Select all
Linux debian-i7 6.1.0-12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.52-1 (2023-09-07) x86_64 GNU/Linux
Code: Select all
--- my_asound_low.state 2023-10-05 20:51:59.394607647 +0200
+++ my_asound.state 2023-10-05 20:34:23.012178920 +0200
@@ -52,10 +52,10 @@
control.5 {
iface MIXER
name 'UMC204HD 192k Output Playback Volume'
- value.0 104
- value.1 104
- value.2 104
- value.3 104
+ value.0 127
+ value.1 127
+ value.2 127
+ value.3 127
comment {
access 'read write'
type INTEGER
@@ -63,10 +63,10 @@
range '0 - 127'
dbmin -12700
dbmax 0
- dbvalue.0 -2300
- dbvalue.1 -2300
- dbvalue.2 -2300
- dbvalue.3 -2300
+ dbvalue.0 0
+ dbvalue.1 0
+ dbvalue.2 0
+ dbvalue.3 0
}
}
control.6 {
Hello. Try using xfce auto starting mechanism.gusnan wrote: 2023-10-05 18:41 Thanks! - that is indeed a good workaround. Now I just need to find out a good way to do this automatically on login![]()
Thanks - will that be able to handle running as root/using sudo? alsactl is unfortunately not runnable as a normal user.
That won't work running without root/sudo:peter_irich wrote: 2023-10-06 18:11 No, call it with full path: /usr/sbin/alsactl. And it is possible to create desktop-file in ~/.config/autostart by hands.
Code: Select all
alsa-lib main.c:844:(execute_sequence) exec '/bin/rm -rf /var/lib/alsa/card0.conf.d' failed (exit code 1)
Code: Select all
/usr/sbin/alsactl dump-cfg
Well, you don't need root/sudo for that in Debian either (which is the topic for this forum), but writing/changing config is a different thing from reading the config.peter_irich wrote: 2023-10-07 19:25 In UbuntuI I not need sudo to run alsactl, for example,works from user.Code: Select all
/usr/sbin/alsactl dump-cfg
Code: Select all
/usr/bin/alsactl store N -f ~/my_asound.state
Ah, alright, now I follow. Still, it needs to be writable by both users. (which of course is doable).peter_irich wrote: 2023-10-08 06:48 It is right use asound.state in own directory, for example,Code: Select all
/usr/bin/alsactl store N -f ~/my_asound.state
Code: Select all
alsa-lib main.c:844:(execute_sequence) exec '/bin/rm -rf /var/lib/alsa/card0.conf.d' failed (exit code 1)
Code: Select all
sudo mkdir /home/common
sudo chown nobody:nogroup /home/common
sudo chmod 775 /home/common
It isn't the permissions of the file (or the folder containing) my_asound.conf that is the problem, but files that alsa needs to access to change the config - look at the error message I posted:peter_irich wrote: 2023-10-08 18:32 You can directory accessed to both users and to save my_asound.conf in it. For example. /home/common.and to add both users in nogroup.Code: Select all
sudo mkdir /home/common sudo chown nobody:nogroup /home/common sudo chmod 775 /home/common
Code: Select all
alsa-lib main.c:844:(execute_sequence) exec '/bin/rm -rf /var/lib/alsa/card0.conf.d' failed (exit code 1)
Am I to understand running alsactl once as root does not store the config and automagically restore it on next boot?/var/lib/alsa/asound.state (or whatever file you specify with the -f flag)
is used to store current settings for your soundcards. The settings include
all the usual soundcard mixer settings. More importantly, alsactl is capa‐
ble of controlling other card-specific features that mixer apps usually
don't know about.
The configuration file is generated automatically by running alsactl store.
Editing the configuration file by hand may be necessary for some soundcard
features (e.g. enabling/disabling automatic mic gain, digital output, joy‐
stick/game ports, some future MIDI routing options, etc).
In my case? Yes. I just did that - alsactl store (with the volume increased) using sudo, reboot - volumes down again.CwF wrote: 2023-10-08 19:28Am I to understand running alsactl once as root does not store the config and automagically restore it on next boot?/var/lib/alsa/asound.state (or whatever file you specify with the -f flag)
is used to store current settings for your soundcards. The settings include
all the usual soundcard mixer settings. More importantly, alsactl is capa‐
ble of controlling other card-specific features that mixer apps usually
don't know about.
The configuration file is generated automatically by running alsactl store.
Editing the configuration file by hand may be necessary for some soundcard
features (e.g. enabling/disabling automatic mic gain, digital output, joy‐
stick/game ports, some future MIDI routing options, etc).