sysfs-bus-usb 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. What: /sys/bus/usb/devices/.../power/autosuspend
  2. Date: March 2007
  3. KernelVersion: 2.6.21
  4. Contact: Alan Stern <stern@rowland.harvard.edu>
  5. Description:
  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.
  13. The autosuspend delay for newly-created devices is set to
  14. the value of the usbcore.autosuspend module parameter.
  15. What: /sys/bus/usb/devices/.../power/level
  16. Date: March 2007
  17. KernelVersion: 2.6.21
  18. Contact: Alan Stern <stern@rowland.harvard.edu>
  19. Description:
  20. Each USB device directory will contain a file named
  21. power/level. This file holds a power-level setting for
  22. the device, one of "on", "auto", or "suspend".
  23. "on" means that the device is not allowed to autosuspend,
  24. although normal suspends for system sleep will still
  25. be honored. "auto" means the device will autosuspend
  26. and autoresume in the usual manner, according to the
  27. capabilities of its driver. "suspend" means the device
  28. is forced into a suspended state and it will not autoresume
  29. in response to I/O requests. However remote-wakeup requests
  30. from the device may still be enabled (the remote-wakeup
  31. setting is controlled separately by the power/wakeup
  32. attribute).
  33. During normal use, devices should be left in the "auto"
  34. level. The other levels are meant for administrative uses.
  35. If you want to suspend a device immediately but leave it
  36. free to wake up in response to I/O requests, you should
  37. write "0" to power/autosuspend.
  38. What: /sys/bus/usb/devices/.../power/persist
  39. Date: May 2007
  40. KernelVersion: 2.6.23
  41. Contact: Alan Stern <stern@rowland.harvard.edu>
  42. Description:
  43. If CONFIG_USB_PERSIST is set, then each USB device directory
  44. will contain a file named power/persist. The file holds a
  45. boolean value (0 or 1) indicating whether or not the
  46. "USB-Persist" facility is enabled for the device. Since the
  47. facility is inherently dangerous, it is disabled by default
  48. for all devices except hubs. For more information, see
  49. Documentation/usb/persist.txt.
  50. What: /sys/bus/usb/device/.../power/connected_duration
  51. Date: January 2008
  52. KernelVersion: 2.6.25
  53. Contact: Sarah Sharp <sarah.a.sharp@intel.com>
  54. Description:
  55. If CONFIG_PM and CONFIG_USB_SUSPEND are enabled, then this file
  56. is present. When read, it returns the total time (in msec)
  57. that the USB device has been connected to the machine. This
  58. file is read-only.
  59. Users:
  60. PowerTOP <power@bughost.org>
  61. http://www.lesswatts.org/projects/powertop/
  62. What: /sys/bus/usb/device/.../power/active_duration
  63. Date: January 2008
  64. KernelVersion: 2.6.25
  65. Contact: Sarah Sharp <sarah.a.sharp@intel.com>
  66. Description:
  67. If CONFIG_PM and CONFIG_USB_SUSPEND are enabled, then this file
  68. is present. When read, it returns the total time (in msec)
  69. that the USB device has been active, i.e. not in a suspended
  70. state. This file is read-only.
  71. Tools can use this file and the connected_duration file to
  72. compute the percentage of time that a device has been active.
  73. For example,
  74. echo $((100 * `cat active_duration` / `cat connected_duration`))
  75. will give an integer percentage. Note that this does not
  76. account for counter wrap.
  77. Users:
  78. PowerTOP <power@bughost.org>
  79. http://www.lesswatts.org/projects/powertop/
  80. What: /sys/bus/usb/device/<busnum>-<devnum>...:<config num>-<interface num>/supports_autosuspend
  81. Date: January 2008
  82. KernelVersion: 2.6.27
  83. Contact: Sarah Sharp <sarah.a.sharp@intel.com>
  84. Description:
  85. When read, this file returns 1 if the interface driver
  86. for this interface supports autosuspend. It also
  87. returns 1 if no driver has claimed this interface, as an
  88. unclaimed interface will not stop the device from being
  89. autosuspended if all other interface drivers are idle.
  90. The file returns 0 if autosuspend support has not been
  91. added to the driver.
  92. Users:
  93. USB PM tool
  94. git://git.moblin.org/users/sarah/usb-pm-tool/
  95. What: /sys/bus/usb/device/.../authorized
  96. Date: July 2008
  97. KernelVersion: 2.6.26
  98. Contact: David Vrabel <david.vrabel@csr.com>
  99. Description:
  100. Authorized devices are available for use by device
  101. drivers, non-authorized one are not. By default, wired
  102. USB devices are authorized.
  103. Certified Wireless USB devices are not authorized
  104. initially and should be (by writing 1) after the
  105. device has been authenticated.
  106. What: /sys/bus/usb/device/.../wusb_cdid
  107. Date: July 2008
  108. KernelVersion: 2.6.27
  109. Contact: David Vrabel <david.vrabel@csr.com>
  110. Description:
  111. For Certified Wireless USB devices only.
  112. A devices's CDID, as 16 space-separated hex octets.
  113. What: /sys/bus/usb/device/.../wusb_ck
  114. Date: July 2008
  115. KernelVersion: 2.6.27
  116. Contact: David Vrabel <david.vrabel@csr.com>
  117. Description:
  118. For Certified Wireless USB devices only.
  119. Write the device's connection key (CK) to start the
  120. authentication of the device. The CK is 16
  121. space-separated hex octets.
  122. What: /sys/bus/usb/device/.../wusb_disconnect
  123. Date: July 2008
  124. KernelVersion: 2.6.27
  125. Contact: David Vrabel <david.vrabel@csr.com>
  126. Description:
  127. For Certified Wireless USB devices only.
  128. Write a 1 to force the device to disconnect
  129. (equivalent to unplugging a wired USB device).