Re: [gpm] How can I make my laptop suspend after 1 hour then hibernate after 2 hours?



2007/6/29, Richard Hughes <hughsient gmail com> wrote:
On Fri, 2007-06-29 at 15:53 -0600, Jason Spiro wrote:
> How can I make my laptop suspend after 1 hour of inactivity then
> hibernate 2 hours after it suspends?

We have the API for that in place already. The HAL Suspend(i) method
takes an argument of the number of seconds to wake up in. Unfortunately,
we don't get any indication if the wake-up was because we woke up from
the timeout or woke up from another event, e.g. lid open.

The biggest problem is that few BIOS's support this

My Windows laptop's BIOS seems to support the feature I'm requesting
fine; that laptop runs Windows.  My FreeBSD laptop?  I dunno; I don't
use power management on that laptop.[1]

and the kernel
interface for the wakeup time is absolutely abhorrent. The interface is
being improved IIRC, but it remains that some hardware just doesn't
work.

:-(

Work in this area would be great, in fact, if you can do some research
in to the new interface for wakeup events I can hack this into the hal
scripts for testing.

What information would you like me to find out for you?

Cheers,
Jason

[1] I run FreeBSD 6.2-RELEASE with GNOME.  I once tried IIRC the
"hibernate" button in GDM but it basically crashed the PC.  I've never
tried any power management features since.  I guess the moral is this:
all it can take is one bad power management experience to discourage
them from using power management in the future :)

--
Jason Spiro: Linux consultant, web developer, Windows corporate trainer.
No job too big or too small, whether two hours or two months.
Contact me for info; to see my resume, send email with subject line "resume".
+1 (416) 781-5938 / Email: info jspiro com / MSN: jasonspiro hotmail com



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