Commit graph

16 commits

Author SHA1 Message Date
Marco Trevisan (Treviño)
9531da36d5 docs: Update authors and copyright information 2024-02-15 21:40:07 +01:00
Mario Limonciello
41ed5d33a8 Add support for a amdgpu panel power savings action
This activates the DRM connector attribute `panel_power_savings`
which takes a range from 0 to 4 to indicate how aggresively to enable
panel power savings.

Link: https://lore.kernel.org/amd-gfx/0b94b25a-9ffa-41a5-b931-ad84e1892d36@amd.com/T/#m079d7c357626cf3a80cd9ba6239b3fe4fcf8937e
2024-02-13 23:20:42 +00:00
Marco Trevisan (Treviño)
3b29b0e52b cleanup: Use UPower namespace as default DBus name preserving old one
Expose the daemon as 'org.freedesktop.UPower.PowerProfiles' by default
but we also own the old 'net.hadess.PowerProfiles' name for
compatibility resons.

Also dbus objects are now registered also in the path
/org/freedesktop/UPower/PowerProfiles and they implement the
org.freedesktop.UPower.PowerProfiles interface.

Even in this case we preserve the compatibility with the old ones.

To make this switch as most reliable as possible, the code is now
generated for dbus configuration files preserving the previous ones as
base.

Tests are now performed checking both names, to ensure again that we're
not breaking the expectations for the old APIs consumers.
2024-02-13 20:44:29 +00:00
Marco Trevisan (Treviño)
53115abf35 build: Bump meson requirement to 0.58
It's still quite old, but provides some features we may want to use in
future, so let's use a newer version since we're about to release a new
major version of p-p-d too.
2024-02-13 20:44:29 +00:00
Marco Trevisan (Treviño)
143e35da0c docs: Handle warnings for unknown definitions 2024-02-13 20:36:09 +00:00
Mario Limonciello
61f7650e35 Allow both CPU and platform drivers to be simultaneously active
This is done by designating all drivers as CPU drivers or platform drivers.
One of each driver can be active at any given time.

When setting an active profile CPU driver is set first as this is less likely to have
failures. If failures occur setting the platform driver then the CPU driver is undone.

If both profiles are degraded then the string for the reason from both drivers will be
comma separated to be compatible with existing API and users.

This is leveraged from https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/merge_requests/123

Fixes: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/issues/107
Fixes: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/issues/125
Fixes: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/issues/124
Fixes: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/issues/122
Fixes: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/issues/129
Fixes: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/issues/131
2024-01-15 06:17:42 +00:00
Mario Limonciello
e1813f29a9 docs: Remove references to files that don't exist 2024-01-15 06:17:42 +00:00
Prajna Sariputra
db60051aea main: Add amd_pstate-based driver
The AMD P-states driver has added support for active mode in kernel 6.3,
which exposes a similar interface for controlling energy performance
preference as the Intel P-state driver, with the same presets present,
so make use of it.

See:
https://www.kernel.org/doc/html/v6.3/admin-guide/pm/amd-pstate.html

Closes: #108
2023-04-26 14:23:18 +02:00
Bastien Nocera
9ff59f0d1e placeholder: Ignore placeholder driver in the docs
Fixes a gtk-doc warning.
2021-07-05 10:59:56 +02:00
Bastien Nocera
334e64ea64 main: Add PpdProfileActivationReason enum 2021-03-19 14:22:16 +01:00
Bastien Nocera
86d087fb30 main: Namespace ProbeResult
And add PpdProbeResult to the API documentation.
2021-03-15 14:00:53 +01:00
Bastien Nocera
ec1188d347 lenovo-dytc: Rename to platform-profile
As the only Lenovo DYTC specific interface is now optional, rename the
driver.
2021-02-08 16:01:18 +01:00
Bastien Nocera
8b6e766e94 docs: Don't document the internal Intel P-State driver 2020-09-04 16:19:53 +02:00
Bastien Nocera
72b5c548ea docs: Build internal API documentation 2020-09-04 15:57:12 +02:00
Bastien Nocera
2be3f651cd docs: Fix copyright year 2020-07-24 11:23:44 +02:00
Bastien Nocera
4ea7c96949 power-profiles-daemon 2020-07-10 17:29:23 +02:00