On Tue, 2003-05-20 at 16:59, Jessica Forbess wrote:
> I am wondering just exactly what /usr/bin/ipaq-sleep does, and I can't
> find the source anywhere on the handhelds.org site.
gpe/base/ipaq-sleep/
ipaq-sleep watches /proc/interrupts and other indicators of activity and
suspends the ipaq when it detects a certani amount of idle time.
> Specifically, I'm trying to write a driver for an external sleeve that
> will restart appropriately when the iPAQ is woken up. I followed a link to
> the Linux/Documentation/ Power Management Support, which talks about
> pm_register et al, and I was trying to find another driver (say, the
> BackPaq) that uses those hooks. Or deduce from ipaq-sleep source that
> those hooks are indeed the correct ones.
If you write a sleeve driver and register it with
h3600_sleeve_register_driver, its probe() function will get called when
the sleeve is inserted or when linux first boots and notices the
sleeve. There are also entry points for suspend, resume, and remove.
If you want to run an executable after the driver is attached, add a
call to that executable to tools/hotplug/sleeve.agent. The source to
that script is in tools/hotplug. I'd be happy to have this extended to
suit your needs.
-Jamey
Received on Tue May 20 21:34:42 2003
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:37:21 EDT