[Pcsclite-cvs-commit] r6275 - /trunk/Drivers/ccid/src/92_pcscd_ccid.rules

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Apr 17 13:42:43 UTC 2012


Author: rousseau
Date: Tue Apr 17 13:42:42 2012
New Revision: 6275

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6275
Log:
Use auto suspend for CCID devices only

The rule used "*:0b0000:*" and so was used even for composite devices
using a CCID interface. It was problematic for a keybord + CCID
interface since the keyboard was also automatically systended after a
few seconds of inactivity.

The new rule uses ":0b0000:" so composite devices will not be configured
for USB automatic suspend.

Closes Alioth bug [#313445] "Do not activate USB suspend for composite
devices: keyboard"
https://alioth.debian.org/tracker/index.php?func=detail&aid=313445&group_id=30105&atid=410085

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=6275&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/92_pcscd_ccid.rules (original)
+++ trunk/Drivers/ccid/src/92_pcscd_ccid.rules Tue Apr 17 13:42:42 2012
@@ -20,7 +20,7 @@
 
 # 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'"
+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