openSUSE / SUSEPrime

Provide nvidia-prime like package for openSUSE
64 stars 11 forks source link

Any friendlier way to switch HDMI Audio on and off? #65

Open saif-ellafi opened 3 years ago

saif-ellafi commented 3 years ago

Hi, question and reporting in here :)

Using a MSI GS65 Stealth - 2060 RTX and Tumbleweed

  1. Would be fantastic to unify the docs, I made it to achieve Nvidia Prime with Dynamic Power Management by reading a combination of various wiki pages and this GitHub - Just saying :)
  2. No need for me to use prime-select, on Nvidia mode + Enabling DynamicPowerManagement as explained here turns off the GPU successfully on demand. To my surprise and very positively, it evens turns on as I plug in an HDMI Monitor or TV and works perfectly fine (as opposed to other linux distributions I tried the same with). Power consumption is significantly lower when the GPU is turned off. prime-select would be for me unnecessary.
  3. As stated on this Git repo, HDMI Audio on my TV doesn't work :( I am not sure if any linux distribution achieves DynamicPowerManagement and HDMI Audio simultaneously. But definitely having to restart the system and change the udev rules is significantly unconvenient. Was wondering if it is being considered to find a way to detect HDMI mode and perhaps apply the udev rules on somewhat demand? Or at least something that doesn't require a full reboot.

Best regards and thanks for doing this!

sndirsch commented 3 years ago

Unfortunately having both - HDMI Audio and DynamicPowerManagement - is not possible from the driver side. And indeed switching between these is unconvenient, but I'm not aware of making it easier (if you do please let me know). So basically you need to decide which one of these two is more important or more often used by yourself and then configure this appropriately. At least this issue is already documented and how to do it.

https://github.com/openSUSE/SUSEPrime#hdmi-audio-support-does-not-work

saif-ellafi commented 3 years ago

Thank you. Will have to make research. At first I would think if there is anyway of reloading udev, but the typical udevadmn control --reload-rules doesn't do anything.

un-kasimir commented 1 year ago

Hey @sndirsch! Just as a follow-up question on this:

Did you consider adding an option within prime-select to enable/disable hdmi audio (and therefore disable/enable pm)? This would be more convenient than adding/removing comments in that udev file.

Besides that - thanks for all your work on this! You make it a lot easier to configure NVIDIA drivers!

sndirsch commented 1 year ago

I think that would be possible. But it should be done in a proper way so you can see in the status which feature is enabled/disabled. Probably this option should only switch this setting. So you can do it after the initial config.