Hi there, Le 08/09/2021 à 21:42, Arnaud Ferraris a écrit : > Hi, > > Le 08/09/2021 à 11:40, Guido Günther a écrit : >> Currently systemd looks at DMI data and ACPI so we'd need to extend that >> logic to either a lookup table based on >> e.g. /sys/firmware/devicetree/base/compatible or to export the chassis >> type in /sys based on a DT property¹ (or likely both: the later being >> the preferred solution and the former being the user space quirk table). >> I have had this on my list for some time but it keeps slipping but >> didn't get around to it yet but just bumped it in priority a little. > > A DT property would definitely make sense, I just opened a MR on the DT > spec for that: > > https://github.com/devicetree-org/devicetree-specification/pull/45
Following up on that, the 'chassis-type' property has been added the the device-tree specification, and support for it has just been merged in systemd: https://github.com/systemd/systemd/pull/20731 Now I'm preparing a bunch of kernel patches for adding this property to phones and tablets already present upstream, see the latest commit of this branch: https://gitlab.com/a-wai/linux/-/tree/chassis-type I'll break it down per SoC vendor before submitting, but in the meantime any feedback is welcome. Cheers, Arnaud
