4 Dec 2005 12:44
Re: I need the SerialNumber for a plain linux-user
Xiaofan Chen <xiaofanc <at> gmail.com>
2005-12-04 11:44:54 GMT
2005-12-04 11:44:54 GMT
On Mon, Sep 26, 2005 at 01:42:35PM -0400, Charles Lepple wrote:
> On 9/26/05, Peter Stuge <stuge-libusb <at> cdy.org> wrote:
> > I am not sure whether detaching the kernel driver requires root
> > privileges or if write access to the /proc/bus/usb/*/* file is
> > enough.
>
> I'm pretty sure that only write access is necessary, because NUT's
> USB drivers (in the Debian packages) and libhid/libphidgets use
> special groups for access.
This is the follow up to the issues with hotplugging of PICkit 1/2
PIC MCU programmers. They both have dual configurations
(HID and vendor specific).
Finally Mark Rages (the develper of the Python application to
control PICkit 1/2 application using the BitPim libusb wrapper)
solved the issue with PICkit 1/2 hotplugging. We need to detach
the kernel HID driver in the hotplug script.
With this hotplug script, we can now run PICkit 1/2 libusb
based application under Linux using a normal user account.
Regards,
Xiaofan
mcuee <at> ubuntu:/etc/hotplug/usb$ cat pickit
#!/bin/bash
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
(Continue reading)
RSS Feed