GithubHelp home page GithubHelp logo

isabella232 / system76-power Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pop-os/system76-power

0.0 0.0 0.0 606 KB

System76 Power Management

License: GNU General Public License v3.0

Rust 98.71% Makefile 1.29%

system76-power's Introduction

System76 Power Management

system76-power is a utility for managing graphics and power profiles.

Graphics Modes

A reboot is required for changes to take effect after switching modes.

Integrated

The integrated graphics controller on the Intel or AMD CPU is used exclusively.

Lower graphical performance with a longer battery life.

External displays connected to the dGPU ports cannot be used.

NVIDIA

The dGPU (NVIDIA) is used exclusively.

Higher graphical performance at the expense of a shorter battery life.

Allows using external displays.

Hybrid

Enables PRIME render offloading. The iGPU is used as the primary renderer, with the ability to have specific applications render using the dGPU.

PRIME render offloading requires the 435.17 NVIDIA drivers or later.

Applications must use GLVND to take advantage of this feature, so may not render on the dGPU even when requested. Vulkan applications must be launched with __NV_PRIME_RENDER_OFFLOAD=1 to render on the dGPU. GLX applications must be launched with __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia to render on the dGPU.

Display offload sinks ("reverse PRIME") require 450.57 NVIDIA drivers or later. This feature allows using external displays while in this mode.

GPU support for run-time power management is required for the device to enter a low power state when not used. Only Turing cards and newer fully implement this functionality. Support for run-time power manage can be checked in the supported-gpus.json file provided by the driver. e.g.:

$ cat /sys/bus/pci/devices/0000:01:00.0/device
0x1f15
$ jq '.chips[] | select(.devid=="0x1F15")' < /usr/share/doc/nvidia-driver-460/supported-gpus.json
{
  "devid": "0x1F15",
  "name": "GeForce RTX 2060",
  "features": [
    "dpycbcr420",
    "dpgsynccompatible",
    "hdmi4k60rgb444",
    "hdmigsynccompatible",
    "geforce",
    "runtimepm",
    "vdpaufeaturesetJ"
  ]
}

Compute

The integrated graphics controller is used exclusively for rendering. The dGPU is made available as a compute node.

Hotplug detection

The dbus signal HotPlugDetect is sent when a display is plugged into a port connected to the dGPU. If in integrated or compute mode, the GNOME extension will prompt to switch to hybrid mode so the display can be used.

Adding hotplug detection

Intel-based systems

The GPIO (sideband) port and pins for the display ports can be determined with the schematics and output of coreboot-collector. The schematics will indicate which GPIOs are display ports (*_HPD). The corresponding GPP_* entry in coreboot-collector.txt will have the port/pin tuple.

AMD-based systems

A MMIO region for FCH GPIO controls is used to detect external display plug events. Display ports use *_HPD as Intel systems, but may not map to a literal GPIO (e.g., HDMI_HPD maps to DP3_HPD on kudu6). Generating a diff from coreboot-collector in NVIDIA mode before and after plugging in a display should provide the GPIO number.

system76-power's People

Contributors

jackpot51 avatar mmstick avatar crawfxrd avatar danieleades avatar ids1024 avatar watchmkr avatar jacobgkau avatar brs17 avatar aidanharris avatar aklsh avatar ebobby avatar jsj1027 avatar krutkay avatar tzigamm avatar curiousercreative avatar rengare avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.