1 What: /sys/bus/usb/devices/.../power/autosuspend
4 Contact: Alan Stern <stern@rowland.harvard.edu>
6 Each USB device directory will contain a file named
7 power/autosuspend. This file holds the time (in seconds)
8 the device must be idle before it will be autosuspended.
9 0 means the device will be autosuspended as soon as
10 possible. Negative values will prevent the device from
11 being autosuspended at all, and writing a negative value
12 will resume the device if it is already suspended.
14 The autosuspend delay for newly-created devices is set to
15 the value of the usbcore.autosuspend module parameter.
17 What: /sys/bus/usb/devices/.../power/persist
20 Contact: Alan Stern <stern@rowland.harvard.edu>
22 If CONFIG_USB_PERSIST is set, then each USB device directory
23 will contain a file named power/persist. The file holds a
24 boolean value (0 or 1) indicating whether or not the
25 "USB-Persist" facility is enabled for the device. Since the
26 facility is inherently dangerous, it is disabled by default
27 for all devices except hubs. For more information, see
28 Documentation/usb/persist.txt.
30 What: /sys/bus/usb/device/.../power/connected_duration
33 Contact: Sarah Sharp <sarah.a.sharp@intel.com>
35 If CONFIG_PM and CONFIG_USB_SUSPEND are enabled, then this file
36 is present. When read, it returns the total time (in msec)
37 that the USB device has been connected to the machine. This
40 PowerTOP <power@bughost.org>
41 http://www.lesswatts.org/projects/powertop/
43 What: /sys/bus/usb/device/.../power/active_duration
46 Contact: Sarah Sharp <sarah.a.sharp@intel.com>
48 If CONFIG_PM and CONFIG_USB_SUSPEND are enabled, then this file
49 is present. When read, it returns the total time (in msec)
50 that the USB device has been active, i.e. not in a suspended
51 state. This file is read-only.
53 Tools can use this file and the connected_duration file to
54 compute the percentage of time that a device has been active.
56 echo $((100 * `cat active_duration` / `cat connected_duration`))
57 will give an integer percentage. Note that this does not
58 account for counter wrap.
60 PowerTOP <power@bughost.org>
61 http://www.lesswatts.org/projects/powertop/
63 What: /sys/bus/usb/device/<busnum>-<devnum>...:<config num>-<interface num>/supports_autosuspend
66 Contact: Sarah Sharp <sarah.a.sharp@intel.com>
68 When read, this file returns 1 if the interface driver
69 for this interface supports autosuspend. It also
70 returns 1 if no driver has claimed this interface, as an
71 unclaimed interface will not stop the device from being
72 autosuspended if all other interface drivers are idle.
73 The file returns 0 if autosuspend support has not been
77 git://git.moblin.org/users/sarah/usb-pm-tool/
79 What: /sys/bus/usb/device/.../authorized
82 Contact: David Vrabel <david.vrabel@csr.com>
84 Authorized devices are available for use by device
85 drivers, non-authorized one are not. By default, wired
86 USB devices are authorized.
88 Certified Wireless USB devices are not authorized
89 initially and should be (by writing 1) after the
90 device has been authenticated.
92 What: /sys/bus/usb/device/.../wusb_cdid
95 Contact: David Vrabel <david.vrabel@csr.com>
97 For Certified Wireless USB devices only.
99 A devices's CDID, as 16 space-separated hex octets.
101 What: /sys/bus/usb/device/.../wusb_ck
103 KernelVersion: 2.6.27
104 Contact: David Vrabel <david.vrabel@csr.com>
106 For Certified Wireless USB devices only.
108 Write the device's connection key (CK) to start the
109 authentication of the device. The CK is 16
110 space-separated hex octets.
112 What: /sys/bus/usb/device/.../wusb_disconnect
114 KernelVersion: 2.6.27
115 Contact: David Vrabel <david.vrabel@csr.com>
117 For Certified Wireless USB devices only.
119 Write a 1 to force the device to disconnect
120 (equivalent to unplugging a wired USB device).
122 What: /sys/bus/usb/drivers/.../new_id
124 Contact: linux-usb@vger.kernel.org
126 Writing a device ID to this file will attempt to
127 dynamically add a new device ID to a USB device driver.
128 This may allow the driver to support more hardware than
129 was included in the driver's static device ID support
130 table at compile time. The format for the device ID is:
131 idVendor idProduct bInterfaceClass.
132 The vendor ID and device ID fields are required, the
133 interface class is optional.
134 Upon successfully adding an ID, the driver will probe
135 for the device and attempt to bind to it. For example:
136 # echo "8086 10f5" > /sys/bus/usb/drivers/foo/new_id
138 What: /sys/bus/usb-serial/drivers/.../new_id
140 Contact: linux-usb@vger.kernel.org
142 For serial USB drivers, this attribute appears under the
143 extra bus folder "usb-serial" in sysfs; apart from that
144 difference, all descriptions from the entry
145 "/sys/bus/usb/drivers/.../new_id" apply.
147 What: /sys/bus/usb/drivers/.../remove_id
149 Contact: CHENG Renquan <rqcheng@smu.edu.sg>
151 Writing a device ID to this file will remove an ID
152 that was dynamically added via the new_id sysfs entry.
153 The format for the device ID is:
154 idVendor idProduct. After successfully
155 removing an ID, the driver will no longer support the
156 device. This is useful to ensure auto probing won't
157 match the driver to the device. For example:
158 # echo "046d c315" > /sys/bus/usb/drivers/foo/remove_id
160 What: /sys/bus/usb/device/.../avoid_reset_quirk
162 Contact: Oliver Neukum <oliver@neukum.org>
164 Writing 1 to this file tells the kernel that this
165 device will morph into another mode when it is reset.
166 Drivers will not use reset for error handling for
171 What: /sys/bus/usb/devices/.../power/usb2_hardware_lpm
173 Contact: Andiry Xu <andiry.xu@amd.com>
175 If CONFIG_USB_SUSPEND is set and a USB 2.0 lpm-capable device
176 is plugged in to a xHCI host which support link PM, it will
177 perform a LPM test; if the test is passed and host supports
178 USB2 hardware LPM (xHCI 1.0 feature), USB2 hardware LPM will
179 be enabled for the device and the USB device directory will
180 contain a file named power/usb2_hardware_lpm. The file holds
181 a string value (enable or disable) indicating whether or not
182 USB2 hardware LPM is enabled for the device. Developer can
183 write y/Y/1 or n/N/0 to the file to enable/disable the