Age | Commit message (Collapse) | Author | Files | Lines |
|
To be used by all polling backends. This changes the defaults
to poll every 120 seconds when a warning level isn't reached, and
switch automatically to 30 seconds poll when the battery level is low.
|
|
This allows desktop front-ends to get which action will
actually be taken when we hit critical battery.
This is not a property as availability of actions might
change over the course of the run of the system, and
we didn't want to make unnecessary D-Bus calls on startup.
|
|
And export a DisplayDevice object which can be used by desktop
shells to show/hide the status icon.
|
|
up_daemon_get_on_battery() and up_daemon_get_warning_level()
weren't defined or used anywhere.
|
|
Instead of sending one changed signal at a time, coalesce them
together to reduce wakeups.
We also export up_daemon_emit_properties_changed() for UpDevice
to use.
|
|
There's no reason why the state check should be done in the UpDevice
implementation, and the state will be needed to add a new warning
level for UPSes.
|
|
Imported from gnome-settings-daemon, itself from
gnome-power-manager.
|
|
With "warning-level" property.
|
|
|
|
|
|
This reverts commit eddcf0ef3d0b8445618e368328d7e110a83b69b3.
We don't need the --test option any more now that we always run tests on a
(fake) system D-BUS.
|
|
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.
|
|
Add a daemon option --test which will run upowerd on the session bus. This
allows us to run tests without interfering with the system instance. This also
avoids any root privileges entirely, which permits running integration tests as
part of a package build.
|
|
We still need to add the DMI quirks, but I'm waiting for the
community to supply them now.
|
|
|
|
|
|
Add two D-Bus server methods to check whether the caller has the privilege to
suspend or hibernate.
This enables us to check for PK privileges in UpClient's
can_{suspend,hibernate} properties, so that clients like gnome-session or
gnome-power-manager hide the suspend/hibernate related actions if the admin or
OEM disabled suspend/hibernate through a PolicyKit .pkla file.
https://bugs.freedesktop.org/show_bug.cgi?id=26473
|
|
suspend and the resume event
Based on an idea from Matthew Garrett and Lennart Poettering
|
|
Port from devkit-power-gobject/up-enum.h to libupower-glib/up-types.h
|
|
GObject generated names
|
|
|
|
|
|
ABI changes
|