aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-parse-edid
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-08 09:19:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-08 09:19:34 +0000
commit4c81e799bf3915cf1515d4af703dd6e89133dc19 (patch)
tree5b3c567ec64b78e280b634b4db5a2ad0b714ccfc /monitor-parse-edid
parente7c88e44c03e7113cc1103618baa3718e5b022e7 (diff)
downloadmonitor-edid-4c81e799bf3915cf1515d4af703dd6e89133dc19.tar
monitor-edid-4c81e799bf3915cf1515d4af703dd6e89133dc19.tar.gz
monitor-edid-4c81e799bf3915cf1515d4af703dd6e89133dc19.tar.bz2
monitor-edid-4c81e799bf3915cf1515d4af703dd6e89133dc19.tar.xz
monitor-edid-4c81e799bf3915cf1515d4af703dd6e89133dc19.zip
better name
Diffstat (limited to 'monitor-parse-edid')
-rwxr-xr-xmonitor-parse-edid11
1 files changed, 8 insertions, 3 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index e35516a..6aa9faa 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -385,10 +385,15 @@ sub to_MonitorsDB {
join('x', $_->{horizontal_active}, $_->{vertical_active});
} grep { !$_->{bad_ratio} } @$detailed_timings;
+ (my $monitor_name = $edid->{monitor_name}) =~ s/;/,/g;
+ my ($raw_vendor, $raw_model) = $edid->{EISA_ID} =~ /(...)(.*)/;
+ my ($VendorName, $only_Model) =
+ $monitor_name =~ /(\S+)\s(.*)/ ?
+ ($1, $2) :
+ ($raw_vendor, $monitor_name || $raw_model);
+
join('; ',
- $edid->{monitor_name} =~ /(\S+)/ ? $1 : $edid->{EISA_ID} =~ /(...)/ && $1,
- $edid->{monitor_name} ? $edid->{monitor_name} : $edid->{EISA_ID} =~ /...(.*)/ && $1,
- $edid->{EISA_ID},
+ $VendorName, "$VendorName $only_Model", $edid->{EISA_ID},
sprintf("%u-%u", $edid->{monitor_range}{horizontal_min}, $edid->{monitor_range}{horizontal_max}),
sprintf("%u-%u", $edid->{monitor_range}{vertical_min}, $edid->{monitor_range}{vertical_max}),
@$detailed_timings == 1 ? @preferred_resolutions : (),