gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Another release seems called for


From: Jeroen Massar
Subject: Re: [gpsd-dev] Another release seems called for
Date: Tue, 23 Jul 2013 19:54:39 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130620 Thunderbird/17.0.7

On 2013-07-23 19:49 , Gary E. Miller wrote:
> Yo Jeroen!
> 
> On Tue, 23 Jul 2013 19:42:01 +0200
> Jeroen Massar <address@hidden> wrote:
> 
>>> If I unplug a USB GPS, then plug it back in, then gpsd can no longer
>>> access the device:
>>>
>>> gpsd:INFO: reconnection attempt on device 0
>>> gpsd:INFO: opening GPS data source type 3 at '/dev/ttyUSB0'
>>> gpsd:ERROR: device open failed: Permission denied - retrying
>>> read-only gpsd:ERROR: read-only device open failed: Permission
>>> denied gpsd:ERROR: /dev/ttyUSB0: device activation failed.
>>>
>>> I assume because priviledges dropped.
>>
>> Depending on platform, if on Linux you can teach udev to set the
>> permissions so that gpsd can access it.
> 
> Yeah, I could tweak udev, but gps had no problems opening it to start
> with.  It would be nice if gpsd could still open it for a replug
> without system specificc tweaks.

As the device gets removed when one unplugs it, the only way to do that
would be to keep to not drop privileges.

The udev path is the cleaner method IMHO, which should also allow
starting as non-root completely.

Greets,
 Jeroen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]