summaryrefslogtreecommitdiff
path: root/src/freebsd
AgeCommit message (Collapse)AuthorFilesLines
2014-11-26daemon: release resources at shutdownPeter Wu1-0/+24
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-10-08all: convert value from g_get_real_time() to secondsEvangelos Foutras1-1/+1
Commit 5ddfe0d (all: Use g_get_real_time() when possible) replaced calls to g_get_current_time() with g_get_real_time(), however, we also need to convert the return value from microseconds to seconds. Signed-off-by: Richard Hughes <richard@hughsie.com>
2014-09-24all: Use g_get_real_time() when possibleBastien Nocera1-5/+2
Instead of a call to g_get_current_time().
2013-10-26daemon: Better timeout source namingBastien Nocera1-1/+1
Matching the work done in glib, gtk+, etc. This also differentiates the unknown and normal timeouts in the Linux power supply driver.
2013-10-17all: Add GetCriticalAction daemon methodBastien Nocera1-0/+13
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-14daemon: Require newer GLibBastien Nocera1-2/+0
And remove ifdef's.
2013-10-14daemon: Add CriticalPowerActionBastien Nocera1-0/+12
Paraphrasing from the configuration option: The action to take when "TimeAction" or "PercentageAction" above has been reached for the batteries (UPS or laptop batteries) supplying the computer. This is done 20 seconds after the warning-level variable got set to UP_DEVICE_LEVEL_ACTION has been set, to give the opportunity to front-ends to display a (short) warning. This is only implemented for the Linux backend, using logind.
2013-10-14daemon: Replace "on-low-battery" propertyBastien Nocera1-28/+0
With "warning-level" property.
2013-10-14daemon: Remove unneeded reset of priv struct membersBastien Nocera1-3/+0
It's already done by GObject.
2013-10-14daemon: Remove obsolete featuresBastien Nocera1-82/+0
2013-10-14daemon: Simplify _new() functionsBastien Nocera1-3/+1
2013-10-14freebsd: Remove useless finalizeBastien Nocera1-17/+0
It was just chaining up.
2013-01-14Don't use the deprecated INCLUDES in Makefile.amRichard Hughes1-1/+1
2012-07-11Use systemd for suspend and hibernateMatthias Clasen1-0/+6
When running under systemd, call into systemd for suspend and hibernate instead of pm-utils. To capture resume events, install a small script that gets executed by systemd after resume and sends a dbus signal back to upower. To make this work, the upower backends gain a new signal, ::resuming, that they can optionally emit to signal that a resume happened. Backends opt in to this by returning TRUE from up_backend_emits_resuming(). In this case, upower doesn't assume the sleep command to block until resume, but instead waits for the ::resuming signal from the backend. The only backend that uses this mechanism is the linux backend when built with systemd support. Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-07-19Use git.mk and remove the manual .gitignore filesRichard Hughes1-0/+1
2010-11-01Port from EggDebug to the GLib built-in logging frameworkRichard Hughes5-24/+17
2010-07-02up-device-supply.c: Fix #27902 Bug - Daemon Segmentation FaultMariusz Ceier1-3/+3
In linux backend, g_object_set was called with wrong argument types for time-to-empty,time-to-full and percentage properties. This patch uses explicit casts in the same way as freebsd backend. Signed-off-by: Mariusz Ceier <mceier@gmail.com>
2010-06-05Port to GTestRichard Hughes1-27/+0
2010-06-05Assign names to our idle sources when using new versions of glib2Richard Hughes1-0/+3
This makes it possible to profile more accurately using systemtap
2010-04-19Provide UpDaemon with C setters rather than relying on GObject propertiesRichard Hughes1-4/+3
2010-03-29Get the suspend and hibernate commands from the backend, rather than ↵Richard Hughes1-5/+5
hardcoding Linux specifics
2010-03-29Get the swap size from the backend, rather than hardcoding Linux specificsRichard Hughes1-0/+1
2010-03-29Get the kernel sleep capabilities from the backend, rather than hardcoding ↵Richard Hughes1-4/+4
Linux specifics
2010-03-26Remove libdevkit-power-gobject dependency from backendsMichael Biebl1-1/+0
The backends [linux/freebsd/dummy] no longer require libdevkit-power-gobject, so - remove -I$(top_srcdir)/devkit-power-gobject from the include path - don't link the backends against libdevkit-power-gobject but upowerd (which unfortunately still needs it). Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-02-23Fix up the FreeBSD backend compileMichael Biebl1-1/+1
Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-02-06devkit-power-gobject/up-enum.h be goneMichael Biebl1-0/+1
Port from devkit-power-gobject/up-enum.h to libupower-glib/up-types.h
2010-02-05Remove EGG_* log define.Michael Biebl1-4/+0
The EGG_* log defines don't seem to be used and still reference the old DeviceKit-power name. So just remove it.
2010-01-27Update the Free Software Foundation addressRichard Hughes1-1/+1
2010-01-26trivial: rename the new libupower 'type' to 'kind' to avoid clashing with ↵Richard Hughes1-9/+9
GObject generated names
2010-01-18trivial: rename some internal defines for the upower moveRichard Hughes1-5/+5
2010-01-18trivial: DkpNative -> UpNative (no ABI or API break)Richard Hughes1-5/+5
2010-01-18trivial: switch to using the new internal library name (no ABI or API break)Richard Hughes1-4/+4
2010-01-18trivial: switch to using the new marshal names internally (no ABI or API break)Richard Hughes1-2/+2
2010-01-18trivial: convert freebsd private object to using upower prefix (no ABI or ↵Richard Hughes11-193/+193
API changes)
2010-01-18trivial: switch to using the new enum names internally (no ABI or API break)Richard Hughes1-22/+22
2010-01-18trivial: DkpDevice -> UpDevice (no ABI or API break)Richard Hughes3-108/+108
2010-01-18trivial: DkpDaemon -> UpDaemon (no ABI or API break)Richard Hughes1-4/+4
2010-01-18trivial: DkpBackend -> UpBackend (no ABI or API break)Richard Hughes4-93/+93
2010-01-18trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes13-34/+34
ABI changes
2010-01-03trivial: be a whitespace and format naziRichard Hughes8-261/+250
2010-01-03import the FreeBSD backendJoe Marcus Clarke14-0/+2073
Add a backend for FreeBSD supporting AC power lines, batteries, and lid state.