Openmoko Bug #1953: tty setup for gps at startup -- /etc/init.d/gps-hardware

Openmoko Public Trac bugs at docs.openmoko.org
Sun Dec 28 17:56:06 CET 2008


#1953: tty setup for gps at startup -- /etc/init.d/gps-hardware
-------------------------+--------------------------------------------------
 Reporter:  h.koenig     |          Owner:  julian_chu
     Type:  enhancement  |         Status:  new       
 Priority:  normal       |      Milestone:            
Component:  Distro       |        Version:            
 Severity:  normal       |       Keywords:            
 Haspatch:  0            |      Blockedby:            
Estimated:               |    Patchreview:            
 Blocking:               |   Reproducible:            
-------------------------+--------------------------------------------------

Comment(by h.koenig):

 Replying to [ticket:1953 h.koenig] (4 months ago!!!):

 > 1) bug & fix:
 > everyone has trouble with the output of "cat /dev/ttySAC1" after 1st
 startup,
 > some not so clever apps might fail.
 > why not set reasonable tty setting at boot time ?

 Om2008.12 still starts up with echo enabled on /dev/ttySAC1 :-(

 openmoko-agpsui uses ~50% cpu time trying to parse the garbled NMEA stream
 due to the replies of the echo'ed nmea records.

 _please_ switch off at least echo (better "icrnl" too) :

 > right now I'm using this /etc/init.d/gps-hardware
 >
 >
 -------------------------------------------------------------------------------
 > # This is a dummy file. Some machines use it to bring up integrated GPS
 > # devices on demand.
 > ln -sf ttySAC1 /dev/gps
 > stty -echo -icrnl < /dev/gps
 >
 -------------------------------------------------------------------------------


 thanks!

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1953#comment:2>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list