aboutsummaryrefslogtreecommitdiffstats
path: root/main/gpsd/gpsd.confd
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2012-11-04 03:20:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-11-04 15:34:37 +0000
commit4dbb6142d3e39ab740d6caa7a2b2e44f2c09790c (patch)
tree6e7aaaf18c756a69a16992a210967353e51d6f44 /main/gpsd/gpsd.confd
parentb2f59ad10f25be0112e9f226a1725bc82c0e793f (diff)
downloadaports-4dbb6142d3e39ab740d6caa7a2b2e44f2c09790c.tar.bz2
aports-4dbb6142d3e39ab740d6caa7a2b2e44f2c09790c.tar.xz
main/gpsd PPS may fail if baudrate is not set with stty before startup
Reference: http://catb.org/gpsd/upstream-bugs.html#tiocmwait
Diffstat (limited to 'main/gpsd/gpsd.confd')
-rw-r--r--main/gpsd/gpsd.confd9
1 files changed, 6 insertions, 3 deletions
diff --git a/main/gpsd/gpsd.confd b/main/gpsd/gpsd.confd
index 27bb332ace..30af2c3ee5 100644
--- a/main/gpsd/gpsd.confd
+++ b/main/gpsd/gpsd.confd
@@ -3,6 +3,7 @@
# The GPS device (/dev/ttyUSB0, /dev/ttyS0, ...)
DEVICE=""
+BAUDRATE="4800"
# Optional arguments
# Options include:
@@ -19,8 +20,10 @@ ARGS="-n "
# Serial setup
#
# For serial interfaces, options such as low_latency are recommended
-# Uncomment the following line to set the /dev/ttySxx device options, if
-# desired:
-
+# Also, http://catb.org/gpsd/upstream-bugs.html#tiocmwait recommends
+# setting the baudrate with stty
+# Uncomment the following lines if using a serial device:
+#
+# /bin/stty -F ${DEVICE} ${BAUDRATE}
# /bin/setserial ${DEVICE} low_latency