| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
The times beside the charging and discharging states are ambiguous,
adding "until full" and "remaining" to be more clear.
Closes: #128
|
| |
|
|
|
|
|
|
| |
xfpm-power-common.c:100:1: error: no previous prototype for 'xfpm_battery_get_icon_index' [-Werror=missing-prototypes]
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
|
|
|
|
| |
Due to usage of powf, -lm must be used.
Fixes commit c866cf9faec6333e60f6b55a56b92ec9494747f3
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
xfpm-power-common.c: In function 'get_device_icon_name':
xfpm-power-common.c:257:52: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
257 | icon_name = g_strdup_printf (is_panel ? "%s-%s", XFPM_AC_ADAPTER_ICON, "-symbolic" : "%s", XFPM_AC_ADAPTER_ICON);
| ^
xfpm-power-common.c:257:74: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
257 | icon_name = g_strdup_printf (is_panel ? "%s-%s", XFPM_AC_ADAPTER_ICON, "-symbolic" : "%s", XFPM_AC_ADAPTER_ICON);
| ^
xfpm-power-common.c:269:52: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
269 | icon_name = g_strdup_printf (is_panel ? "%s-%s", XFPM_AC_ADAPTER_ICON, "-symbolic" : "%s", XFPM_AC_ADAPTER_ICON);
| ^
xfpm-power-common.c:269:74: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
269 | icon_name = g_strdup_printf (is_panel ? "%s-%s", XFPM_AC_ADAPTER_ICON, "-symbolic" : "%s", XFPM_AC_ADAPTER_ICON);
Fixes commit b6d6bf8b55ecce11d0c00b1267ce03fe9b9df44e
Fixes #103
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Previously we relied entirely on UPower, now we also check if the icons
used by Gnome are available (battery-level-*).
|
| |
|
| |
|
|
|
|
| |
Co-author: Maurizio Galli <maurizio.galli@gmail.com>
|
|
|
|
|
|
|
|
|
| |
This commit introduces two new options:
1) Configuring the amount of brightness steps
2) Whether to distribute the steps in a linear or exponential way
Both options are presented in the settings dialog and affect the
brightness keys and the panel plugin.
|
| |
|
| |
|
| |
|
|
|
|
| |
Also strip leading/trailing whitespace from vendor and model.
|
| |
|
| |
|
| |
|
|
|
|
| |
Some are related to Gtk3.22, some are simply compiler warnings.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unfortunately UPower does not differentiate between desktop and laptop
systems so we decide that it's a desktop if it:
* is not a UPS
* does not have a battery
* does not have a lid
In this case we show the "ac-adapter" icon for the systray and the
"ac-adapter-symbolic" icon for the Xfce Panel Plugin.
Before the "battery-missing" icon was shown, which is what UPower
reports for the display device.
|
|
|
|
|
| |
- Fix the DPMS detection by adding correct lib/cflags on Xext AC_CHECK_LIB, so -lXext is correctly added on link time (taken from xfwm4)
- Also uses XDT_CHECK_LIBX11_REQUIRE to detect X11
|
|
|
|
|
| |
with gdk_x11_screen_get_screen_number. Also lots of
trailing whitespace got removed.
|
|
|
|
|
|
|
|
|
|
| |
Move the screensaver inhibit, heartbeat, and lock code to its own
set of files we can easily share with xfce4-session. Use the
screensaver's dbus API if it supports it for inhibit and lock
calls. Otherwise, use the heartbeat-command and LockCommand
from xfpm and xfsm if available. Finally, for the lock function,
fallback to trying xdg-screensaver, xflock4, and xscreensaver-command
in that order.
|
|
|
|
|
|
|
|
|
| |
During session shutdown we were in a situation with a NULL model
which was crashing a crash. Set these to an empty string so xfpm
properly handles it.
Reported and fixed by Jaroslav Škarvada.
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Instead of using XTestFakeKeyEvent, attempt to contact whatever
screensaver is running via its dbus interface. Failing that,
a /xfce4-power-manager/heartbeat-command xfconf property will be
executed every 30 seconds to keep the screensaver from
launching. This way xscreensaver, xdg-screensaver, caffeine or
a similar tool can be used.
|
|
|
|
|
| |
This brings back the about dialog for the panel plugin and updates
it for the newer stuff required by GTK3.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The property /xfce4-power-manager/show-panel-label has to be added to the channel
xfce4-power-manager as INT. Then you can set the value from 0 to 3, where
0: hides the label
1: shows the percentage
2: shows the remaining time and
3: shows time and percentage.
The format is not configurable for now and the label is hidden when UPower reports
the status of the display device as "fully charged".
|
|
|
|
| |
I assume this is for devices UPower doesn't know anything about?
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Before it was forcing the icon to a smaller size. Also switch to
notify_notification_set_image_from_pixbuf since the other method
is deprecated.
|
| |
|
|
|
|
|
|
| |
ConsoleKit2 implements the suspend/hibernate DBUS API. This patch
uses it if ConsoleKit2 is running and reports the system as capable
of suspend or hibernate.
|
|
|
|
| |
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
|
|
|
|
|
| |
Backlight brightness control via xrandr API is not limited to LVDS displays
but also available when the display is connected by Embedded Display Port (eDP).
Signed-off-by: Harald Judt <h.judt@gmx.at>
|
|
|
|
|
|
|
|
|
|
|
| |
If the device is unknown to the kernel (maybe no-name stuff or
whatever), then vendor and model will have a hex ID of 31
characters each. We do not want to show them, they are neither
useful nor human-readable, so translate and use the device
type instead of the hex IDs.
This fixes the negative side-effect that the settings window
width is too large.
|
|
|
|
|
| |
The old code didn't check all UP_DEVICE states, e.g. UNKNOWN was
missing, resulting in no icon being shown.
|
|
|
|
|
| |
We don't do CPU frequency management anymore, remove the lingering
code.
|
|
|
|
|
|
|
| |
Draw the progressbar indicating the load-status of the devices
with cairo, eradicating the need for an icon per load-status.
TODO: Add the same drawing routine for the devices tab in the
settings manager.
|
|
|
|
|
|
|
| |
Switch to using pkexec instead of the sudo helper. This allows
users to use things such as fingerprint readers and other auth
methods to verify credentials. A default polkit rule is shipped
in this patch as well in the org.xfce.power.policy.
|
|
|
|
|
| |
Also rearrange the items to better reflect the layout in settings dialog.
It's easier to find one's way around that way.
|
|
|
|
| |
If it's used by all components, that's the place it should be.
|
|
|
|
|
| |
This adds the necessary utility functions to read and write the kernel
brightness switch setting.
|
|
|
|
|
|
| |
When the user selects a device in the battery plugin, the xfpm
settings dialog is activated, the devices tab is brought to focus,
and the device is selected with the details shown.
|
| |
|