Re: NAK new drivers without proper power management?

From: Nigel Cunningham
Date: Sun Feb 11 2007 - 19:15:51 EST


Hi.

On Mon, 2007-02-12 at 01:09 +0100, Rafael J. Wysocki wrote:
> On Monday, 12 February 2007 00:55, Nigel Cunningham wrote:
> > Hi.
> >
> > On Mon, 2007-02-12 at 00:50 +0100, Rafael J. Wysocki wrote:
> > > On Monday, 12 February 2007 00:47, Nigel Cunningham wrote:
> > > > Hi.
> > > >
> > > > On Mon, 2007-02-12 at 00:41 +0100, Rafael J. Wysocki wrote:
> > > > > > I'm using M$ hibernation and Suspend2 to dual boot on our desktop (dtv
> > > > > > card that Linux doesn't support well yet), and I know other Suspend2
> > > > > > users doing the same. It's made earier by the fact that Suspend2 lets
> > > > > > you reboot instead of powering down.
> > > > >
> > > > > Well, I don't know why you're saying it's a special capability of suspend2.
> > > > > Even the "old" swsusp has been able to do this since I can remember. ;-)
> > > >
> > > > It does?! I just did cat /sys/power/disk and it only says platform. How
> > > > do you make swsusp reboot instead of powering down?
> > >
> > > echo reboot > /sys/power/disk && echo disk > /sys/power/state
> >
> > Ah. Perhaps you should make it show reboot when you cat it?
>
> albercik:~ # echo reboot > /sys/power/disk
> albercik:~ # cat /sys/power/disk
> reboot
>
> It shows the current value, and "platform" happens to be the default now.

Oh, so the problem is that it shows the current value, not the
possibilities. I wrongly assumed it would work like /sys/power/disk.
That explains it :)

Regards,

Nigel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/