Bug 2218968

Summary: Changes made through alsamixer do not remain persistent after reboot..
Product: Red Hat Enterprise Linux 7 Reporter: Vishal Pakolu <vpakolu>
Component: alsa-utilsAssignee: Jaroslav Kysela <jkysela>
Status: ASSIGNED --- QA Contact: Erik Hamera <ehamera>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.9Flags: jkysela: needinfo? (vpakolu)
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vishal Pakolu 2023-06-30 18:07:27 UTC
Description of problem:

Changes made through alsamixer do not remain persistent after reboot.

When the Alsamixer setting in terminal for Speaker is set from mute to UNMUTE and Automute disabled, the changes do not remain persistent after reboot. Any other changes do not remain persistent post reboot.

~~~
$ aplay -l
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog] 
~~~

Complete output attached. 

Following work-around is used currently :

=================
1) Create a .desktop file in the /etc/xdg/autostart/ directory. Create a file '/etc/xdg/autostart/alsarestore.desktop'. Enter following content in the file:  

~~~
[Desktop Entry]
Type=Application
Name=Alsactl 
Exec=sh -c "sleep 10 && alsactl --file ~/.config/asound.state restore"
OnlyShowIn=GNOME;
X-GNOME-Autostart-enabled=true
~~~

2) Once done make alsamixer settings change, save via 'alsactl --file ~/.config/asound.state store'.

3) Once this is done, reboot and login to the user, waiting for 10 seconds, after this alsamixer settings are applied/restored to what was done before reboot.
=============== 


Version-Release number of selected component (if applicable):
alsa-utils-1.1.8-2.el7
RHEL 7.9

How reproducible:

Always.

Steps to Reproduce:

Provided by customer :

" In terminal "alsamixer", then F6 and selected the Intel HDA sound card and then changed the Speaker setting from Mute to Unmute. Then Automute was changed from Enabled to Disabled."


Actual results:


Making any changes through alsamixer and then taking reboot the changes do not remain persistent.

Expected results:

The changes should remain persistent.

Additional info:

This is also reproducible over RHEL 8 for customer however they want this fixed over RHEL 7.

Business justification :

"The software and applications of our client were created much earlier and made to run on the RHEL 7.x series only. In this scenario upgradation of OS from RHEL 7.x to 8.x is not possible as of now in the current lots. "

Comment 3 Jaroslav Kysela 2023-06-30 18:15:10 UTC
Please, check if the alsa-state service is running:

    systemctl status alsa-state

Eventually, check, if there is something in the log:

    journalctl -u alsa-state