Bug 2218968 - Changes made through alsamixer do not remain persistent after reboot.. [NEEDINFO]
Summary: Changes made through alsamixer do not remain persistent after reboot..
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: alsa-utils
Version: 7.9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jaroslav Kysela
QA Contact: Erik Hamera
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-30 18:07 UTC by Vishal Pakolu
Modified: 2023-06-30 18:15 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
jkysela: needinfo? (vpakolu)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-161371 0 None None None 2023-06-30 18:09:35 UTC

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


Note You need to log in before you can comment on or make changes to this bug.