On Tuesday 26 October 2004 04:36, Pavel Machek wrote: > Hi! > > There's detach_state interface to the user in /sys. Is anyone actually > using it? Looks like if it's ever set to "4" (only from userspace, or out-of-tree drivers), then driver->shutdown() gets called ... else if it's nonzero, it's passed to driver->suspend(). I always thought that "4" was the magic value to be passed into driver->suspend() to indicate S4/poweroff. Surely some of this complication can be removed ... - Dave