### Install power-profiles-daemon Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Install the power-profiles-daemon using meson and ninja. Requires libgudev, systemd, and polkit-gobject. ```sh meson setup _build -Dprefix=/usr ninja -C _build install ``` -------------------------------- ### Resolve service conflicts and start daemon Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Unmask and start the power-profiles-daemon service if it refuses to start due to conflicts. ```sh systemctl unmask power-profiles-daemon.service systemctl start power-profiles-daemon.service ``` -------------------------------- ### List available actions Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Discover available power management actions by running `powerprofilesctl list-actions`. ```sh powerprofilesctl list-actions ``` -------------------------------- ### Test Power Profiles Daemon with Fake Driver Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Runs the power-profiles-daemon binary with a fake driver for testing purposes when real hardware support is unavailable. ```shell sudo POWER_PROFILE_DAEMON_FAKE_DRIVER=1 /usr/libexec/power-profiles-daemon -r -v ``` -------------------------------- ### Run power-profiles-daemon in debug mode Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Execute the power-profiles-daemon in verbose debug mode for troubleshooting, redirecting output to a file. ```sh sudo /usr/libexec/power-profiles-daemon -r -vv ``` -------------------------------- ### Launch a command with a specific profile Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Use `powerprofilesctl launch` to execute a command while holding a specific power profile, useful for tasks like compiling. ```sh powerprofilesctl launch make ``` -------------------------------- ### Configure power actions Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Enable or disable specific power management actions using `powerprofilesctl configure-action`. ```sh powerprofilesctl configure-action --enable ``` ```sh powerprofilesctl configure-action --disable ``` -------------------------------- ### Enable battery-aware mode Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Re-enable dynamic power profile and action changes based on battery level and AC adapter status by running `powerprofilesctl configure-battery-aware --enable`. ```sh powerprofilesctl configure-battery-aware --enable ``` -------------------------------- ### Introspect D-Bus interface Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Examine the D-Bus interface for `org.freedesktop.UPower.PowerProfiles` using `gdbus introspect`. ```sh gdbus introspect --system --dest org.freedesktop.UPower.PowerProfiles \ --object-path /org/freedesktop/UPower/PowerProfiles ``` -------------------------------- ### Check current power profile Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md View the current and available power profiles using the `powerprofilesctl` command. ```sh powerprofilesctl ``` -------------------------------- ### Enable AMDGPU Dynamic Power Management Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Enables the Dynamic Power Management feature for the AMDGPU driver to force clocks to a lower state. ```shell powerprofilesctl configure-action amdgpu_dpm --enable ``` -------------------------------- ### Modify Power Profiles Daemon ExecStart Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Modifies the ExecStart line in a systemd drop-in file to block an action for the power-profiles-daemon. ```text [Service] ExecStart= ExecStart=/usr/libexec/power-profiles-daemon --block-action=FOO ``` -------------------------------- ### Set active profile via D-Bus Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Set the active power profile to 'power-saver' using the D-Bus `Set` method with `gdbus call`. ```sh gdbus call --system --dest org.freedesktop.UPower.PowerProfiles \ --object-path /org/freedesktop/UPower/PowerProfiles \ --method org.freedesktop.DBus.Properties.Set 'org.freedesktop.UPower.PowerProfiles' \ 'ActiveProfile' "<'power-saver'>" ``` -------------------------------- ### Set active power profile Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Change the active power profile to a desired setting, such as 'power-saver', using `powerprofilesctl set`. ```sh powerprofilesctl set power-saver ``` -------------------------------- ### Check Intel P-State Status Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Verifies if the Intel P-State driver is active on a system without platform profile support. ```shell $ cat /sys/firmware/acpi/platform_profile_choices cat: /sys/firmware/acpi/platform_profile_choices: No such file or directory $ cat /sys/devices/system/cpu/intel_pstate/status active ``` -------------------------------- ### Check Intel EPB Support Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Checks the Energy Performance Bias (EPB) value on a system with Intel P-State operation. ```shell $ cat /sys/devices/system/cpu/cpu0/power/energy_perf_bias 0 ``` -------------------------------- ### Check AMD P-State Status Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Verifies if the AMD P-State driver is active on a system without platform profile support. ```shell $ cat /sys/firmware/acpi/platform_profile_choices cat: /sys/firmware/acpi/platform_profile_choices: No such file or directory $ cat /sys/devices/system/cpu/amd_pstate/status active ``` -------------------------------- ### Restart Power Profiles Daemon Service Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Restarts the power-profiles-daemon service after making configuration changes. ```shell sudo systemctl try-restart power-profiles-daemon.service ``` -------------------------------- ### Enable AMD GPU Panel Power Saving Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Enables the dedicated hardware function for decreasing panel power consumption on AMD laptops. ```shell powerprofilesctl configure-action amdgpu_panel_power --enable ``` -------------------------------- ### Disable battery-aware mode Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Disable dynamic power profile and action changes based on battery level and AC adapter status by running `powerprofilesctl configure-battery-aware --disable`. ```sh powerprofilesctl configure-battery-aware --disable ``` -------------------------------- ### Edit Power Profiles Daemon Service Source: https://github.com/upower/power-profiles-daemon/blob/main/README.md Edits the systemd service file for the power-profiles-daemon to block specific actions or drivers. ```shell sudo systemctl edit power-profiles-daemon.service ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.