Closed RezaSh13 closed 3 years ago
Hi! As you can see, your verbose log file is telling you the issue:
Paused as no sensor is available.
It means that clightd cannot find a sensor to use. What kind of sensor are you trying to use?
I use the webcam as a sensor And I know it works
Did it work leaving devname clight option commented? Ie: when not specified, clightd will use first sensor it finds.
And, what is output of busctl call org.clightd.clightd /org/clightd/clightd/Sensor org.clightd.clightd.Sensor IsAvailable "s" ""
?
Did it work leaving devname clight option commented? Ie: when not specified, clightd will use first sensor it finds.
And, what is output of
busctl call org.clightd.clightd /org/clightd/clightd/Sensor org.clightd.clightd.Sensor IsAvailable "s" ""
?
Is this problem related to the kernel version? kernel version : 5.8.0-2-MANJARO
~ >>> clight --verbose
Wrong AC frames value. Resetting default value.
Wrong BATT frames value. Resetting default value.
Clightd found, version: 4.2.
AC curve: y = -0.024825 + 0.191641x + -0.008928x^2
BATT curve: y = -0.010629 + 0.153844x + -0.007284x^2
init_kbd_backlight(): No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight
Keyboard backlight calibration unsupported.
Failed to create org.freedesktop.ScreenSaver dbus interface: Unknown error -1
Fallback at monitoring requests to org.freedesktop.ScreenSaver name owner.
Not a laptop device. Killing UPower module.
Failed to retrieve AC state; fallback to ON_AC and OPEN lid.
Emitting AcState property
Set timeout of 0s 1ns on fd 40.
Emitting LidState property
Set timeout of 30s 0ns on fd 40.
Set timeout of 0s 1ns on fd 41.
Next alarm due to: Sat Aug 22 18:30:00 2020
Set timeout of 5814s 0ns on fd 41.
Emitting Sunrise property
Emitting Sunset property
Emitting DayTime property
Emitting NextEvent property
Set timeout of 0s 1ns on fd 42.
Paused as no sensor is available.
Emitting SensorAvail property
So, the issue here is that clightd is filtering out your webcam.
Can you share output of systemctl status clightd.service --all
?
So, the issue here is that clightd is filtering out your webcam. Can you share output of
systemctl status clightd.service --all
?
~/Git/docker >>> systemctl status clightd.service --all
lines 1--1...skipping...
~/Git/docker >>> systemctl status clightd.service --all
● clightd.service - Bus service to manage various screen related properties (gamma, dpms, backlight)
Loaded: loaded (/usr/lib/systemd/system/clightd.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2020-08-22 19:16:58 +0430; 1h 16min ago
Main PID: 1001 (clightd)
Tasks: 2 (limit: 4657)
Memory: 1.4M
CGroup: /system.slice/clightd.service
└─1001 /usr/lib/clightd/clightd
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Aug 22 20:28:13 LilPenguin clightd[1001]: [default]|IDLE|: Client 0 -> Idle: 0
Sorry, can you restart clightd.service (to cleanup its output) and restart clight and share systemctl status once more?
Sorry, can you restart clightd.service (to cleanup its output) and restart clight and share systemctl status once more?
~/Git/docker >>> systemctl status clightd.service --all
● clightd.service - Bus service to manage various screen related properties (gamma, dpms, backlight)
Loaded: loaded (/usr/lib/systemd/system/clightd.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2020-08-22 20:35:32 +0430; 16s ago
Main PID: 14649 (clightd)
Tasks: 2 (limit: 4657)
Memory: 1.0M
CGroup: /system.slice/clightd.service
└─14649 /usr/lib/clightd/clightd
Aug 22 20:35:31 LilPenguin systemd[1]: Starting Bus service to manage various screen related properties (gamma, dpms, backlight)...
Aug 22 20:35:32 LilPenguin systemd[1]: Started Bus service to manage various screen related properties (gamma, dpms, backlight).
~/Git/docker >>> clight --verbose
Wrong AC frames value. Resetting default value.
Wrong BATT frames value. Resetting default value.
Clightd found, version: 4.2.
AC curve: y = -0.024825 + 0.191641x + -0.008928x^2
BATT curve: y = -0.010629 + 0.153844x + -0.007284x^2
init_kbd_backlight(): No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight
Keyboard backlight calibration unsupported.
Failed to create org.freedesktop.ScreenSaver dbus interface: Unknown error -1
Fallback at monitoring requests to org.freedesktop.ScreenSaver name owner.
Not a laptop device. Killing UPower module.
Failed to retrieve AC state; fallback to ON_AC and OPEN lid.
Emitting AcState property
Set timeout of 0s 1ns on fd 40.
Emitting LidState property
Set timeout of 30s 0ns on fd 40.
Set timeout of 0s 1ns on fd 41.
Next alarm due to: Sun Aug 23 06:30:00 2020
Set timeout of 35616s 0ns on fd 41.
Emitting Sunrise property
Emitting Sunset property
Emitting DayTime property
Emitting NextEvent property
Set timeout of 0s 1ns on fd 42.
Paused as no sensor is available.
Emitting SensorAvail property
As you can see here clightd does some checks on cameras: they must support V4L2_PIX_FMT_GREY or V4L2_PIX_FMT_YUYV pixel formats;
can you share v4l2-ctl -d /dev/video0 --all
output?
~/Git/docker >>> v4l2-ctl -d /dev/video0 --al
Driver Info:
Driver name : uvcvideo
Card type : USB 2.0 Camera: USB Camera
Bus info : usb-0000:00:1d.3-1
Driver version : 5.8.1
Capabilities : 0x84a00001
Video Capture
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'MJPG' (Motion-JPEG)
Field : None
Bytes per Line : 0
Size Image : 307789
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 640, Height 480
Default : Left 0, Top 0, Width 640, Height 480
Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 640, Height 480, Flags:
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 640, Height 480, Flags:
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 25.000 (25/1)
Read buffers : 0
brightness 0x00980900 (int) : min=-64 max=127 step=1 default=0 value=0
contrast 0x00980901 (int) : min=0 max=127 step=1 default=36 value=36
saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64
hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0
white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1
gamma 0x00980910 (int) : min=72 max=255 step=1 default=90 value=90
gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0
power_line_frequency 0x00980918 (menu) : min=0 max=2 default=1 value=1
0: Disabled
1: 50 Hz
2: 60 Hz
white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
sharpness 0x0098091b (int) : min=0 max=255 step=1 default=8 value=8
backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1
exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3
1: Manual Mode
3: Aperture Priority Mode
exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=300 value=300 flags=inactive
exposure_auto_priority 0x009a0903 (bool) : default=0 value=1
What about v4l2-ctl --list-formats
?
What about
v4l2-ctl --list-formats
?
~ >>> v4l2-ctl --list-formats [1]
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'MJPG' (Motion-JPEG, compressed)
Unfortunately Clight does not support MJPG capture; it only supports either GreyScale or YUYV422. I will look into supporting MJPEG in Clightd.
Unfortunately Clight does not support MJPG capture; it only supports either GreyScale or YUYV422. I will look into supporting MJPEG in Clightd.
So now what can I do?It used to work well :|
That is weird! Did clight work fine? On which version?
That is weird! Did clight work fine? On which version?
https://github.com/FedeDP/Clight/issues/52 https://github.com/FedeDP/Clight/issues/101 https://github.com/FedeDP/Clight/issues/108 https://github.com/FedeDP/Clight/issues/133
These are my issues, the clight work fine
That is weird! Did clight work fine? On which version?
This is not just my problem, my friend also has a similar problem, Need more information?
Can your friend run v4l2-ctl --list-formats
too? Thank you very much!
Clightd did not really bother to check supported video format until recent releases; may be it "worked" for you by using YUYV/Grayscale algorithm on a compressed video format (MJPEG)? It worked in the sense that it returned some numbers; but it was obviously wrong. You can see here the commit that added the new check on supported video formats; it was part of clightd 4.0 release.
Can your friend run
v4l2-ctl --list-formats
too? Thank you very much!Clightd did not really bother to check supported video format until recent releases; may be it "worked" for you by using YUYV/Grayscale algorithm on a compressed video format (MJPEG)? It worked in the sense that it returned some numbers; but it was obviously wrong. You can see here the commit that added the new check on supported video formats; it was part of clightd 4.0 release.
ioctl: VIDIOC_ENUM_FMT Type: Video Capture
Mmh it should work fine for your friend; can you attach a verbose log for him/her too?
Please note that supported camera pixelformats are found here: https://github.com/FedeDP/Clightd/wiki/Sensors#camera.
Mmh it should work fine for your friend; can you attach a verbose log for him/her too?
He said that the screen light does not change and Installed the git version (But he did not restart, only activated the service)
clight --verbose
SCREEN forcefully disabled as Clightd was built without screen support.
Wrong AC frames value. Resetting default value.
Wrong BATT frames value. Resetting default value.
Disabling DPMS in wayland environment.
Clightd found, version: 4.3.
AC curve: y = -0.024825 + 0.191641x + -0.008928x^2
BATT curve: y = -0.010629 + 0.153844x + -0.007284x^2
Failed to create org.freedesktop.ScreenSaver dbus interface: Unknown error -1
Fallback at monitoring requests to org.freedesktop.ScreenSaver name owner.
AC cable connected.
Laptop lid opened.
Emitting AcState property
Emitting LidState property
35.71 51.41 loaded from cache file.
Loc distance: 35.71,51.41 -> 91.00,181.00 : 3707.34 km.
New location received: 35.71, 51.41.
Set timeout of 0s 1ns on fd 34.
Emitting Location property
Next alarm due to: Mon Aug 24 19:12:00 2020
Set timeout of 4227s 0ns on fd 34.
Emitting Sunrise property
Emitting Sunset property
Set timeout of 0s 1ns on fd 35.
Sensor '/dev/video0' is now available.
Resumed as a sensor is now available.
Emitting DayTime property
Emitting NextEvent property
Emitting SensorAvail property
Captured [5/5] from '/dev/video0'. Ambient brightness: 0.849598.
Ambient brightness: 0.850 -> Backlight pct: 0.959.
Set timeout of 600s 0ns on fd 35.
Emitting AmbientBr property
Emitting BlPct property
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
Backlight level updated: 0.20.
^CReceived 2. Leaving.
Latest location stored in cache file!
Wrong AC frames value. Resetting default value.
Wrong BATT frames value. Resetting default value.
Disabling DPMS in wayland environment.
Clightd found, version: 4.3.
Failed to create org.freedesktop.ScreenSaver dbus interface: Unknown error -1
Fallback at monitoring requests to org.freedesktop.ScreenSaver name owner.
AC cable disconnected.
Laptop lid opened.
New location received: 35.71, 51.41.
Next alarm due to: Mon Aug 24 19:12:00 2020
Ambient brightness: 0.100 -> Backlight pct: 0.135.
Can he update his clight-git and test again?
Hi! I have some good news for you: latest clightd-git does now support jpeg webcam captures, thus it should work for you :) Let me know (i already tested mjpeg capture on my xps btw)!
Hi! I have some good news for you: latest clightd-git does now support jpeg webcam captures, thus it should work for you :) Let me know (i already tested mjpeg capture on my xps btw)!
Hi! This is good news, But I can't test it :((((
Hi The clight program does not change the screen light clightd-git r300.b03e52b-1 clight-git r715.767e184-1
~ >>> clight [130] Wrong AC frames value. Resetting default value. Wrong BATT frames value. Resetting default value. Clightd found, version: 4.3. Failed to create org.freedesktop.ScreenSaver dbus interface: Unknown error -1 Fallback at monitoring requests to org.freedesktop.ScreenSaver name owner. Not a laptop device. Killing UPower module. Failed to retrieve AC state; fallback to ON_AC and OPEN lid. Next alarm due to: Wed Aug 19 06:13:00 2020