No sound after nvidia drivers instalation

Hello

I have fresh installation of openSuse Leap. The sound worked OK until I’ve installed the proprietary nvidia drivers (352.55-17.1). Then it stopped. My primary sound card is Xonar DX, not the nvidia card.

I’ve tried to configure the both sound cards via Yast, but it didn’t help. I cannot find any usable sound card in the KDE settings manager, there is only a Dummy Output.

I didn’t have such problems on the openSuse 13.2. There the Xonar worked OK.

Could you help me please.

There are a plethora of settings for audio in kde
You’ll need to wade through them, both in kmix and in system settings>multimedia
Also make sure the primary device is selected in Yast > Sound

To understand better where the problem may be, could you please run a diagnostic script so to provide more information ?

You can do that by opening a konsole or xterm and as a regular user in that, with your PC connected to the internet, type:


/usr/sbin/alsa-info.sh

select the SHARE/UPLOAD option and let the script run to completion. When it is complete look in the konsole/xterm and it will have given you a web-address/URL to share. Please post that address here. Just the address.

Also - I recall years back, a problem when nvidia drivers were loaded one needed to add to their user to group ‘audio’. This would be a major regression if that problem returned, and this is a highly speculative post of mine, but I do recall such had similar symptoms to what you noted (ie right after a nvidia driver install - audio hardware could not be seen).
.

Thank you for the answer. I’ve reinstalled the nvidia drivers and is the situation bit better.

**Yast, Sound
** - detects both sound cards and the test sound is OK

**Mplayer, mpv, flash player
**- the sound is OK

Yarock, Amarock, System sounds

  • doesn’t work

The sound check protocol: http://www.alsa-project.org/db/?f=35f63a87004e68ec00e7dd156fed6089d4f04cb7

Amarock and Yorock give me the same error message, whe I try to play a song:

(amarok:3943): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed

(amarok:3943): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed

(amarok:3943): GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed


Those are no real errors I suppose. Just debug output.

But: KDE, Amarok and Yorock all use KDE’s Phonon for playing back sound, although apparently you can also use mpv or vlc as backend in the latter

Does the test sound in KDE’s Multimedia settings work?
Maybe Phonon is just set to the wrong audio output/card or something like that. You should be able to rectify this in the settings too.

As by default phonon-backend-gstreamer is installed, you might also be one of the many who have gstreamer problems at the moment, unrelated to the nvidia driver.
See here for suggestions how to fix it:
https://forums.opensuse.org/showthread.php/511367-Amarok-unable-to-play-MP3-files?p=2739778#post2739778
And of course the appropriate gstreamer plugins should be installed, but that should be the case anyway if it worked before…

Or install phonon-backend-vlc, but that has some problems.

No, the sound test in KDE’s Multimedia settings doesn’t work. Only the sound test in Yast (Sound settings).

I removed the gstreamer-plugins-ugly (and -ugly-addons), deleted the cache and it didn’t help. Amarok is not able to play OGG files. If it is the Gstreamer problems I can wait some time for official fix, it’s only Amarok.

So it’s a general Phonon issue.

Have you checked what sound card is selected as output in KDE’s multimedia settings?
Maybe it switched to the nvidia card (HDMI) when you installed the nvidia driver.

I removed the gstreamer-plugins-ugly (and -ugly-addons), deleted the cache and it didn’t help. Amarok is not able to play OGG files. If it is the Gstreamer problems I can wait some time for official fix, it’s only Amarok.

As I wrote, Amarok (and gstreamer in general) works fine here.
Maybe the ugly plugins don’t work, no idea, but you should be fine without them. And in particular they are not needed for OGG files.

Did you do a full switch to Packman?
https://en.opensuse.org/SDB:Vendor_change_update#Full_repository_Vendor_change
If you switch the packages manually, you might have forgotten some important one.

So it’s a general Phonon issue.

Yes, it looks like that. I went through the KDE Multimedia setting many times.

In the first tab “Device order” I can see both sound cards, I can change the order, but the sound test doesn’t work.

In the second tab “Hardware settings” I can run the left/right sound check and I hear the sound. It seem to be OK.

Did you change the order for all categories?
The easiest way to do that is change it for one playback category, and then click on “Apply Device List To…” below the list view.

Can you try some other gstreamer based player (totem e.g.)? Can this play sound? (if not, it would be a gstreamer issue, if yes, the issue is restricted to Phonon)

Or maybe try to install phonon4qt5-backend-vlc as a test, to see whether that works. (you may have to set it as default in “Backend”, but I think it should be on top automatically)

What also might help is to delete/rename the folder ~/.config/pulse/. But that will remove all your settings, including the volumes for each applications.

The phonon4qt5-backend-vlc bit help, the sound check and system notification sounds work, but Amarok is silent. There is a small difference, Amarok starts to play a song, but it’s silent (volume = 100%).

I did the full switch to Packman.

I can’t run Totem:

** (totem:11337): WARNING **: Element 'playbin' is missing, verify your installation

