mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ACPI: thinkpad-acpi: export to sysfs the state of the radio slider switch
Some ThinkPad models, notably the T60 and X60, have a slider switch to enable and disable the radios. The switch has the capability of force-disabling the radios in hardware on most models, and it is supposed to affect all radios (WLAN, WWAN, BlueTooth). Export the switch state as a sysfs attribute, on ThinkPads where it is available. Thanks to Henning Schild for asking for this feature, and for tracking down the EC register that holds the radio switch state. Signed-off-by: Henrique de Moraes Holschuh <[email protected]> Cc: Henning Schild <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
9b010de59c
commit
74941a69af
3 changed files with 43 additions and 2 deletions
|
|
@ -227,6 +227,12 @@ sysfs notes:
|
|||
supported hot keys, except those which are handled by
|
||||
the firmware. Echo it to hotkey_mask above, to use.
|
||||
|
||||
hotkey_radio_sw:
|
||||
if the ThinkPad has a hardware radio switch, this
|
||||
attribute will read 0 if the switch is in the "radios
|
||||
disabled" postition, and 1 if the switch is in the
|
||||
"radios enabled" position.
|
||||
|
||||
|
||||
Bluetooth
|
||||
---------
|
||||
|
|
|
|||
Loading…
Reference in a new issue