summaryrefslogtreecommitdiff
path: root/src/linux/up-backend.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-04linux: use the number of active DRM devices to determine the system docked ↵Richard Hughes1-1/+10
status Not ideal, but better than relying on ACPI.
2010-11-01Port from EggDebug to the GLib built-in logging frameworkRichard Hughes1-24/+22
2010-07-07Fix UP_DAEMON_WATERLINE harderMartin Pitt1-1/+2
Commmit fc7c6e003 had a thinko, UP_DAEMON_WATERLINE specifies (active memory)/(available swap), not the other way around. So replace it with 99% instead. Also update the documentation of up_backend_get_used_swap() to explain what the returned percentage actually means.
2010-07-07src/linux/up-backend.c: Add missing #includeMartin Pitt1-0/+1
We need sys/wait.h to get the WEXITSTATUS (and related) macros.
2010-07-07Get the powersave command from the backend rather than hardcoding Linux ↵Richard Hughes1-2/+15
specifics
2010-06-14Use pm-is-supported to test if various sleep modes are supported.Victor Lowther1-13/+15
pm-is-supported does all the work upower was duplicating, and it handles more use cases than the old upower code did. No point in duplicating functionality. Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-05-29When calculating used swap space, only use anonymous pagesSteven Walter1-1/+1
up_daemon_check_swap_space uses the Active: line from /proc/meminfo to determine the amount of swap the system needs to be able to suspend. However, because Active: includes both anonymous and file-backed pages, this greatly overestimates the amount of swap needed. File-backed pages can be written back to disk and so do not consume swap. Instead, up_daemon_check_swap_space should use Active(anon): from /proc/meminfo because only anonymous pages need to be written out to swap during a suspend. Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-05-28Add battery query support for iDevicesBastien Nocera1-0/+12
https://bugs.freedesktop.org/show_bug.cgi?id=28286 Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-04-19Provide UpDaemon with C setters rather than relying on GObject propertiesRichard Hughes1-3/+1
2010-03-29Get the suspend and hibernate commands from the backend, rather than ↵Richard Hughes1-0/+21
hardcoding Linux specifics
2010-03-29Get the swap size from the backend, rather than hardcoding Linux specificsRichard Hughes1-0/+62
2010-03-29Get the encrypted swap status from the backend, rather than hardcoding Linux ↵Richard Hughes1-0/+107
specifics
2010-03-29Get the kernel sleep capabilities from the backend, rather than hardcoding ↵Richard Hughes1-0/+45
Linux specifics
2010-01-27Update the Free Software Foundation addressRichard Hughes1-1/+1
2010-01-18trivial: DkpInput -> UpInput (no ABI or API break)Richard Hughes1-3/+3
2010-01-18trivial: switch to using the new marshal names internally (no ABI or API break)Richard Hughes1-2/+2
2010-01-18trivial: DkpDevice -> UpDevice (no ABI or API break)Richard Hughes1-26/+26
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 Hughes1-53/+53
2010-01-18trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes1-0/+384
ABI changes