Ticket #845 (closed defect: fixed)
Sugar needs support for the SW_LID event
| Reported by: | JordanCrouse | Owned by: | hughsient@… |
|---|---|---|---|
| Priority: | high | Milestone: | 8.2.0 (was Update.2) |
| Component: | power manager (OHM) | Version: | |
| Keywords: | power-management | Cc: | hughsie, marco |
| Action Needed: | never set | Verified: | no |
| Deployments affected: | Blocked By: | ||
| Blocking: |
Description
Starting with the B2 hardware, we can detect and act on the lid closing and opening. The experimental tree currently has support for this - it sends a SW_LID event to the OLPC PM input event device (the same one that gets power button events).
Sugar should grab this event, and do something useful with it. Until more advanced power management capabilities are in place, I recommend putting the DCON into sleep mode (DCON + display turns off) when the LID is down:
echo "1" > /sys/devices/platform/dcon/sleep
(Support for this is also in the experimental tree). This will save almost 2 watts of power over the full on / BL at maximum state. The sleep mode may also be useful in other situations, so investigation should be done to that end as well.


