public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* apm for individual devices
@ 2006-03-07  0:44 Tehn Yit Chin
  2006-03-07  1:30 ` Tehn Yit Chin
  2006-03-07  3:50 ` Adam Belay
  0 siblings, 2 replies; 10+ messages in thread
From: Tehn Yit Chin @ 2006-03-07  0:44 UTC (permalink / raw)
  To: linux-pm

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.
-- 
Tehn Yit Chin
Software Engineer, Grey Innovation Pty. Ltd.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: apm for individual devices
@ 2006-03-07  2:11 Li Qiang-E3422C
  2006-03-08 15:51 ` Pavel Machek
  0 siblings, 1 reply; 10+ messages in thread
From: Li Qiang-E3422C @ 2006-03-07  2:11 UTC (permalink / raw)
  To: Tehn Yit Chin; +Cc: linux-pm

[-- Attachment #1: Type: text/plain, Size: 1373 bytes --]

'0' indicates the device is on. Other values (1-3) indicate the device
is in a low power state. 
You can see ACPI's spec.

-----Original Message-----
From: linux-pm-bounces@lists.osdl.org
[mailto:linux-pm-bounces@lists.osdl.org] On Behalf Of Tehn Yit Chin
Sent: Tuesday, March 07, 2006 9:30 AM
To: Tehn Yit Chin
Cc: linux-pm@lists.osdl.org
Subject: Re: [linux-pm] apm for individual devices


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

puts the device into suspend mode.

However, the driver's behaviour doesn't change if I echo a different
number into it. What does this number suppose to do?

Tehn Yit Chin
Software Engineer, Grey Innovation Pty. Ltd.

_______________________________________________
linux-pm mailing list
linux-pm@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/linux-pm


[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-03-09  1:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox