on 13.1 kde samsung rv520 sound works only if I delete and reinstall sound card

on my samsung rv520 with fresh install opensuse 13.1 with kde
at startup sound don’t works, if I go to >yast2>sound found 2 cards 0=intel corporation 1=nvidia corporation
if I select 0 and test it works
if I select 1, click on delete, click ok, click on edit and choose quick automatic setup, click ok, click ok again so yast perform setup, now sound works, if I reboot sound doesn’t works again.

how can I have a permanent working sound???
manythanks, :slight_smile: ciao :slight_smile: pier

added some infos as pointed here


/usr/sbin/alsa-info.sh

is provided here:
http://www.alsa-project.org/db/?f=5a5998977fddb987ee99cfcffadf63ec7b6059f8

then:
rpm -qa ‘alsa

procuste@linux-p7qg:~> rpm -qa '*alsa*'
libdrumstick-alsa0-0.5.0-4.1.x86_64
alsa-oss-32bit-1.0.25-8.1.2.x86_64
alsa-utils-1.0.27.2-4.2.1.x86_64                                                                                                                                                                
alsa-oss-1.0.25-8.1.2.x86_64                                                                                                                                                                    
alsa-plugins-1.0.27-3.1.1.x86_64                                                                                                                                                                
alsa-plugins-pulse-32bit-1.0.27-3.1.1.x86_64                                                                                                                                                    
alsa-devel-1.0.27.2-3.5.1.x86_64                                                                                                                                                                
alsa-1.0.27.2-3.5.1.x86_64                                                                                                                                                                      
alsa-plugins-pulse-1.0.27-3.1.1.x86_64
alsa-plugins-32bit-1.0.27-3.1.1.x86_64
procuste@linux-p7qg:~> 

rpm -qa ‘pulse

procuste@linux-p7qg:~> rpm -qa '*pulse*'
libpulse0-32bit-4.0.git.270.g9490a-4.1.x86_64
libxine2-pulse-1.2.3-89.2.x86_64
alsa-plugins-pulse-32bit-1.0.27-3.1.1.x86_64
libpulse-mainloop-glib0-4.0.git.270.g9490a-4.1.x86_64
pulseaudio-4.0.git.270.g9490a-1.1.x86_64
mpg123-pulse-32bit-1.16.0-1.1.x86_64
libpulse0-4.0.git.270.g9490a-4.1.x86_64
alsa-plugins-pulse-1.0.27-3.1.1.x86_64
mpg123-pulse-1.16.0-1.1.x86_64
procuste@linux-p7qg:~> 

rpm -q libasound2

procuste@linux-p7qg:~> rpm -q libasound2
libasound2-1.0.27.2-3.5.1.x86_64
procuste@linux-p7qg:~> 

uname -a

procuste@linux-p7qg:~> uname -a
Linux linux-p7qg.site 3.11.6-4-desktop #1 SMP PREEMPT Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) x86_64 x86_64 x86_64 GNU/Linux
procuste@linux-p7qg:~> 

cat /etc/modprobe.d/50-sound.conf

procuste@linux-p7qg:~> cat /etc/modprobe.d/50-sound.conf

options snd slots=snd-hda-intel,snd-hda-intel
# u1Nb.Mfbr4UrBan1:Intel Corporation
alias snd-card-0 snd-hda-intel
# NXNs.b2XYI_6FFP6:nVidia Corporation
alias snd-card-1 snd-hda-intel
procuste@linux-p7qg:~> 

After the procedure in the first post, during the sound was working and sounding a song perfectly, I performed a


/usr/sbin/alsa-info.sh

you can see here
http://www.alsa-project.org/db/?f=a1256f3c65ee9b9a02be712ddb19cb7182243731
maybe this can be useful to see differences between this file with working-sound and the one in the second post not-working-sound

manythanx :slight_smile: ciao :slight_smile: pier

i also think that there’s big problem with sound on OpenSUSE 13.1
the first time i installed OpenSUSE 13.1, everything is ok, but after upgrading anything, sound is just went wrong, no sound on speaker any more.
i still do not know how to fix this :frowning:

Your pulseaudio is not running
Can you try to install pavucontrol and see if it will work.

The nvidia soundcard you have is for your HDMI
If you are not using hdmi make sure that the intel card is your default soundcard.

hi, manythanx,

starting from the condition where sound works, I reboot and sound doesn’t works.
I don’t know when pulseaudio is running or not, could you tell me how to know this??
but, if sound works when pulseaudio is not running, could you tell me how to get rid of running pulseaudio so to have a permanent working sound???

