[Index] [TitleIndex] [WordIndex


This Plugin to scan for usb devices. You should activate this plugin if you use mainmenu plugins for special usb devices like usbstorage.py.

You can also set USB_HOTPLUG in your local_config.py to call an external program when a device is added. USB_HOTPLUG is a list with actions. Each action is also a list of device, message and program to call. Limitation: this works only when Freevo shows the menu and is not running a video.

Example: call pilot-xfer when a pda with the id 082d:0100 is pluged in:

USB_HOTPLUG = [ ('082d:0100', 'Synchronizing',
                 '/usr/bin/pilot-xfer -t -u /local/visor/current') ]

Other example, mount usb storage device when it is hotplugged. Limitations :

USB_HOTPLUG = [ ('0d7d:0150', 'Mounting USB stick',
                 'mount /dev/sde1 /mnt/usbstick') ]

To find the producktid:vendorid of the USB device, look in the kernel messages or use the command lsusb.

2014-02-15 05:35