Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/bus/hid/drivers/wiimote/<dev>/led1
0002 What:           /sys/bus/hid/drivers/wiimote/<dev>/led2
0003 What:           /sys/bus/hid/drivers/wiimote/<dev>/led3
0004 What:           /sys/bus/hid/drivers/wiimote/<dev>/led4
0005 Date:           July 2011
0006 KernelVersion:  3.1
0007 Contact:        David Herrmann <dh.herrmann@googlemail.com>
0008 Description:    Make it possible to set/get current led state. Reading from it
0009                 returns 0 if led is off and 1 if it is on. Writing 0 to it
0010                 disables the led, writing 1 enables it.
0011 
0012 What:           /sys/bus/hid/drivers/wiimote/<dev>/extension
0013 Date:           August 2011
0014 KernelVersion:  3.2
0015 Contact:        David Herrmann <dh.herrmann@gmail.com>
0016 Description:    This file contains the currently connected and initialized
0017                 extensions. It can be one of: none, motionp, nunchuck, classic,
0018                 motionp+nunchuck, motionp+classic
0019                 motionp is the official Nintendo Motion+ extension, nunchuck is
0020                 the official Nintendo Nunchuck extension and classic is the
0021                 Nintendo Classic Controller extension. The motionp extension can
0022                 be combined with the other two.
0023 
0024                 Starting with kernel-version 3.11 Motion Plus hotplugging is
0025                 supported and if detected, it's no longer reported as static
0026                 extension. You will get uevent notifications for the motion-plus
0027                 device then.
0028 
0029 What:           /sys/bus/hid/drivers/wiimote/<dev>/devtype
0030 Date:           May 2013
0031 KernelVersion:  3.11
0032 Contact:        David Herrmann <dh.herrmann@gmail.com>
0033 Description:    While a device is initialized by the wiimote driver, we perform
0034                 a device detection and signal a "change" uevent after it is
0035                 done. This file shows the detected device type. "pending" means
0036                 that the detection is still ongoing, "unknown" means, that the
0037                 device couldn't be detected or loaded. "generic" means, that the
0038                 device couldn't be detected but supports basic Wii Remote
0039                 features and can be used.
0040                 Other strings for each device-type are available and may be
0041                 added if new device-specific detections are added.
0042                 Currently supported are:
0043 
0044                         ============= =======================================
0045                         gen10:        First Wii Remote generation
0046                         gen20:        Second Wii Remote Plus generation
0047                                       (builtin MP)
0048                         balanceboard: Wii Balance Board
0049                         ============= =======================================
0050 
0051 What:           /sys/bus/hid/drivers/wiimote/<dev>/bboard_calib
0052 Date:           May 2013
0053 KernelVersion:  3.11
0054 Contact:        David Herrmann <dh.herrmann@gmail.com>
0055 Description:    This attribute is only provided if the device was detected as a
0056                 balance board. It provides a single line with 3 calibration
0057                 values for all 4 sensors. The values are separated by colons and
0058                 are each 2 bytes long (encoded as 4 digit hexadecimal value).
0059                 First, 0kg values for all 4 sensors are written, followed by the
0060                 17kg values for all 4 sensors and last the 34kg values for all 4
0061                 sensors.
0062 
0063                 Calibration data is already applied by the kernel to all input
0064                 values but may be used by user-space to perform other
0065                 transformations.
0066 
0067 What:           /sys/bus/hid/drivers/wiimote/<dev>/pro_calib
0068 Date:           October 2013
0069 KernelVersion:  3.13
0070 Contact:        David Herrmann <dh.herrmann@gmail.com>
0071 Description:    This attribute is only provided if the device was detected as a
0072                 pro-controller. It provides a single line with 4 calibration
0073                 values for all 4 analog sticks. Format is: "x1:y1 x2:y2". Data
0074                 is prefixed with a +/-. Each value is a signed 16bit number.
0075                 Data is encoded as decimal numbers and specifies the offsets of
0076                 the analog sticks of the pro-controller.
0077 
0078                 Calibration data is already applied by the kernel to all input
0079                 values but may be used by user-space to perform other
0080                 transformations.
0081 
0082                 Calibration data is detected by the kernel during device setup.
0083                 You can write "scan\n" into this file to re-trigger calibration.
0084                 You can also write data directly in the form "x1:y1 x2:y2" to
0085                 set the calibration values manually.