I’ve heard tell that the WWAN module lodged inside my laptop can give me my coordinates on planet Earth. I thought I’d see if it was true. Fortunately, a number of brave souls have blazed the path, I needed only to rediscover it.
Funny side note
Did you know that your super modern WWAN module uses 1980s-era modem commands to control it? You know, AT…OK, blah blah blah. Who knew, right?
Let’s do this
- Buy and install an Ericsson H5321 WWAN module in your Lenovo X200 running coreboot. The X200 and coreboot part isn’t strictly necessary, but neither is OpenBSD nor life, yet all of the above are a good idea.
- # pkg_add gpsd gpsd-X11 socat jq
- Download and run gps_on.
- Download and run gps_location.
- Wait 10 minutes while the WWAN module ponders life and acquires a GPS lock. YMMV…it may take infinity minutes, depending on how your WWAN module and the GPS satellites feel that day. But that’s ok because the X200 is a hypercomputer, so it will go by fast.
- Bask in the glory of your location.
- Donate $1 to GPSD and $1 to OpenBSD. It’s a good habit to get into after you bask in glory.