this just... works in Plasma Mobile on my phone?
There's a toggle in display settings if I want to use ALS to adjust brightness automatically... and it works the same as on Android (poorly because Xiaomi didn't calibrate the sensor correctly, but it does).
I guess you'd need to check how it's connected and if there are drivers in mainline for that particular sensor in your laptop