Last active
April 24, 2025 15:11
-
-
Save kernelshreyak/122e8b6259aefa57fa7cb920458ef788 to your computer and use it in GitHub Desktop.
Get Monitor Serial Number in Linux using EDID
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
for file in `ls -1 /sys/class/drm/*/edid`; do text=$(tr -d '\0' <"$file"); if [ -n "$text" ]; then edid-decode "$file" | grep -e Manufacturer: -e Product; sleep 0.0001; fi done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
install edid-decode on Ubuntu using:
After running the command output will be something like:
Vendor & Product Identification:
Manufacturer: {manufacturer}
Vendor & Product Identification:
Manufacturer: {manufacturer}
Display Product Name: '{product-name}'
Display Product Serial Number: '{serial-number}'