FedeDP / Clight

A C daemon that turns your webcam into a light sensor. It will adjust screen backlight based on ambient brightness.
GNU General Public License v3.0
728 stars 27 forks source link

[BUG] The clight does not change the screen light #143

Closed RezaSh13 closed 3 years ago

RezaSh13 commented 4 years ago

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


~ >>> clight --verbose                                                      
Wrong AC frames value. Resetting default value.
Wrong BATT frames value. Resetting default value.
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.
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 38.
Emitting LidState property
Set timeout of 30s 0ns on fd 38.
Set timeout of 0s 1ns on fd 39.
Next alarm due to: Wed Aug 19 06:13:00 2020
Set timeout of 18819s 0ns on fd 39.
Emitting Sunrise property
Emitting Sunset property
Emitting DayTime property
Emitting NextEvent property
Set timeout of 0s 1ns on fd 40.
Paused as no sensor is available.
Emitting SensorAvail property

~ >>> cat .config/clight.conf 
####################
# Clight conf file #
####################

## Verbose mode, useful to report bugs:
## run clight in verbose mode,
## then open issue on github attaching log
# verbose = true;

###################
# INHIBITION TOOL #
########################################################
# Requires DIMMER or DPMS enabled. Disabled otherwise. #
########################################################
inhibit:
{
    ## Uncomment to let Clight manage "Docked" laptop state
    ## as an inhibition (pausing DPMS and dimmer).
    ## Note that "Docked" state is only checked when
    ## laptop lid is closed or opened.
    # inhibit_docked = true;

    ## Uncomment to let Clight manage inhibition requests
    ## suppressing org.freedesktop.PowerManagement too
    ## (ie: preventing your laptop to suspend/hibernate)
    # inhibit_pm = true;
};

##############################
# BACKLIGHT CALIBRATION TOOL #
##############################
backlight:
{
    ## Uncomment to disable
    # disabled = true;

    ## Uncomment to disable smooth transitions
    # no_smooth_transition = true;

    ## Transition step in percentage
    # trans_step = 0.05;

    ## Transition timeout in ms
    # trans_timeout = 30;

    ## Timeouts between captures during day/night/event on AC
    ## Set any of these to <= 0 to disable captures
    ## in the corresponding day time.
    # ac_timeouts = [ 600, 2700, 300 ];

    ## Timeouts between captures during day/night/event on BATT
    ## Set any of these to <= 0 to disable captures
    ## in the corresponding day time.
    # batt_timeouts = [ 1200, 5400, 600 ];

    ## Screen syspath to be use
    # screen_sysname = "intel_backlight";

    ## Set a threshold: if detected ambient brightness is below this threshold,
    ## capture will be discarded and no backlight change will be made.
    ## Very useful to discard captures with covered webcam.
    # shutter_threshold = 0.10;

    ## Disables automatic calibration for screen backlight.
    ## Then, it can only be manually triggered by bus api.
    # no_auto_calibration = true;

    ## Uncomment to let BACKLIGHT module pause automatic calibration when laptop lid is closed.
    ## Mostly useful when laptop gets docked and thus internal webcam
    ## would not be able to correctly capture ambient brightness.
    # pause_on_lid_closed = true;
};

###################
# SENSOR settings #
###################
sensor:
{
    ## Y points used to compute ambient_brightness while ON AC -> screen backlight curve best-fit parameters 
    ## through polynomial regression. Ambient brightness values are simply array's indexes (from 0 to 10 included).
    ac_regression_points = [ 0.0, 0.15, 0.29, 0.45, 0.61, 0.74, 0.81, 0.88, 0.93, 0.97, 1.0 ];

    ## Y points used to compute ambient_brightness while ON BATTERY -> screen backlight curve best-fit parameters 
    ## through polynomial regression. Ambient brightness values are simply array's indexes (from 0 to 10 included).
    batt_regression_points = [ 0.0, 0.15, 0.23, 0.36, 0.52, 0.59, 0.65, 0.71, 0.75, 0.78, 0.80 ];

    ## Sensor device to be used (Webcam or ALS device, eg: video0 or iio:device0)
     devname = "video0";

    ## Sensor settings to be used. Leave empty/commented to use webcam default values.
    ## This can be really useful to further customize your sensor behaviour (together with backlight_regression_points).
    ## Have a look at Clightd wiki for informations: https://github.com/FedeDP/Clightd/wiki/Api#cameras-settings.
    # settings = "";

    ## Number of frames or ALS device pollings to be captured on AC/on BATT.
     captures = [ 1, 1 ];
};

##############################
# KEYBOARD BACKLIGHT TOOL    #
##############################
keyboard:
{
    ## Uncomment to disable keyboard automatic calibration.
    ## It is automatically disabled anyway where not available.
     disabled = true;

    ## Uncomment to switch off keyboard on dimming/dpms.
    # dim = true;

    ## Threshold above which keyboard backlight is switched off
    # ambient_br_thresh = 1.0;
};

##############
# GAMMA TOOL #
##############
##########################################
# Requires X server. Disabled otherwise. #
##########################################
gamma:
{
    ## Uncomment to disable gamma tool
    disabled = true;

    ## Uncomment to disable gamma smooth transitions
    # no_smooth_transition = true;

    ## Gamma transition step
    # trans_step = 50;

    ## Gamma transition timeout in ms
    # trans_timeout = 300;

    ## Gamma temperature during day and night
    # temp = [ 6500, 4000 ];

    ## Enable to let GAMMA smooth transitions last (2 * event_duration),
    ## in a redshift-like way. 
    ## When enabling this, transition steps and timeouts are automatically computed
    ## given DAY-NIGHT temperature difference and (2 * event_duration) duration.
    ##
    ## Note that if clight is started outside of an event, correct gamma temperature
    ## will be immediately setted using normal parameters:
    ## no_smooth_gamma_transition, gamma_trans_step, gamma_trans_timeout
    # long_transition = true;

    ## Let screen temperature match ambient brightness, like monitor backlight.
    ## When enabled, screen temperature won't be changed time-based.
    ## Note that it uses same curve points as backlight.
    ## Note also that LOCATION is still needed to let BACKLIGHT module know current time of day.
    ## Finally, it requires BACKLIGHT module to be enabled, otherwise it gets disabled.
    # ambient_gamma = true;
};

################
# DAYTIME TOOL #
################
########################################################
# Retrieves Sunrise and Sunset times for user location #
########################################################
daytime:
{
    ## Desired latitude for gamma support (sunrise/sunset in this location)
    latitude = 38.08;

    ## Desired longitude for gamma support (sunrise/sunset in this location)
    longitude = 46.29;

    ## Force set a sunrise time
    # sunrise = "7:00";

    ## Force set a sunset time
    # sunset = "19:00";

    ## Duration of an "event". Clight will enter "event" mode (more frequent screen recalibrations)
    ## from event_duration seconds before a sunrise/sunset, until event_duration seconds after.
    # event_duration = 1800;
};

###############
# DIMMER TOOL #
###############
###########################################
# Requires BACKLIGHT. Disabled otherwise. #
###########################################
dimmer:
{
    ## Uncomment to disable dimmer tool
    # disabled = true;

    ## Uncomment to disable smooth transitions 
    ## when entering/leaving dimmed state
    # no_smooth_transition [ true, true ];

    ## Transition step in percentage.
    ## Entering dimmed state fade, and leaving fade
    # trans_steps = [ 0.05, 0.05 ];

    ## Transition timeout in ms.
    ## Entering dimmed state fade, and leaving fade
    # trans_timeouts = [ 30, 30 ];

    ## Timeouts on AC/on BATT. 
    ## Set any of these to <= 0 to disable dimmer
    ## in the corresponding AC state.
    # timeouts = [ 45, 20 ];

    ## Change dimmed backlight level, in percentage
    # dimmed_pct = 0.2;
};

