aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* dbus: Add power percentage and is dischargingpersonal/mariogrip/dbus-updatesMarius Gripsgard2023-09-181-0/+18
| | | | This exposes power percentage and is discharging to the dbus interface.
* Remove orphan osd-notify remnantsRobert Tari2023-09-091-4/+0
|
* src/service.c: Ignore RDA's opinion when on Lomiri. Assume local session for ↵Mike Gabriel2023-08-311-1/+8
| | | | | | | Lomiri. Relates to: https://github.com/ArcticaProject/librda/issues/8 Relates to: https://gitlab.com/ubports/development/core/packaging/ayatana-indicators/ayatana-indicator-power/-/issues/7#note_1535612053
* src/deviceinfo-flashlight.c: Add copyright header.Mike Gabriel2023-08-241-0/+19
| | | | Fixes https://github.com/AyatanaIndicators/ayatana-indicator-power/issues/82
* Do not show when in a remote sessionRobert Tari2023-08-101-5/+11
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-power/issues/13
* src/notifier.c: Do not access freed variableRobert Tari2023-08-041-2/+3
|
* src/service.c: stop special-casing Lomiri for level indicator typeRatchanan Srirattanamet2023-07-121-16/+2
| | | | | | | | | | | Since the change in level reporting from an action to menu attribute is a breaking change for Lomiri anyway, we might as well let Lomiri use .level indicator type. This reduces 1 special case for Lomiri, for which there is multiple throughout the codebase. We probably want to minimize this over time... Bug-UBports: https://gitlab.com/ubports/development/core/lomiri/-/issues/70
* src/service.c: also update devices section on phone profileRatchanan Srirattanamet2023-07-111-0/+1
| | | | | | | Since there's no longer an action to update the battery level, now the submenu itself has to also be updated on the phone. Bug-UBports: https://gitlab.com/ubports/development/core/lomiri/-/issues/70
* src/device.c: Don't show parentheses around time-remaining / battery charge ↵Mike Gabriel2023-06-081-6/+31
| | | | percentage values when in Lomiri.
* src: add support for getting flashlight paths through deviceinfoMuhammad2023-06-053-14/+56
| | | | Signed-off-by: Muhammad <muhammad23012009@hotmail.com>
* Do not use charge-aware icons in the menuRobert Tari2023-05-053-7/+56
|
* Use the device model name in the menuRobert Tari2023-05-055-14/+84
|
* src/service.c: Use level or progress IDO as neededRobert Tari2023-05-051-23/+28
|
* Whitespace fixRobert Tari2023-05-051-2/+2
|
* Show battery level for all devices (including bluetooth)Robert Tari2023-04-033-95/+145
| | | | fixes https://gitlab.com/ubports/development/core/packaging/ayatana-indicators/ayatana-indicator-bluetooth/-/issues/3
* src/service.c: Create a fake primary device icon on Lomiri if no device is ↵Robert Tari2023-02-171-0/+10
| | | | | | present fixes https://gitlab.com/ubports/development/core/packaging/ayatana-indicators/ayatana-indicator-power/-/issues/2
* Handle state changes for flashlight switchRobert Tari2023-02-122-3/+5
| | | | fixes https://gitlab.com/ubports/development/core/packaging/ayatana-indicators/ayatana-indicator-power/-/issues/5
* src/service.c: Fix auto brightness switchRobert Tari2022-11-131-3/+5
|
* Revert "Don't prioritize discharging items with no time estimate that have ↵Alfred Neumayer2022-11-121-8/+0
| | | | | | | | | | | | | | | more than 10% power remaining." As the battery in the Pixel 3a running 20.04 exposes itself without any time estimates, it gets hidden by the indicator unless below 10% of charge. The original commit message mentions low-power devices having no time estimates most probably due to lasting long, but (without an honest checkup of the upstream kernel sources) I doubt the kernel driver to distinguish between those capabilities in the power_supply properties, hence remove this artificial limit again. This reverts commit 522fdc6abbfee52dec5c6b0194cf87ffcc0f3dcd.
* src/service.c: Fix flashlight toggleRobert Tari2022-11-111-3/+5
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-power/issues/66
* Theming fix: Separate panel icons from the power menu iconsRobert Tari2022-11-104-18/+76
| | | | | | This fixes the broken theming issue where the Power Indicator menu shows the same icons as used by the panel, rather than the ones used elsewhere on the system. End result: makes any theme capable of becoming Ayatana-friendly without hacks
* src/service.c: Add tooltip support.Mike Gabriel2022-09-011-0/+2
|
* Add support for gaming-input devices with internal batteriesMartin Wimpress2022-04-052-0/+6
| | | | | | This pull requests add support for battery powered gaming-input devices. Tested with Razer Wolverine V2 Chroma and Scuf Instinct Pro. See: https://pad.lv/1967854
* Get Lomiri sounds path from lomiri-sounds pkg-configRobert Tari2022-02-231-4/+8
|
* Make Lomiri features configurable at build timeRobert Tari2022-02-182-7/+7
|
* Drop pkglibexecdir and use native CMake file configurationRobert Tari2022-02-141-1/+1
|
* Clean up compilation flagsRobert Tari2021-12-171-9/+0
|
* Check for lomiri-schemas package instead of individual filesRobert Tari2021-12-152-7/+7
|
* Drop Low battery.ogg and adapt code to use Lomiri soundsRobert Tari2021-11-221-1/+2
| | | | https://github.com/AyatanaIndicators/ayatana-indicator-power/issues/49
* src/service.c: Assign copyright to Robert Tari, not AyatanaIndicators project.Mike Gabriel2021-11-181-1/+1
|
* src/: Typo fix in license header.Mike Gabriel2021-11-183-5/+5
|
* Rename Lomiri-specific properties to x-lomiriRobert Tari2021-11-091-4/+4
|
* *_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS to HAS_LOMIRI_ACCTSERVICE_SOUNDRobert Tari2021-11-012-7/+7
|
* com.ubuntu.touch.AccountsService.Sound to com.lomiri.touch.AccountsService.SoundRobert Tari2021-11-011-2/+2
|
* Rename com.ubuntu.touch.system to com.lomiri.touch.systemRobert Tari2021-11-011-1/+3
|
* Rename x-canonical properties to x-ayatanaRobert Tari2021-10-261-4/+6
|
* src/device.c: Fix copyright headerRobert Tari2021-09-201-1/+1
|
* Drop all references to lomiri-url-dispatcherRobert Tari2021-08-282-9/+1
|
* Fix Lomiri power settingRobert Tari2021-08-281-12/+7
|
* Rename com.canonical.powerd -> com.lomiri.RepowerdRobert Tari2021-08-283-18/+18
|
* flashlight: Add support for PM8998 based SoCsJami Kettunen2021-08-281-5/+16
| | | | | | | | | These sysfs and switch paths are used on Qualcomm SoCs which contain a PM8998 PMIC block. This at the very least includes the Snapdragon 835 (MSM8998) and Snapdragon 845 (SDM845). This was tested as working on the OnePlus 5 (MSM8998) and OnePlus 6 (SDM845) smartphones.
* flashlight: Add support for simpler sysfs toggles (#34)Jami Kettunen2021-08-282-14/+65
| | | | | | | | | | Unlike the overcomplicated Qualcomm mess, there are also simpler sysfs toggles which you can just write 1/0 to when enabling/disabling the flash. This is used by the MediaTek flashlight_core driver on the Volla Phone (Helio P23 / MT6763) for example, which this also adds support for. Pinephone also uses a simple sysfs toggle for flashlight.
* Pull in many fixes from the bionic branch. (#7)Rodney2021-08-282-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Pay attention to $SNAP prefix * Releasing 12.10.6+17.04.20161201-0ubuntu1 * give sorting priority to devices with power supplies * Releasing 12.10.6+17.04.20170116-0ubuntu1 * Remove old autostart files. * Use gmock module from cmake-extras. * Use coverage support from cmake-extras. * Add gcovr and lcov dependencies. * Use intltool support from cmake-extras. * Remove usage of extra GCOV variables. * Remove hard-coded -g compiler flag. * Releasing 12.10.6+17.04.20170210-0ubuntu1 * no change rebuild * Releasing 12.10.6+17.04.20170322-0ubuntu1 * Start indicator in systemd when indicators.target is started * Build for bionic * This is still xenial. * Update translations from launchpad too.
* fix cmake warning of the test apps' dependency on the service libraryCharles Kerr2021-08-282-6/+1
|
* remove dead codeCharles Kerr2021-08-281-0/+2
|
* for low power notifications, use libnotify's 'sound-file' property instead ↵Charles Kerr2021-08-288-450/+20
| | | | of indicator-power calling the sound player directly
* demote a spurious warning to a debug messageCharles Kerr2021-08-281-1/+1
|
* don't disable the warning sound when AccountServices is completely unavailableCharles Kerr2021-08-281-3/+10
|
* move sound-player-mock into the tests/ directoryCharles Kerr2021-08-283-171/+1
|
* fix copy-paste typoCharles Kerr2021-08-281-1/+1
|