lg4k-linux icon indicating copy to clipboard operation
lg4k-linux copied to clipboard

Adapted Code to new driver version and fixed some problems

Open cdorn0 opened this issue 3 years ago • 6 comments

Over christmas I did some work on the driver. I tried to fix the issues with the crash and support of OBS. Both should be fine now. Also all supported pixelformats should work now.

cdorn0 avatar Jan 09 '22 15:01 cdorn0

Very nice! I'll try to review and hopefully merge it not too long from now depending on when I get around to running the card on Linux again.

(I also hope to find some time to learn more about linux kernel driver development, maybe getting DKMS or working [if you haven't already]. And long term I'd like to completely remove the binary blobs by decompiling and rebuilding the required parts)

derrod avatar Jan 09 '22 18:01 derrod

Just wanted to toss out there that I tried @cdorn0 's branch and it works perfectly on my setup - thank you!

I'm running Ubuntu Studio 21.04, using the 5.13.0-28-lowlatency kernel.

travisvroman avatar Feb 08 '22 03:02 travisvroman

Adding a comment here for others that might want to try something similar until I get time to investigate a bit more on my fork.

I almost got the AverMedia Live Gamer Bolt (GC555) working with @cdorn0 's current master branch, up to the video input showing in OBS. It does currently crash after a very short time though, with the journal showing lots of "BUG: scheduling while atomic" messages. This is on Manjaro kernel 5.16.14-1. I hope that the issue only requires small changes to account for changes in the newer kernel.

Changes needed in the repo to compile for the GC555, see my fork:

  • Change the device pci id in two places
  • Change include of <stdarg.h> to <linux/stdarg.h>

strank avatar Apr 04 '22 01:04 strank

I also get a lot of the BUG: scheduling while atomic: kworker/6:1/210/0x00000002 errors on 5.15.19 (Slackware 15's default kernel) but not on my self-compiled 5.10.47 from last year... HDMI Input capture does seem to work in OBS now with a couple of trial-and-error with 5.15 but works without much issues on 5.10... I'd stick to 5.10 for the moment if I could but I have an unrelated issue with my flat scanner apps crashing on 5.10 but not on 5.4 or 5.15...

The BUG kernel messages saturate the syslog really fast so I had to do a couple of shenanigans to prevent /var/log from filling up but it works well enough to stream with. Thanks for the work on updating the driver for recent kernels, that is very appreciated.

Cairan avatar Jul 13 '22 03:07 Cairan

There seems to be an issue with recent kernel changes. Unfortunately I am very busy right now, but I will try to find the issue that leads to the freeze as soon as I find the time

cdorn0 avatar Jul 20 '22 13:07 cdorn0

Straight up crashes on kernel version 6.2.8 as soon as I ffplay /dev/video0

PAI5REECHO avatar Sep 25 '23 23:09 PAI5REECHO