I installed pavucontrol and pulseaudio manager, if I run clementine to sound a song and run pavucontrol, in the playback tab I can see clementine sound working (the cursor indicator moves like the song) but I haven’ sound from the speakers, in output devices tab I have only the nvidia soundcard and also it seems to works but no sound from speakers

in yast2>sound the intel is the default sound card, but in pavucontrol doesn’t appear anywhere

manythanx, :slight_smile: ciao :slight_smile: pier

Disable it in YaST->Hardware->Sound->Other->PulseAudio Configuration.

I disabled it, but at reboot sound doesn’t works, clementine gives me this error: failed to connect: connection refused
and it is an endless error repeated 1 time per second or less.
To have a working sound I have to Yast>sound>click-on-intel-card>edit>reset-all>click-on-yes-to-reset-all-values>next>click-on-yes-to-restart-sound-system-now>OK
I noted that after this Kmix disappear from the system tray
now sound works, but at the reboot doesn’t works again.
I suspect that the who does the trick is the restart sound system, and not the card reset… :slight_smile: :slight_smile: :slight_smile: maybe, perhaps, could be…:slight_smile:
to try this, how can I perform a sound system restart only??? without all the yast procedure?? from konsole??
manythnx, :slight_smile: ciao :slight_smile: pier

That’s normal. If you restart the sound system that way, all applications using it currently will be killed.

I suspect that the who does the trick is the restart sound system, and not the card reset… :slight_smile: :slight_smile: :slight_smile: maybe, perhaps, could be…:slight_smile:
to try this, how can I perform a sound system restart only??? without all the yast procedure?? from konsole??

sudo /usr/sbin/rcalsasound restart

That said, what does this say when sound is not working?

/usr/sbin/rcalsasound status

Maybe some program is started on boot/login that grabs the soundcard and blocks access to it for other apps (including pulseaudio)?
By doing your card reset, that program would be killed as well, so that would explain why your sound is working afterwards.

Did you try with a new user already? That would at least tell if it’s a system-wide issue, or just something specific to your user configuration.

CODE]sudo /usr/sbin/rcalsasound restart

rcalsasound restart gives this results:

linux-p7qg:/home/procuste # /usr/sbin/rcalsasound restart
redirecting to systemctl restart alsasound
linux-p7qg:/home/procuste # 

kmix doesn’t disappear from system tray

sound doesn’t works

performed yast procedure answering NOT restart sound system now
Yast>sound>click-on-intel-card>edit>reset-all>click-on-yes-to-reset-all-values>next>click-on-NOT-to-restart-sound-system-now>OK
sound works
kmix disappear from system tray

it seems that my suspect was wrong and the trick is to reset sound card,
or maybe when I klick on OK and yast-sound-window disappear yast perform a sound system restart…

That said, what does this say when sound is not working?

/usr/sbin/rcalsasound status

Maybe some program is started on boot/login that grabs the soundcard and blocks access to it for other apps (including pulseaudio)?
By doing your card reset, that program would be killed as well, so that would explain why your sound is working afterwards.

Did you try with a new user already? That would at least tell if it’s a system-wide issue, or just something specific to your user configuration.

rcalsasound status when sound doesn’t works

procuste@linux-p7qg:~> /usr/sbin/rcalsasound status
ALSA sound driver loaded.                                                                                                                                                            running
alsa-restore.service - Restore Sound Card State
   Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
   Active: inactive (dead) since Fri 2013-12-06 16:31:03 CET; 29min ago
  Process: 725 ExecStart=/usr/sbin/alsactl restore (code=exited, status=0/SUCCESS)
 Main PID: 725 (code=exited, status=0/SUCCESS)

procuste@linux-p7qg:~> 

rcalsasound status when sound works

procuste@linux-p7qg:~> /usr/sbin/rcalsasound status
ALSA sound driver loaded.                                                                                                                                                            running
alsa-restore.service - Restore Sound Card State
   Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
   Active: inactive (dead) since Fri 2013-12-06 17:03:11 CET; 4min 58s ago
  Process: 2578 ExecStart=/usr/sbin/alsactl restore (code=exited, status=0/SUCCESS)
 Main PID: 2578 (code=exited, status=0/SUCCESS)

procuste@linux-p7qg:~> 

with new-fresh-just-created user sound doesn’t works and clementine gives me the error: failed to connect: connection refused

manythanx, :slight_smile: ciao :slight_smile: pier

Well, but that seems to support my suspicion, that something else is blocking the sound card:
If all applications that use the sound card are killed (i.e. kmix disappears), sound works again.

Try to find out what processes are killed when you reset the sound card.
Run “ps aux”, then reset the sound card, then run “ps aux” again and compare the outputs.

