public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Tehn Yit Chin <tehn-yit.chin@greyinnovation.com>
To: Adam Belay <ambx1@neo.rr.com>
Cc: linux-pm@lists.osdl.org
Subject: Re: apm for individual devices
Date: Tue, 07 Mar 2006 15:06:40 +1100	[thread overview]
Message-ID: <440D06D0.2020206@greyinnovation.com> (raw)
In-Reply-To: <20060307035043.GA4312@neo.rr.com>

Adam Belay wrote:
> On Tue, Mar 07, 2006 at 11:44:35AM +1100, Tehn Yit Chin wrote:
> 
>>Hi all,
>>
>>How does one use the sysfs entry of power/state that I can find for each 
>>registered device? Eg, for the i2c device on my s3c2410 cpu, I find the 
>>following entry,
>>
>>/sys/devices/platform/s3c2410-i2c/power/state
>>
>>I tried echoing "mem" into it, but nothing seems to happen.
>>
>>What I am looking for is a way of suspending and resuming individual 
>>devices within the PM architecture?
>>
>>Any pointers would be greatly appreciated.
>>--
> 
> 
> Out of curiousity, why do you need to suspend this individual device?
> In other words, what practical runtime power management gains would this
> sort of low level and specific power management control provide for your
> purposes?
> 
> Thanks,
> Adam
> 
> 

The example that I use is probably a bad example.

We are developing a  consumer electronic product where we need to shut 
down various devices in the product's several operating mode to maximise 
battery life. Eg: in one of its operating mode, we are not using the 
audio codec so we should suspend it to maximise battery life. There are 
also several similar scenarios where this could apply.

A better example might have been

echo -n 1 > /dev/devices/platform/product-codec/power/state

cheers,
tyc

  reply	other threads:[~2006-03-07  4:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-07  0:44 apm for individual devices Tehn Yit Chin
2006-03-07  1:30 ` Tehn Yit Chin
2006-03-07  2:58   ` Patrick Mochel
2006-03-08 15:50   ` Pavel Machek
2006-03-07  3:50 ` Adam Belay
2006-03-07  4:06   ` Tehn Yit Chin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-03-07  2:11 Li Qiang-E3422C
2006-03-08 15:51 ` Pavel Machek
2006-03-09  1:57   ` Tehn Yit Chin
2006-03-09  1:55     ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=440D06D0.2020206@greyinnovation.com \
    --to=tehn-yit.chin@greyinnovation.com \
    --cc=ambx1@neo.rr.com \
    --cc=linux-pm@lists.osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox