mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-06 10:18:07 +02:00
README.md: Add documentation to block driver or action loading
This commit is contained in:
parent
126f7d3a54
commit
9f9f7ca7ac
1 changed files with 28 additions and 0 deletions
28
README.md
28
README.md
|
|
@ -184,6 +184,34 @@ in one of two ways:
|
|||
still change values manually in sysfs but `power-profiles-daemon` will not
|
||||
change anything.
|
||||
|
||||
## Multiple driver and multiple action operations
|
||||
|
||||
Power-profiles daemon will load all supported drivers and actions by default.
|
||||
If you have a problem with a given driver or action, you can disable it by
|
||||
populating the `POWER_PROFILE_DAEMON_DRIVER_BLOCK` or `POWER_PROFILE_DAEMON_ACTION_BLOCK`
|
||||
environment variables with the name of the driver or action you want to disable
|
||||
in the environment that launches the daemon (such as the systemd unit file).
|
||||
|
||||
For example to edit the unit:
|
||||
|
||||
```sh
|
||||
sudo systemctl edit power-profiles-daemon.service
|
||||
```
|
||||
|
||||
Then add to the drop-in file:
|
||||
|
||||
```text
|
||||
[Service]
|
||||
Environment=POWER_PROFILE_DAEMON_DRIVER_BLOCK=xxx
|
||||
Environment=POWER_PROFILE_DAEMON_ACTION_BLOCK=yyy
|
||||
```
|
||||
|
||||
Then restart the service:
|
||||
|
||||
```sh
|
||||
sudo systemctl try-restart power-profiles-daemon.service
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
If you don't have hardware that can support the performance mode, or the degraded mode
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue