Repository navigation
Support NanoKVM Pro 1.2.16 EDID preset names - #72
Merged
Merged
Conversation
Pro 1.2.16 renamed its built-in EDID files (E18-4K30FPS became nanokvm-pro-3840x2160-30, and so on) and dropped E58-4K16-10, so switch_edid(EdidPreset.*) failed with "invalid EDID". - EdidPreset values are now the 1.2.16 names. switch_edid sends the old name below 1.2.16 and accepts either name as a string. - get_edid returns the preset for either name. - WQUXGA_3840X2400_30HZ is refused locally from 1.2.16.
Pro 1.2.16 answers POST /application/update once the package is downloaded and checked, and installs it in a separate worker. A failed install no longer reaches the caller as an error; it only leaves the old version running.
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.
NanoKVM Pro 1.2.16 (pre-release) renamed its built-in EDID files and dropped
E58-4K16-10. With the old names,switch_edid(EdidPreset.*)fails with-3 "invalid EDID"andget_edid()returns a plainstrinstead of the enum.UHD_4K_30HZE18-4K30FPSnanokvm-pro-3840x2160-30UHD_4K_39HZE48-4K39FPSnanokvm-pro-3840x2160-39QHD_1440P_60HZE56-2K60FPSnanokvm-pro-2560x1440-60FHD_1080P_60HZE54-1080P60FPSnanokvm-pro-1920x1080-60ULTRAWIDE_3440X1440_60HZE63-Ultrawidenanokvm-pro-3440x1440-60WQUXGA_3840X2400_30HZE58-4K16-10EdidPresetvalues are now the 1.2.16 names. Below 1.2.16,switch_edidsends the old name, and it accepts either name as a string.get_edidreturns the preset for either name.switch_edid(WQUXGA_3840X2400_30HZ)raisesNanoKVMNotSupportedErrorinstead of sending a name the device rejects.update_applicationdocstring now says that Pro 1.2.16 answers once the package is downloaded and installs it in the background.install_application_updatestill works, because it waits for the version to change.Tests:
pytest: 557 passed, including a new test that covers both sides of 1.2.16.pre-commitpasses.E54-1080P60FPSdirectly returns-3 "invalid EDID".QHD_1440P_60HZand"E63-Ultrawide"switch the EDID and read back as the enum, and the EDID went back to the original preset afterwards.