summaryrefslogtreecommitdiff
path: root/src/linux/up-device-hid.c
AgeCommit message (Collapse)AuthorFilesLines
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-3/+1
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-18linux: More information in the debug outputBastien Nocera1-1/+1
As was the case in other places, we need to be able to differentiate warning messages for them to be useful.
2013-10-14daemon: Require newer GLibBastien Nocera1-2/+0
And remove ifdef's.
2013-10-14daemon: Replace "on-low-battery" propertyBastien Nocera1-31/+0
With "warning-level" property.
2012-02-17Clamp the UPS percentage from 0 to 100 to fix syslog spamRichard Hughes1-1/+1
This device bug seems to happen with CPS UPS units.
2011-04-26Consider a discharging UPS as "on battery"Martin Pitt1-0/+63
Implement get_{on,low}_battery() methods on HID devices for Linux. This will treat discharging UPSes like batteries and set the "on-battery" and "on-low-battery" properties accordingly. This also fixes the test_ups_ac() case in the Linux integration tests.
2011-04-26Support virtual UPS devices for testingMartin Pitt1-8/+24
If a HID device is marked with the UPOWER_FAKE_DEVICE udev property, don't send ioctl commands to it, but instead read status and percentage from udev properties as well (UPOWER_FAKE_HID_CHARGING and UPOWER_FAKE_HID_PERCENTAGE). This allows developers or a test suite to test the behaviour of UPSes without actually having one.
2010-11-01Port from EggDebug to the GLib built-in logging frameworkRichard Hughes1-12/+10
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-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: switch to using the new udev attribute names (no ABI or API break)Richard Hughes1-3/+3
2010-01-18trivial: switch to using the new enum names internally (no ABI or API break)Richard Hughes1-8/+8
2010-01-18trivial: DkpDevice -> UpDevice (no ABI or API break)Richard Hughes1-109/+109
2010-01-18trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes1-0/+481
ABI changes