no sound after restart

after update the alsa driver,i now can listen to my favourite mp3,but everytime i restart my system,suddenly there is no sound.and then i have to type alsaconf in konsole to bring the sound back.is there any method so i dont have to type alsaconf after restart?:slight_smile:

What happens if, instead of typing alsaconf, as a work around you type:
**su -c ā€˜rcalsasound restartā€™ **enter root password when prompted.

If that works, there is a way to set it up such that it runs automatically and transparently to the user.

ok,tq my problem solve.Sound started at restart just after i post this.but im curious why at yast control center>hardware>sound my index sometime is ā€˜not configuredā€™?although i configured(0) it,sometime its index return to ā€˜not configuredā€™ back.emm,maybe this is because of music player.nothing critical here.qqqqqqqqqq for your reply lol!

nice! works perfectly for me as well! but how can i make it run automatically? :smiley:

If you wish to have ā€œrcalsasound restartā€ run everytime you boot, then open up the file with an editor /etc/init.d/boot.local (with root permissions), and as the last line to that file:
rcalsasound restart
save the change and reboot.

One can edit that file with root permissions in :

  • kde by typing: kdesu ā€˜kwrite /etc/init.d/boot.localā€™
    *]gnome by typing: gnomesu ā€˜gedit /etc/init.d/boot.localā€™

thank you! that really helped! rotfl!

for me like new know in computer can u all show me step by step doing this ??
plzzzzā€¦i have suffer for this problem 1 year no sound after restart
hope u all can helpā€¦thxxā€¦

Please explain what your problem is.

  1. Do you have sound on your PC?

  2. Do you have NO sound on your PC ?

  3. Do you ONLY have sound on your PC after booting and then running ā€˜rcalsasound restartā€™.

We need those answers before we can even begin to help properly.

Good luck !

I have sound on my computerā€¦but when I install new program(what ever program) then after install it ask me to restartā€¦after restart I no have sound at allā€¦even a little bit of soundā€¦sometime myself restart that computerā€¦also same,no sound after restartā€¦so what I need to do to get back that sound is,I have to shutdown my computer for a 5 hours or sometimes less than that to get the sound word backā€¦

Is that related to my laptop speaker ?? or my sound card??
because my laptop speaker has broken because I open it to loudlyā€¦

Ask you to restart ??? You need to be more specific. Typically the only programs that require one to restart after installing are kernel updates. Updates to KDE/Gnome desktop , or updates to Xorg require a log out and log in, but typically not a restart. Updates to the alsa-graphic driver, or updates to the other drivers can benefit from a restart (as that will unload and reload the appropriate driver module) but even then, it is possible with the correct commands to unload and reload the modules without restarting.

So what application is this ??

I confess, your question does not make sence to me as it is not a realistic scenario for most applications. Most applications do NOT REQUIRE a restart.

That reads like a hardware problem to me.

Any speaker pushed too far in volume can have distortion.

the problem isā€¦I have no sound after restart my laptopā€¦

anywayā€¦thx a lot for replyā€¦

After you restart your laptop, with no sound try typing the following to see if some startup application has seized the audio device:

lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*

note that is /dev/snd/* and not /dev/snd*

ā€¦ and copy/record that output.

Then restart alsa with:

su -c 'rcalsasound restart'

and enter root password when prompted for a password, and then again run

lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*

and check the output. See if it is different from the 1st time you ran it.

Also, when checking for sound, try the following tests. Do ANY of them give sound ?

Try each of the following in a terminal, first as a regular user and then with root permissions:

  • first:
 speaker-test -Dplug:front -c2 -l5 -twav
  • second, try again:
speaker-test -c2 -l5 -twav
  • third:
speaker-test -c2 -D hw:0,0 -t wav -l3
  • fourth, this next command has a volume meter at the bottom of its output with a changing number of #'s and %'s to show volume levels so run this command and tell me if the number of #'s and %'s are changing:
aplay -vv /usr/share/sounds/alsa/Front_*
  • fifth: and also:
aplay -vv /usr/share/sounds/alsa/test.wav

Do any of those give an indication of sound ?

type all this code in cmd ???

Copy and paste one line at a time in a terminal/konsole. Try as a regular user. Try as root. Also try with and without headphones.

Where can I get this terminal/konsoleā€¦Iā€™m sorryā€¦but can u show me step by step??

Hmmm ā€¦ maybe before you try to get your sound working, you should study some basics about the Linux operating system ? May I be so bold as to recommend you read this top level basic concepts page: Concepts - openSUSE

If you have ever used DOS (or a Command window) in an Microsoft operating sytem, you may find a Linux terminal/konsole/shell to be conceptually similar, although in fact there are vast differences and the Linux terminal/konsole/shell is signficantly more powerful.

Where you actually find the menu item for a terminal/konsole depends on your desktop. KDE ? Gnome ? But in KDE one can typically press <ALT><F2> at the same time, which brings up a popup entry box:
http://thumbnails26.imagebam.com/11060/944763110594394.jpg](ImageBam)

and then in the popup entry box, type: konsole
http://thumbnails37.imagebam.com/11060/0ad7dc110594399.jpg](ImageBam)

which will bring up a terminal/konsole that may look like this:
http://thumbnails37.imagebam.com/11060/dc66b5110594413.jpg](ImageBam)

although one can tune it to be more transparent:
http://thumbnails25.imagebam.com/11060/8cff3a110594407.jpg](ImageBam)

ā€¦ IMHO you need to read up on some basics.

If you look at the example I provided, you will see some text (called a ā€˜promptā€™) that looks like:

oldcpu@hal2009:~>

this indicates that the terminal/konsole is a session of user ā€˜oldcpuā€™, on the computer named ā€˜hal2009ā€™.

Of particular relevance is the " ~> " where this tells me that the terminal is ā€˜locatedā€™ for now in the directory /home/oldcpu (which is user oldcpuā€™s home directory).

If I were to type

cd Download

that would change the directory in which the terminal session is located from /home/oldcpu to /home/oldcpu/Download, with the prompt looking like:

oldcpu@hal2009:~/Download>

where the " ~ " indicates in user oldcpuā€™s home directory, and the ā€œ/Downloadā€ indicates in the subdirectory ā€œDownloadā€.

Note the " > " ā€¦ that tells me user oldcpu has regular user permissions.

IF I were to type:

su

(where ā€œsuā€ stands for ā€˜switch usersā€™) the terminal session is being told to change users. BUT since I only typed ā€œsuā€ by itself with no user name afterward, the shell assumes that I wish to switch to being administrator, and it will prompt me for a password. I enter in the administrator (called ā€˜rootā€™ in Linux) password , and the prompte chanes to:

hal2009:/home/oldcpu/Download #

Note that prompt no longer starts with ā€˜oldcpuā€™, but rather starts with the computerā€™s name ā€œhal2009ā€. And note instead of " ~/Download " the directory has now changed to /home/oldcpu/Download. And finally note the " > " has changed to " # ", all providing a clear indication that the terminal has suddenly become VERY dangerous (for breaking oneā€™s system) and powerful, and hence caution is needed.