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

Constant logging about busy device #72

Closed mnussbaum closed 3 years ago

mnussbaum commented 3 years ago

Hi there, I've noticed that clightd seems to constantly log the following on my system SetMaster: Device or resource busy. Despite the logging clight and clightd seem to be functioning correctly. This is with clightd 5.3 and clight 4.5. Is this expected behavior? If so is there any way to decrease the logging?

Happy to provide any more info I can to help debug. Thanks!

FedeDP commented 3 years ago

Hi! Thanks for opening this issue! On which system/DE? Are gamma and dpms adjustments working in Clight? Thank you!

mnussbaum commented 3 years ago

This is with sway-git and wlroots-git compiled as of a few days ago, on arch linux. What would be the best way to test if gamma and DPMS adjustments are working? Backlight changes are definitely working correctly via IncBl through dbus. Thanks for your help!

FedeDP commented 3 years ago

I guess it is related to DPMS that is not supported by sway (Clightd implements a wayland protocol that is right now only used by kde plasma; unfortunately it is the only DPMS wayland protocol out there!). Thus, Clightd fallbacks to try "drm" method, and fails. If this is the case, it is safe to be ignored. You can check it by leaving your pc idle for eg: 45mins (or whatever dpms timeout you set in Clight) and see if the line is then triggered.

FedeDP commented 3 years ago

Closing for now; feel free to reopen it if you have any news!