summaryrefslogtreecommitdiff
path: root/src/up-daemon.h
AgeCommit message (Collapse)AuthorFilesLines
2014-11-26daemon: release resources at shutdownPeter Wu1-0/+1
This makes it easier to find real memory leaks with valgrind. After calling the up_backend_unplug functions, you cannot restart it with up_backend_coldplug since the lists are cleared. Tested with Linux only (not on *BSD; dummy compiles). https://bugs.freedesktop.org/show_bug.cgi?id=82659
2014-07-14Remove polkit dependencyEric Koegel1-1/+0
With the removal of the suspend/hibernate code, there's no longer a need for upower to depend on polkit. This patch removes the old polkit code. Signed-off-by: Richard Hughes <richard@hughsie.com>
2014-05-07daemon: Deprecate "IsDocked" propertyBastien Nocera1-2/+0
The IsDocked property has been incorrect for a number of laptops for a while, as it thought that laptops with hybrid graphics cards were always docked. The alternative would have been to use the platform/dock_station devices, but those are only exported for ACPI docking stations. Instead, whether an external display is attached (which isn't really docking) should be checked in the same place where the policy depending on the value should be applied, such as gnome-settings-daemon. https://bugs.freedesktop.org/show_bug.cgi?id=36818
2013-10-28daemon: Add poll helper functionsBastien Nocera1-0/+4
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.
2013-10-17all: Add GetCriticalAction daemon methodBastien Nocera1-0/+2
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.
2013-10-16daemon: Add GetDisplayDevice methodBastien Nocera1-0/+2
And export a DisplayDevice object which can be used by desktop shells to show/hide the status icon.
2013-10-16daemon: Remove 2 undefined functions from headersBastien Nocera1-4/+0
up_daemon_get_on_battery() and up_daemon_get_warning_level() weren't defined or used anywhere.
2013-10-15daemon: Coalesce PropertiesChanged signals togetherBastien Nocera1-1/+4
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.
2013-10-14daemon: Move all computations of warning level to daemonBastien Nocera1-0/+1
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.
2013-10-14daemon: Add small hack for keyboards and miceBastien Nocera1-0/+1
Imported from gnome-settings-daemon, itself from gnome-power-manager.
2013-10-14daemon: Replace "on-low-battery" propertyBastien Nocera1-3/+3
With "warning-level" property.
2013-10-14daemon: Add WarningLevel device propertyBastien Nocera1-0/+5
2013-10-14daemon: Remove obsolete featuresBastien Nocera1-19/+0
2013-02-20Revert "Add option to run daemon on the session bus for testing"Martin Pitt1-2/+0
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.
2011-05-04Add new NotifySleep() and NotifyResume() signals that include the sleep typeRichard Hughes1-0/+1
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-04-26Add option to run daemon on the session bus for testingMartin Pitt1-0/+2
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.
2011-02-02Add a LidForceSleep property to ensure that we don't melt any laptopsRichard Hughes1-0/+2
We still need to add the DMI quirks, but I'm waiting for the community to supply them now.
2011-01-04Add an IsDocked binary property to the main interfaceRichard Hughes1-0/+2
2010-04-19Provide UpDaemon with C setters rather than relying on GObject propertiesRichard Hughes1-0/+8
2010-02-09Add {Suspend,Hibernate}Allowed D-Bus methodsMartin Pitt1-0/+4
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
2010-02-08Add a new method and two new signals to inform userspace of the pending ↵Richard Hughes1-0/+2
suspend and the resume event Based on an idea from Matthew Garrett and Lennart Poettering
2010-02-06devkit-power-gobject/up-enum.h be goneMichael Biebl1-1/+1
Port from devkit-power-gobject/up-enum.h to libupower-glib/up-types.h
2010-01-26trivial: rename the new libupower 'type' to 'kind' to avoid clashing with ↵Richard Hughes1-1/+1
GObject generated names
2010-01-18trivial: DkpDevice -> UpDevice (no ABI or API break)Richard Hughes1-2/+2
2010-01-18trivial: DkpDaemon -> UpDaemon (no ABI or API break)Richard Hughes1-35/+35
2010-01-18trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes1-0/+97
ABI changes