Results 1 to 4 of 4

Thread: HOWTO: Solve default sound mixer settings problems

  1. #1
    Join Date
    Jul 2005
    Location
    KRK, Poland
    Beans
    180
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    HOWTO: Solve default sound mixer settings problems

    hi!

    Problem : when restarting the system / KDE sound mixer settings are messed up. ones saved from previous session arent loaded.

    Intro : first i would like to say that im quite new to linux (1 month) and this is my first howto. i was trying to solve this problem for a long time (posted it here). i finally did it and decided to share the solution with other people.

    Thanks : goes to heimo and cutOff

    General sound settings : using as default ALSA (0.9.7) with two soundcards:

    1) onboard ATI IXP AC97
    2) PCI Soundblaster Audigy Player (EMU10K1) (default)

    here is great HOWTO about solving two soundcard problems // issues.

    Solution :

    first set mixer settings as you want them to be
    Code:
    alsamixer -c1
    -c1 because i use my 2nd soundcard as default (-c0 is the 1st one). if you have one soundcard you can run without -c1 setting

    save your settings (using sudo to enter root mode)
    Code:
    sudo alsactl store
    create KDE autostart script
    Code:
    nano ~/.kde/Autostart/mysound.sh
    and write there
    Code:
    sleep 5
    alsactl restore -f /var/lib/alsa/asound.state -F
    click F3 (to save) and F2 to exit.

    why 'sleep 5' (it waits 5 seconds before restoring mixer settings)? on my system without this command mixer values were overwriten by some other process. for me it was essential. sleep value can be changed if it doesnt work.

    after that you have to change file access permission (i think it would work without this step)
    Code:
    chmod 755 ~/.kde/Autostart/mysound.sh
    thats all now everytime KDE starts it loads previous sound mixer settings.

    i hope it will help

    copter :]
    Last edited by Copter; August 8th, 2005 at 05:20 PM.

  2. #2
    Join Date
    Jun 2005
    Beans
    25

    Re: HOWTO: Solve default sound mixer settings problems

    Thanks Copter. This problem was driving me mad. I use gnome.

    Your howto gave me the insight, and I solved it a bit differently.

    I changed the settings using the gnome-volume-control applet and/or the alsamixer console tool (I think I mucked around with both).

    Then,

    sudo alsactl store

    to write the changes to the /var/lib/alsa/asound.conf file was all I needed to do.

    ALSA is started on boot. I had a look at the /etc/init.d/alsa script. I also had a look at the /etc/default/alsa configuration script. It looks like the defaults were the problem...on shutdown, the default config for ALSA is *not* to write changes to asound.conf. I didn't confirm it by changing the parameter (can't recall the name, but it's the first one) but it should always save the current sound configuration on shutdown if this parameter is changed accordingly.

  3. #3
    Join Date
    Sep 2005
    Location
    Italy
    Beans
    8

    Re: HOWTO: Solve default sound mixer settings problems

    thanks a lot!!
    It worked!

  4. #4
    Join Date
    Jul 2005
    Location
    KRK, Poland
    Beans
    180
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: HOWTO: Solve default sound mixer settings problems

    Quote Originally Posted by Servus
    thanks a lot!!
    It worked!
    im glad i could help

    copter :]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •