how to use HAL to set permissions for Garmin GPS usb device
On Ubuntu Jaunty (x86_64), I have difficulties with file permissions of my Garmin GPSmap device. A number of older postings recommend vaguely that HAL + policykit should be used to set the respective file permissions.
lshal for the GPS device yields
udi = '/org/freedeskt
info.linux.driver = 'usb' (string)
info.parent = '/org/freedeskt
info.product = 'GPSmap (various models)' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedeskt
info.vendor = 'Garmin International' (string)
linux.device_file = '/dev/bus/
linux.
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.speed = 12.0 (12) (double)
usb_device.vendor = 'Garmin International' (string)
usb_device.
usb_device.
Based on informations I gathered from googling around I created the following fdi files:
/etc/hal/
<?xml version="0.2">
<device>
<match key="usb_
<match key="usb_
<append key="info.
<merge key="gps.platform" type="string"
<merge key="gps.
</match>
</match>
</device>
</deviceinfo>
/etc/hal/
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="info.
<match key="gps.platform" string="garmin">
<append key="info.
<merge key="access_
<merge key="access_
<append key="access_
</match>
</match>
</device>
</deviceinfo>
Afterwards, I used polkit-
$ gpsbabel -t -w -i garmin -f usb: -o gpx -F test.gpx
Claim interfaced failed: could not claim interface 0: Operation not permitted
$ getfacl /dev/bus/
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/004/010
# owner: root
# group: root
user::rw-
group::rw-
other::r--
Do you have any suggestions how to fix this?
Thanks! Ulf
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ulf Mehlig
- Solved:
- Last query:
- Last reply: