mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-09 04:48:08 +02:00
amdgpu: reduce panel_power_saving values
The loss of color fidelity in battery mode is too dramatic, especially with dark content (such as GNOME in dark mode or a dark background terminal).
This commit is contained in:
parent
2a36abda82
commit
940c262b74
2 changed files with 5 additions and 5 deletions
|
|
@ -149,10 +149,10 @@ ppd_action_amdgpu_panel_update_target (PpdActionAmdgpuPanelPower *self,
|
|||
if (self->on_battery) {
|
||||
switch (self->last_profile) {
|
||||
case PPD_PROFILE_POWER_SAVER:
|
||||
target = 4;
|
||||
target = 3;
|
||||
break;
|
||||
case PPD_PROFILE_BALANCED:
|
||||
target = 3;
|
||||
target = 1;
|
||||
break;
|
||||
case PPD_PROFILE_PERFORMANCE:
|
||||
target = 0;
|
||||
|
|
|
|||
|
|
@ -1318,11 +1318,11 @@ class Tests(dbusmock.DBusTestCase):
|
|||
|
||||
# verify balanced updated it
|
||||
self.set_dbus_property("ActiveProfile", GLib.Variant.new_string("balanced"))
|
||||
self.assert_sysfs_attr_eventually_is(edp, amdgpu_panel_power_savings, "3")
|
||||
self.assert_sysfs_attr_eventually_is(edp, amdgpu_panel_power_savings, "1")
|
||||
|
||||
# verify power saver updated it
|
||||
self.set_dbus_property("ActiveProfile", GLib.Variant.new_string("power-saver"))
|
||||
self.assert_sysfs_attr_eventually_is(edp, amdgpu_panel_power_savings, "4")
|
||||
self.assert_sysfs_attr_eventually_is(edp, amdgpu_panel_power_savings, "3")
|
||||
|
||||
# add another device that supports the feature
|
||||
edp2 = self.testbed.add_device(
|
||||
|
|
@ -1334,7 +1334,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
)
|
||||
|
||||
# verify power saver got updated for it
|
||||
self.assert_sysfs_attr_eventually_is(edp2, amdgpu_panel_power_savings, "4")
|
||||
self.assert_sysfs_attr_eventually_is(edp2, amdgpu_panel_power_savings, "3")
|
||||
|
||||
# add another device that supports the feature, but panel is disconnected
|
||||
edp3 = self.testbed.add_device(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue