xref: /linux/Documentation/ABI/testing/sysfs-driver-hid-wiimote (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
13c1c2fceSDavid HerrmannWhat:		/sys/bus/hid/drivers/wiimote/<dev>/led1
23c1c2fceSDavid HerrmannWhat:		/sys/bus/hid/drivers/wiimote/<dev>/led2
33c1c2fceSDavid HerrmannWhat:		/sys/bus/hid/drivers/wiimote/<dev>/led3
43c1c2fceSDavid HerrmannWhat:		/sys/bus/hid/drivers/wiimote/<dev>/led4
53c1c2fceSDavid HerrmannDate:		July 2011
63c1c2fceSDavid HerrmannKernelVersion:	3.1
73c1c2fceSDavid HerrmannContact:	David Herrmann <dh.herrmann@googlemail.com>
83c1c2fceSDavid HerrmannDescription:	Make it possible to set/get current led state. Reading from it
93c1c2fceSDavid Herrmann		returns 0 if led is off and 1 if it is on. Writing 0 to it
103c1c2fceSDavid Herrmann		disables the led, writing 1 enables it.
11c1e51398SDavid Herrmann
12c1e51398SDavid HerrmannWhat:		/sys/bus/hid/drivers/wiimote/<dev>/extension
13c1e51398SDavid HerrmannDate:		August 2011
14c1e51398SDavid HerrmannKernelVersion:	3.2
15c7da0867SDavid HerrmannContact:	David Herrmann <dh.herrmann@gmail.com>
16c1e51398SDavid HerrmannDescription:	This file contains the currently connected and initialized
17c1e51398SDavid Herrmann		extensions. It can be one of: none, motionp, nunchuck, classic,
18c1e51398SDavid Herrmann		motionp+nunchuck, motionp+classic
19c1e51398SDavid Herrmann		motionp is the official Nintendo Motion+ extension, nunchuck is
20c1e51398SDavid Herrmann		the official Nintendo Nunchuck extension and classic is the
21c1e51398SDavid Herrmann		Nintendo Classic Controller extension. The motionp extension can
22c1e51398SDavid Herrmann		be combined with the other two.
23*54a19b4dSMauro Carvalho Chehab
24c7da0867SDavid Herrmann		Starting with kernel-version 3.11 Motion Plus hotplugging is
25c7da0867SDavid Herrmann		supported and if detected, it's no longer reported as static
26c7da0867SDavid Herrmann		extension. You will get uevent notifications for the motion-plus
27c7da0867SDavid Herrmann		device then.
28c7da0867SDavid Herrmann
29c7da0867SDavid HerrmannWhat:		/sys/bus/hid/drivers/wiimote/<dev>/devtype
30c7da0867SDavid HerrmannDate:		May 2013
31c7da0867SDavid HerrmannKernelVersion:	3.11
32c7da0867SDavid HerrmannContact:	David Herrmann <dh.herrmann@gmail.com>
33c7da0867SDavid HerrmannDescription:	While a device is initialized by the wiimote driver, we perform
34c7da0867SDavid Herrmann		a device detection and signal a "change" uevent after it is
35c7da0867SDavid Herrmann		done. This file shows the detected device type. "pending" means
36c7da0867SDavid Herrmann		that the detection is still ongoing, "unknown" means, that the
37c7da0867SDavid Herrmann		device couldn't be detected or loaded. "generic" means, that the
38c7da0867SDavid Herrmann		device couldn't be detected but supports basic Wii Remote
39c7da0867SDavid Herrmann		features and can be used.
40c7da0867SDavid Herrmann		Other strings for each device-type are available and may be
41c7da0867SDavid Herrmann		added if new device-specific detections are added.
42c7da0867SDavid Herrmann		Currently supported are:
4334433332SMauro Carvalho Chehab
4434433332SMauro Carvalho Chehab			============= =======================================
45c7da0867SDavid Herrmann			gen10:        First Wii Remote generation
4634433332SMauro Carvalho Chehab			gen20:        Second Wii Remote Plus generation
4734433332SMauro Carvalho Chehab				      (builtin MP)
48c7da0867SDavid Herrmann			balanceboard: Wii Balance Board
4934433332SMauro Carvalho Chehab			============= =======================================
508b1fded7SDavid Herrmann
518b1fded7SDavid HerrmannWhat:		/sys/bus/hid/drivers/wiimote/<dev>/bboard_calib
528b1fded7SDavid HerrmannDate:		May 2013
538b1fded7SDavid HerrmannKernelVersion:	3.11
548b1fded7SDavid HerrmannContact:	David Herrmann <dh.herrmann@gmail.com>
558b1fded7SDavid HerrmannDescription:	This attribute is only provided if the device was detected as a
568b1fded7SDavid Herrmann		balance board. It provides a single line with 3 calibration
578b1fded7SDavid Herrmann		values for all 4 sensors. The values are separated by colons and
588b1fded7SDavid Herrmann		are each 2 bytes long (encoded as 4 digit hexadecimal value).
598b1fded7SDavid Herrmann		First, 0kg values for all 4 sensors are written, followed by the
608b1fded7SDavid Herrmann		17kg values for all 4 sensors and last the 34kg values for all 4
618b1fded7SDavid Herrmann		sensors.
6234433332SMauro Carvalho Chehab
638b1fded7SDavid Herrmann		Calibration data is already applied by the kernel to all input
648b1fded7SDavid Herrmann		values but may be used by user-space to perform other
658b1fded7SDavid Herrmann		transformations.
6608072ddeSDavid Herrmann
6708072ddeSDavid HerrmannWhat:		/sys/bus/hid/drivers/wiimote/<dev>/pro_calib
6808072ddeSDavid HerrmannDate:		October 2013
6908072ddeSDavid HerrmannKernelVersion:	3.13
7008072ddeSDavid HerrmannContact:	David Herrmann <dh.herrmann@gmail.com>
7108072ddeSDavid HerrmannDescription:	This attribute is only provided if the device was detected as a
7208072ddeSDavid Herrmann		pro-controller. It provides a single line with 4 calibration
7308072ddeSDavid Herrmann		values for all 4 analog sticks. Format is: "x1:y1 x2:y2". Data
7408072ddeSDavid Herrmann		is prefixed with a +/-. Each value is a signed 16bit number.
7508072ddeSDavid Herrmann		Data is encoded as decimal numbers and specifies the offsets of
7608072ddeSDavid Herrmann		the analog sticks of the pro-controller.
7734433332SMauro Carvalho Chehab
7808072ddeSDavid Herrmann		Calibration data is already applied by the kernel to all input
7908072ddeSDavid Herrmann		values but may be used by user-space to perform other
8008072ddeSDavid Herrmann		transformations.
8134433332SMauro Carvalho Chehab
8208072ddeSDavid Herrmann		Calibration data is detected by the kernel during device setup.
8308072ddeSDavid Herrmann		You can write "scan\n" into this file to re-trigger calibration.
8408072ddeSDavid Herrmann		You can also write data directly in the form "x1:y1 x2:y2" to
8508072ddeSDavid Herrmann		set the calibration values manually.
86