Repository navigation
fix(sg2002): capture resolutions other than 1920x1080 - #990
Open
akarineren wants to merge 2 commits into
Open
akarineren wants to merge 2 commits into
akarineren wants to merge 2 commits into
Conversation
The SDK's LT6911 driver hard-codes INPUT_WIDTH/INPUT_HEIGHT to 1920x1080, so at any other resolution (e.g. 1280x720) no frame is captured and the web page shows "No HDMI signal". Build a copy of the driver that takes the size kvm_mmf reads from the sensor at initialization.
Going from a resolution to an unsupported one and back reports NORMAL_RES instead of NEW_RES, since the size equals the last supported one, so the capture is never reopened. Forget the last size on an unsupported resolution.
|
@akarineren If you’re interested, I’d love to hear how NanoKVM OS behaves on your LT6911UXC device. I’ve substantially reworked the capture pipeline and resolution handling, including support for additional aspect ratios and portrait modes. I haven’t tested your exact supported → unsupported → supported sequence on your hardware, so your findings would be particularly helpful. No pressure, of course — and thanks again for improving the upstream implementation! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
hdmi_res_list), no frame is captured:VIFPSstays 0 and the web pageshows "No HDMI signal".
and back leaves the capture stopped until a new viewer connects.
Cause and fix
INPUT_WIDTH/INPUT_HEIGHTto1920x1080. kvm_mmf now builds a copy of the driver that takes the size it
reads from the sensor at initialization.
lt6911_get_csi_res()only reportsNEW_RESwhen the size differs fromthe last supported one, so going back to it never reopens the capture. It
now forgets the last size on an unsupported resolution.
If you prefer fixing the driver in the SDK instead of patching it from
CMake, the second commit does not depend on how (1) is fixed. The prebuilt
server/dl_liblibraries are not updated.Testing
NanoKVM with LT6911UXC, app 2.5.4, Linux target, web page watching over
H.264:
mainmain+ 1st commitmain+ bothWith both commits, switching 1920x1080 ↔ 1280x720 while running also works
(within 6 s). Not tested on LT6911C / LT6911D.
Related: #5