On Fri, 23 Dec 2005, Holger Macht wrote: > Hi, > > We implemented device runtime power management in a userspace application > (the powersave daemon). In this specific case, it means to successively > put pci devices into D3 powersave mode with writing a numerical '3' to the > corresponding power state file. > > There are two main reasons for us to even doing this: > > 1. At first, the obvious reason. As mentioned in our research regarding > power consumption on this list, there is a very huge potential to > save battery power. > > 2. Due to the fact that this is AFAIK a heavily untested area, as a side > effect, we like to get reports about broken modules/drivers and maybe > get them fixed. That's great! Please note that D3 is only relevant for PCI devices and for ACPI devices. The fact that it's the same value for every device in the system is a design flaw. Please be aware that the value to write to the device file could change, and will be dependent on the type (bus) of device, and quite possibly on the device itself. It may not even be '3' for all PCI devices in the future, or may be a string rather than 1 character, or simply a '1' into a different file. Please also note that D3 is not always a good choice. A driver may not be able to reinitialize the device from D3. And, since it takes longer to resume from D3, you may want to start with D1 or D2. (The same concept is true for devices other than PCI, though the values will be different.) How do you determine the idleness of a device? Or, is it based purely on user direction? Also, is there source available? Thanks, Patrick