Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Hybrid Mode disables hdmi audio #171

Open
salvirosales99 opened this issue Jun 16, 2024 · 10 comments
Open

[BUG] Hybrid Mode disables hdmi audio #171

salvirosales99 opened this issue Jun 16, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@salvirosales99
Copy link

Describe the bug
When I switch from default to hybrid and reboot,the hdmi output device dissapears.Using sudo envycontrol --reset and rebooting,makes the device back again

To Reproduce
Steps to reproduce the behavior:

  1. Run sudo envycontrol -s hybrid
  2. Reboot
  3. Go to audio device
  4. The audio device dissapears

Expected behavior
After reboot,it should show the HDMI audio device

System Information:

  • Model: MSI Raider GE68 HX 13VF
  • Distro: EndeavourOS
  • Kernel: Zen Kernel 6.9.3
  • DE/WM and Display Manager (if applicable): KDE Plasma 6.0.5
  • EnvyControl version: 3.4.0
  • Nvidia driver version: 550.90.07-2
  • lspci output:
000:00:00.0 Host bridge: Intel Corporation Device a702 (rev 01)
0000:00:01.0 PCI bridge: Intel Corporation Raptor Lake PCI Express 5.0 Graphics Port (PEG010) (rev 01)
0000:00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-S UHD Graphics (rev 04)
0000:00:04.0 Signal processing controller: Intel Corporation Raptor Lake Dynamic Platform and Thermal Framework Processor Participant (rev 01)
0000:00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module (rev 01)
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller Intel Corporation
0000:00:14.0 USB controller: Intel Corporation Raptor Lake USB 3.2 Gen 2x2 (20 Gb/s) XHCI Host Controller (rev 11)
0000:00:14.2 RAM memory: Intel Corporation Raptor Lake-S PCH Shared SRAM (rev 11)
0000:00:14.3 Network controller: Intel Corporation Raptor Lake-S PCH CNVi WiFi (rev 11)
0000:00:15.0 Serial bus controller: Intel Corporation Raptor Lake Serial IO I2C Host Controller #0 (rev 11)
0000:00:16.0 Communication controller: Intel Corporation Raptor Lake CSME HECI #1 (rev 11)
0000:00:1b.0 PCI bridge: Intel Corporation Raptor Lake PCI Express Root Port #17 (rev 11)
0000:00:1b.7 PCI bridge: Intel Corporation Device 7a47 (rev 11)
0000:00:1d.0 System peripheral: Intel Corporation RST VMD Managed Controller
0000:00:1d.6 PCI bridge: Intel Corporation Device 7a36 (rev 11)
0000:00:1f.0 ISA bridge: Intel Corporation Device 7a0c (rev 11)
0000:00:1f.3 Multimedia audio controller: Intel Corporation Raptor Lake High Definition Audio Controller (rev 11)
0000:00:1f.4 SMBus: Intel Corporation Raptor Lake-S PCH SMBus Controller (rev 11)
0000:00:1f.5 Serial bus controller: Intel Corporation Raptor Lake SPI (flash) Controller (rev 11)
0000:01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1)
0000:01:00.1 Audio device: NVIDIA Corporation Device 22be (rev a1)
0000:02:00.0 PCI bridge: Intel Corporation Device 1133 (rev 02)
0000:03:00.0 PCI bridge: Intel Corporation Device 1133 (rev 02)
0000:03:01.0 PCI bridge: Intel Corporation Device 1133 (rev 02)
0000:03:02.0 PCI bridge: Intel Corporation Device 1133 (rev 02)
0000:03:03.0 PCI bridge: Intel Corporation Device 1133 (rev 02)
0000:04:00.0 USB controller: Intel Corporation Device 1134
0000:1f:00.0 USB controller: Intel Corporation Device 1135
0000:3a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Killer E3000 2.5GbE Controller (rev 06)
0000:3b:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5261 PCI Express Card Reader (rev 01)
10000:e0:01.0 System peripheral: Intel Corporation RST VMD Managed Controller
10000:e0:01.1 PCI bridge: Intel Corporation Device a72d (rev 01)
10000:e0:1d.0 PCI bridge: Intel Corporation Raptor Lake PCI Express Root Port #9 (rev 11)
10000:e1:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. NV1 NVMe SSD SM2263XT (DRAM-less) (rev 03)
10000:e2:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN770 / PC SN740 256GB / PC SN560 (DRAM-less) NVMe SSD (rev 01)

@salvirosales99 salvirosales99 added the bug Something isn't working label Jun 16, 2024
@bayasdev
Copy link
Owner

@salvirosales99 I think the problem is in the udev rules, if you go to /lib/udev/rules.d/80-nvidia-pm.rules and comment the line that removes the audio devices, rebuild your initramfs and reboot, does the problem go away?

@bayasdev bayasdev self-assigned this Jun 17, 2024
@salvirosales99
Copy link
Author

@salvirosales99 I think the problem is in the udev rules, if you go to /lib/udev/rules.d/80-nvidia-pm.rules and comment the line that removes the audio devices, rebuild your initramfs and reboot, does the problem go away?

Excuse me,how do I know about that? I'll drop what 80-nvidia-pm.rules has:
`# Automatically generated by EnvyControl

Remove NVIDIA USB xHCI Host Controller devices, if present

ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1"

Remove NVIDIA USB Type-C UCSI devices, if present

ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1"

Remove NVIDIA Audio devices, if present

ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind

ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto"
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"

Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind

ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on"
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"

`

@bayasdev
Copy link
Owner

Please remove these lines

# Remove NVIDIA Audio devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

@salvirosales99
Copy link
Author

Now the HDMI audio is back

@bayasdev
Copy link
Owner

Now the HDMI audio is back

Amazing, could you check if RTD3 is working when HDMI is not connected?

@salvirosales99
Copy link
Author

Now the HDMI audio is back

Amazing, could you check if RTD3 is working when HDMI is not connected?

You mean something like this: $ cat /proc/driver/nvidia/gpus/0000:01:00.0/power
Runtime D3 status: Enabled (fine-grained)
Video Memory: Active

GPU Hardware Support:
Video Memory Self Refresh: Supported
Video Memory Off: Supported

@salvirosales99
Copy link
Author

Hey its me again,same issue and now the 80-nvidia.pm.rules doesnt exist now

@bayasdev
Copy link
Owner

bayasdev commented Oct 1, 2024

@salvirosales99 it got moved to a different path on #181

@salvirosales99
Copy link
Author

I've found it,I've removed those lines,I've rebooted the pc and still don't have hdmi audio

@TiagoRibeiro25
Copy link

I've commented out the line that removes nvidia audio devices in /etc/udev/rules.d/80-nvidia-pm.rules, HDMI audio is now working and RTD3 is working too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants