/sys/devices/.../power/state broken?

Brice Goglin
2006-12-12T10:17:11Z

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. For instance, the driver's suspend routine is not called
anymore when writing 3 while it was at least in 2.6.17 and 2.6.18. And
reading the contents of the file afterwards now returns 0 while it
seemed to return 2 before.

I didn't have time to git-bisect the problem so far, I will if nobody
has any idea.

And if somebody knows what to use instead of .../power/state to test a
driver's suspend/resume, I'd be happy to hear it too. The explanation in
feature-removal-schedule.txt did not help a lot, neither did the thread
I found on linux-pm :)

thanks,
Brice