bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
https://bayas.dev/envycontrol
MIT License
1.14k stars 55 forks source link

Audio Not Playing Through HDMI [BUG] #135

Open ruscher opened 9 months ago

ruscher commented 9 months ago

Describe the bug

Dear Support Team,

I am writing to seek assistance with a specific issue related to HDMI audio on our BigLinux distribution. My name is Rafael Ruscher, and I have encountered a situation where HDMI audio is not working as expected.

Problem Description:

When I connect my computer to an external display or TV using HDMI, the video signal is transmitted correctly. However, the audio continues to play through the internal speakers of the computer, rather than through the HDMI connection.

Solution Attempt:

In my research, I came across a suggestion to resolve this issue by modifying a certain line in the configuration file /usr/lib/python3.11/site-packages/envycontrol.py. The recommendation was to remove the following line:

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

Current Status:

Apart from this audio issue, our BigLinux distribution is working exceptionally well, and we are pleased with its performance.

Request for Assistance:

I kindly request your guidance and support in resolving this HDMI audio problem. If the suggested modification to the envycontrol.py file is the correct course of action, please provide any additional instructions or considerations to ensure that the adjustment is made correctly.

If there are alternative solutions or troubleshooting steps specific to the BigLinux distribution, I would greatly appreciate your expertise in this matter.

Thank you for your time and assistance in advance. I look forward to your response and hope to have this issue resolved promptly.

Sincerely, Rafael Ruscher

System Information:



![photo_2023-09-30_05-37-38](https://github.com/bayasdev/envycontrol/assets/355281/628cafe6-86e2-4816-bf1e-6aaefb6a4596)
Boria138 commented 9 months ago

In hybrid mode, hdmi sound doesn't work because the nvidia website says it should be disabled (https://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/dynamicpowermanagement.html). For hdmi sound to work, follow the instructions from the website above or switch to Nvidia mode.