Commit graph

5 commits

Author SHA1 Message Date
Dylan Van Assche
23ee2f2dd3
temp/upower: drop torch patches (MR 2429)
With Phosh 0.13.0, Logind is used without patches for the torch
as UPower doesn't want to handle this. Therefore, we can drop
the torch patches to UPower.

[ci:skip-build] already built successfully in CI
2021-08-17 22:39:17 -07:00
Pablo Correa Gómez
5d47add5f1
temp/upower: sync icon and warn for low battery level (MR 2255)
Commits cfb5d41b and ead17254 updated the default battery levels for
warnings and actions in the pinephone and the pinetab. Since then,
the chances of the phone dying for lack of battery power have completely
dissapeared. However, the battery icon in phosh was never updated to show
a "caution" battery level. The value was hardcoded and ignored the setting
in the config file. This commit fixes that issue
2021-06-26 22:33:53 +03:00
Clayton Craft
184bc634e6
temp/upower: fix led detection on the librem5 (MR 1986)
The previous implementation of this caused upower to select a thing
called 'flash_strobe' in the L5, which doesn't operate like a
flashlight. This changes the detection logic to look at the suffix, on
the pinephone the device ends in ':flash', and on the L5 it ends in
':torch'.

fixed #967
2021-03-02 11:34:45 +03:00
Clayton Craft
81e374c3c6
temp/upower: add patch for supporting usb chargers (MR 1986)
This patch is in purism's fork and it removes messages like this when
starting upower on the librem5 by properly detecting/setting the type:

    TI:15:11:12     did not recognise USB path /sys/devices/platform/soc@0/30800000.bus/30a20000.i2c/i2c-0/0-003f/power_supply/tps6598x-source-psy-0-003f, please report
    ...
    TI:15:11:12     did not recognise USB path /sys/devices/platform/soc@0/30800000.bus/30a50000.i2c/i2c-3/3-006a/power_supply/bq25890-charger, please report
2021-03-02 11:34:42 +03:00
Oliver Smith
80fec94eb8
temp/upower: fork from alpine to apply torch patch (MR 1623)
Required to make the torch button work in Phosh.

[ci:skip-build]: already built successfully in CI
2020-10-23 08:20:11 +02:00