[linux-pm] apm for individual devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



'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@xxxxxxxxxxxxxx
[mailto:linux-pm-bounces@xxxxxxxxxxxxxx] On Behalf Of Tehn Yit Chin
Sent: Tuesday, March 07, 2006 9:30 AM
To: Tehn Yit Chin
Cc: linux-pm@xxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux