hostnamectl chassis reports handset.
I've not (yet) checked the sources to see where it gets this data from (and strace didn't immediately illuminate things).
hostnamectl chassis reports handset.
I've not (yet) checked the sources to see where it gets this data from (and strace didn't immediately illuminate things).
a little digging: the chassis type is a property of org.freedesktop.hostname1 and is obtained by /sys/class/dmi/id/chassis_type
gdbus call --system --dest org.freedesktop.hostname1 --object-path /org/freedesktop/hostname1 --method org.freedesktop.hostname1.SetChassis "laptop" false
will set the chassis type