* [BUG] Redmi Book Pro 16 2024 platform_profile write fails on Linux 7.1.7 @ 2026-08-11 18:55 Martiya Aryan Mehr 2026-08-26 21:26 ` Armin Wolf 0 siblings, 1 reply; 3+ messages in thread From: Martiya Aryan Mehr @ 2026-08-11 18:55 UTC (permalink / raw) To: platform-driver-x86; +Cc: linux-acpi, linux-kernel Hello, I am testing Linux kernel support on a Xiaomi Redmi Book Pro 16 2024 laptop. I found a problem with platform_profile handling on the Arch Linux 7.1.7 kernel. Hardware: Laptop: Xiaomi Redmi Book Pro 16 2024 Model: TM2309 CPU: Intel Core Ultra 7 155H (Meteor Lake) BIOS: RMAMT6B0P0B0B BIOS date: 06/10/2025 Kernel comparison: Problematic kernel: Linux 7.1.7-arch1-1 Reference kernel: Linux 6.18.43-1-lts On Linux 6.18.43 LTS the platform_profile sysfs interface is not exposed, so the issue cannot be reproduced there. Installed packages: linux 7.1.7.arch1-1 linux-lts 6.18.43-1 power-profiles-daemon 0.30-1 Problem description: On Linux 7.1.7 the platform_profile interface exists and exposes the following profiles: $ cat /sys/firmware/acpi/platform_profile_choices low-power balanced balanced-performance performance Current profile: $ cat /sys/firmware/acpi/platform_profile balanced Reading the current profile works correctly, but writing some profiles fails. Working example: $ echo low-power | sudo tee /sys/firmware/acpi/platform_profile Result: low-power Verification: $ cat /sys/firmware/acpi/platform_profile low-power However, the following profiles fail: $ echo performance | sudo tee /sys/firmware/acpi/platform_profile Result: performance tee: /sys/firmware/acpi/platform_profile: Operation not supported Same behavior with: $ echo balanced-performance | sudo tee /sys/firmware/acpi/platform_profile Result: balanced-performance tee: /sys/firmware/acpi/platform_profile: Operation not supported The same issue causes power-profiles-daemon failure: $ powerprofilesctl set performance Failed to communicate with power-profiles-daemon: Failed to activate platform driver 'platform_profile': Failed to write to acpi_platform_profile: Error writing '/sys/firmware/acpi/platform_profile': Operation not supported (15) Expected behavior: All profiles listed in: /sys/firmware/acpi/platform_profile_choices should be writable successfully, especially: balanced-performance performance Actual behavior: Writable: - low-power - balanced Not writable: - balanced-performance - performance Module information: Linux 7.1.7: $ modinfo redmi_wmi filename: /lib/modules/7.1.7-arch1-1/kernel/drivers/platform/x86/redmi-wmi.ko.zst srcversion: E64350B38255B1100E64863 Linux 6.18.43 LTS: filename: /lib/modules/6.18.43-1-lts/kernel/drivers/platform/x86/redmi-wmi.ko.zst srcversion: 369C9F3502463ADD78FDC0F Dmesg information: The laptop is detected correctly: DMI: XIAOMI Redmi Book Pro 16 2024/TM2309 WMI device: input: Redmibook WMI keys No specific redmi_wmi error appears in dmesg. Additional observation: On Linux 7.1.7: $ powerprofilesctl performance: CpuDriver: intel_pstate balanced: CpuDriver: intel_pstate PlatformDriver: placeholder The platform profile backend is detected but cannot switch to performance or balanced-performance. Possible affected components: - drivers/platform/x86/redmi-wmi - platform_profile framework - processor_thermal_soc_slider - ACPI platform profile handling I can provide additional logs, ACPI tables, or help with testing patches if needed. Thank you. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] Redmi Book Pro 16 2024 platform_profile write fails on Linux 7.1.7 2026-08-11 18:55 [BUG] Redmi Book Pro 16 2024 platform_profile write fails on Linux 7.1.7 Martiya Aryan Mehr @ 2026-08-26 21:26 ` Armin Wolf 2026-09-30 1:54 ` Anton Karasev 0 siblings, 1 reply; 3+ messages in thread From: Armin Wolf @ 2026-08-26 21:26 UTC (permalink / raw) To: Martiya Aryan Mehr, platform-driver-x86; +Cc: linux-acpi, linux-kernel Am 11.08.26 um 20:55 schrieb Martiya Aryan Mehr: > Hello, > > I am testing Linux kernel support on a Xiaomi Redmi Book Pro 16 2024 laptop. > > I found a problem with platform_profile handling on the Arch Linux 7.1.7 kernel. > > Hardware: > > Laptop: Xiaomi Redmi Book Pro 16 2024 > Model: TM2309 > CPU: Intel Core Ultra 7 155H (Meteor Lake) > BIOS: RMAMT6B0P0B0B > BIOS date: 06/10/2025 > > > Kernel comparison: > > Problematic kernel: > > Linux 7.1.7-arch1-1 > > Reference kernel: > > Linux 6.18.43-1-lts > > On Linux 6.18.43 LTS the platform_profile sysfs interface is not > exposed, so the issue cannot be reproduced there. > > Installed packages: > > linux 7.1.7.arch1-1 > linux-lts 6.18.43-1 > power-profiles-daemon 0.30-1 > > > Problem description: > > On Linux 7.1.7 the platform_profile interface exists and exposes the > following profiles: > > $ cat /sys/firmware/acpi/platform_profile_choices > > low-power balanced balanced-performance performance > > > Current profile: > > $ cat /sys/firmware/acpi/platform_profile > > balanced > > > Reading the current profile works correctly, but writing some profiles fails. > > > Working example: > > $ echo low-power | sudo tee /sys/firmware/acpi/platform_profile > > Result: > > low-power > > > Verification: > > $ cat /sys/firmware/acpi/platform_profile > > low-power > > > However, the following profiles fail: > > $ echo performance | sudo tee /sys/firmware/acpi/platform_profile > > Result: > > performance > tee: /sys/firmware/acpi/platform_profile: Operation not supported > > > Same behavior with: > > $ echo balanced-performance | sudo tee /sys/firmware/acpi/platform_profile > > Result: > > balanced-performance > tee: /sys/firmware/acpi/platform_profile: Operation not supported > > > The same issue causes power-profiles-daemon failure: > > $ powerprofilesctl set performance > > Failed to communicate with power-profiles-daemon: > > Failed to activate platform driver 'platform_profile': > Failed to write to acpi_platform_profile: > Error writing '/sys/firmware/acpi/platform_profile': > Operation not supported (15) > > > Expected behavior: > > All profiles listed in: > > /sys/firmware/acpi/platform_profile_choices > > should be writable successfully, especially: > > balanced-performance > performance > > > Actual behavior: > > Writable: > > - low-power > - balanced > > Not writable: > > - balanced-performance > - performance > > > Module information: > > Linux 7.1.7: > > $ modinfo redmi_wmi > > filename: > /lib/modules/7.1.7-arch1-1/kernel/drivers/platform/x86/redmi-wmi.ko.zst > > srcversion: > E64350B38255B1100E64863 > > > Linux 6.18.43 LTS: > > filename: > /lib/modules/6.18.43-1-lts/kernel/drivers/platform/x86/redmi-wmi.ko.zst > > srcversion: > 369C9F3502463ADD78FDC0F > > > Dmesg information: > > The laptop is detected correctly: > > DMI: > XIAOMI Redmi Book Pro 16 2024/TM2309 > > WMI device: > > input: > Redmibook WMI keys > > > No specific redmi_wmi error appears in dmesg. > > > Additional observation: > > On Linux 7.1.7: > > $ powerprofilesctl > > performance: > CpuDriver: intel_pstate > > balanced: > CpuDriver: intel_pstate > PlatformDriver: placeholder > > > The platform profile backend is detected but cannot switch to > performance or balanced-performance. > > > Possible affected components: > > - drivers/platform/x86/redmi-wmi > - platform_profile framework > - processor_thermal_soc_slider > - ACPI platform profile handling > > > I can provide additional logs, ACPI tables, or help with testing > patches if needed. > > Thank you. Sorry for the late reply. Could you please share the output of "acpidump"? Thanks, Armin Wolf ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] Redmi Book Pro 16 2024 platform_profile write fails on Linux 7.1.7 2026-08-26 21:26 ` Armin Wolf @ 2026-09-30 1:54 ` Anton Karasev 0 siblings, 0 replies; 3+ messages in thread From: Anton Karasev @ 2026-09-30 1:54 UTC (permalink / raw) To: W_Armin, martiya.ar, platform-driver-x86 Cc: linux-acpi, linux-kernel, qby140326, ilpo.jarvinen, hansg Hi Armin, I have the same machine as Martiya (Redmi Book Pro 16 2024, DMI XIAOMI / TM2309, BIOS RMAMT6B0P0B0B, which is the latest BIOS Xiaomi publishes for this model). In case it is useful to have it on the list, here is its full acpidump (all tables, acpidump -o): https://bugzilla.kernel.org/attachment.cgi?id=310971 What the tables say about the Mifs interface on this BIOS, and what I verified on the machine: - The method is \_SB.PC00.WMID.WMAA, in the SSDT with OEM Table ID XMCC1806. It implements only command 0x08 (GET and SET), 0x0a subcommand 5, and 0x10 (GET subcommands 1-3, SET subcommand 2 only). Other command IDs answer 0xE000, including WMI_FN_SYSTEM_AC_TYPE, which your "Treat WMI_FN_SYSTEM_AC_TYPE as optional" patch now handles; unhandled subcommands mostly return status 0. - The SET branches set only the return code and leave the function id at 0; only the GET branches fill it in. So on this BIOS "Detect failed function calls" reports every SET as failed with -ENOMSG, although the firmware applies it -- the same as Chris reported for the Xiaomi Book Pro 14 in "Only check the function id of GET responses". Verified with the for-next driver built for 7.2.7: every profile write failed with -ENOMSG while the EC mode changed; with Chris's patch on top, all of them succeed. - The mode values are not the Bitland ones. SET of 0x08 stores the value in the EC register QFAN as is, and NTDP in the DSDT maps QFAN to the DPTF variable \_SB.ODV1: 0/1 balanced (ODV1 0), 2 quiet (2), 3 performance/Turbo (1), 4 full speed/Geek (4). With your two patches the AC type check now passes on AC, and the value "performance" writes (3) happens to be Turbo here; "balanced-performance" writes 1, which is balanced, and after Fn+K to balanced (QFAN 1) platform_profile reads back balanced-performance. On battery performance is still refused by power_supply_is_system_supplied(), although the firmware accepts Turbo there. - Command 0x10 is the battery interface on this firmware (subcommand 2 is the 80 % charge protection), which makes the existing kb_mode attribute dangerous: writing "fixed" to it turns charge protection off. Verified on the machine. I have put the details, including the test results, in a reply to [PATCH v6 5/5] of the redmi-wmi merge series, since that is where the per-machine table is being discussed. I am happy to test patches on this model. Thanks, Anton Karasev ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-30 1:54 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2026-08-11 18:55 [BUG] Redmi Book Pro 16 2024 platform_profile write fails on Linux 7.1.7 Martiya Aryan Mehr 2026-08-26 21:26 ` Armin Wolf 2026-09-30 1:54 ` Anton Karasev
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®