Using a VK-162 GPS. Often the gps alternately reports 2 different positions - 1 is the correct current position and the other is lat 52:xx:xx North and long 21:xx:xx East. Viewing the gps data with xgps shows it switching between 2 sources - 1 is /dev/tty/ACM0 (correct) and the other /tmp/vgps which is a softlink to /dev/pts/0. What is this source and how can it be removed?
This happens with multiple VK-162 devices and happens on both Astroberry and Stellarmate.
sudo systemctl stop virtualgps <--- This stops a running virtualgps service
sudo systemctl disable virtualgps <--- This prevents the virtualgps service from starting at boot time, but it doesn't stop an already running virtualgps service.
In case you have problems getting a fix from your GPS, then it's a good idea to put your usual home location into /etc/location.conf
That way, if you can't get a fix, then you can start the virtualgps service and use it with GPSD as normal.
To start:
sudo systemctl start virtualgps
You don't need to enable virtualgps in order to start it, that just makes it start automatically at boot time.