gpsd udev devices includes a common USB Serial adapter. Collisions occur.
Bug #2012207 reported by
Kristopher Setnes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gpsd (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
The following USB device has been erroneously added to 60-gpsd.rules.
ATTRS{
There is a comment about this Prolific Technology, Inc. device at the top of the file matching too many other (non-GPS) devices. But, towards the bottom of 60-gpsd.rules, it has been added back in for a u-blox 8 receiver.
In my case this chipset is also used in an astrophotography mount (SkyWatcher EQ6-R Pro). This udev rule causes gpsd to erroneously connect to a telescope rig... and prevents other software from using it. The root cause was completely non-obvious to the end user.
Ubuntu 22.04.2 LTS
To post a comment you must log in.
Thanks for taking the time to report this bug and trying to make Ubuntu better.
This rule at the end of the file was added by upstream 4 years ago:
https:/ /gitlab. com/gpsd/ gpsd/-/ commit/ c0c0e53d7fe400c de49398bdcce024 fb9eb1d51b
So in Ubuntu 20.04 (a.k.a Focal) we already had that in place, were you using Focal before and upgraded to Jammy (22.04)? Or is this a new installation? If you upgraded, had you experienced this issue before?
There is a patch (d/p/gpsd_ hotplug_ rules_disable_ generic_ serial_ converters) in the debian package disabling a similar udev rule at the top of the file indeed:
-ATTRS{ idVendor} =="067b" , ATTRS{idProduct }=="2303" , SYMLINK+="gps%n", @UDEVCOMMAND@ =="067b" , ATTRS{idProduct }=="2303" , SYMLINK+="gps%n", @UDEVCOMMAND@
+# rule disabled in Debian as it matches too many other devices
+# ATTRS{idVendor}
It seems to be created before they added the other udev rule at the bottom at the file, someone might have forgotten to update the patch. I believe we should address it in the debian package and update the patch.
I also believe this is an issue to be discussed with upstream anyway. Could you try to report a bug upstream here [1]? If you do so, could you please link it here so we can track it?
[1] https:/ /gitlab. com/gpsd/ gpsd/-/ issues/ new