Power management support in Chromium OS

125 views
Skip to first unread message

Sergii Kovalchuk

unread,
Jun 15, 2011, 7:52:51 AM6/15/11
to Chromium OS dev
Hi all,

We are working on power management support in Chromium OS on ARM-based
board. The board itself has some good things to adjust beyond ordinary
kernel support - such as scaling down GPU/RAM clocks (when not
needed), real-time adjustments of CPU cache sizes etc.

Currently, most of the powerd/powerman daemons functionality is not
working for us and we see a lot of hardcoded sysfs and proc paths to
work with light sensor, backlight and other stuff for CR-48.

We see the following issues:

- Screen resolution re-configuration part is using XRandr library
functions, therefore it is not clean, why backlight control code is
using /sys/class/backlight/<dev>/brightness directly.
- Audio detector queries /proc/asound/card0/pcm0p/sub0/status to
detect audio activities
- Light sensor code is CR-48 specific. Maybe not, however, in any
case, accessing light sensor at hardcoded path of the like "/sys/bus/
iio/devices/device0/illuminance0_input" doesn't look good
- It is not clear, why two power management daemons exist - most of
the functionality of powerman, as lower power management interface can
be moved directly into powerd?

Is there any plans to get rid of hardcoded stuff and make the power
daemons more generic, so we wouldn't have any platform dependencies?
If so, is this work in progress or it is sheduled for some later time
in future?
If this work is not started yet, then where can I find some
architectual documents, describing Chromium OS power management?

Sonny Rao

unread,
Jun 15, 2011, 12:43:44 PM6/15/11
to Sergii Kovalchuk, Chromium OS dev, Sameer Nanda, sq...@google.com, Benson Leung
+ power team

I think the power team is working on reorganizing some of the powerd
stuff in R14
perhaps they can address some of the issues or could take a look at
any patches you might have

Sonny

> --
> Chromium OS Developers mailing list: chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>

Chris Masone

unread,
Jun 15, 2011, 12:49:56 PM6/15/11
to Sonny Rao, Sergii Kovalchuk, Chromium OS dev, Sameer Nanda, sq...@google.com, Benson Leung
The reason for powerm and powerd is to split the required level of privilege.  One runs as root so it can do special things.  Everything that does not need that privilege is split off into the other daemon.

Also, one of the benefits of targeting a narrow hardware profile for Google Chrome OS devices is that we can assume and hardcode some things, allowing us to keep the code simpler and faster.  I'd be against compromising simplicity, speed or security in order to support non-supported devices :-)

sanjay...@gmail.com

unread,
Jan 23, 2013, 6:19:03 AM1/23/13
to chromiu...@chromium.org, Sergii Kovalchuk, Sameer Nanda, sq...@google.com, Benson Leung
DearyAll,
 
  I am quite curious to know current power management suport on Chromium OS R25.
 
   Are there any references / performance parameters analysis available w.r.t. any reference HW platform ) available?
 
  I appreciate if someone can throw some light on it.
 
regds
Sanjay

Sameer Nanda

unread,
Jan 24, 2013, 5:41:36 PM1/24/13
to sanjay.nidoni, Chromium OS dev, Sergii Kovalchuk, Simon Que, Benson Leung
Sanjay,

This is how battery life testing is done for Chrome OS devices:

Let me know if you have any specific questions that the above doesn't answer.


--
Sameer
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages