From: Pavel Machek <pavel@ucw.cz>
To: Tehn Yit Chin <tehn-yit.chin@greyinnovation.com>
Cc: linux-pm@lists.osdl.org
Subject: Re: apm for individual devices
Date: Wed, 8 Mar 2006 16:50:43 +0100 [thread overview]
Message-ID: <20060308155043.GA3669@elf.ucw.cz> (raw)
In-Reply-To: <440CE22E.8060601@greyinnovation.com>
On Út 07-03-06 12:30:22, Tehn Yit Chin wrote:
>
> 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.
>
> After reading through the mailing list archives, I sort of work it out. ie
>
> echo -n 1 > /sys/devices/platform/s3c2410-i2c/power/state
Actually, it is controlled by 0 and 3 these days. (0 == on, 3 == off).
Pavel
--
Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...
next prev parent reply other threads:[~2006-03-08 15:50 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 [this message]
2006-03-07 3:50 ` Adam Belay
2006-03-07 4:06 ` Tehn Yit Chin
-- 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=20060308155043.GA3669@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-pm@lists.osdl.org \
--cc=tehn-yit.chin@greyinnovation.com \
/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