Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Sound is off after every start-up

  1. #1
    Join Date
    Jun 2009
    Location
    Norway
    Beans
    9
    Distro
    Xubuntu 9.04 Jaunty Jackalope

    Sound is off after every start-up

    Hi, I`m new here, and gonna get right to the point.

    Every time I start up I have to click on the speaker, and manually turn off the mute and drag the volume up to get sound. This gets quite irritating, knowing that it is a little crappy problem, and quite possibly a very simple sollution to it all.

    Is there a way to fix this, so it becomes permanent, so you don`t have to do this every time on start-up?

    I`ve got the 9.04, and this is my sound specs, if it is of any help: HDA-Intel - HDA NVidia.


    Thanks in advance, from stenshorne

  2. #2
    Join Date
    Jan 2007
    Location
    Columbia, Maryland
    Beans
    82

    Re: Sound is off after every start-up

    Maybe run alsamixer from a prompt. From there you should be able to use your up and down arrow keys to adjust the volume and the M key to mute/unmute (muted will show as MM and unmuted will show as 00). Once you have it set correctly, exit alsamixer and run alsactl store. Someone else may have a better idea.

  3. #3
    Join Date
    Jun 2009
    Location
    Norway
    Beans
    9
    Distro
    Xubuntu 9.04 Jaunty Jackalope

    Re: Sound is off after every start-up

    Okay, thanks, but that did not seem to work tho .)

  4. #4
    Join Date
    Jan 2007
    Location
    Columbia, Maryland
    Beans
    82

    Re: Sound is off after every start-up

    Try this: http://ubuntuforums.org/showthread.php?t=764576

    It has an extra step that goes along with what I said before. The link above is kind of an old thread, but it's worth a shot.

  5. #5
    Join Date
    Jun 2009
    Location
    Norway
    Beans
    9
    Distro
    Xubuntu 9.04 Jaunty Jackalope

    Re: Sound is off after every start-up

    Okay, these where the tips:

    So here are the steps:
    1) open alsamixer and set the volumes you want;
    2) as root, type alsactl store;
    3) after booting up, type alsactl restore.

    If you want to have alsactl restore started every time you boot up, you can always add it to your /etc/rc.local file (just put the command above the line that reads exit 0)
    _

    After step two and enter I got this:

    ~$ sudo alsactl store
    [sudo] password for oc:
    E: core-util.c: Home directory /home/oc not ours.

  6. #6
    Join Date
    Jan 2007
    Location
    Columbia, Maryland
    Beans
    82

    Re: Sound is off after every start-up

    Try this:

    sudo chmod 666 /var/lib/alsa/asound.state
    alsactl store (without sudo)

    Use sudo chmod 644 /var/lib/alsa/asound.state to set the permissions back to the defaults (at least what they are on my system).

    Beyond that, I'm not sure. I'm fairly new to using Pulseaudio myself. Hopefully someone who knows a little more about it will see this thread. Good luck and I hope you're able to get it sorted out.
    Last edited by linuxmagick; June 27th, 2009 at 11:18 PM.

  7. #7
    Join Date
    Jun 2009
    Location
    Norway
    Beans
    9
    Distro
    Xubuntu 9.04 Jaunty Jackalope

    Re: Sound is off after every start-up

    Sorry, that was a no-go,

    I typed: sudo chmod 666 /var/lib/alsa/asound.state

    nothing happened

    then: alsactl store

    nothing happened

    I also tried alsactl restore, after reboot, just for the hell of it, but no, nothing.

    Could it be a packagebug of some sort?


    But anyways, thanks for your effort, mighty nice of you! Hope I can get this silly little problem off my hands soon.
    Last edited by stenshorne; June 27th, 2009 at 11:28 PM.

  8. #8
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Sound is off after every start-up

    I had exactly the same problems as you (same sound card even) and the suggestions above did fix it for me.

    To get around the "Home directory not ours" problem:

    * Set up the volumes in alsamixer:

    Code:
    alsamixer -Dhw
    * Save the mixer settings in a temporary file .asound.state in your Home folder:

    Code:
    alsactl -f ./.asound.state store
    * As root, backup the actual asound.state file and then open it in the editor:

    Code:
    sudo mv /var/lib/alsa/asound.state /var/lib/alsa/asound.state.bck
    Code:
    gksudo gedit /var/lib/alsa/asound.state
    * In gedit, open your temporary file .asound.state as well and copy the contents in the (empty) asound.state file. Press Save.

    * Now open /etc/rc.local and add the line

    Code:
    alsactl restore
    before the line "exit 0" (leave that in)

    Hope this helps.

  9. #9
    Join Date
    Jun 2009
    Beans
    13

    Re: Sound is off after every start-up

    I have the exact same problem and i've also tried saving "alsactl store" in "rc.local", but it just dose not seem to work. The mute button didn't shine the first time i rebooted, but there still was no sound.

    * In gedit, open your temporary file .asound.state as well and copy the contents in the (empty) asound.state file. Press Save.
    When i open the .asound.state file it's empty, so there is nothing to copy.

    This is basicly everything i've done to this point:

    Code:
    alsamixer (in the mixer, i turned everything to max)
    sudo alsactl store;
    sudo alsactl restore (then the volum is turned up the way it's supposed to be)
    sudo gedit /etc/rc.local (where i put alsactl restore above the exit 0 command)
    I dont understand what went wrong, cause the sound is still muted when i boot up xubuntu and as far as i can understand it should have worked. I alos got the "/home/*not ours" message, but fixed it by going "sudo su" on its ***.

    More suggestions would be appreciated.

    I'm new to xubuntu, so i have no idea if you need this info, but this is what my .asound.state file says:
    state.NVidia {
    control.1 {
    comment.access 'read write'
    comment.type ENUMERATED
    comment.count 1
    comment.item.0 IntMic
    comment.item.1 ExtMic
    iface MIXER
    name 'Capture Source'
    value IntMic
    }
    control.2 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 23'
    comment.dbmin 0
    comment.dbmax 3450
    iface MIXER
    name 'Int Mic Capture Volume'
    value.0 0
    value.1 0
    }
    control.3 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Int Mic Capture Switch'
    value.0 true
    value.1 true
    }
    control.4 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 23'
    comment.dbmin 0
    comment.dbmax 3450
    iface MIXER
    name 'Ext Mic Capture Volume'
    value.0 0
    value.1 0
    }
    control.5 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Ext Mic Capture Switch'
    value.0 true
    value.1 true
    }
    control.6 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 20'
    comment.dbmin -3000
    comment.dbmax 0
    iface MIXER
    name 'PCM Playback Volume'
    value.0 20
    value.1 20
    }
    control.7 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'PCM Playback Switch'
    value.0 true
    value.1 true
    }
    control.8 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 20'
    comment.dbmin -3000
    comment.dbmax 0
    iface MIXER
    name 'Int Mic Playback Volume'
    value.0 20
    value.1 20
    }
    control.9 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Int Mic Playback Switch'
    value.0 false
    value.1 false
    }
    control.10 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 20'
    comment.dbmin -3000
    comment.dbmax 0
    iface MIXER
    name 'Ext Mic Playback Volume'
    value.0 20
    value.1 20
    }
    control.11 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Ext Mic Playback Switch'
    value.0 false
    value.1 false
    }
    control.12 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 43'
    comment.dbmin -6450
    comment.dbmax 0
    iface MIXER
    name 'Master Playback Volume'
    value.0 43
    value.1 43
    }
    control.13 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'Master Playback Switch'
    value true
    }
    control.14 {
    comment.access read
    comment.type IEC958
    comment.count 1
    iface MIXER
    name 'IEC958 Playback Con Mask'
    value '0fff000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 000'
    }
    control.15 {
    comment.access read
    comment.type IEC958
    comment.count 1
    iface MIXER
    name 'IEC958 Playback Pro Mask'
    value '0f00000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 000'
    }
    control.16 {
    comment.access 'read write'
    comment.type IEC958
    comment.count 1
    iface MIXER
    name 'IEC958 Playback Default'
    value '0400000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 000'
    }
    control.17 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'IEC958 Playback Switch'
    value true
    }
    control.18 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'IEC958 Default PCM Playback Switch'
    value true
    }
    }
    Last edited by Nyhus; June 28th, 2009 at 05:00 AM. Reason: adding more info

  10. #10
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Sound is off after every start-up

    You need to copy the contents of your created .asound.state file (ie. the output you posted) into the file /var/lib/alsa/asound.state. It is expected that it is empty because you 'moved' (= renamed) the old one to asound.state.bck.

    /var/lib/alsa/asound.state is where alsactl restores the settings from.

    Apologies for the confusion.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •