Hi Elvis,
On 8/3/2020 9:20 AM, Elvis Stansvik wrote:
Den sön 2 aug. 2020 kl 23:10 skrev Elvis Stansvik
<elvstone@xxxxxxxxx>:
(Apologies in advance for missing In-Reply-To header in this
reply. I subscribed to the list just now.)
Den fre 3 juli 2020 kl 01:24 skrev Mark Pearson
<markpearson@xxxxxxxxxx>:
Newer Lenovo Thinkpad platforms have support to identify whether
the system is on-lap or not using an ACPI DYTC event from the
firmware.
This patch provides the ability to retrieve the current mode via
sysfs entrypoints and will be used by userspace for thermal mode
and WWAN functionality
I tried the patch out on my X1C6 (20KH007BMX), running Lenovo
firmware version 0.1.49.
The sysfs path /sys/devices/platform/thinkpad_acpi/dytc_lapmode is
showing up, but it's reporting 0 regardless if the laptop is in my
lap or on a desk.
I tested this by having the laptop in my lap for five minutes, and
then on a desk for five minutes. The value reported through
/sys/devices/platform/thinkpad_acpi/dytc_lapmode was always 0.
Thanks for the update.
The X1C6 doesn't have support for the new thermal mode implementation so
I'm wondering if the lapmode being available could be related to the
version of DYTC is available. I'll check with the firmware team and get
back to you on that - they hadn't listed it to me as a limitation
previously and unfortunately I don't have an X1C6 so didn't test on that
platform.
As a note - the lapmode is primarily for the thermal modes (it is also
being used for WWAN power control but that is not supported for Linux on
the X1C6 either for other reasons). I'm afraid the interface is of
limited use to you anyway....
Mark
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel