[Fw_Os_Forum] ACPI AML ToHexString output format for integers

Armin Wolf W_Armin at gmx.de
Thu Apr 13 06:16:39 EDT 2023


the behavior of the ACPI AML ToHexString operator when used to convert integers differs between operating systems:
- Microsoft Windows: 0x20CD
- Linux (ACPICA): 000020CD

It seems Linux implements the data type conversion rules as defined in, while Microsoft Windows does not.
Since the definition of ToHexString conflicts with the data type conversion rules when converting buffers (hex values
are separated by commas instead spaces), i wondered which behavior from above (if any) is considered standard compliant.

The reason for asking such a question is that at least one machine (Dell Inspiron 3505) uses ToHexString to format
the battery serial number, causing different data to be reported depending on the operating system.

Armin Wolf

More information about the Fw_os_forum mailing list