Bastien Nocera
5ccd4fe959
lib: Add UP_DEVICE_KIND_GAMING_INPUT for gaming devices
...
Joypads, joysticks, dance mats, paddles, Wiimotes, steering wheels,
tractor cabin simulators, pedals, yokes, breathing controllers, and,
hmm, etc.
https://bugs.freedesktop.org/show_bug.cgi?id=102493
2017-08-31 16:21:18 +02:00
Bastien Nocera
eb6b1b62a2
lib: Simplify string checks
...
We don't need to protect against NULL values, we already do at the start
of the function.
Created with:
:%s,g_strcmp0\(.*\) == 0,g_str_equal \1,
Mentioned in:
https://bugs.freedesktop.org/show_bug.cgi?id=100359#c14
2017-04-10 10:37:32 +02:00
Bastien Nocera
4f9230900b
lib: Add more members to UpDeviceLevel struct
...
Those levels will not be used to cover warning levels, but approximate
battery levels that devices can use, exported by the kernel as
POWER_SUPPLY_CAPACITY_LEVEL_* values.
See linux/power_supply.h
https://bugs.freedesktop.org/show_bug.cgi?id=100359
2017-04-06 14:18:10 +02:00
Bastien Nocera
b446cac8f6
daemon: Add new WarningLevel "Discharging"
...
When UPSes are discharging, we should have a warning already, as
it means that mains power has been lost to the UPS (though not
to the computer).
2013-10-14 14:38:32 +02:00
Bastien Nocera
5423adab89
lib: Add UpDeviceLevel enum
2013-10-14 10:42:56 +02:00
Bastien Nocera
d10cc97cbb
Remove QoS interface
...
It was added for some workloads, but ill-suited and never really
got traction. Using cgroups to manage the resources of particular
services (using systemd), or something separate like rtkit is
a better bet.
2013-10-14 10:42:55 +02:00
Bastien Nocera
030e2c9d36
lib: Remove deprecated features
...
All this is now handled by logind.
2013-10-14 10:42:55 +02:00
Bastien Nocera
f926ee488f
lib: Simplify _to_string() calls
2013-10-14 10:36:13 +02:00
Richard Hughes
0fd304c3f3
Add new NotifySleep() and NotifyResume() signals that include the sleep type
...
This allows session power managers to do different actions depending on whether the user
is suspending or hibernating. This allows the session policy agent to poke other things
(for instance, the screensaver) even if another process initiated the sleep.
This is based on a patch from Phillip Susi <psusi@cfl.rr.com>, many thanks.
2011-05-04 17:57:13 +01:00
Richard Hughes
34add0cfe2
Add UP_DEVICE_KIND_COMPUTER as we'll need UP_DEVICE_KIND_TABLET for wacom tablets
2010-06-01 14:25:10 +01:00
Richard Hughes
0ece8dea46
Add media-player and tablet device kinds
2010-05-28 11:45:44 +01:00
Richard Hughes
acfe9c3089
Update the Free Software Foundation address
2010-01-27 16:27:15 +00:00
Richard Hughes
21012c7d2e
trivial: add some more gtk-doc markup to the new objects
2010-01-26 11:59:09 +00:00
Richard Hughes
af56b08795
trivial: Add some useful GObjects for client and server use
2010-01-26 11:39:14 +00:00
Richard Hughes
5e8ba54573
trivial: rename the new libupower 'type' to 'kind' to avoid clashing with GObject generated names
2010-01-26 10:53:04 +00:00
Richard Hughes
27fada20be
trivial: add some gtk-doc markup into libupower-glib and hook it up to the build system
2010-01-25 16:54:17 +00:00
Richard Hughes
0a2b06f298
Add libupower so applications can switch away from devkit-power-gobject
2010-01-25 15:20:09 +00:00