Bug 1173777

Summary: No HDMI sound output after upgrading from Leap 15.1 to 15.2
Product: [openSUSE] openSUSE Distribution Reporter: anon <sefsfsefzzz14>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: sefsfsefzzz14, vkrevs
Version: Leap 15.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: output of /sbin/lspci -nnk

Description anon 2020-07-06 17:00:00 UTC
Created attachment 839397 [details]
output of /sbin/lspci -nnk

After doing a clean install of Leap 15.2, I am not able to output sound to my TV connected to my PC with HDMI.

My TV is connected via hdmi to my computer (my gpu is a Nvidia 1060 6GB). I have the Nvidia drivers installed.

In my audio devices window (when you click on the speaker icon in KDE), I used to have the choice between the line out and HDMI output. Now, after the upgrade, I only have the Line Out option, no more HDMI device (TV) I can output to.

Only one sound card appears in YaST Sound configuration, while in 15.1, there was 2 sound card (one for the HDMI output).

I asked on the forums, but in the end we weren't able to solve the issue and I was advised to file a bug.

Attached is the output of /sbin/lspci -nnk, that was asked in the forums.
Comment 1 Takashi Iwai 2020-07-09 10:53:51 UTC
It's likely that Nvidia graphics turned off the power at reboot and this disabled the PCI entry.  It's a known problem of Nvidia stuff.

Could you check the workaround mentioned in
  https://apibugzilla.suse.com/show_bug.cgi?id=1172498#c13
??
Comment 2 anon 2020-07-09 13:35:18 UTC
I've tried updating the kernel (it was suggested in the forum as well) but it didn't work.

I was directed to this thread on the forums as well, but since I'm not an advanced user, I don't know which information in the thread is useful. I tried running the setpci script but it didn't work. but again, I don't know if it didn't do anything, or if I didn't run it correctly...
Comment 3 Takashi Iwai 2020-07-10 12:56:49 UTC
(In reply to anon from comment #2)
> I've tried updating the kernel (it was suggested in the forum as well) but
> it didn't work.
> 
> I was directed to this thread on the forums as well, but since I'm not an
> advanced user, I don't know which information in the thread is useful. I
> tried running the setpci script but it didn't work. but again, I don't know
> if it didn't do anything, or if I didn't run it correctly...

Which command did you run exactly?
Comment 4 anon 2020-07-10 22:16:54 UTC
First I tried running the script from the nvidia thread as is:

setpci -s 01:00.0 0x488.l=0x2000000:0x2000000
rmmod nvidia-drm nvidia-modeset nvidia
echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove
echo 1 > /sys/bus/pci/devices/0000:00:01.0/rescan
modprobe nvidia-drm
xinit -- -retro

it didn't work. then I ran

lspci -t

and found my gpu's address was at 02:00 so I edited the script above and ran it from the command line (ctrl alt f1):

sudo setpci -s 02:00.0 0x488.l=0x2000000:0x2000000
sudo rmmod nvidia-drm nvidia-modeset nvidia
sudo sh -c 'echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove'
sudo sh -c 'echo 1 > /sys/bus/pci/devices/0000:00:02.0/rescan'
sudo modprobe nvidia-drm

it gave me this error (and the command lines seems stuck in a loop, no way to stop it, even ctrl c):

rmod: ERROR: module nvidia_drm is in use
rmod: ERROR: module nvidia_modeset is in use by: nvidia_drm
rmod: ERROR: module nvidia is in use by: nvidia_uvm nvidia_modset

I tried to run the script before login (system settings/startup and shutdown/auto start) and it does nothing.
Comment 5 Takashi Iwai 2024-03-07 14:38:29 UTC
It's an old entry for the discontinued distro, so I close as WONTFIX.
Feel free to reopen if the problem persists with the latest openSUSE release.