^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/hid/drivers/wiimote/<dev>/led1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) What: /sys/bus/hid/drivers/wiimote/<dev>/led2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) What: /sys/bus/hid/drivers/wiimote/<dev>/led3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) What: /sys/bus/hid/drivers/wiimote/<dev>/led4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Date: July 2011
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) KernelVersion: 3.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) Contact: David Herrmann <dh.herrmann@googlemail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Description: Make it possible to set/get current led state. Reading from it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) returns 0 if led is off and 1 if it is on. Writing 0 to it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) disables the led, writing 1 enables it.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) What: /sys/bus/hid/drivers/wiimote/<dev>/extension
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Date: August 2011
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) KernelVersion: 3.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Contact: David Herrmann <dh.herrmann@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Description: This file contains the currently connected and initialized
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) extensions. It can be one of: none, motionp, nunchuck, classic,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) motionp+nunchuck, motionp+classic
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) motionp is the official Nintendo Motion+ extension, nunchuck is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) the official Nintendo Nunchuck extension and classic is the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) Nintendo Classic Controller extension. The motionp extension can
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) be combined with the other two.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Starting with kernel-version 3.11 Motion Plus hotplugging is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) supported and if detected, it's no longer reported as static
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extension. You will get uevent notifications for the motion-plus
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) device then.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) What: /sys/bus/hid/drivers/wiimote/<dev>/devtype
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Contact: David Herrmann <dh.herrmann@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Description: While a device is initialized by the wiimote driver, we perform
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) a device detection and signal a "change" uevent after it is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) done. This file shows the detected device type. "pending" means
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) that the detection is still ongoing, "unknown" means, that the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) device couldn't be detected or loaded. "generic" means, that the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) device couldn't be detected but supports basic Wii Remote
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) features and can be used.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Other strings for each device-type are available and may be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) added if new device-specific detections are added.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) Currently supported are:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) ============= =======================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) gen10: First Wii Remote generation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) gen20: Second Wii Remote Plus generation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) (builtin MP)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) balanceboard: Wii Balance Board
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) ============= =======================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) What: /sys/bus/hid/drivers/wiimote/<dev>/bboard_calib
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) Contact: David Herrmann <dh.herrmann@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) Description: This attribute is only provided if the device was detected as a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) balance board. It provides a single line with 3 calibration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) values for all 4 sensors. The values are separated by colons and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) are each 2 bytes long (encoded as 4 digit hexadecimal value).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) First, 0kg values for all 4 sensors are written, followed by the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 17kg values for all 4 sensors and last the 34kg values for all 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) sensors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) Calibration data is already applied by the kernel to all input
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) values but may be used by user-space to perform other
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) transformations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) What: /sys/bus/hid/drivers/wiimote/<dev>/pro_calib
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) Date: October 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) KernelVersion: 3.13
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) Contact: David Herrmann <dh.herrmann@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) Description: This attribute is only provided if the device was detected as a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) pro-controller. It provides a single line with 4 calibration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) values for all 4 analog sticks. Format is: "x1:y1 x2:y2". Data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) is prefixed with a +/-. Each value is a signed 16bit number.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) Data is encoded as decimal numbers and specifies the offsets of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) the analog sticks of the pro-controller.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) Calibration data is already applied by the kernel to all input
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) values but may be used by user-space to perform other
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) transformations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) Calibration data is detected by the kernel during device setup.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) You can write "scan\n" into this file to re-trigger calibration.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) You can also write data directly in the form "x1:y1 x2:y2" to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) set the calibration values manually.