Comments (8)
Hi,
Seems that is a bug on amdgpu driver that causes some calls made by ddcutil are stuck… I'm looking on this side and answered on an already-opened bug report on ddcutil.
Thanks to take times for my issue :) I'm using clight on all my setups for months, it's a cool project !
from clightd.
I seen that my fresh system had 2 v4l devices detected (video0 and video1) for only one webcam (Logitech C270).
If I force the sensor plugin to use only video0, I dont have the stop issue again.
I also have a 3rd v4l device called media0, and I dont know what it is…
Edit: not all the time…
some times, I dont have CPU-load issue and non-stopping clightd issue, some times, I have both.
During my last shutdown, I got this message on the console and service failed to stop :
uvcvideo: Failed to query (SET_CUR) UVC control 4 on unit 1: -32 (exp. 4).
uvcvideo 1-9.4:1.0: reset_resume error -22
from clightd.
Hi! Thanks for opening this issue!
It seems weird that clightd does not respond to sigkill (well it should work even with a normal sigterm/sigstop).
Honestly, i never heard about this issue; both of my laptops have "/dev/video0" and "/dev/video1" but i couldn't notice this issue.
I tried forcing same logical path as
Device does not support neither GREY nor YUYV nor MJPEG pixelformats.: Invalid argument
but again, i had no issue.
Maybe your "/dev/video1" device is somewhat faulty and freezes up clightd?
You can eg read here: https://unix.stackexchange.com/questions/541493/one-physical-device-mounts-two-dev-video-devices-which-will-cause-fswebcam-to
or here: https://unix.stackexchange.com/questions/512759/multiple-dev-video-for-one-physical-device
To find the correct device to use, clightd does some checks on both devices; maybe your faulty driver dies when /dev/video1 is checked...
Note also that Clightd does check that the devices has the VIDEO_CAPTURE cap (and, following this answer on SO, should be missing from second device (the metadata' one).
This is indeed the case on my laptop.
from clightd.
Hi, Thanks for your answer
I also seen that both vide0 and video1 are for the same webcam, I checked on a laptop and seen the same. Both devices have Video and Metadata Captures features.
At this moment, forcing video0 made Clight working.
The message Device does not support neither GREY nor YUYV nor MJPEG pixelformats.: Invalid argument
appears on systemd logs for clightd service, before I'm log in on the session (and launching clight), but on the clight side, I see that the captor /dev/video0 is available and all seems to work.
Another error message I seen on clightd logs is No drm class cards found in /sys/class/drm
, but I can see my videocard on /sys/class/drm/card0, but it's a new AMD card, and maybe the amdgpu drivers are not fully compatible on the drm side.
Is there a way to disable some plugins on clightd side ? Just to restrict to the minimal.
Edit: I've a new idea. I seen that clightd uses ddcutil, but if I launch ddcutil using sudo, the command did not respond, and a kill -9
command did not stop the process…
Maybe clightd is blocked on a call to ddcutil ? Seems related to rockowitz/ddcutil#159
from clightd.
Hi!
Edit: I've a new idea. I seen that clightd uses ddcutil, but if I launch ddcutil using sudo, the command did not respond, and a kill -9 command did not stop the process…
Maybe clightd is blocked on a call to ddcutil ?
Yep, it seems an issue with ddcutil!
The following lines, from your log, show ddcutil's output:
janv. 17 22:35:37 minsk clightd[444]: No drm class cards found in /sys/class/drm
...
janv. 17 22:35:37 minsk clightd[444]: (check_displays ) Displays changed!
janv. 17 22:35:37 minsk clightd[444]: [63B blob data]
janv. 17 22:35:37 minsk clightd[444]: (check_displays ) Current connected displays: card0-DP-2
janv. 17 22:35:37 minsk clightd[444]: (dummy_display_change_handler ) changes = Changed_Added
janv. 17 22:35:37 minsk clightd[444]: (dummy_display_change_handler ) Added displays: card0-DP-2
This is the only ddcutil output i see in clightd's output.
May be you can open a bug report on ddcutil? I am pretty sure rockowitz will track this bug ;)
Btw great to hear that clight works fine when forcing video0
!
And once more, let me thank you for writing this bug report and for taking the time to test various workarounds before giving up and throwing clight out of the window!
from clightd.
It's a pleasure to hear that!
from clightd.
Hi,
Just to report that the same issue on my setup have a different impact on my system on last clightd 5.3 (on an updated archlinux system)
The precedent issue was that clightd was unkillable. But now, the process is sopping well but when shutting down or restarting my computer did not work with different symptoms : all the system is halted, graphic card is powered down (screen does not receive signal anymore) but the motherboard is not powering off.
I do the same fix that last time : building clightd without DDC support and it solves my issue.
DDC and AMD RDNA2 graphic cards is still having troubles…
Thanks
from clightd.
Hi! That is very unfortunate :(
DDC and AMD RDNA2 graphic cards is still having troubles…
It can be an issue while unloading i2c-dev
kernel module, maybe?
Can you try to manually load it and unload it?
sudo modprobe i2c-dev
sudo rmmod i2c-dev
If clightd stops fine, the only thing remaining from DDC integration is that kernel module being loaded!
from clightd.
Related Issues (20)
- [FEATURE REQ] suncalc+geo based illuminance sensor HOT 2
- GLib.Variants Invalid GVariant format string for `d(du)` HOT 2
- [FEAT REQ] Uninstall Make rule HOT 3
- Configure specific methods (ACPI/DDC/Emulated) of brightness control for different DRM nodes/monitors HOT 1
- [BUG] screen functionality broke fcitx5 candidate window HOT 8
- Wayland DPMS & acpid.service issues HOT 1
- [FEATURE REQ] Support for NV12 sensor format HOT 15
- Can't set external monitor. HOT 5
- [BUG] High cpu usage HOT 9
- [BUG] Build Errors on Fedora after recent updates to Backlight.c & Backlight2.c HOT 7
- Device or resource busy HOT 18
- iio device I/O error HOT 3
- External monitor no detected HOT 6
- Failed to add object vtable on path HOT 4
- Need libusb-1.0-0-dev in Ubuntu HOT 1
- ALS not working HOT 35
- Not able to detect ALS on ThinkPad X1 Yoga Gen 5 HOT 11
- Brightness level fluctuates since update to 5.7 HOT 3
- Cmake, libmodule not found HOT 3
- [FEATURE REQ] Wlroots DPMS support HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clightd.