Bug 25274

Summary: Some de-hal-ification
Product: pm-utils Reporter: Martin Pitt <martin.pitt>
Component: GeneralAssignee: Victor Lowther <victor.lowther>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: on_ac_power: DeviceKit-power support
pm-functions.in: Drop $CHASSIS_TYPE
some documentation updates for DeviceKit-power

Description Martin Pitt 2009-11-25 03:32:49 UTC
pm-utils still uses hal on various places. I have some patches for this.

The main issue is of course migrating the suspend quirks, but this was already discussed on the mailing list, and Victor has a branch for this already.
Comment 1 Martin Pitt 2009-11-25 03:34:29 UTC
Created attachment 31462 [details] [review]
on_ac_power: DeviceKit-power support

Try to contact DeviceKit-Power in on_ac_power, and if it succeeds, use that. Otherwise fall back to hal.
Comment 2 Martin Pitt 2009-11-25 03:37:12 UTC
Created attachment 31463 [details] [review]
pm-functions.in: Drop $CHASSIS_TYPE

$CHASSIS_TYPE is not used anywhere in pm-utils itself, nor any third-party pm-utils hook that I can see. It relies on a dmidecode map in hal which has never really been robust, and it just seems generally obsolete nowadays.

Let's not proliferate that any further and just remove it entirely.
Comment 3 Martin Pitt 2009-11-25 03:38:50 UTC
Created attachment 31464 [details] [review]
some documentation updates for DeviceKit-power

This adds references/explanations to various places in the documentation about DK-Power.
Comment 4 Richard Hughes 2009-11-25 03:43:31 UTC
Acked by Richard Hughes.
Comment 5 Victor Lowther 2009-12-10 20:17:41 UTC
These have been comitted.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.