[Pcsclite-cvs-commit] r5706 - /trunk/Drivers/ccid/src/92_pcscd_ccid.rules
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Apr 22 14:37:47 UTC 2011
Author: rousseau
Date: Fri Apr 22 14:37:45 2011
New Revision: 5706
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5706
Log:
Activate USB automatic power suspend. The Linux kernel should power off
the reader automatically if it is not used (pcscd is not running).
Documentation from http://www.lesswatts.org/projects/devices-power-management/usb.php
Closes: alioth bug [#311273] CCID driver: Enable USB selective suspend
when possible
Modified:
trunk/Drivers/ccid/src/92_pcscd_ccid.rules
Modified: trunk/Drivers/ccid/src/92_pcscd_ccid.rules
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/92_pcscd_ccid.rules?rev=5706&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/92_pcscd_ccid.rules (original)
+++ trunk/Drivers/ccid/src/92_pcscd_ccid.rules Fri Apr 22 14:37:45 2011
@@ -15,7 +15,12 @@
ATTRS{idVendor}=="0d46", ATTRS{idProduct}=="4081", RUN+="/usr/sbin/Kobil_mIDentity_switch"
# generic CCID device (bInterfaceClass = 0x0b)
+# change group from default "root" to "pcscd"
ENV{ID_USB_INTERFACES}=="*:0b0000:*", GROUP="pcscd"
+
+# set USB power management to auto. "power/level" has been deprecated in
+# Linux 2.6.35 and replaced by "power/control"
+ENV{ID_USB_INTERFACES}=="*:0b0000:*", RUN+="/bin/sh -c 'echo auto > /sys/$devpath/power/level ; echo auto > /sys/$devpath/power/control'"
# non CCID generic (InterfaceClass: 0xFF)
# CherrySmartTerminalST2XXX.txt
More information about the Pcsclite-cvs-commit
mailing list