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

Revert "daemon: Always enable GPU power" #336

Closed
wants to merge 2 commits into from
Closed

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented May 2, 2022

oryp4 doesn't behave correctly with the GPU enabled in integrated mode because it doesn't support RTD3.

Revert the change that left the GPU always enabled, and cherry-pick the change to get supported features while in integrated mode.

Fixes: #325

Store the device ID at PCI enumeration so it does not need to be fetched
from sysfs again later.

Search /usr/share/doc for the NVIDIA driver folder instead of getting
the version of the loaded driver.

Allows getting the dGPU features when the driver is unloaded and the PCI
device has been removed from the bus.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This reverts commit 1e1599a.

oryp4 does not behave correctly when the GPU is left on the bus in
integrated mode.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
@crawfxrd crawfxrd requested review from a team May 2, 2022 20:01
Copy link
Contributor

@n3m0-22 n3m0-22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fan issue is still fixed with this same as with #326, but there is no more error on a non-switchable system. The GPU fan still kicks in for a couple seconds every 3 minutes or so while working. That is in Integrated mode. The fans run normally in the NVIDIA modes. In Integrated mode the output of system76-power graphics power is off (discrete). These are the same results I had with the workaround.

With this PR:
Screenshot from 2022-05-02 17-13-09

Without:
Screenshot from 2022-05-01 11-53-37

All of the following tests passed

CLI

Tasks which test the behavior of the CLI client.

  • Power profiles can be queried and set
  • Laptop with switchable graphics:
    • Switchable graphics can be queried
      • Command returns not switchable on a non-switchable system
      • Command returns switchable on a laptop with switchable graphics
    • Switching from Integrated to NVIDIA
    • Switching from Integrated to Hybrid
    • Switching from Integrated to Compute
    • Switching from NVIDIA to Integrated
    • Switching from NVIDIA to Hybrid
    • Switching from NVIDIA to Compute
    • Switching from Hybrid to Integrated
    • Switching from Hybrid to NVIDIA
    • Switching from Hybrid to Compute
    • Switching from Compute to Integrated
    • Switching from Compute to NVIDIA
    • Switching from Compute to Hybrid
    • Discrete graphics power state can be queried and set

GNOME Shell

Tasks which test the behavior of the shell extension.

  • Test that the power profile can be switched, and that the dots are correct
  • Test that any power profile change from the CLI is reflected in the extension
  • When switching to balanced, with screen brightness maxed, screen brightness drops to 50%
  • When switching to battery, with screen brightness maxed, screen brightness drops to 10%
  • When switching to balanced, with screen brightness minimized, screen brightness does not change
  • When restarting the daemon, and the daemon defaults to a balanced profile, the brightness should not change
  • When restarting the system, screen brightness should be the same as before
  • Laptop with switchable graphics:
    • Switching from Integrated to NVIDIA
    • Switching from Integrated to Hybrid
    • Switching from Integrated to Compute
    • Switching from NVIDIA to Integrated
    • Switching from NVIDIA to Hybrid
    • Switching from NVIDIA to Compute
    • Switching from Hybrid to Integrated
    • Switching from Hybrid to NVIDIA
    • Switching from Hybrid to Compute
    • Switching from Compute to Integrated
    • Switching from Compute to NVIDIA
    • Switching from Compute to Hybrid
    • Test that switchable graphics changes from the CLI are reflected in the extension

@crawfxrd crawfxrd closed this May 2, 2022
@jackpot51 jackpot51 deleted the gpu-integrated branch May 3, 2022 19:17
@n3m0-22 n3m0-22 removed their assignment May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPU fan runs nonstop after update to version 1.1.20~1648241921~21.10~1e1599a
3 participants