pikvm / pikvm

Open and inexpensive DIY IP-KVM based on Raspberry Pi
https://pikvm.org
GNU General Public License v3.0
7.65k stars 433 forks source link

kvmd-edidconf --set-monitor-serial=[MONITOR_SERIAL] doesn't work on PiKVMv3 #1358

Closed mareksagan closed 1 week ago

mareksagan commented 1 week ago

Describe the bug I cannot change the Monitor Serial number using kvmd-edidconf tool.

To Reproduce Steps to reproduce the behavior, like:

  1. rw
  2. kvmd-edidconf --set-monitor-serial=123A
  3. This error occurs: Traceback (most recent call last): File "/usr/bin/kvmd-edidconf", line 8, in sys.exit(main()) ^^^^^^ File "/usr/lib/python3.12/site-packages/kvmd/apps/edidconf/init.py", line 377, in main getattr(edid, cmd)(value) File "/usr/lib/python3.12/site-packages/kvmd/apps/edidconf/init.py", line 188, in set_monitor_serial self.set_dtd_text(0xFF, "Monitor Serial", text) File "/usr/lib/python3.12/site-packages/kvmd/apps/edidconf/init.py", line 195, in set_dtd_text index = self.__find_dtd_text(d_type, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/kvmd/apps/edidconf/init.py", line 204, in __find_dtd_text raise NoBlockError(f"Can't find DTD {name}") kvmd.apps.edidconf.NoBlockError: Can't find DTD Monitor Serial

Expected behavior Monitor serial should change but it doesn't.

Screenshots monitor_serial

Desktop (please complete the following information):

PiKVM info:

Additional context Thank you for your help.

mdevaev commented 1 week ago

Serial and Monitor serial are two different type of blocks. Use --set-serial, like: kvmd-edidconf --set-monitor-name=TOSHIBA --set-mfc-id=TTP --set-product-id=34953 --set-serial=2290649089 --apply.

This is a EDID legacy.

mareksagan commented 1 week ago

But I want to be able to set a monitor serial and serial independently. How do I do that?

mdevaev commented 1 week ago

kvmd-edidconf is able to configure only those blocks that are already in EDID, with the exception of Audio. This is not a full-fledged editor. If you need more, use the AW EDID Editor.

mareksagan commented 1 week ago

I tried opening the tc358743-edid.hex file with AW EDID Editor but it gives me this error... Do you know how to fix this one please? edid

mdevaev commented 1 week ago

Please follow the guide: https://docs.pikvm.org/edid