You are right :), I compared and among the others brighted to me… timidity.
Timidity set up is to start the service at boot in yast>system services (runlevel) in the past there was many runlevels now there is onli a “B” not checked.
with working audio, if I go to yast>system services (runlevel) I found timidity service stopped, if I start the service audio stop to working, if I stop the service audio works again…, so it seems that timidity grab and block the sound card only for himself, becouse if I run a .midi file with kmid that use timidity the sound works, it is possible, like in opensuse12.3, have both working???

manythanx :slight_smile: ciao :slight_smile: pier

Yeah, right. timidity run as daemon blocks pulseaudio, I had the same problem when I wanted to try out pulseaudio again on 12.3 (back then I didn’t find the issue) and 13.1.

Since I have PA uninstalled anyway I didn’t look for a possibility to use both.
But the file /usr/share/doc/packages/timidity/README.SuSE states this:

When using pulseaudio the use of timidity as a system wide daemon is discouraged,
because both pulseaudio and timidity need the same device exclusively.
However timidity can be started as a daemon for the user to provide the midi
ports he/she needs for i.e. canorus. On the console of the user give the command:

timidity -iAq -Oe -s 44100

So you could put this in a script and run it for your user at login time, see Configure Desktop->Startup and Shutdown->Autostart.

And another thing:

That was already the same in 12.3. YaST->System->System Services (Runlevel) needs a complete /etc/inittab to know what runlevels exist, but that is not used/installed anymore since 12.3. Therefore it only knows runlevel “B” (Boot).

And it didn’t work 100% anymore anyway because of the switch to systemd.

You should rather use the new YaST->System->Services Manager instead. And maybe uninstall yast2-runlevel, it is not installed anymore by default.

well, after some try I found this that make sound works well:
YaST->System->System Services (Runlevel) disable timidity service
YaST->Hardware->Sound->Other->PulseAudio Configuration disable pulseaudio
run kmid and >settings>configure-kmid>soft-sinth-section>timidity++tab>check-on-run-timidity-at-startup, in command field leave the default /usr/bin/timidity, in arguments field leave the default --sequencer-ports=1, click OK
in this way I can sound with clementine and kmid…:slight_smile:
I tried to add in the argument field -iAq -Oe -s 44100 and adding to /usr/bin/timidity in the command field but doesn’t works
I didn’t try to launch this at startup
I tried to enable pulseaudio sound works but kmid doesn’t works, so I think to play with pulseaudio disabled… :slight_smile: :slight_smile: :slight_smile: :slight_smile:

manythanxalot :slight_smile: ciao :slight_smile: pier

at first sight it seems easy, but at first sight there isn’t help, googling around it seems it is quite dangerous to modify isn’t it?? and it seems similar to Kcmsystemd…I will try… manythanx again :slight_smile: ciao :slight_smile: pier

What do you mean?

All I’m saying is that you should use YaST->System->Services Manager instead of the old Runlevel module.

Of course it can be dangerous to modify something in there, but it’s not more dangerous than it was before with sysvinit and the old runlevel module…

And of course it seems similar to kcmsystemd, since both are there to do the same things: configuring systemd and it’s services/targets.

Did you try to launch it manually in a terminal window?

I tried to enable pulseaudio sound works but kmid doesn’t works, so I think to play with pulseaudio disabled… :slight_smile: :slight_smile: :slight_smile: :slight_smile:

Well, if you have pulseaudio disabled, you can just as well enable timidity as system-wide daemon again.

I will play around with this and see if I can get timidity to work here with PA when I find the time…

I tried now with PulseAudio enabled.

When I run timidity manually like suggested in the README.SuSE, kmid works fine.
I haven’t tried to autostart it on login, but this should work the same I guess.

But what also worked:
run kmid and >settings>configure-kmid>soft-sinth-section>timidity++tab>check-on-run-timidity-at-startup, in command field leave the default /usr/bin/timidity, in arguments field leave the default --sequencer-ports=1, in the “Audio Output” chooser select “pulseaudio” click OK.
Then it works fine with PulseAudio enabled.

here doesn’t works…

procuste@linux-p7qg:~> timidity -iAq -Oe -s 44100
esd: Connection timed out
Couldn't open Enlightened sound daemon (`e')
procuste@linux-p7qg:~> 

it doesn’t works, if I YaST->System->System Services (Runlevel) enable timidity service, then only timidity works, not sound from other sources, even if pulseaudio is enabled or not, I suppose, as we said before, that timidity grab and block the sound card only for himself.

maaanythanks…:slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile:

here timidity doesn’t works, even if I select pulse audio as output…, sound works from other sources as clementine with or without pulseaudio enabled

manythnx, :slight_smile: ciao :slight_smile: pier