Announcement

Collapse
No announcement yet.

attempting to setup the sound with ALSA but it's keep muting automatically

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [ABANDONED] attempting to setup the sound with ALSA but it's keep muting automatically

    i've been using linux mint and had this dummy output in the sound settings, tried to figure out to fix that and failed (made a huge "mess" trying to set up the audio, all this mess over audio. but at least i had my timeshift snapshots).

    now that i switched to kubuntu, i went into my sound settings and now my sound chips (intel lunar lake-M HD Audio Controller) are finally present thanks to KDE plasma. there's no need to install pavucontrol but all i need to do is set up alsamixer to make the audio work. but it keeps muting after rebooting, the only way to turn on the audio after rebooting is opening up terminal and manually turn the sound by typing "sudo alsactl restore" which i find it weird because imagine having to listen to music or watching youtube and you have to use the terminal to manually activate the audio. (i'm new to linux and not that used to it)

    i tried to do some methods to automatically restore the alsamixer setting like making systemd run this command after rebooting and it fails (i did the same thing on linux mint and it fails).

    i still use timeshift and create snapshots in case i mess something up. (i used to reinstall an entire OS to fix things until i discovered timeshift)

    what is going on here? could that be pipewire? could that be the kernels? could that my drivers or my fireware? what else could that be?

    if you want me to show the details of my firmware, drivers, kernel, etc. through the terminal, let me know and tell me what needs to be solved.

    #2
    i've experienced this alsa not saving and restoring the sound settings on kubuntu 25.04 early on, but after some updates it seemed to correct itself so i no longer had to manually restore the settings.

    however i've not experienced this on 24.04 at all.

    Comment


      #3
      What you can do instead of manually opening a terminal on every startup is create a bash script that does it, then use system settings > startup and shutdown > autostart then add your script there.

      Code:
      #!/bin/bash
      
      # tests the validity of the given password for the given user
      username=$(whoami);
      pcname=$(hostname);
      function pass_val() {
      # Test that the given password is correct by trying to run a command using it
      echo $pass | /bin/su --command true - ${username} &> /dev/null;
      retval=$?;
      }​
      pass=`kdialog --title "Audio Fix" --password "Authentication is required to continue."`
      pass_val;
      if [ $retval -eq 0 ]
      then echo $pass | sudo alsactl restore
      else kdialog --title "System Updates" --msgbox "Incorrect Password.";
      fi
      Save this as ~/bin/audo-fix.sh make it executable, then add to autostart (first instructions) and reboot.

      It should run on every login of your Linux account. This script uses a KDE Dialogue box to prompt you for your password, then uses that to run the command for you.

      Placing it in ~/bin does two things for you. 1. ~/bin is automatically added to your path, so you can manually run any executable script placed there from a terminal just by typing the full filename without having to be in that directory, or type it's path out. 2. If you type in the wrong password, you can either type the script's filename in a terminal, or double click and run it in Dolphin.

      I use something similar to this to run my updates. There is a way to have it not prompt you for the password, but that leaves your password inside the file, unencrypted.

      Comment

      Users Viewing This Topic

      Collapse

      There are 0 users viewing this topic.

      Working...
      X