Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TITLE: Save (dump) your CRT/TV EDID to a file in Batocera (with edid-decode)
- Goal:
- Read the EDID from the GPU connector and save it to a file you can download.
- Then decode it with edid-decode to confirm it is correct.
- This method uses /sys/class/drm which is the most reliable on modern Batocera/Linux.
- --------------------------------------------------------------------
- STEP 0 - Open a terminal (SSH/PuTTY or local terminal)
- --------------------------------------------------------------------
- If using SSH:
- - Host: batocera (or your IP)
- - User: root
- - Password: linux (default)
- You should see a prompt like:
- [root@BATOCERA ~]#
- --------------------------------------------------------------------
- STEP 1 - List DRM connectors
- --------------------------------------------------------------------
- Run:
- ls /sys/class/drm/
- You will see entries like:
- card0-DVI-D-1
- card0-HDMI-A-1
- card0-DP-1
- card0-eDP-1
- etc.
- Note:
- The output name you need is usually the one you are using in Batocera’s video menu.
- --------------------------------------------------------------------
- STEP 2 - Check which connector is connected
- --------------------------------------------------------------------
- Run:
- for c in /sys/class/drm/card*-*; do
- if [ -f "$c/status" ]; then
- echo "$(basename "$c"): $(cat "$c/status")"
- fi
- done
- Look for the one that says:
- connected
- Example:
- card0-DVI-D-1: connected
- That is the connector you will use in STEP 4.
- --------------------------------------------------------------------
- STEP 3 - Create a folder in SHARE (easy to find in WinSCP/SMB)
- --------------------------------------------------------------------
- Run:
- mkdir -p /userdata/system/edid
- This folder is persistent and easy to download from.
- --------------------------------------------------------------------
- STEP 4 - Dump EDID to a file (IMPORTANT: change connector name)
- --------------------------------------------------------------------
- Replace card0-DVI-D-1 with your connected connector from STEP 2.
- Run:
- cat /sys/class/drm/card0-DVI-D-1/edid > /userdata/system/edid/hdcrt.edid
- Important notes:
- - This command prints nothing on success. That is normal.
- - The file will be created in /userdata/system/edid/
- --------------------------------------------------------------------
- STEP 5 - Sanity check the file size
- --------------------------------------------------------------------
- Run:
- ls -l /userdata/system/edid/hdcrt.edid
- Typical sizes:
- - 128 bytes (base EDID only)
- - 256 bytes (EDID + 1 extension)
- If size is 0 bytes:
- - The display might not be providing EDID
- - Or the adapter/converter might block EDID
- - Or you dumped from the wrong connector
- --------------------------------------------------------------------
- STEP 6 - Decode the EDID (Batocera includes edid-decode)
- --------------------------------------------------------------------
- Run:
- edid-decode /userdata/system/edid/hdcrt.edid
- You should see:
- - Vendor / manufacturer
- - Display name (sometimes)
- - Supported resolutions and refresh rates
- - Detailed timings (if present)
- If edid-decode prints sensible info, the EDID dump is correct.
- --------------------------------------------------------------------
- STEP 7 - Download the EDID file
- --------------------------------------------------------------------
- WinSCP:
- - Browse to: /userdata/system/edid/
- - Download: hdcrt.edid
- Windows network share:
- - \\batocera\share\system\edid\
- - Copy: hdcrt.edid
- --------------------------------------------------------------------
- Common mistakes / gotchas
- --------------------------------------------------------------------
- 1) "Nothing happened" after the cat command
- - That is normal. It writes to a file silently.
- 2) "I cannot find hdcrt.edid"
- - If you used: > hdcrt.edid (without a path)
- then it saved to your current folder (often /root).
- - Use the full path used in STEP 4 to avoid that.
- 3) STEP 2 failed
- - Make sure you pasted the entire loop including 'done'.
- Done.
- You now have:
- - /userdata/system/edid/hdcrt.edid
- and you can verify it with:
- - edid-decode /userdata/system/edid/hdcrt.edid
- --------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment