#31 BLOC Trial-2: OHM Power Manager for OLPC laptops
Zarro Boogs per Child
bugtracker at laptop.org
Wed Jul 11 16:10:37 EDT 2007
#31: OHM Power Manager for OLPC laptops
-----------------------------+----------------------------------------------
Reporter: jg | Owner: hughsient at gmail.com
Type: task | Status: new
Priority: blocker | Milestone: Trial-2
Component: infrastructure | Version:
Resolution: | Keywords: power
Verified: 0 |
-----------------------------+----------------------------------------------
Comment (by cjb):
Replying to [comment:35 hughsient at gmail.com]:
> Status update:
>
> * lid status reporting now works, and suspends the system.
Great!
> * xrandr works, but it the logic might be the wrong way round if you
know what i mean
Sure, no problem.
> All code is in git.
>
> Questions:
>
> * when the lid closes, do i have to do dpms off or echo 1 >
/sys/devices/platform/dcon/sleep, or both, or neither?
Let's go with sysfs for now -- echo 1 on lid close, echo 0 on lid open.
> * can we assume the lid is open and the machine is in normal mode when
the xo is powered on?
The state will be set correctly by the kernel, so if the lid is closed
between powering up and when ohm starts, ohm should notice that
lid==closed when it starts, and do the DCON sleep then. It's the same for
ebook mode -- when the kernel boots, it finds the current state of each
sensor, and sets the input layer state accordingly. HAL then queries that
state the first time through hald-addon-input, using an ioctl, so it gets
it right. We haven't tested this recently, so let me know if it seems to
misbehave at all.
Thanks very much once again, this is absolutely superb work.
--
Ticket URL: <http://dev.laptop.org/ticket/31#comment:37>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list