Can't save line out preset

I’m having an issue where my earphone volume is extremely quiet whenever I plug them in. I have to manually open alsamixer and raise the Line Out slider to maximum every time. However, as soon as I unplug and replug the earphones, the ‘Line Out’ preset resets to zero. Also, sudo alsactl store doesn’t seem to work. I’m not sure how to make these settings persistent

This works for me, and auto-mute is a feautre for ear phone’s. (Prevent Hearing Loss)

I’ll create a systemd service:

sudo nano /etc/systemd/system/disable-auto-mute.service

This is how I edit that file/service:

[Unit]
Description=Disable ALSA Auto-Mute Mode
After=sound.target

[Service]
Type=oneshot
ExecStart=/usr/bin/amixer -c 0 sset "Auto-Mute Mode" Disabled

[Install]
WantedBy=multi-user.target

Then enable the service via:

sudo systemctl enable disable-auto-mute.service

A reboot should set it now. Let me know how this works out for you.

there is a problem here that auto mute is always disabled, the only problem is line out

Do this for me please, un-plug earphones now re-plug them and run this:

pactl list sinks | grep -B1 -A9 State:    

Paste the content back here.

I knew that, but it still works along with alsamixer settings were changed to your disired level.

Sample from mine:

pactl list sinks | grep -B1 -A9 State:|rg -e Mute -e Volume                                       

        Mute: no
        Volume: front-left: 55706 /  85% / -4.23 dB,   front-right: 55706 /  85% / -4.23 dB,   rear-left: 55706 /  85% / -4.23 dB,   rear-right: 55706 /  85% / -4.23 dB,   lfe: 55706 /  85% / -4.23 dB
        Mute: no
        Volume: front-left: 52455 /  80% / -5.80 dB,   front-right: 52455 /  80% / -5.80 dB
        Mute: no
        Volume: front-left: 49152 /  75% / -7.50 dB,   front-right: 49152 /  75% / -7.50 dB
        Mute: no
        Volume: front-left: 43347 /  66% / -10.77 dB,   front-right: 43347 /  66% / -10.77 dB

Just as I have them set. :wink:

wpctl status | rg -e 51 -e 52 -e 107                                                              

 │      42. GA107 High Definition Audio Controller [alsa]
 │      51. Triple-display Docking station Analog Surround 4.1 [vol: 0.85]
 │      52. Ryzen HD Audio Controller Analog Stereo [vol: 0.80]
 │     107. SRS-XB22                            [vol: 0.66]

I have

State: SUSPENDED
Name: alsa_output.pci-0000_64_00.6.analog-stereo
Description: Ryzen HD Audio Controller Аналоговый стерео
Driver: PipeWire
Sample Specification: s32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 36854 / 56% / -15,00 dB, front-right: 36854 / 56% / -15,00 dB
balance 0,00

~

Also i use rog ally x

systemctl status astate.service                                                                   ─╯
○ astate.service - Set alsa state during boot
     Loaded: loaded (/etc/systemd/system/astate.service; enabled; preset: disabled)
     Active: inactive (dead) since Sun 2026-04-26 07:51:02 MDT; 36min ago
 Invocation: fb631cdd5ccc40e882e65f5e60b21cc2
    Process: 1023 ExecStart=/sbin/alsactl store (code=exited, status=0/SUCCESS)
   Main PID: 1023 (code=exited, status=0/SUCCESS)
   Mem peak: 2.4M
        CPU: 8ms

Apr 26 07:51:02 cachyos-x8664-btrfs systemd[1]: Starting Set alsa state during boot...
Apr 26 07:51:02 cachyos-x8664-btrfs systemd[1]: astate.service: Deactivated successfully.
Apr 26 07:51:02 cachyos-x8664-btrfs systemd[1]: Finished Set alsa state during boot.

what command did you use?

I used the first command

pactl list sinks | grep -B1 -A9 State:

this one

Please run that,and paste back.

In command systemctl status astate.service i have

unit astate.service could not be found

I see now why alsa store isn’t working.

This install is years old here so I have to go over my notes for sound changes.

 systemctl --state=inactive                                                                        ─╯

  UNIT                                                                                 LOAD      ACTIVE>
● usr-share.mount                                                                      not-found inacti>
● usr.mount                                                                            not-found inacti>
  var-lib-machines.mount                                                               loaded    inacti>
● var.mount                                                                            not-found inacti>
  systemd-ask-password-console.path                                                    loaded    inacti>
  alsa-restore.service                                                                 loaded    inacti>
  archlinux-keyring-wkd-sync.service                                                   loaded    inacti>
  astate.service                                                                       loaded    inacti>

I got this

fish: Expected a string, but found end of the statement
UNIT LOAD ACTIVE>

I’m having the exact same issue with the exact same results for all the terminal commands (running Lenovo Legion). Started about ~1 week ago after a larger update. Rolling back Cachy to pre-update state solves the issue, so it’s very likely due to an update.

Would be great if someone has an idea how to solve this!

Here ya go.

inxi -F|rg -e Type: -e Audio                                                                      ─╯
  Type: Laptop System: LENOVO product: 82JW v: Legion 5 15ACH6
Audio:
  Device-1: NVIDIA GA107 High Definition Audio driver: snd_hda_intel
  Device-2: Advanced Micro Devices [AMD] Audio Coprocessor driver: N/A
  Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio