Bug 863630

Summary: gpsd prevents FT232 serial ports from being used
Product: [Fedora] Fedora Reporter: Alex G. <mr.nuke.me>
Component: gpsdAssignee: Douglas E. Warner <silfreed>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: mlichvar, silfreed
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-08 11:50:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alex G. 2012-10-06 05:52:31 UTC
Description of problem:
Attempting to use a FT232 USB to serial converter does not work.

How reproducible:
Always

Steps to Reproduce:
1. log in with a user in the "dialout" group
2. connect an FT232 USB-to-serial converter
3. Attempt to open the serial port
  
Actual results:
$ picocom /dev/ttyUSB0 -b115200 
[..]
FATAL: cannot open /dev/ttyUSB0: Device or resource busy

Expected results:
Serial port works normally.

Additional info:
Trying to find why the resource is busy leads to gpsd
$ sudo lsof /dev/ttyUSB0
COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
gpsd    28540 nobody    7u   CHR  188,0      0t0 17364030 /dev/ttyUSB0

Which leads to the culprit rule in /etc/udev/rules.d/99-gpsd.rules:
# FTDI 8U232AM / FT232 [linux module: ftdi_sio]
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug"

Comment 1 Miroslav Lichvar 2012-10-08 11:50:10 UTC
This is a known issue, you can disable USBAUTO in /etc/sysconfig/gpsd or uninstall gpsd completely.

*** This bug has been marked as a duplicate of bug 663124 ***