8b1fded7a3
Balance-Boards provide 3 16bit calibration values for each of the 4 sensors. We provide these now as 192bit value via a new "bboard_calib" sysfs attribute. We also re-read the calibration data from the device whenever user-space attempts to read this file. On normal Nintendo boards, this always produces the same results, however, on some 3rd party devices these values change until the device is fully initialized. As I have currently no idea how long to wait until it's ready (sometimes takes up to 10s?) we provide a simple workaround for users by reading this file. If we, at some point, figure out how it works, we can implement it in the kernel and provide offline data via "bboard_calib". This won't break user-space then. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
59 lines
2.7 KiB
Text
59 lines
2.7 KiB
Text
What: /sys/bus/hid/drivers/wiimote/<dev>/led1
|
|
What: /sys/bus/hid/drivers/wiimote/<dev>/led2
|
|
What: /sys/bus/hid/drivers/wiimote/<dev>/led3
|
|
What: /sys/bus/hid/drivers/wiimote/<dev>/led4
|
|
Date: July 2011
|
|
KernelVersion: 3.1
|
|
Contact: David Herrmann <dh.herrmann@googlemail.com>
|
|
Description: Make it possible to set/get current led state. Reading from it
|
|
returns 0 if led is off and 1 if it is on. Writing 0 to it
|
|
disables the led, writing 1 enables it.
|
|
|
|
What: /sys/bus/hid/drivers/wiimote/<dev>/extension
|
|
Date: August 2011
|
|
KernelVersion: 3.2
|
|
Contact: David Herrmann <dh.herrmann@gmail.com>
|
|
Description: This file contains the currently connected and initialized
|
|
extensions. It can be one of: none, motionp, nunchuck, classic,
|
|
motionp+nunchuck, motionp+classic
|
|
motionp is the official Nintendo Motion+ extension, nunchuck is
|
|
the official Nintendo Nunchuck extension and classic is the
|
|
Nintendo Classic Controller extension. The motionp extension can
|
|
be combined with the other two.
|
|
Starting with kernel-version 3.11 Motion Plus hotplugging is
|
|
supported and if detected, it's no longer reported as static
|
|
extension. You will get uevent notifications for the motion-plus
|
|
device then.
|
|
|
|
What: /sys/bus/hid/drivers/wiimote/<dev>/devtype
|
|
Date: May 2013
|
|
KernelVersion: 3.11
|
|
Contact: David Herrmann <dh.herrmann@gmail.com>
|
|
Description: While a device is initialized by the wiimote driver, we perform
|
|
a device detection and signal a "change" uevent after it is
|
|
done. This file shows the detected device type. "pending" means
|
|
that the detection is still ongoing, "unknown" means, that the
|
|
device couldn't be detected or loaded. "generic" means, that the
|
|
device couldn't be detected but supports basic Wii Remote
|
|
features and can be used.
|
|
Other strings for each device-type are available and may be
|
|
added if new device-specific detections are added.
|
|
Currently supported are:
|
|
gen10: First Wii Remote generation
|
|
gen20: Second Wii Remote Plus generation (builtin MP)
|
|
balanceboard: Wii Balance Board
|
|
|
|
What: /sys/bus/hid/drivers/wiimote/<dev>/bboard_calib
|
|
Date: May 2013
|
|
KernelVersion: 3.11
|
|
Contact: David Herrmann <dh.herrmann@gmail.com>
|
|
Description: This attribute is only provided if the device was detected as a
|
|
balance board. It provides a single line with 3 calibration
|
|
values for all 4 sensors. The values are separated by colons and
|
|
are each 2 bytes long (encoded as 4 digit hexadecimal value).
|
|
First, 0kg values for all 4 sensors are written, followed by the
|
|
17kg values for all 4 sensors and last the 34kg values for all 4
|
|
sensors.
|
|
Calibration data is already applied by the kernel to all input
|
|
values but may be used by user-space to perform other
|
|
transformations.
|