| Age | Commit message (Collapse) | Author | Files | Lines |
|
* wayland: small fixes
* fix double-free removing Wayland idle notify
|
|
On systems that symlink /usr/sbin to /usr/bin, pkexec resolves the
mate-power-backlight-helper path canonically to /usr/bin but the polkit
annotation references /usr/sbin. This causes pkexec to require
authentication every time the brightness is changed.
This moves mate-power-backlight-helper to libexecdir and update the
polkit policy annotation and command call accordingly.
Fixes #411
|
|
After porting the indicator to SNI, the power icon rendered blank in the
notification area. The SNI host resolves icon names in its own process,
but our status icons are stored in the application's private icon theme
directory, so the host could never find them.
This fix points the indicator at the directory that contains our icon
theme so the notification area can resolve the battery icons again.
|
|
Adding Wayland support made ayatana-appindicator3 a hard requirement,
which breaks on systems without it (the previous tray icon is still
perfectly usable there).
This makes it optional and auto-detected at configure time, falling back
to the tray icon when the ayatana is unavailable.
Also make sure Wayland auto-detection only gets enables when every
Wayland dependency is actually present, instead of leaking the build
flag when an optional dependency is missing.
Fixes #432
|
|
* Preparations for Wayland backend
* Use system wayland-protocols
* Implement wlr-output-power-management
* Small refactors
* Small fixes
* Add vendored wlr protocol, build fixes
* Fix crash in mate-osd-window
* Port power manager indicator to SNI
* Fix appindicator init
* Positioning brightness applet's popup with gtk-layer-shell
Original-patch-by: @lukefromdc
* Add gtk-layer-shell dep
|
|
The notification spec only supports a handful of tags and <br> is not
one of them.
Fixes #272
|
|
|
|
pick it up
|
|
|
|
|
|
|
|
Also save brightness config changes when running on battery.
To do that, calculate backlight dim factor and ac brightness factor from
master percentage value so that ac factor is only changed if brightness
is further increased when battery dim factor is already zero.
This behaviour seems less random to me than only saving changes when
running on AC.
|
|
Add power manager switch to completely disable keyboard backlight
brightness control by GPM. This goes together with reverting the patch
that allows to disable keyboard backlight control via
kbd-backlight-battery-reduce.
|
|
This improves the fix for backlight toggling from "Keyboard backlight
handling improvements".
Now saved_brightness is initilized to 0 and only gets set to current
brightness when "toggling off" - which is the only place where setting
saved_brightness to current brightness makes any sense, logically. In
all other cases it's not needed.
I adapted the code that would crank up the brightness to 100 if we
"toggle on" to 0 although the "arbitrary" special handling introduced
by that is what I personally would consider broken.
|
|
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In addition, it adds enumerations to access indexed arrays.
|
|
In addition, it adds enumerations to access indexed arrays.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit 1db4b409322e559a3d3a03677dd482a0613f3b29.
|
|
fix indentation in some files
|
|
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 's/[[:space:]]*$//' {} \;
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 's/\t*$//' {} \;
|
|
|
|
|
|
|
|
Automatically change keyboard back-light only when enabled on battery. Keep
previous brightness level between state change.
Signed-off-by: Andrej Valek <[email protected]>
|
|
Debug message is modified to something identifiable
|
|
|
|
|
|
|
|
|
|
|
|
|