Bug 215962

Summary: Asus Zenbook Flip 15 - tablet mode cannot be enabled
Product: Drivers Reporter: nintyfan19 (nintyfan19)
Component: OtherAssignee: drivers_other
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.17 Subsystem:
Regression: No Bisected commit-id:
Attachments: Output of acpi dump
Output of dmesg

Description nintyfan19@gmail.com 2022-05-09 13:46:14 UTC
Information from dmidecode:

System Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: ZenBook UX562IQ_UM562IQ
        Version: 1.0

Problem is I cannot enable touchpad mode by rotating screen. I will give more info and try to install kernels with related patches. But... where to start?
Comment 1 nintyfan19@gmail.com 2022-05-13 19:59:41 UTC
> cat /sys/class/dmi/id/sys_vendor /sys/class/dmi/id/product_name
ASUSTeK COMPUTER INC.
ZenBook UX562IQ_UM562IQ

I found https://bugzilla.kernel.org/show_bug.cgi?id=209011 ticket, so I will gather information on Monday.
Comment 2 nintyfan19@gmail.com 2022-05-16 17:33:09 UTC
I select ASUS WMI Keys in evemu. There is no SW_TABLET_MODE on list.

> grep . /sys/class/dmi/id/* 2> /dev/null
/sys/class/dmi/id/bios_date:09/08/2020
/sys/class/dmi/id/bios_release:5.16
/sys/class/dmi/id/bios_vendor:American Megatrends Inc.
/sys/class/dmi/id/bios_version:UX562IQ_UM562IQ.300
/sys/class/dmi/id/board_asset_tag:ATN12345678901234567
/sys/class/dmi/id/board_name:UX562IQ
/sys/class/dmi/id/board_vendor:ASUSTeK COMPUTER INC.
/sys/class/dmi/id/board_version:1.0       
/sys/class/dmi/id/chassis_asset_tag:No Asset Tag
/sys/class/dmi/id/chassis_type:31
/sys/class/dmi/id/chassis_vendor:ASUSTeK COMPUTER INC.
/sys/class/dmi/id/chassis_version:1.0       
/sys/class/dmi/id/modalias:dmi:bvnAmericanMegatrendsInc.:bvrUX562IQ_UM562IQ.300:bd09/08/2020:br5.16:svnASUSTeKCOMPUTERINC.:pnZenBookUX562IQ_UM562IQ:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnUX562IQ:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct31:cvr1.0:sku:
/sys/class/dmi/id/product_family:ZenBook Flip
/sys/class/dmi/id/product_name:ZenBook UX562IQ_UM562IQ
/sys/class/dmi/id/product_version:1.0       
/sys/class/dmi/id/sys_vendor:ASUSTeK COMPUTER INC.
/sys/class/dmi/id/uevent:MODALIAS=dmi:bvnAmericanMegatrendsInc.:bvrUX562IQ_UM562IQ.300:bd09/08/2020:br5.16:svnASUSTeKCOMPUTERINC.:pnZenBookUX562IQ_UM562IQ:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnUX562IQ:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct31:cvr1.0:sku:
Comment 3 nintyfan19@gmail.com 2022-05-16 17:34:25 UTC
Created attachment 300975 [details]
Output of acpi dump
Comment 4 nintyfan19@gmail.com 2023-08-07 13:22:38 UTC
Sorry, but any response. I think I would do better if I firstly post onto distribution mailing list, but I cannot assume distro vendor will have the same model of laptop.
Comment 5 nintyfan19@gmail.com 2023-10-01 10:16:43 UTC
Created attachment 305169 [details]
Output of dmesg

I added dmesg output with wmi.debug_event=1 wmi.debug_dump_wdg=1 kernel parameters set. I hope I did not do something wrong and do not made public private information.
Comment 6 nintyfan19@gmail.com 2023-10-01 13:38:08 UTC
I have two unknown devices:
 /devices/platform/AMDI0010:00/i2c-0/i2c-ELAN9008:00/0018:04F3:2C8B.0001/input/input14
 /devices/platform/AMDI0010:00/i2c-0/i2c-ELAN9008:00/0018:04F3:2C8B.0001/input/input15

and asus-wmi-somethink inside /dev/input/by-path:
/dev/input/by-path/platform-asus-nb-wmi-event

When using cat on /dev/input/by-path/platform-asus-nb-wmi-event, nothing appears on screen roate/unrotate tasks.

I test also: 
cat /sys/devices/platform/AMDI0010:00/i2c-0/i2c-ELAN9008:00/0018:04F3:2C8B.0001/input/input14/event7/uevent .
And there were event7 string matching to one part of the path

So I test for both /dev/input/<given_string> and rotates/unrotates screen. Nothinig happens.
Comment 7 nintyfan19@gmail.com 2023-10-01 13:41:50 UTC
Dmesg output:

# dmesg | grep -i asus_wmi
[    8.800501] asus_wmi: ASUS WMI generic driver loaded
[    8.827969] asus_wmi: Initialization: 0x1
[    8.828007] asus_wmi: BIOS WMI version: 9.0
[    8.828030] asus_wmi: SFUN value: 0x21
[    8.832752] asus_wmi: fan_curve_get_factory_default (0x00110024) failed: -19
[    8.832882] asus_wmi: fan_curve_get_factory_default (0x00110025) failed: -19
[ 4483.991881] asus_wmi: Unknown key code 0xcf

I got Unkown key code, which seems related, but this message appear only once and I was trying switch between laptop/tabled mode more often. Maybe kernel blocks further emission of similar messages?
Comment 8 nintyfan19@gmail.com 2023-10-01 13:51:33 UTC
Soory. Message  asus_wmi: Unknown key code 0xcf seems appears only when connecting power supply (cable).