hadess / iio-sensor-proxy

IIO accelerometer sensor to input device proxy
198 stars 64 forks source link

Disabling the ambient light change on the Lenovo Yoga 720-15IKB #261

Closed Circl3s closed 5 years ago

Circl3s commented 5 years ago

So, as the title suggests, iio-sensor-proxy works flawlessly for me on the Lenovo Yoga 720-15IKB running Manjaro Budgie on the 5.0.5-1 kernel.

~ >>> monitor-sensor                                                                               
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal)
=== Has ambient light sensor (value: 44.000000, unit: lux)
    Light changed: 33.000000 (lux)
    Light changed: 44.000000 (lux)
    Light changed: 55.000000 (lux)
    Light changed: 44.000000 (lux)
    Light changed: 55.000000 (lux)
    Accelerometer orientation changed: left-up
    Light changed: 44.000000 (lux)
    Light changed: 33.000000 (lux)
    Light changed: 44.000000 (lux)
    Light changed: 33.000000 (lux)
    Accelerometer orientation changed: normal
    Light changed: 44.000000 (lux)
    Light changed: 55.000000 (lux)
    Light changed: 44.000000 (lux)
    Light changed: 55.000000 (lux)
    Light changed: 66.000000 (lux)
    Light changed: 55.000000 (lux)
    Light changed: 44.000000 (lux)
...

However, the ambient light sensor is really sensitive. My brightness keeps changing a bit, like, 2 times per second even if nothing is happening (for example the screen gets darker every time I start typing on the keyboard because my hands cast shadow on the sensor). Is there a way to disable this?

hadess commented 5 years ago

If nothing consumes the data from the sensor, then it won't be read. Disabling "Automatic Brightness" functionality in GNOME should do that, for example.

Circl3s commented 5 years ago

Wow, completely missed that in the settings, thanks!