LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   openSuse 11.1 won't store sound settings (https://www.linuxquestions.org/questions/suse-opensuse-60/opensuse-11-1-wont-store-sound-settings-733644/)

raysr 06-17-2009 11:24 AM

openSuse 11.1 won't store sound settings
 
How can I make openSuse 11.1 , KDE 3.5.10, store sound card and alsa settings? When I I shut it down these have to be reset.

Harpo 06-17-2009 04:54 PM

Hello

I have the exact same thing going on. Everytime I restart, I have a little dialog box come up that says the audio device has failed and is falling back to default. I don't know why this has started. I only started getting it recently. I have to open up the mixer and uncheck the mute button in order to get my sound back. How do I get this to work properly? Any Ideas.

Harpo

raysr 06-17-2009 06:57 PM

I have to reconfig mine.

raysr 06-23-2009 06:29 PM

I've been trying to get an answer to this for months. There MUST be an answer. Please people!

oldpenguin 06-25-2009 02:52 PM

Hi raysr
I've done many installs and upgrades of openSUSE 10.3 11.0 and 11.1.
Normally after installation the sound does not work.
The recipe to solve this problem, which usually works for me, is running:

alsaconf
alsamixer (optional)
alsactl store

raysr 06-25-2009 04:09 PM

Thanks so much for the response. Your solution didn't work. It won't save the card config or the alsa conf even doing it the way you suggested.
I have dealing with this for a long time. First time I've ever had it happen. 9.3 Suse, 10.3 Suse, 11.0 Suse, all the Mandrakes and some small linux OS's, this is the first time I couldn't overcome something as simple as this.

oldpenguin 06-27-2009 05:06 PM

Hello raysr

I'm coming back to this issue because I checked in two installations I have of openSUSE 11.1 (one installed from scratch and another installed as an upgrade of 10.3) and the sound isnt working on either. Strange enough, if I run alsa-init once, the sound starts working subsequently on every session. The after a reboot there's no sound again.

The experiment I'm trying now on one of the machines is: run YAST -> Hardware -> Sound reconfigure card and enable PulseAudio. With this solution the sound system seems to survive a reboot but the sound gets garbled sometimes.

raysr 06-28-2009 01:31 AM

I've tried everything, I have to reconfig the card and alsaconf after each reboot. It's ODD that no-one has an answer to this.

oldpenguin 06-30-2009 12:23 PM

Have you updated your kernel to 2.6.27.23... ?
There have been some issues with sound and drivers.
Please look at these threads
http://forums.opensuse.org/applicati...se-11-1-a.html
http://forums.opensuse.org/general-c...eedback-2.html

raysr 06-30-2009 09:00 PM

Thanks for the reply. None of the above worked for me. Still have to config the card AND alsa.

raysr 07-02-2009 01:23 AM

Harpo,
Did you get your mixer to not return to mute after reboot? I tossed in the towel with 11.1 and upgraded to 11.2. KDE 4 is somewhat difficult to figure out. My sound card is configured now and the only thing with the audio is what you have, muted upon restart.
I think the 11's are all buggy.

p33 07-23-2009 05:04 AM

Quote:

Originally Posted by raysr (Post 3593852)
My sound card is configured now and the only thing with the audio is what you have, muted upon restart.
I think the 11's are all buggy.

A quick hack is as follows:

With your sound card configured, and unmuted, and set up (volume wise, etc.) as you want it to be set up

1) run /usr/sbin/alsactl -f ~/.asound.state store

2) make the script asound-restore.sh containinig something like the following:

#!/bin/bash
date > ~/.asound.log
echo "restoring alsa sound mixer state" >> ~/.asound.log
/usr/sbin/alsactl -f ~/.asound.state restore >> ~/.asound.log 2>&1

2) put the script asound-restore.sh in ~/.kde4/Autostart/

So, KDE will run the script at every startup and it will restore your "good" sound settings. Note that I also do NOT use kmix at all as it seems to screw up things (at least for me).

The above solution seems to be working for me but YMMV. Please don't ask further questions, chances are I'll never see them.

Cheers

raysr 07-23-2009 02:07 PM

What do you use in place of kmix? Oh, thanks for the reply! I don't use kde 4.

oldpenguin 07-24-2009 06:39 AM

IŽll have to try this hack.
I think you can just replace kde4 with kde.
Also you can use alsamixer from the command line.

p33 07-24-2009 02:12 PM

Quote:

Originally Posted by oldpenguin (Post 3618734)
IŽll have to try this hack.
I think you can just replace kde4 with kde.
Also you can use alsamixer from the command line.

Yes, you can replace kde4 for kde, or replace the autostart directory for whatever it is for your window manager. Apparently, the idea is to automatically execute the script at every startup of a window manager.

So, yes, one can always use alsamixer by hand to set up you sound card, but that is a hassle, especially when the window manager in question is not used by yourself if not by a person who calls the console/terminal the "DOS"-mode or something...

Personally, I do not use kde4, nor kde, nor any of those bloated window managers - I prefer fvwm which is light, fast, and lets me start all applications I need (needs some configuration though) - no fancy desktops, compiz flashy effects, nor nothing - I just need that thing to do my job. So, answering the previous post: I'd use alsamixer as such, or alsamixergui if you prefere, or gmerlin_alsamixer (or whatever it was called) as a kmix substitute.

Good luck, gentlemen :)


All times are GMT -5. The time now is 09:34 PM.