GPS stopped working

If you use gpsinfo, it seems that you can’t rely on the number of satellites being shown. Gpsinfo just remembers the last number when the gps was working and doesn’t update it.