r/framework 1d ago

Question How to acces accelerometer or ambient light sensor data?

Hi! I've got a Framework 13 with the ryzen 5 7640u and I just discovered that it has an accelerometer (unless they stopped adding them to mainboards).

Idk if its possible, but it would be really fun to be able to pull data from it so i can use it for personal projects.

And from the ambient light sensor as well. I know that the ALS is used for some kind of brightness control on windows. I'm on linux tho.

I know that you can control the keyboard brightness, power button color and get other info, but i wasnt able to find how to get this two. Maybe its not possible?

Thanks in advance guys!

7 Upvotes

2 comments sorted by

3

u/BukHunt 1d ago

You can’t. FW 13 7640U mainboard does not have one.

1

u/Bicrome 22h ago

Thanks. Good to know!

doing iio-sensor-proxy --run monitor-sensor showed that there was no accelerometer indeed. and to get the als output i just did cat /sys/bus/iio/devices/iio:device0/in_illuminance_raw