I’ve cleared the ~/.config/pulse/ folder … no change.

Do you have vlc-codecs installed?

I can’t run Totem:

** (totem:11337): WARNING **: Element 'playbin' is missing, verify your installation

Then it’s a gstreamer issue.
Try to remove the plugins cache, ~/.cache/gstreamer-1.0/ (even if you did so already), and make sure that you have gstreamer-fluendo-mp3 (for MP3 playback) and gstreamer-plugins-libav installed (as fallback for most formats).

Thank you, I’m step further to solve the issue.

Totem works, with sound. Sound check in Media settings is OK. The Amarok is still silent.

Gstreamer packages:

i | GStreamer Multimedia Codecs                          | Multimedia playback for APE, AVI, FLAC, FLX, Flash, MKV, MP4, Speex, VP8, VP9 and WAV  | application
i | PackageKit-gstreamer-plugin                          | Simple software installation management software                                       | package    
i | gstreamer                                            | Streaming Multimedia knihovna                                                          | package    
i | gstreamer-0_10                                       | Streaming Multimedia knihovna                                                          | package    
i | gstreamer-0_10-fluendo-mp3                           | GStreamer plug-in from Fluendo for MP3 support                                         | package    
i | gstreamer-0_10-lang                                  | Jazykový balíček pro gstreamer-0_10                                                    | package    
i | gstreamer-0_10-plugin-esd                            | GStreamer Streaming-Media Framework Plug-Ins -- EsounD plugin                          | package    
i | gstreamer-0_10-plugins-bad                           | GStreamer Media framework moduly                                                       | package    
i | gstreamer-0_10-plugins-bad-lang                      | Jazykový balíček pro gstreamer-0_10-plugins-bad                                        | package    
i | gstreamer-0_10-plugins-bad-orig-addon                | GStreamer Streaming-Media Framework Plug-Ins                                           | package    
i | gstreamer-0_10-plugins-base                          | GStreamer Media framework moduly                                                       | package    
i | gstreamer-0_10-plugins-base-lang                     | Jazykový balíček pro gstreamer-0_10-plugins-base                                       | package    
i | gstreamer-0_10-plugins-ffmpeg                        | GStreamer Streaming-Media FFmpeg Plug-In                                               | package    
i | gstreamer-0_10-plugins-good                          | GStreamer Media framework moduly                                                       | package    
i | gstreamer-0_10-plugins-good-extra                    | Complementary plugins for gstreamer-0_10-plugins-good                                  | package    
i | gstreamer-0_10-plugins-good-lang                     | Jazykový balíček pro gstreamer-0_10-plugins-good                                       | package    
i | gstreamer-0_10-plugins-ugly                          | GStreamer Media framework moduly                                                       | package    
i | gstreamer-0_10-plugins-ugly-lang                     | Jazykový balíček pro gstramer-0_10-plugins-ugly                                        | package    
i | gstreamer-fluendo-mp3                                | GStreamer plug-in from Fluendo for MP3 support                                         | package    
i | gstreamer-lang                                       | Jazykový balíček pro gstreamer                                                         | package    
i | gstreamer-plugin-gstclutter-3_0                      | GStreamer Clutter Plug-In                                                              | package    
i | gstreamer-plugins-bad                                | GStreamer Media framework moduly                                                       | package    
i | gstreamer-plugins-bad-orig-addon                     | GStreamer Streaming-Media Framework Plug-Ins                                           | package    
i | gstreamer-plugins-base                               | GStreamer Media framework moduly                                                       | package    
i | gstreamer-plugins-base-lang                          | Jazykový balíček pro gstreamer-plugins-base                                            | package    
i | gstreamer-plugins-good                               | GStreamer Media framework moduly                                                       | package    
i | gstreamer-plugins-good-lang                          | Jazykový balíček pro gstreamer-plugins-good                                            | package    
i | gstreamer-plugins-libav                              | GStreamer Streaming-Media libav Plug-In                                                | package    
i | gstreamer-plugins-qt                                 | C++/Qt bindings for GStreamer                                                          | package    
i | gstreamer-plugins-vaapi                              | Gstreamer VA-API plugins                                                               | package    
i | gstreamer-utils                                      | Streaming Multimedia knihovna                                                          | package    
i | libgstreamer-0_10-0                                  | Streaming Multimedia knihovna                                                          | package    
i | libgstreamer-1_0-0                                   | Streaming Multimedia knihovna                                                          | package    
i | phonon-backend-gstreamer                             | Phonon Multimedia Platform Abstraction                                                 | package    
i | phonon4qt5-backend-gstreamer                         | Phonon Multimedia Platform Abstraction                                                 | package 

Ok, so gstreamer should be fixed now.

Sound check in Media settings is OK. The Amarok is still silent.

Do you still have phonon4qt5-backend-vlc installed and use it?
As I wrote, you need vlc-codecs then.

But I would suggest to just remove it again, now as gstreamer works anyway.

Uff, the vlc is uninstalled, the Yarock’s config files deleted and it seem to be working :-).

Thank you for the help!