summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Remove Wakeups APIBenjamin Berg2022-03-241-65/+0
| | | | | | | | | | | | | | | | The API relied on /proc/timer_stats which has been removed from the kernel in 2017. Since then, the API has been non-functional (yet incorrectly reporting support because the support test was buggy). Just remove it completely. The debian codesearch does not uncover any API users. Also, I doubt that any new API (based on tracing scheduler events as perf would do) would map well to what exists now. i.e. if something like this is re-implemented in UPower or elsewhere, then the API should likely look different. And, realistically, if this does need root privileges (i.e. can't be moved to use BPF programs or so on user units), then we can also create a new small daemon that is launched on-demand just for that.
* all: Remove HAVE_CONFIG_H conditionalBastien Nocera2021-09-071-3/+1
| | | | | We always have a config.h now, and don't rely on autotools setting this cflags for us to know it.
* build: Remove autotoolsBastien Nocera2021-09-061-37/+0
|
* build: Clean up include_directories usageBastien Nocera2021-09-061-1/+0
|
* tools: Include top-level library includeBastien Nocera2021-09-021-3/+1
| | | | So we don't need to define UP_COMPILATION
* build: Support building upower with mesonBenjamin Berg2021-09-021-0/+11
|
* up-tool: Catch NULL return for more upower API callsBenjamin Berg2021-02-041-0/+8
| | | | | | This can lead to crashes if the communication with the daemon fails. See https://bugzilla.redhat.com/show_bug.cgi?id=1922777
* lib: Add a new version of up_client_get_devices which unrefs contentsRobert Ancell2018-05-311-2/+2
| | | | | | The existing function didn't set the free function on the GPtrArray. This means a libupower user can easily make a mistake in the reference counting of the array contents.
* up-tool: Exit early when connecting to upower failsMartin Pitt2016-05-181-1/+6
| | | | | | | | | | | | | | This avoids spewing dozens of assertions like libupower-glib-CRITICAL **: up_client_get_devices: assertion 'UP_IS_CLIENT (client)' failed libupower-glib-CRITICAL **: up_device_get_object_path: assertion 'UP_IS_DEVICE (device)' failed and useless default values and then exiting successfully (which might confuse users or scripts trying to parse the output). Use the new up_client_new_full() constructor so that we get a proper GError. Side issue in https://bugs.freedesktop.org/show_bug.cgi?id=95350
* Fix build regressionArnaud Quette2015-08-101-0/+1
| | | | | | | The removal of dbus-glib and libdbus build dependencies has introduced a build regression on upower, which fails to link with gobject Signed-off-by: Richard Hughes <richard@hughsie.com>
* build: remove dependency on dbus-glib and libdbusCosimo Cecchi2015-07-291-2/+0
| | | | Nothing depends on it any more.
* up-tool: remove unused variablesCosimo Cecchi2015-07-291-2/+0
|
* all: Remove IsDocked propertyBastien Nocera2014-05-071-1/+0
| | | | | | | Removes the deprecated (for not very long) property, before we do a 1.0 release. https://bugs.freedesktop.org/show_bug.cgi?id=78380
* tools: Remove is-docked from up-toolBastien Nocera2014-05-071-3/+1
|
* tools: Update for lib API changesBastien Nocera2013-10-171-18/+2
|
* tools: Use notify signals instead of *changed onesBastien Nocera2013-10-171-4/+20
|
* all: Add GetCriticalAction daemon methodBastien Nocera2013-10-171-0/+4
| | | | | | | | | 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.
* all: Remove WarningLevel from the daemon propertiesBastien Nocera2013-10-171-2/+0
| | | | | | The WarningLevel property just replicated the warning level on the display device, or at least should have. So we fix the latter to remove the former.
* tools: Print the display device when using -dBastien Nocera2013-10-171-0/+10
|
* tools: Update for API changesBastien Nocera2013-10-141-3/+3
|
* tools: Remove use of deprecated featuresBastien Nocera2013-10-141-12/+0
|
* Set locale in daemon and toolShih-Yuan Lee (FourDollars)2013-09-041-0/+2
| | | | | This is necessary to properly show non-UTF8 strings in debug mode (for the daemon) and upower --dump etc. (for the tool).
* trivial: Stop calling deprecated g_type_init()Martin Pitt2013-08-291-0/+2
| | | | | When building with a recent enough glib (>= 2.36), don't call g_type_init() any more. This is deprecated and causes ugly compile warnings.
* Use PIE to better secure installed tools and also use full RELRO in the daemonRichard Hughes2013-05-071-1/+4
|
* Add a --enable-deprecated configure argumentRichard Hughes2013-02-121-0/+6
| | | | | | | | | | | | | | This is turned off by default. If this is not set, then any calls to Suspend(), SuspendAllowed(), Hibernate() or HibernateAllowed() will fail with an error. The error mesage tells the user what new method to port to in logind. I'm expecting to set --enable-deprecated for Fedora 17 and 18, but turn it off for Fedora 19, so other distributions probably want to follow suit to find out what other stuff needs to be ported to the new APIs early. GNOME should already be fine, but KDE will need some solid porting as I understand it. See http://lists.freedesktop.org/archives/devkit-devel/2013-January/001339.html for more information on future plans and for rationale.
* Don't use the deprecated INCLUDES in Makefile.amRichard Hughes2013-01-141-1/+1
|
* Fix "can-hibernate" formatting in upower --dumpMartin Pitt2012-11-081-1/+1
| | | | All other field names end with a colon, so that one should, too.
* Use git.mk and remove the manual .gitignore filesRichard Hughes2011-07-192-8/+2
|
* upower needs -pthreadLandry Breuil2011-03-211-0/+2
| | | | Signed-off-by: Richard Hughes <richard@hughsie.com>
* Drop devkit and devkit-power-daemon symlinksMichael Biebl2011-02-231-3/+0
| | | | Signed-off-by: Richard Hughes <richard@hughsie.com>
* linux: use the number of active DRM devices to determine the system docked ↵Richard Hughes2011-01-041-1/+4
| | | | | | status Not ideal, but better than relying on ACPI.
* Port from EggDebug to the GLib built-in logging frameworkRichard Hughes2010-11-014-9/+3
|
* Ensure we enumerate devices before we start monitoring themRichard Hughes2010-03-261-0/+5
|
* Update help and g_option_context_new to upowerMichael Biebl2010-02-061-3/+3
|
* trivial: fix a compile warningRichard Hughes2010-02-051-0/+1
|
* Use GCancellable in libupower-glib so we can eventually get to GIO async ↵Richard Hughes2010-02-051-5/+5
| | | | methods without breaking future API
* Make the upower client tool use libupwer-glib, rather than devit-power-gobjectRichard Hughes2010-02-052-63/+84
|
* Remove EGG_* log define.Michael Biebl2010-02-051-4/+0
| | | | | The EGG_* log defines don't seem to be used and still reference the old DeviceKit-power name. So just remove it.
* Rename the man pages and rename the main daemon binary nameRichard Hughes2010-01-211-1/+1
|
* Make the client tool be called upower, but maintain a symlink to devkit-powerRichard Hughes2010-01-213-31/+8
|
* Rename the DBus service from org.freedesktop.DeviceKit.Power to ↵Richard Hughes2010-01-181-2/+2
| | | | org.freedesktop.UPower
* trivial: rename some internal defines for the upower moveRichard Hughes2010-01-181-3/+3
|
* trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes2010-01-182-12/+12
| | | | ABI changes
* Update some common egg code for better debugging supportRichard Hughes2009-11-231-3/+1
|
* When using devkit-power --monitor, print a timestamp before each message for ↵Richard Hughes2009-10-221-4/+38
| | | | debugging. Fixes fd#24666
* Convert the property names to be FirstLetterCaps rather than dash-dash so ↵Richard Hughes2009-09-181-1/+1
| | | | KDE people can use the DBus interface
* Fix up a few problems spotted by clangRichard Hughes2009-09-111-7/+19
|
* I must learn to spell deprecated...Richard Hughes2009-07-031-1/+1
|
* Protect the non-GObject accessors with DKP_DISABLE_DEPRECIATED and fix up ↵Richard Hughes2009-07-032-8/+37
| | | | the client tool
* Add a property lid-is-closed so that we can finally drop the HAL dep in ↵Richard Hughes2009-05-051-0/+1
| | | | g-p-m and x-p-m