edid update

This commit is contained in:
Maxim Devaev 2022-06-11 13:44:27 +03:00
parent a4c82cccf0
commit 838492397c
1 changed files with 46 additions and 3 deletions

View File

@ -9,13 +9,13 @@ EDID is information about the video modes supported by the video capture device.
In the case of PiKVM, this is an HDMI CSI bridge. Usually, you don't need to change this, since the default configuration is quite flexible,
but sometimes, for example for strange UEFIs/BIOSes, this may be necessary (the [story](https://github.com/pikvm/pikvm/issues/78)).
The EDID is stored on the PiKVM in the file `/etc/kvmd/tc358743-edid.hex`. If you write new data there, it will be applied on the PiKVM reboot.
The EDID is stored on the PiKVM in the file `/etc/kvmd/tc358743-edid.hex`. If you write new data there, it will be applied after rebooting.
You can also apply the new EDID without rebooting to make sure it works:
* Switch filesystem to RW-mode: `rw`.
* Create file with EDID `/root/edid.hex` (examples of file contents are shown below).
* Apply EDID using the command `v4l2-ctl --device=/dev/kvmd-video --set-edid=file=/root/edid.hex --fix-edid-checksums`.
* Create the new EDID file `/root/edid.hex` (examples of file contents are shown below).
* Apply EDID using the command `kvmd-edidconf --edid=/root/edid.hex --apply`.
* DO NOT REBOOT the PiKVM. Just your PC. Check the UEFI/BIOS.
* If everything works, you can write the same data to `/etc/kvmd/tc358743-edid.hex`.
* Switch filesystem to RO-mode: `ro`.
@ -23,6 +23,49 @@ You can also apply the new EDID without rebooting to make sure it works:
The examples below are tested on these devices, but they are also suitable for others. To edit or create EDID you can use [AW EDID Editor](https://www.analogway.com/emea/products/software-tools/aw-edid-editor).
## Editing EDID
To edit EDID, it is best to use third-party utilities, such as the recommended advanced
[AW EDID Editor](https://www.analogway.com/emea/products/software-tools/aw-edid-editor) for Windows (it's working great in wine)
or [wxEDID](https://sourceforge.net/projects/wxedid). Both editors work with the binary EDID format, but you can easily import and export it
to PiKVM using the `kvmd-edidconf` utility.
So, to tune EDID on PiKVM, use the following steps:
1. Switch filesystem to RW-mode: `rw`.
2. Export the system edid to the binary file `myedid.bin`:
```
# kvmd-edidconf --export-bin=/root/myedid.bin
```
3. Copy this file to your PC with the editor. Use SCP, Putty or something like that. Open this binary file in the editor and change the necessary parameters. Edit, save and copy it back to PiKVM.
4. Convert the binary file to the HEX and test it:
```
# kvmd-edidconf --import=/root/myedid.bin --edid=/root/myedid.hex --apply
```
5. If everything works fine, install the new EDID file into the system:
```
# cp /root/myedid.hex /etc/kvmd/tc358743-edid.hex
```
6. Alternative to step (4) and (5): if you are confident in your abilities, you can immediately install the new `myedit.bin` into the system and apply it instantly, without the need to use the temporary `myedid.hex`:
```
# kvmd-edidconf --import=/root/myedid.bin --apply
```
7. Switch filesystem to RO-mode: `ro`.
The `kvmd-edidconfig` utility has the ability to change some simple parameters without using an external editor. For example you can change the vendor, model name and enable [HDMI audio](audio.md) on the PiKVM virtual display:
```
# kvmd-edidconf --set-mfc-id=LNX --set-monitor-name=PiKVM --set=audio=1
# reboot
```
## Custom EDIDs
??? example "1280x1024 as preferred. Useful for Gigabyte GA-H77-DS3H"