aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/admin-guide/laptops/thinkpad-acpi.rst
diff options
context:
space:
mode:
authorNitin Joshi <njoshi1@lenovo.com>2021-01-25 11:59:16 +0900
committerHans de Goede <hdegoede@redhat.com>2021-01-25 21:47:21 +0100
commitd7cbe2773aed0b636d48bb6795637eb486ecba6d (patch)
treec8bb9f88017e18020021b59d931b762fe9a35055 /Documentation/admin-guide/laptops/thinkpad-acpi.rst
parentplatform/x86: intel_mid_powerbtn: Remove driver for deprecated platform (diff)
downloadlinux-dev-d7cbe2773aed0b636d48bb6795637eb486ecba6d.tar.xz
linux-dev-d7cbe2773aed0b636d48bb6795637eb486ecba6d.zip
platform/x86: thinkpad_acpi: set keyboard language
This patch is to create sysfs entry for setting keyboard language using ASL method. Some thinkpads models like T580 , T590 , T15 Gen 1 etc. has "=", "(',")" numeric keys, which are not displaying correctly, when keyboard language is other than "english". This patch fixes this issue by setting keyboard language to ECFW. Signed-off-by: Nitin Joshi <njoshi1@lenovo.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20210125025916.180831-1-nitjoshi@gmail.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'Documentation/admin-guide/laptops/thinkpad-acpi.rst')
-rw-r--r--Documentation/admin-guide/laptops/thinkpad-acpi.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/admin-guide/laptops/thinkpad-acpi.rst b/Documentation/admin-guide/laptops/thinkpad-acpi.rst
index 5fe1ade88c17..b1188f05a99a 100644
--- a/Documentation/admin-guide/laptops/thinkpad-acpi.rst
+++ b/Documentation/admin-guide/laptops/thinkpad-acpi.rst
@@ -51,6 +51,7 @@ detailed description):
- UWB enable and disable
- LCD Shadow (PrivacyGuard) enable and disable
- Lap mode sensor
+ - Setting keyboard language
A compatibility table by model and feature is maintained on the web
site, http://ibm-acpi.sf.net/. I appreciate any success or failure
@@ -1466,6 +1467,29 @@ Sysfs notes
rfkill controller switch "tpacpi_uwb_sw": refer to
Documentation/driver-api/rfkill.rst for details.
+
+Setting keyboard language
+-------------------
+
+sysfs: keyboard_lang
+
+This feature is used to set keyboard language to ECFW using ASL interface.
+Fewer thinkpads models like T580 , T590 , T15 Gen 1 etc.. has "=", "(',
+")" numeric keys, which are not displaying correctly, when keyboard language
+is other than "english". This is because of default keyboard language in ECFW
+is set as "english". Hence using this sysfs, user can set correct keyboard
+language to ECFW and then these key's will work correctly .
+
+Example of command to set keyboard language is mentioned below::
+
+ echo jp > /sys/devices/platform/thinkpad_acpi/keyboard_lang
+
+Text corresponding to keyboard layout to be set in sysfs are : jp (Japan), be(Belgian),
+cz(Czech), en(English), da(Danish), de(German), es(Spain) , et(Estonian),
+fr(French) , fr-ch (French(Switzerland)), pl(Polish), sl(Slovenian), hu
+(Hungarian), nl(Dutch), tr(Turkey), it(Italy), sv(Sweden), pt(portugese)
+
+
Adaptive keyboard
-----------------