162306a36Sopenharmony_ciWhat: /sys/bus/hid/drivers/wiimote/<dev>/led1 262306a36Sopenharmony_ciWhat: /sys/bus/hid/drivers/wiimote/<dev>/led2 362306a36Sopenharmony_ciWhat: /sys/bus/hid/drivers/wiimote/<dev>/led3 462306a36Sopenharmony_ciWhat: /sys/bus/hid/drivers/wiimote/<dev>/led4 562306a36Sopenharmony_ciDate: July 2011 662306a36Sopenharmony_ciKernelVersion: 3.1 762306a36Sopenharmony_ciContact: David Herrmann <dh.herrmann@googlemail.com> 862306a36Sopenharmony_ciDescription: Make it possible to set/get current led state. Reading from it 962306a36Sopenharmony_ci returns 0 if led is off and 1 if it is on. Writing 0 to it 1062306a36Sopenharmony_ci disables the led, writing 1 enables it. 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciWhat: /sys/bus/hid/drivers/wiimote/<dev>/extension 1362306a36Sopenharmony_ciDate: August 2011 1462306a36Sopenharmony_ciKernelVersion: 3.2 1562306a36Sopenharmony_ciContact: David Herrmann <dh.herrmann@gmail.com> 1662306a36Sopenharmony_ciDescription: This file contains the currently connected and initialized 1762306a36Sopenharmony_ci extensions. It can be one of: none, motionp, nunchuck, classic, 1862306a36Sopenharmony_ci motionp+nunchuck, motionp+classic 1962306a36Sopenharmony_ci motionp is the official Nintendo Motion+ extension, nunchuck is 2062306a36Sopenharmony_ci the official Nintendo Nunchuck extension and classic is the 2162306a36Sopenharmony_ci Nintendo Classic Controller extension. The motionp extension can 2262306a36Sopenharmony_ci be combined with the other two. 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci Starting with kernel-version 3.11 Motion Plus hotplugging is 2562306a36Sopenharmony_ci supported and if detected, it's no longer reported as static 2662306a36Sopenharmony_ci extension. You will get uevent notifications for the motion-plus 2762306a36Sopenharmony_ci device then. 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ciWhat: /sys/bus/hid/drivers/wiimote/<dev>/devtype 3062306a36Sopenharmony_ciDate: May 2013 3162306a36Sopenharmony_ciKernelVersion: 3.11 3262306a36Sopenharmony_ciContact: David Herrmann <dh.herrmann@gmail.com> 3362306a36Sopenharmony_ciDescription: While a device is initialized by the wiimote driver, we perform 3462306a36Sopenharmony_ci a device detection and signal a "change" uevent after it is 3562306a36Sopenharmony_ci done. This file shows the detected device type. "pending" means 3662306a36Sopenharmony_ci that the detection is still ongoing, "unknown" means, that the 3762306a36Sopenharmony_ci device couldn't be detected or loaded. "generic" means, that the 3862306a36Sopenharmony_ci device couldn't be detected but supports basic Wii Remote 3962306a36Sopenharmony_ci features and can be used. 4062306a36Sopenharmony_ci Other strings for each device-type are available and may be 4162306a36Sopenharmony_ci added if new device-specific detections are added. 4262306a36Sopenharmony_ci Currently supported are: 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci ============= ======================================= 4562306a36Sopenharmony_ci gen10: First Wii Remote generation 4662306a36Sopenharmony_ci gen20: Second Wii Remote Plus generation 4762306a36Sopenharmony_ci (builtin MP) 4862306a36Sopenharmony_ci balanceboard: Wii Balance Board 4962306a36Sopenharmony_ci ============= ======================================= 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ciWhat: /sys/bus/hid/drivers/wiimote/<dev>/bboard_calib 5262306a36Sopenharmony_ciDate: May 2013 5362306a36Sopenharmony_ciKernelVersion: 3.11 5462306a36Sopenharmony_ciContact: David Herrmann <dh.herrmann@gmail.com> 5562306a36Sopenharmony_ciDescription: This attribute is only provided if the device was detected as a 5662306a36Sopenharmony_ci balance board. It provides a single line with 3 calibration 5762306a36Sopenharmony_ci values for all 4 sensors. The values are separated by colons and 5862306a36Sopenharmony_ci are each 2 bytes long (encoded as 4 digit hexadecimal value). 5962306a36Sopenharmony_ci First, 0kg values for all 4 sensors are written, followed by the 6062306a36Sopenharmony_ci 17kg values for all 4 sensors and last the 34kg values for all 4 6162306a36Sopenharmony_ci sensors. 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_ci Calibration data is already applied by the kernel to all input 6462306a36Sopenharmony_ci values but may be used by user-space to perform other 6562306a36Sopenharmony_ci transformations. 6662306a36Sopenharmony_ci 6762306a36Sopenharmony_ciWhat: /sys/bus/hid/drivers/wiimote/<dev>/pro_calib 6862306a36Sopenharmony_ciDate: October 2013 6962306a36Sopenharmony_ciKernelVersion: 3.13 7062306a36Sopenharmony_ciContact: David Herrmann <dh.herrmann@gmail.com> 7162306a36Sopenharmony_ciDescription: This attribute is only provided if the device was detected as a 7262306a36Sopenharmony_ci pro-controller. It provides a single line with 4 calibration 7362306a36Sopenharmony_ci values for all 4 analog sticks. Format is: "x1:y1 x2:y2". Data 7462306a36Sopenharmony_ci is prefixed with a +/-. Each value is a signed 16bit number. 7562306a36Sopenharmony_ci Data is encoded as decimal numbers and specifies the offsets of 7662306a36Sopenharmony_ci the analog sticks of the pro-controller. 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ci Calibration data is already applied by the kernel to all input 7962306a36Sopenharmony_ci values but may be used by user-space to perform other 8062306a36Sopenharmony_ci transformations. 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ci Calibration data is detected by the kernel during device setup. 8362306a36Sopenharmony_ci You can write "scan\n" into this file to re-trigger calibration. 8462306a36Sopenharmony_ci You can also write data directly in the form "x1:y1 x2:y2" to 8562306a36Sopenharmony_ci set the calibration values manually. 86