summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2025-01-16Keyboard backlight handling improvements (#404)HEADmasterColomban Wendling1-78/+84
* gpm-kbd-backlight: Fix toggling backlight back on The static value was reset on every call rather than only initially, resulting in failure to restore the initial value when toggling it back on. * gpm-kbd-backlight: Persistently save user-set brightness Try and save the user-set brightness to be able to restore it on next restart. This is not perfect because we have complex interaction between settings which makes it not trivial, if at all possible, to save the value yet respect the dim settings. Here we try to save the value in a way that counteract battery dimming so that restoring the value yields expected results (e.g. a value saved on battery restores identical on battery again), but it cannot work when the value to save is larger than the dimmed maximum as at the moment the maximum value is 100%. It is however the best I could come up with working with the settings we currently have, and it's probably good enough at least as a starting point. It also switches from `master_percentage` to `brightness_percent` in the toggle code because the former is only initialized to the actual current brightness value once brightness changed at least once, while the former is properly initialized. It is otherwise quivalent for this feature, and less confusing as to when the value gets updated. * refactor: gpm-kbd-backlight: Remove some unnecessary temp variables * refactor: gpm-kbd-backlight: Move dimming logic to a helper function * gpm-kbd-backlight: Get rid of `master_percentage` Now the on-AC value changes following user input, the internal `master_percentage` was just plain confusing and actually make things a bit weird at times because it doesn't follow dynamic user choices. So just get rid of it, replacing it with the on-AC value. * gpm-kbd-backlight: Rationalize handling of battery-reduce setting Handling of a disabled battery-reduce setting was too aggressive, which could reduce in not setting backlight value in unrelated cases, including initial startup and resume, as well as some cases of IDLE handling. Now the user choices are better followed, the whole special-casing could probably be removed as the internal state should always reflect the reality, but keep the specific check not to do anything on AC plug/unplug when this is disabled just in case, although the historical reasons why it was actually problematic should be gone now.
2024-12-06ci: fix travis build failures caused by recent travis changeslukefromdc1-3/+14
2024-02-25release 1.28.1v1.28.1raveit653-2/+6
2024-02-25 Distribute Meson build systemraveit651-0/+15
2024-02-20release 1.28.0v1.28.0raveit653-2/+13
2024-02-20tx: disable hu translation temporarily which breaks CI buildingraveit651-1/+0
2024-02-20tx: sync with transifexraveit65234-754/+1231
2024-02-20Revert "release 1.28.0"raveit653-14/+3
This reverts commit 2375b244f98fc176036645adf7cb7e3992971b4ao Broken translations!
2024-02-20Revert "tx: sync with transifex"raveit65235-1232/+755
This reverts commit 7844d9d823459045b15d0569721c029dc6408307. Sadly broken translation broke the 1.28 release Travis build was failing
2024-02-20ci: use ubuntu jammy as dockerraveit651-1/+1
2024-02-20release 1.28.0raveit653-3/+14
2024-02-20tx: sync with transifexraveit65235-755/+1232
2023-11-06Remove compilation warning fix data type format errorzhuyaliang21-113/+133
2023-10-24Add meson build supportzhuyaliang12-0/+951
2023-10-17build.yml: Fix ci debian build failedzhuyaliang1-0/+2
2023-10-16replace deprecated gtk_image_menu_item_new_from_stockraveit651-1/+3
2023-10-16replace deprecated gtk_image_menu_itemraveit654-6/+49
2023-10-16Revert "test build"raveit651-2/+0
This reverts commit f9a53963f410c8967c0ff29f2d6dea7fff1a3356.
2023-10-16test buildzhuyaliang1-0/+2
2023-08-17inhibit: mark applet incompatable with waylandlukefromdc1-0/+1
*Depends on Xevent and DPMS x11 extension
2023-08-17Brightness: mark incompatable with waylandlukefromdc1-0/+1
*Depends on x11 and Xrandr to function *Wlroots replacement for Xrandr wlr-randr does not have brightness control yet
2023-05-01tx: drop backup config fileraveit651-16/+0
2022-11-05release 1.27.0v1.27.0mbkma2-1/+19
2022-10-30tx: sync with transifexmbkma234-28553/+30046
2022-10-29tx: update resourcembkma2-214/+221
2022-10-28tx: migrate config filembkma2-11/+28
2022-08-23Fix -Wmissing-prototypes warnings (#381)Robert Antoni Buj Gelonch2-6/+6
2022-03-21Show device model even if vendor is not availableDamien Thébault2-0/+6
2022-03-21Add gaming input logosDamien Thébault60-0/+3667
2022-03-21Add support for gaming inputsDamien Thébault2-0/+8
2022-03-18gpm-prefs: fix memory leakrbuj1-3/+1
In addition, it adds enumerations to access indexed arrays.
2022-03-18gpm-statistics: fix memory leakrbuj1-51/+115
In addition, it adds enumerations to access indexed arrays.
2022-03-18Fix implicit conversion changes signedness: 'gboolean' to 'guint'rbuj2-2/+2
2022-03-11gpm-backlight: unused function 'gpm_common_sum_scale'rbuj1-13/+0
2022-02-13ci: drop -Wunused-parameter compiler cflag from debian buildraveit651-1/+1
2022-01-01Fix build warnings about missing field initializerrbuj4-4/+4
2022-01-01build: show configure summary using a pretty formatrbuj1-13/+16
2021-12-11Use a blank line at mostrbuj11-14/+0
2021-08-04release 1.26.0v1.26.0raveit652-1/+23
2021-08-04tx: sync with transifexraveit65234-51892/+34871
2021-08-04travis-Ci: use libera.chat as notification serverraveit651-1/+1
2021-06-22tx: update resourceraveit651-251/+252
2021-06-22update copyright to 2021raveit6571-0/+71
2021-05-30travis-ci: use ubuntu focal as host systemraveit651-1/+1
fixes build issues with fedora:latest (f34) tag.
2021-04-25travis: disable travis builds for ubunturaveit651-1/+1
Sadly, there is a limit for free builds at docker.com See discussion https://github.com/orgs/mate-desktop/teams/core-team/discussions/25
2021-03-08travis: build with mate-common-1.24.2 from reposraveit651-11/+0
2021-02-23applets: Do not build the path to the menu filesrbuj2-8/+6
2021-02-22tx: temporarily disable build for ArchLinuxraveit651-1/+1
2021-02-22tx: use rolling tag for ubunturaveit651-1/+1
2021-02-04build: Use PACKAGE_URL variablerbuj4-5/+6