-
Notifications
You must be signed in to change notification settings - Fork 10
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
ALS not working #88
Comments
Hi! Thanks for opening this issue! |
Hi, not exactly sure what you want me to test but running something like |
Hi! Exactly that, thank you! |
Sure thing, thanks a lot. Here is my clight.conf in case it helps. Have a great rest of your vacation. |
Thank you! :) |
The clight conf is fine indeed! To debug your issue, you can try this (very simple) patch:
and then, manually run Clightd; the quicker way is:
|
hi . |
Hi @hedmo ! Any news on this? |
i have added the patch. ATM i have the sensor at 49%. will report in a day or two... |
Thank you very much! |
after a day or two . i have to report it still sty at 0% . and does not change ... |
Can you share clightd output with the patch? |
Moreover, can you share output of
? |
are you talking about the output when starting clight? |
hedmo@my300 ~ $ sudo udevadm info /dev/iio:device0 |
Can you add the "--all" flag to the udevadm command? |
i did : hedmo@my300 ~ $ sudo udevadm info --all /dev/iio:device0 |
can this be the on you want ?
|
Exactly, thanks!
These ones are the 2 udev ATTRibutes that Clightd uses; they are both 0 :/ That's why it reads 0. Fact is, i don't see any attribute with a possible value. I will check out iio-sensor-proxy source code to understand what they use ;) |
Well, it seems like iio-sensor-proxy actually uses similar logic as Clightd:
I don't get how it is working while Clightd is not. Perhaps updates are not exposed through udev? |
Oh it seems like iio-sensor-proxy gives higher priority to iio-buffer-als devices than iio-poll-devices. EDIT: nope I am wrong your als devices only supports iio-poll-als :/ |
more info .now when it is day here i do have a working clight with als. i will continue to check on it under the day and reboot some times to confirm it does work .. |
Ehy everyone, in #102 i implemented support for iio buffer ALS sensor read. |
Hey, I'm testing the build from #102 and it doesn't seem to fix it... I'm not exactly sure what's the best way to test it, but rn I'm simply trying to block the sensor physically and see if with the ambiant gamma activated it changes something but it doesn't seem so. I can produce some dumps if you point me the direction. |
Hi! Thank you very much for testing! Yes, can you share clightd log and output of Sensor.Capture dbus method call? |
Okay so Here is what clightd logs after starting
And how can I get the output of the sensor ? I also saw you used the output of udevadm so here it is:
|
What about:
? |
it returns this |
Ok! I will add some debug prints to the PR so that we can better understand what's going on :) |
I should thank you for being so proactive about it ! |
Hey i just pushed a commit whichadds debug prints! eae2ad9 |
Here you go, I rebooted so the device name changed
Hopefully my sensor is actually working correctly, I'll look for a way to confirm that it's working correctly. |
It seems like we are correctly reading data, but data is always 0 :/ Thank you!
Best way IMHO is to use https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/ that is Gnome/freedesktop implementation of a dbus API around iio devices. It should be already packaged in your distro repos (at least it is, on arch!). |
Here's my devices
I tested stuff a bit with udevadm, and it's weird my illuminance, if I'm looking in the right place, seems to never change... |
Thanks for the output! So you got multiple sensors, nice! |
I'm using a
Delta 15 A5EFK
laptop underArch-5.19.1-zen1-1-zen
with clight4.8-fc3df9c
and clightd5.6-77b1953
.Here is my clight.log
busctl call org.clightd.clightd /org/clightd/clightd/Sensor/Als org.clightd.clightd.Sensor IsAvailable "s" ""
returnssb "/dev/iio:device0" true
The FedeDP/Clight#111 (comment) fix results in
AE_NOT_FOUND
I'm starting to run out of options and don't know where to look anymore.
The text was updated successfully, but these errors were encountered: