Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate EDIDs #15

Open
joevt opened this issue Sep 25, 2021 · 5 comments
Open

duplicate EDIDs #15

joevt opened this issue Sep 25, 2021 · 5 comments

Comments

@joevt
Copy link

joevt commented Sep 25, 2021

There are some EDIDs that are duplicated in the Others folder.

for thefile in $(
find bsdhw-EDID linuxhw-EDID \( -name \
$(echo \
$(for base in bsdhw-EDID linuxhw-EDID; do
	find "$base" -type f \( -path '*/Analog/*' -o -path '*/Digital/*' \) -not -name ".DS_Store" -print0 | xargs -0 basename | sort | uniq -d
done) | sed -e 's/ / -o -name /g'
) \)
); do
	echo $(basename $thefile) $thefile
done | sort
13334255FF87 linuxhw-EDID/Digital/HP/HPN3424/13334255FF87
13334255FF87 linuxhw-EDID/Digital/Others/HPN3424/13334255FF87
255E01473B16 linuxhw-EDID/Digital/Others/SAN0000/255E01473B16
255E01473B16 linuxhw-EDID/Digital/Sanyo/SAN0000/255E01473B16
4975724560DC linuxhw-EDID/Digital/Gericom/QMX2421/4975724560DC
4975724560DC linuxhw-EDID/Digital/Others/QMX2421/4975724560DC
7421C5E94A79 linuxhw-EDID/Digital/HP/HPN335A/7421C5E94A79
7421C5E94A79 linuxhw-EDID/Digital/Others/HPN335A/7421C5E94A79
D4C9E7470F3D linuxhw-EDID/Digital/HP/HPN3424/D4C9E7470F3D
D4C9E7470F3D linuxhw-EDID/Digital/Others/HPN3424/D4C9E7470F3D
FAA6DC41AC05 linuxhw-EDID/Digital/Lenovo/QWA3602/FAA6DC41AC05
FAA6DC41AC05 linuxhw-EDID/Digital/Others/QWA3602/FAA6DC41AC05

Maybe the vendor ID wasn't valid when it was uploaded to Others?

159 of the 325 vendor IDs in Others seem to be valid though (at least they match an ID in the list at https://uefi.org/pnp_id_list )

if [[ ! -f ~/pnp_id_list.txt ]]; then
	curl -s "https://uefi.org/uefi-pnp-export" | \
	tidy -wrap 0 -raw -utf8 -q | \
	perl -0777 -nE '
		s!(?:&nbsp;)*(</td>)!\1!g;
		s!&amp;!&!g;
		while (
			m!
				^<tr\ class=\"(?:odd|even)">\n
				<td>(.*)</td>\n
				<td>(...)</td>\n
				<td>(../../....)</td>\n
				</tr>
			!xmg
		) { 
			print $3 . " " . $2 . " " . $1 . "\n"
		}
	' | \
	sort -f -k 3 -k 2 -k 1 > ~/pnp_id_list.txt
fi

for thepnp in $(ls -d *hw-EDID/*/Others/??????? | sed -E 's/.*\/(...).*/\1/' | sort -u); do
	sed -nE '/^.......... ('$thepnp') (.*)/ { s//\1 \2/p ; q ; };$s/.*/____ '$thepnp'/p' ~/pnp_id_list.txt
done | sort
@linuxhw
Copy link
Owner

linuxhw commented Oct 5, 2021

The dups have been removed from the repository. Thank you!

Could you please attach the pnp_id_list.txt to this issue? The script is failed to run on my computer.

@joevt
Copy link
Author

joevt commented Oct 5, 2021

I've attached the pnp_id_list.txt

pnp_id_list.txt.zip

@linuxhw
Copy link
Owner

linuxhw commented Oct 5, 2021

I've attached the pnp_id_list.txt

pnp_id_list.txt.zip

Thanks! This will help to identify vendor.

@linuxhw
Copy link
Owner

linuxhw commented Oct 5, 2021

@joevt
Copy link
Author

joevt commented Oct 5, 2021

Oh, I see they use the same source but apply a patch file on top of that.
https://github.com/vcrhonek/hwdata/blob/master/Makefile
https://github.com/vcrhonek/hwdata/blob/master/pnp.ids.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants