[linux-pm] /sys/devices/.../power/state broken?

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

 



On Tuesday 12 December 2006 7:42 am, Alan Stern wrote:
> On Tue, 12 Dec 2006, Brice Goglin wrote:
> 
> > Hi,
> > 
> > I know that .../power/state files are deprecated, but I like using them
> > for basic testing of a driver's suspend/resume routines. Anyway, echoing
> > something in the .../power/state in current -git does not seem to work
> > anymore.
> 
> It does work, but the results depend on the device you want to suspend.  
> For instance, USB devices have no problem at all.  PCI devices will ignore
> your writes because .../power/state can't handle the new multi-stage
> suspend and resume mechanism.
> 
> I've been using the patch below to force my tests to work. 

... relying on the fact that few drivers currently use the late_suspend()
or early_resume() methods.  I know one such driver is in a 2.6.20 merge
queue, but drivers using those methods are still a bit uncommon.


Speaking of those new PM methods ... Greg, I tried refreshing my
patch that uses class suspend() and resume() methods with RTCs to
adjust the system clock properly on resume.  But neither method
is getting called any more.  Did that break with the class device
changes?

- Dave


[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