[SOLVED] Cannot get tablet functionality to work, or entering sleep when closing the lid

Which Linux distro are you using?
NixOS unstable (26.05)

Which release version?
last updated may 21st 2025

Which kernel are you using?
7.0.8

Which BIOS version are you using?
I believe it was, 3.0.4, but I actually can’t find the version anywhere, however fwupdmgr updateclaims everything to be up to date.

Which Framework Laptop 12 model are you using?
(13th Gen Intel® Core™)

I got my framework 12 earlier today, but I cannot get any proper 2 in 1 functionality to work. The keyboard stays on, and KDE does not react when flipped, I am also unable to setup auto rotate as KDE doesn’t detect any form of tablet functionality, neither does it sleep when I close the lid.

I’ve followed the available nixos specific documentation for the framework 12 ( linux-docs/framework12/nixOS.md at main · FrameworkComputer/linux-docs · GitHub and the nixos-hardware github). But i cannot get cat /sys/bus/iio/devices/iio:device1/in_angl_raw to return anything other than 500, this seems to be like IIO isn’t working, checking the logs, it is in fact not working, but it compalins about iio:device0, not device1, odd.

journalctl -xeu iio-sensor-proxy.service
May 21 02:07:28 ramma systemd[1]: Started IIO Sensor Proxy service.
May 21 02:07:28 ramma iio-sensor-proxy[10015]: Could not find trigger name associated with /sys/devices/platform/FRMWC004:00/cros-ec-dev.1.auto/cros-ec-senso>
May 21 02:07:28 ramma iio-sensor-proxy[10015]: Buffer ‘/dev/iio:device0’ did not have data within 0.5s
May 21 02:07:28 ramma iio-sensor-proxy[10015]: No sensors or missing kernel drivers for the sensors. Exiting
May 21 02:07:28 ramma systemd[1]: iio-sensor-proxy.service: Deactivated successfully.

However, iio:device0 does seem to be functioning, as /sys/bus/iio/devices/iio:device0/in_accel_y_raw gives sensible sensor data.

I believe I read somewhere that the firmware disables the keyboard and trackpad when folded, so it would be independent of the OS, but I’m unsure if this is true.

Here is my nix config in case I’m just being silly

Any help would be greatly appreciated.

UPDATE:
I booted into the fedora workstation 44 and ubuntu 26.04 live usbs. they also didn’t react to the hinge, neither doing anything 2 in 1 related, nor sleeping when completely closing the lid.

Your NixOS config looks fine to me. You shouldn’t have to add anything besides the nixos-hardware module for it to work.

Since it doesn’t work in the fedora live ISO, my guess is that you have a hardware issue. Since fedora is an officially supported distro, you might want to contact support regarding fedora not working.

2 Likes

I should mention that other FW12 users are reporting issues with Fedora 44:

You might want to test out this functionality in Ubuntu instead.

1 Like

I booted into the ubuntu 26.04 live usb, and cat /sys/bus/iio/devices/iio:device1/in_angl_rawwas still only reporting 500, and it still wasn’t activating tablet mode or sleep no matter the hinge position.

The fedora discussion talks about it being an issue with a recent update to linux-firmware, so i tried downgrading the firmware on my nix install to november, without any change.

Yeah I’m gonna contact support, really does seem like a hardware issue

update for future people:

the webcam cable was never plugged in properly

that’s all

1 Like