[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gpsd-dev
Subject:    [Gpsd-dev] Fwd: [roadmap] gpsd and apm support for suspend/resume to disk
From:       davis () michaelrdavis ! com (Michael R !  Davis)
Date:       2006-04-30 15:43:20
Message-ID: 20060430154320.35802.qmail () web32505 ! mail ! mud ! yahoo ! com
[Download RAW message or body]

Does gpsd need to add this APM support to the disttibution?
Mike (mrdvt92)

--- Joshua Layne <joshua@willowisp.net> wrote:

> Date: Fri, 28 Apr 2006 09:58:19 -0700
> From: Joshua Layne <joshua@willowisp.net>
> To: roadmap@saignon.net
> Subject: [roadmap] nevermind... figured it out -- Re: gpsd 'ping'
> after resume?
> 
> I answered my own question and it is embarassing how easy the
> solution 
> is - I apologize for bothering the list with it.
> 
> For anyone who might be as slow as I am, the following works:
> 
> (I am sure that there are more elegant ways to do suspend/resume 
> scripts, but this works)
> 
> /etc/apm/scripts.d/gpsbounce
> ---
> #!/bin/sh
> if [ "$1" = suspend ]; then
>         /etc/init.d/gpsd stop
> elif [ "$1" = resume ]; then
>         /etc/init.d/gpsd start
> fi
> ---
> 
> create soft links to this script from both /etc/apm/suspend.d/ and 
> /etc/apm/resume.d/
> 
> e.g.
> ---
> cd /etc/apm/suspend.d/
> ln -s ../scripts.d/gpsbounce 15gpsbounce
> ---
> 
> HTH,
> josh
> 
> Joshua Layne wrote:
> 
> > Hi all,
> > I finally figured out what the rfcomm layer does in linux bluetooth
> 
> > and restructured the way I was accessing my BT gps (write up here: 
> > http://www.handhelds.org/moin/moin.cgi/HpIpaqH2200gps)
> >
> > It is working beautifully - I turn the GPS on and start roadmap and
> 
> > within seconds I am looking at my little blue triangle...
> >
> > Being a greedy individual, this is no longer enough (this is
> paradise 
> > after the shell scripts I was running) and I would also like the 
> > following to work:
> >
> > driving along, using gps, using roadmap.  stop for groceries. 
> press 
> > the power button on the ipaq (sending it into suspend mode) from
> the 
> > fullscreen roadmap view, do my shopping, get back to the car and
> press 
> > the power button on the ipaq again (roadmap is still in fullscreen
> mode)
> >
> > problem: roadmap and/or gpsd hangs (roadgps shows gpsd
> initialization 
> > string)
> >
> > current solution: exit roadmap, restart roadmap (this triggers gpsd
> to 
> > trigger rfcomm to reestablish connection (or at least that's how I 
> > think it works)) then restart trip and send roadmap into fullscreen
> mode.
> >
> > prefered solution: when ipaq resumes, have roadmap send a heartbeat
> to 
> > gpsd (release and rebind?) to have it totally transparent.
> >
> >
> > yes, I know this is silly and minor, but it also seems like
> something 
> > that should be doable (and am not really even thinking of changes
> in 
> > the roadmap code, but perhaps additions to resume scripts... dunno)
> - 
> > it would definitely increase the 'immersion feel' of a navigation 
> > system running on the ipaq.
> >
> >
> > any thoughts?   Is this a gpsd issue? (it happens in gpsdrive as
> well, 
> > as far as I can tell)
> >
> > thanks for any info,
> > josh
> >
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic