FedeDP / Clightd

A linux bus interface that lets you change screen brightness, compute captured webcam frames brightness and change screen temperature.
GNU General Public License v3.0
83 stars 10 forks source link

External monitor no detected #85

Closed samuaz closed 2 years ago

samuaz commented 2 years ago

Hello, thanks again for the amazing work!!

i want to report that my external monitor is not detected by clight, on backlight only show my intel laptop display, but not my external display

i have both clight and clightd builded from the latest sources with ddcutil enabled

ddcutil commands works perfectly: sudo ddcutil setvcp 10 50 sudo ddcutil setvcp 10 100

im running latest archlinux, my laptop is nvidia/intel laptop using propietary nvidia drivers.

thanks a lot!!

this is my verbose from clight

[samuaz@M15R3 ~]$ clight
Clightd found, version: 5.6-664fb26.
AC screen backlight curve: y = -0.024825 + 0.191641x + -0.008928x^2
BL
^
|        **
|      **  
|     *    
|    *     
|   *      
|  *       
|          
| *        
|*         
|          
*---------->BR
BATT screen backlight curve: y = -0.010629 + 0.153844x + -0.007284x^2
BL
^
|          
|          
|       ***
|     **   
|    *     
|   *      
|  *       
| *        
|          
|*         
*---------->BR
Set timeout of 30s 0ns on fd 15.
init_kbd_backlight(): No such file or directory
Keyboard backlight calibration unsupported.
Failed to create org.freedesktop.ScreenSaver dbus interface: Unknown error -1
Monitoring requests to org.freedesktop.ScreenSaver name owner.
Disarmed timerfd on fd 39.
AC cable connected.
Laptop lid opened.
Emitting 'AcState' property
Set timeout of 0s 1ns on fd 42.
Emitting 'LidState' property
Set timeout of 30s 0ns on fd 42.
Could not find location cache file.
Timed out waiting on location provided by Geoclue2. Killing module.
No location provider found; fallback to DAY daytime.
Emitting 'Location' property
Set timeout of 0s 1ns on fd 13.
Sensor '/dev/video0' is now available.
Resumed as a sensor is now available.
Killing GAMMA as no location provider is available.
Emitting 'DayTime' property
Set timeout of 30s 0ns on fd 42.
Emitting 'SensorAvail' property
Captured [5/5] from '/dev/video0'. Ambient brightness: 0.635.
Ambient brightness: 0.635 -> Screen backlight pct: 0.832.
Set timeout of 600s 0ns on fd 13.
Emitting 'AmbientBr' property
Emitting 'BlPct' property
Error in async req: unknown
Backlight 'intel_backlight' level updated: 0.77.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.82.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.83.
Emitting 'BlPct' property
Set timeout of 30s 0ns on fd 42.
Set timeout of 30s 0ns on fd 42.
Set timeout of 30s 0ns on fd 42.
Set timeout of 30s 0ns on fd 42.
Set timeout of 30s 0ns on fd 42.
Set timeout of 30s 0ns on fd 42.
Start compensating for screen-emitted brightness.
Set timeout of 30s 0ns on fd 42.
Failed to validate autocalib request.
Set timeout of 379s 0ns on fd 13.
Average screen-emitted brightness: 0.027059.
Set timeout of 30s 0ns on fd 42.
Emitting 'ScreenComp' property
Average screen-emitted brightness: 0.027059.
Set timeout of 30s 0ns on fd 42.
● clightd.service - Bus service to manage various screen related properties (gamma, dpms, backlight)
     Loaded: loaded (/usr/lib/systemd/system/clightd.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2022-02-02 01:15:45 -03; 6min ago
   Main PID: 8746 (clightd)
      Tasks: 3 (limit: 38170)
     Memory: 1.9M
        CPU: 2.263s
     CGroup: /system.slice/clightd.service
             └─8746 /usr/libexec/clightd

Feb 02 01:15:45 M15R3 systemd[1]: Starting Bus service to manage various screen related properties (gamma, dpms, backlight)...
Feb 02 01:15:45 M15R3 libddcutil[8746]: Initializing.  ddcutil version 1.2.2
Feb 02 01:15:45 M15R3 libddcutil[8746]: Library initialization complete.
Feb 02 01:15:45 M15R3 systemd[1]: Started Bus service to manage various screen related properties (gamma, dpms, backlight).
FedeDP commented 2 years ago

Hi @samuaz ! Thanks for your kind words :blush: Can you share output of: busctl call org.clightd.clightd /org/clightd/clightd/Backlight org.clightd.clightd.Backlight GetAll "s" "" ?

Thanks!

samuaz commented 2 years ago

HI @FedeDP,

sure this the output:

[samuaz@M15R3 ~]$ busctl call org.clightd.clightd /org/clightd/clightd/Backlight org.clightd.clightd.Backlight GetAll "s" ""
a(sd) 1 "intel_backlight" 0.992188
FedeDP commented 2 years ago

Very interesting! Clightd is not seeing your monitor indeed!

Can you try disabling clightd.service (therefore letting Clight autostarting it for you?)

Edit: and then reboot to check if it makes any difference!

FedeDP commented 2 years ago

Moreover, in #86 i fixed a bug introduced in latest Clightd release, that might be related to this one. Can you try upgrading (if the other comment did not fixed it for you!)? Thanks!

samuaz commented 2 years ago

@FedeDP thanks!! i confirm now with latest from https://github.com/FedeDP/Clightd/issues/86 as your suggestion is working!!

FedeDP commented 2 years ago

That's great! Thanks!