ChrisAJS / lgx2userspace

This is a Linux userspace driver for the AverMedia LGX2 (GC551) and AverMedia LGX (GC550)
MIT License
24 stars 5 forks source link

[GC550] Official driver on windows does not work anymore after using the userspace one #18

Open DefNaBoo opened 1 year ago

DefNaBoo commented 1 year ago

Hi @ChrisAJS, thank you for the driver on linux, it's cool to use the card on linux.

But when I try to reuse the official one on Windows, the card does not start : image

The card still works using the userspace driver through on linux.

Do you have an idea why and how to fix this ?

Thank you in advance.

ChrisAJS commented 1 year ago

Hi DefNaBoo, you might be the second person to report this issue.

My understanding is that the device has no persistent storage so a powercycle of the device (unplugging the USB and re-plugging it in) should be enough to place back into "factory settings".

I'd really like to get to the bottom of this though for obvious reasons.

Can you tell me what you've tried to resolve this?

DefNaBoo commented 1 year ago

I have already tested unplugging and re-plugging the card it does not work. I also have tested with another computer and different cables same problem. I tried all of the official drivers, no luck too ...

By curiosity, I have tear-down the card and there is two flash chip on it : front front_flash

back back_flash

Do you think the card save a capture mode or something ?

ChrisAJS commented 1 year ago

I'm trying to consider what could be persisted beyond firmware; I believe at startup, the driver copies the 'no signal' pngs over to the device which is why the bootstrapping is so long, but I don't (well didn't!) think there is any other lasting effects.

Interestingly, when I was originally gathering the required payloads for the LGX2 it continued to work with my Windows VM the entire time. I'll try with the LGX and see if I can get RECCentral to capture stuff.

I'm really sorry that your card might not work on windows again after this, I really appreciate you digging into it (especially cracking open the device!)

ChrisAJS commented 1 year ago

Ok, in my Windows VM I am also seeing the same behaviour.

The LGX2 however works completely fine.

I'm going to disable automatic detection and use of GC550 in the userspace driver for now to make sure no one else falls into this.

I'm going to try my best to find a way to reset the GC550 though, I'll let you know if I am successful.

ChrisAJS commented 1 year ago

I've pushed these changes to prevent other people falling into this.

This is preventative, I'm still looking into how to get the windows driver to work correctly with the device again.

Nama commented 1 year ago

Not sure if it's related, but sounds like it. On the LGX2, the LED switches to blue if we start lgx2userspace, but doesn't turn red again after closing lgx2userspace. I think that is the case on windows. So the device isn't stopped or something.

ChrisAJS commented 1 year ago

Sorry for not getting back to you @Nama - yeah the userspace driver currently does nothing to teardown the configuration of the device, but unless you're reading framedata from it, it won't be doing anything, so it just makes it quicker to restart capture at a later time.

Just to be super clear, I've got no plans to teardown the device configuration when you close the app unless there is a really strong argument to do so.

ChrisAJS commented 1 year ago

I've still been unable to get the GC550 to work on windows again after use with this userspace driver.

Here is a list of things I've tried:

Things I've yet to try:

Sorry to everyone affected by this!

Baoulettes commented 1 year ago

Got this exact same issues both on Windows, work perfectly fine on linux & mac :) and no probleme for me I can be patient and if you need a tester for things on GC550 feel free :) (not like I use it that much so I do not mind if that risky)

ChrisAJS commented 1 year ago

I've opened up my GC550 and soldered on some header pins to be able to connect via the UART on the board.

So far I've uncovered nothing.

I'm going to put together a little wiki so I can document this in a less disperse way (through multiple Github issues!) but so far no dice.

kris0725pl commented 1 year ago

i have AM LGX and i have same problem on windows 10. I have error 10 in device manager. I uninstall drivers from original avermedia. But this files not working on wqindows 10. Click install and nothing happens. Zero reaction.

ChrisAJS commented 1 year ago

I've bought a second LGX GC550 in the hopes that I will be able to capture the teardown that happens when RECCentral is done with the device.

Hopefully I'll be able to capture that teardown and make a simple recovery tool that will allow the official driver to be used again on Windows. It's likely this will open up the ability to have multiple sessions without needing to unplug the device and re-plug it back in too!

kris0725pl commented 1 year ago

Hi..if important i dump firmware from winbomd ic. Dnia 09 stycznia 2023 13:38 Chris Sawczuk napisał(a):
I've bought a second LGX GC550 in the hopes that I will be able to capture the teardown that happens when RECCentral is done with the device. Hopefully I'll be able to capture that teardown and make a simple recovery tool that will allow the official driver to be used again on Windows. It's likely this will open up the ability to have multiple sessions without needing to unplug the device and re-plug it back in too!

— Reply to this email directly, github.com view it on GitHub , or github.com unsubscribe . You are receiving this because you commented. Message ID: <ChrisAJS/lgx2userspace/issues/18/1375566618 @ github . com>

ChrisAJS commented 1 year ago

Hi @kris0725pl that may be helpful but my knowledge of disassembly is really poor (not that I am unwilling to learn!)

kris0725pl commented 1 year ago

Can you record video how to use in windows?