rajibando
08-10-2014, 03:43 PM
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:
udisks --monitor-detail .. This can also be achieved real-time with enumerate option.
or
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:
--unmount device_file and
--detach device_file ; or
udisksctl unmount and
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
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:
udisks --monitor-detail .. This can also be achieved real-time with enumerate option.
or
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:
--unmount device_file and
--detach device_file ; or
udisksctl unmount and
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