You are not logged in.

#1 2025-05-16 18:42:00

Nanupi
Member
Registered: 2025-05-16
Posts: 2

Soundcard mutes front channel after reboot

My System is muting the frontchannel of the soundcard everytime is reboot/start my system.
But it mutes only  my Soundblaster AE-5 witch is not the Onboard, the onboard woud work a as expected.

I had the same issue with Ubuntu but there it woud work with this simpel Autostat script:

#!/bin/bash
echo "$(date) - Skript gestartet"

for i in {1..10}; do
    if amixer -c0 info &> /dev/null; then
        echo "$(date) - Soundkarte gefunden"
        break
    fi
    echo "$(date) - Soundkarte nicht verfügbar, versuche erneut in 1 Sekunde"
    sleep 3
done
amixer -c0 sset Front,0 unmute 

In the debug log from the system integrated Autostart is something interesting:
y8XtkWV.png

This is the code in /home/cedric/.config/autostart/

Exec=/home/cedric/Script/unmute.sh
Icon=
Name=unmute.sh
Path=
Terminal=True
Type=Application

It was working for a while after a freshly install of Endeavor OS but at some point it just stops.
The last thing I remember is I was installing and try to activate grub beside from systemd bootloader, so the script use to work.

Also if i try to run the script via termian by ./unmute.sh or double click on it it wount unmute the frontchannel.
What will work is go manualy to

alsamixer

select the soundcard and unmute it by hand like a caveman.

Offline

#2 2025-05-18 07:56:34

Nanupi
Member
Registered: 2025-05-16
Posts: 2

Re: Soundcard mutes front channel after reboot

Well, Arch did´t have a card0, the Soundcard was recognized as card1, also the front part wasn't right. I didn´t wrote it with '.
Here would be the debugged code:

#!/bin/bash
# Debugging aktivieren
exec &>> /tmp/unmute_debug.log

# Log starten
echo "$(date) - Skript gestartet"

# Warten, bis die Soundkarte verfügbar ist
for i in {1..10}; do
    if amixer -c1 info &> /dev/null; then
        echo "$(date) - Soundkarte gefunden"
        break
    fi
    echo "$(date) - Soundkarte nicht verfügbar, versuche erneut in 1 Sekunde"
    sleep 1
done

# Unmute ausführen
#amixer -c1 sset Front,0 unmute
amixer -c1 set 'Front' 90% unmute
# Abschluss loggen
echo "$(date) - Skript beendet"

I also set the right path in the autostart conf. But i don´t rly know if this was nessesary or not.

Exec=/home/cedric/Script/unmute.sh
Icon=
Name=unmute.sh
Path=/home/cedric/Script/unmute.sh
Terminal=True
Type=Application

Offline

Board footer

Powered by FluxBB