I was poking through the iio devices on my Framework the other day and turns out Framework 12s have a pretty accurate hinge angle sensor! So I made a version of LidAngleSensor ( ht…

turn your framework 12 into a creaky wooden door, basically this (that was also the inspiration too) but ported to a fw12. it may or may not work on other laptops too, I haven't tested it. the filtering is optimised for framework 12's hinge stiffness. there is an executable in the releases tab. download it, do the usual chmod +x and run. enjoy. note: this was built on fedora, so your mileage may vary on other distros - there might be dynamic linking issues. or git clone and do cargo run. you'll have to install libiio-devel and alsa-lib-devel first though if you do that (or libasound2-dev and libalsa-dev on debian/ubuntu)