Dear Mr. Knopper,
When I click Eject Removable Media, the LEDs of my USB thumbdrives (we call them pendrives) keep glowing.
I have found two packages that help power off the concerned USB port: (1) udisks and (2) udisksctl. The monitor option helps keep track of the status of the drives, and the commands:
Code:
udisks --monitor-detail
.. This can also be achieved real-time with enumerate option.
or
Code:
udisksctl monitor
I have created a simple routine with grep "by-id" to find out which drive is running in which usb port, and then use appropriate commands:
Code:
 --unmount device_file
and
Code:
 --detach device_file
; or
Code:
 udisksctl unmount
and
Code:
 udisksctl power-off
to power off the usb port in question and helps ease taking the drive off the concerned port.
However, I can't create a script and then bind the script with the right click / Eject Removable Media event.
Debian Lenny has this option of powering off the usb ports.
How to do this? Could you incorporate this in your later releases?
Regards,
Rajib Bandopadhyay