NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Show HN: Ambient light sensor control of keyboard and screen brightness in Linux (github.com)
seba_dos1 2 days ago [-]
FWIW, iio-sensor-proxy gives you a user-accessible dbus API for ambient light sensors. GNOME has had a feature to auto-adjust screen brightness based on it for ages (though their implementation leave much to be desired and hasn't changed despite of several attempts to rework it over the years).

  $ monitor-sensor
      Waiting for iio-sensor-proxy to appear
  +++ iio-sensor-proxy appeared
  === Has accelerometer (orientation: normal)
  === Has ambient light sensor (value: 56.200000, unit: lux)
  === Has proximity sensor (near: 0)
      Light changed: 56.200000 (lux)
      Light changed: 55.100000 (lux)
      Light changed: 58.500000 (lux)
      Light changed: 48.800000 (lux)
teo_zero 15 hours ago [-]
What strategy does this apply? For the display I assume it should increases the brightness as the ambient light rises. But for keybord light it's the opposite: I'd want it off in a lit environment and on in a dark one.
maxtoc 2 days ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 23:31:24 GMT+0000 (Coordinated Universal Time) with Vercel.