-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] als device not working properly #111
Comments
Hi! Thanks for opening this issue.
I can see from your log that a clogged capture is always detected, thus screen backlight is not changed. Your shutter threshold is
Are you in a very dark room? |
ALS capture does not work. It only works with the webcam.
Clogged capture only shows when I try to use ALS capture.
I was using the laptop with the lights on. |
Ok!
CAn you share output of: Btw Clightd is undergoing a full rework for its als device support: FedeDP/Clightd#34. It should be working fine using clightd-git version; care to test? |
I have switched to the clightd-git version and it still seems like the backlight does not change. |
Did you reboot after? What about |
Yeah I tried to reboot before checking to see if it works but no luck.
` looking at device '/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0008:00/iio:device0': looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0008:00': looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00': looking at parent device '/devices/LNXSYSTM:00': ` |
Ok, it seems fine. |
|
That's great; it means clightd is actually working fine. |
Isn't it working fine now?
It seems like your Sensor is always reporting 0.8 (ie: 400 lux) value. In fact it reported the same in your above udev output:
|
The lux value doesn't seem to change even when I run clight in a dark room. |
Can you run
does not depend on clight; it is a sensor driver reading exposed by udev. |
With large amounts of light: With low amount of light:
It outputs the same thing in both conditions. |
Unfortunately it seems like a bug in your ALS driver, or worse your ALS hardware is misbehaving :( |
I looked into it and it seems that the als device on my laptop is disabled by default. I just needed to make an ACPI call to enable the sensor |
Wow that's great, thanks! We can close this then :) |
Also to keep the als device enabled, I had to make a systemd service launch a script that does the acpi call at boot. |
Mind to share the service? I will add it to Clightd wiki page! Thank you! |
Service:
[Unit] Script:
|
Clight version the issue has been seen with:
Used distribution:
Describe the bug
Auto back light only works with webcam and not als device.
When als device is not working, sometimes the screen will turn black and will be unable to turn back to normal without putting the computer to sleep and waking the computer. Moving the mouse does not do anything.
Expected behavior
Normal use of als device with auto backlight working properly.
To Reproduce
Comment/uncomment sensor_devname=video0
The text was updated successfully, but these errors were encountered: