PowerDevil merge requestshttps://invent.kde.org/plasma/powerdevil/-/merge_requests2020-10-09T02:52:40Zhttps://invent.kde.org/plasma/powerdevil/-/merge_requests/26Honor animation brightness threshold also for sysfs helper2020-10-09T02:52:40ZKai Uwe BroulikHonor animation brightness threshold also for sysfs helperWe should only animate the screen brightness if there are enough steps available
to make for a smooth transition. This check was forgotten for the new sysfs
brightness animation.
BUG: 426883
FIXED-IN: 5.20.0
---
Animation unchanged on ...We should only animate the screen brightness if there are enough steps available
to make for a smooth transition. This check was forgotten for the new sysfs
brightness animation.
BUG: 426883
FIXED-IN: 5.20.0
---
Animation unchanged on my machine, changed
To simulate added the following into `~/.config/powerdevilrc`:
```
[Brightness]
brightnessAnimationThreshold=5000
```
Brightness wasnt animated anymore
The default threshold is 100, so should fix the bug reporter's machine where there are only 15 setps.
I'd like a respin for 5.20 powerdevil, please, sorry.
@ngraham @davidedmundson @jriddell5.20https://invent.kde.org/plasma/powerdevil/-/merge_requests/22Use charge_control_*_threshold instead of charge_*_threshold2021-12-06T17:53:26ZIan ScottUse charge_control_*_threshold instead of charge_*_thresholdThis is now documented as the standard Linux kernel API for charging
thresholds:
https://github.com/torvalds/linux/blob/master/Documentation/ABI/testing/sysfs-class-power
This was added to the `thinkpad_acpi` driver in
https://github.co...This is now documented as the standard Linux kernel API for charging
thresholds:
https://github.com/torvalds/linux/blob/master/Documentation/ABI/testing/sysfs-class-power
This was added to the `thinkpad_acpi` driver in
https://github.com/torvalds/linux/commit/e33929537b76486d2ed576a0d9ce3ebff51bf851
This will break the feature on Thinkpads with a kernel older than that,
but will also work with other drivers that support charging thresholds.5.20Kai Uwe BroulikKai Uwe Broulikhttps://invent.kde.org/plasma/powerdevil/-/merge_requests/13[core] introduce the method to wake system up2020-08-13T13:34:16ZBhushan Shah[core] introduce the method to wake system upWhen using aggressive power management on devices like mobile or laptop
devices, There's generally one objective, saving as much as power as
possible. To do this on some devices we keep system in deep
sleep/suspend for most of the time.
...When using aggressive power management on devices like mobile or laptop
devices, There's generally one objective, saving as much as power as
possible. To do this on some devices we keep system in deep
sleep/suspend for most of the time.
This means userspace will be frozen as well. For most part this is fine,
but for services like push notification helper, or update manager or for
example alarm application, this is not acceptable and it would mean that
we need to wake system at some point.
This helpers on org.kde.Solid.PowerManagement are supposed to help with
that.
You have two possibilities,
- Wake system instantly: this is useful when screen is turned off, but
device is not in sleep, and you want to show e.g notifications on
screen.
- Wake system in future: You want to schedule alarm or for example
wakeup 15 mins later to check for notifications.
Once system is awake, powerdevil will ping dbus service of your choice
and call the method "wakeup", if you send a dbus reply with true with
first argument, powerdevil will simulate user activity and wake system
fully or otherwise it will let you do your work in background and will
not disturb user.
Related: #25.20https://invent.kde.org/plasma/powerdevil/-/merge_requests/10[dpms action] introduce option to lock screen before turning off2020-07-29T12:06:46ZBhushan Shah[dpms action] introduce option to lock screen before turning offThis is useful for mobile devices where you want to simply turn screen
off instead of suspending it and also lock screen.
I currently have not exposed this option in the user interface as I am not sure what could be good user interac...This is useful for mobile devices where you want to simply turn screen
off instead of suspending it and also lock screen.
I currently have not exposed this option in the user interface as I am not sure what could be good user interaction for this?
CC: @teams/vdg
Related : plasma/powerdevil#25.20https://invent.kde.org/plasma/powerdevil/-/merge_requests/9[mobile] various adjustments related to power management2023-04-11T18:18:03ZBhushan Shah[mobile] various adjustments related to power managementIn 57ba878cdd61b7ed79fb6591ce1c617ea1d5e2d5 we changed the profile generator to use Suspend to RAM by default. This change while worked fine for one device, it did not work out for other devices. Case study of 3 different devices,
- Pin...In 57ba878cdd61b7ed79fb6591ce1c617ea1d5e2d5 we changed the profile generator to use Suspend to RAM by default. This change while worked fine for one device, it did not work out for other devices. Case study of 3 different devices,
- Pinephone, currently is preferred to use the suspend using crust-firmware
- Librem 5, is preferred to use the runtime power management rather than full suspend
- Halium, is preferred to use the runtime power management
For all of 3 common bit of action is to turn the screen off
So changes I made are,
- by default use the power key to turn screen on-off
- adjust timeout for turning screen off to 1 minute instead of 10
- adjust timeout for various actions to be more conservative on mobile
Related : plasma/powerdevil#25.20https://invent.kde.org/plasma/powerdevil/-/merge_requests/7Play sound when plugged in2020-06-29T10:50:30ZNate GrahamPlay sound when plugged inA sound is already set, but it's not on by default. Let's turn it on.
We already play a sound when unplugged, so doing the same when plugging
back in kind of makes it symmetrical. Also I find the sound here to be
quite pleasant.
Closes...A sound is already set, but it's not on by default. Let's turn it on.
We already play a sound when unplugged, so doing the same when plugging
back in kind of makes it symmetrical. Also I find the sound here to be
quite pleasant.
Closes #1
cc @teams/vdg5.20https://invent.kde.org/plasma/powerdevil/-/merge_requests/5Add setting for charge threshold2023-09-25T18:23:23ZKai Uwe BroulikAdd setting for charge thresholdOn supported hardware, when using the device mostly on line power, this allows to stop charging
the battery when it reaches a certain level as to not leave the battery fully charge for extended
periods of time. It also allows to config...On supported hardware, when using the device mostly on line power, this allows to stop charging
the battery when it reaches a certain level as to not leave the battery fully charge for extended
periods of time. It also allows to configure below which level the battery will then be charged again.
Unfortunately, UPower doesn't seem to be aware of this, so the device will just sit around the
configured percentage, still claiming "charging".
The battery stop charging threshold is exposed on DBus so a hint coul be displayed in Battery
monitor when a limit is configured.
![Screenshot_20200528_121138](/uploads/c9e3f67f721691de6b7f57e4f86892ca/Screenshot_20200528_121138.png)
Only tested on my Thinkpad so far.
BUG: 417464
FIXED-IN: 5.205.20https://invent.kde.org/plasma/powerdevil/-/merge_requests/2Implement smooth brightness change for sysfs / backlight helper2020-06-02T17:14:11ZKai Uwe BroulikImplement smooth brightness change for sysfs / backlight helperHas the helper do QVariantAnimation and has PowerDevil ignore any brightness
change events with a stupid QTimer.
I tried making the Auth action wait until the animation was done with a
QEventLoop but then KAuth would reject any other act...Has the helper do QVariantAnimation and has PowerDevil ignore any brightness
change events with a stupid QTimer.
I tried making the Auth action wait until the animation was done with a
QEventLoop but then KAuth would reject any other actions until it was done...5.20