#############
# DPMS TOOL #
#############
#################################################
# Requires X server or tty. Disabled otherwise. #
#################################################
dpms:
{
    ## Uncomment to disable dpms management
    # disabled = true;

    ## Timeouts on AC/on BATT.
    ## Set any of these to <= 0 to disable dpms
    ## in the corresponding AC state.
    # timeouts = [ 900, 300 ];
};

############################
# SCREEN COMPENSATION TOOL #
############################
########################################################
# Requires X server and BACKLIGHT. Disabled otherwise. #
########################################################
screen:
{
    ##############################################################################################################
    ## Use this feature to provide screen-emitted brightness compensation to Clight.                             #
    ## The idea here is:                                                                                         #
    ##      dark ambient    -> higher monitor light contribution impact                                          #
    ##      bright ambient  -> lower monitor light contribution impact                                           #
    ## But, at the same time, obviously (as that is clight main feature):                                        #
    ##      dark ambient    -> lower monitor backlight level    -> lower monitor light contribution impact       #
    ##      high ambient    -> high monitor backlight level     -> higher monitor light contribution impact      #
    ## We can assume these 2 contributions to zero each other, letting us just compute screen-emitted brightness #
    ## and linearly multiplying it for our guessed ambient-brightness screen contribution value.                 #
    ##############################################################################################################

    ## Uncomment to disable screen-emitted brightness compensation support
    # disabled = true;

    ## Screen timeouts on AC/on BATT.
    ## Set any of these to <= 0 to disable screen-emitted brightness compensation
    ## in the corresponding AC state.
    ## Disabled by default on BATT because it is quite an heavy operation,
    ## as it has to take a snapshot of your X desktop and compute its brightness.
    # timeouts = [ 30, -1 ];

    ## How much does your screen-emitted brightness affect
    ## ambient brightness, in your setup, in percentage.
    # contrib = 0.1;

    ## How many samples should be used to compute average 
    ## screen-emitted brightness.
    # num_samples = 10;
};
FedeDP commented 4 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?

RezaSh13 commented 4 years ago

I use the webcam as a sensor And I know it works

image

image

FedeDP commented 4 years ago

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" ""?

RezaSh13 commented 4 years ago

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

image image


~ >>> 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
FedeDP commented 4 years ago

So, the issue here is that clightd is filtering out your webcam. Can you share output of systemctl status clightd.service --all?

RezaSh13 commented 4 years ago

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
FedeDP commented 4 years ago

Sorry, can you restart clightd.service (to cleanup its output) and restart clight and share systemctl status once more?

RezaSh13 commented 4 years ago

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
FedeDP commented 4 years ago

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?

RezaSh13 commented 4 years ago
~/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
FedeDP commented 4 years ago

What about v4l2-ctl --list-formats ?

RezaSh13 commented 4 years ago

What about v4l2-ctl --list-formats ?

~ >>> v4l2-ctl --list-formats                                               [1]
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'MJPG' (Motion-JPEG, compressed)
FedeDP commented 4 years ago

Unfortunately Clight does not support MJPG capture; it only supports either GreyScale or YUYV422. I will look into supporting MJPEG in Clightd.

RezaSh13 commented 4 years ago

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 :|

FedeDP commented 4 years ago

That is weird! Did clight work fine? On which version?

RezaSh13 commented 4 years ago

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

RezaSh13 commented 4 years ago

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?

FedeDP commented 4 years ago

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.

RezaSh13 commented 4 years ago

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

FedeDP commented 4 years ago

Mmh it should work fine for your friend; can you attach a verbose log for him/her too?

FedeDP commented 4 years ago

Please note that supported camera pixelformats are found here: https://github.com/FedeDP/Clightd/wiki/Sensors#camera.

RezaSh13 commented 4 years ago

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.
FedeDP commented 4 years ago

Can he update his clight-git and test again?

FedeDP commented 4 years ago

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)!

RezaSh13 commented 3 years ago

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 :((((