Yves-Alexis Perez wrote: > Package: devicekit-power > Version: 012-2 > Severity: normal > > Hi, > > it seems that devicekit-power is confused when reporting info on my system: > > devkit-power -d returns: > > ---- > Device: /org/freedesktop/DeviceKit/Power/devices/line_power_AC > native-path: > /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/ACPI0003:00/power_supply/AC > power supply: yes > updated: Wed Nov 11 11:47:04 2009 (438 seconds ago) > has history: no > has statistics: no > line-power > online: yes > > Device: /org/freedesktop/DeviceKit/Power/devices/battery_BAT0 > native-path: > /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 > vendor: PSPSP > model: COMPATIBLE > serial: 38 > power supply: yes > updated: Wed Nov 11 11:54:10 2009 (12 seconds ago) > has history: yes > has statistics: yes > battery > present: yes > rechargeable: yes > state: fully-charged > energy: 36.61 Wh > energy-empty: 0 Wh > energy-full: 49.79 Wh > energy-full-design: 56.16 Wh > energy-rate: 0 W > voltage: 11.919 V > percentage: 73.5288% > capacity: 88.6574% > technology: lithium-ion > > Daemon: > daemon-version: 012 > can-suspend: yes > can-hibernate no > on-battery: no > on-low-battery: no > lid-is-closed: no > lid-is-present: no > ---- > > This is on a ThinkPad T61 which indeed has a LID and can hibernate just fine > (even if I have problems at resume but that's not the point). Not sure if it's > related but I use full disk encryption using dm-crypt/luks (as proposed by > d-i, so the swap is inside). I saw in #551797 that encrypted swap leaded to > impossible hibernate but I don't think it's true (since I can hibernate just > fine using direct commands or hal).
hal or pm-suspend do not check for encrypted swap. See the following commit http://cgit.freedesktop.org/DeviceKit/DeviceKit-power/commit/?id=ea6ebd1a526653bb9d59d5143d844c0f7557a351 So the output of /proc/swaps and /proc/crypttab would probably be helpful. Also, the lid state should be handled in a separate bug and not mixed into this one. It is most certainly a kernel bug, as DK-power just reads the sysfs values via libudev. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

