Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hello vr,

> There's also check_parsed_edid to alert you, even when (very) suspicious results failed to do so :)

ah ah ah.. so I was looking shadows on the wall of the cavern supposing them to be real things :)

Adding print check_parsed_edid( $edid ); only prints for my bad edid_version but I already noticed in my previous output year => 2039 and I had to suspect something wrong.

Anyway with you packed string (thanks again!) it seems I have meaningful results. I add it here for the posterity (hiding the serial number, just in case..), when we'll have 250 dpi monitors.

$VAR1 = { 'diagonal_size' => '21.5406146150976', 'monitor_details' => '', 'serial_number' => 1234, 'edid_revision' => 3, 'standard_timings' => [ { 'Y' => '1080', 'vfreq' => 60, 'X' => 1920, 'ratio' => '16/9' }, { 'Y' => '900', 'vfreq' => 60, 'ratio' => '16/10', 'X' => 1440 }, { 'vfreq' => 75, 'Y' => '900', 'X' => 1440, 'ratio' => '16/10' }, { 'X' => 1680, 'ratio' => '16/10', 'vfreq' => 60, 'Y' => '1050' }, { 'X' => 1280, 'ratio' => '16/9', 'Y' => '720', 'vfreq' => 60 }, { 'vfreq' => 60, 'Y' => '1024', 'X' => 1280, 'ratio' => '5/4' } ], 'video_input_definition' => { 'composite_sync' => 0, 'voltage_level' => 0, 'separate_sync' => 0, 'sync_on_green' => 0, 'digital' => 1 }, 'ratio_name' => '16/9', 'detailed_timings' => [ { 'vertical_sync_positive' => 1, 'horizontal_sync_pulse_width' => 4 +4, 'horizontal_dpi' => '102.238993710 +692', 'horizontal_sync_offset' => 88, 'vertical_image_size' => 268, 'preferred' => 1, 'vertical_border' => 0, 'horizontal_blanking' => 280, 'ModeLine_comment' => '# Monitor p +referred modeline (60.0 Hz vsync, 67.5 kHz hsync, ratio 16/9, 102 dpi +)', 'interlaced' => 0, 'vertical_dpi' => '102.35820895522 +4', 'stereo' => 0, 'horizontal_sync_positive' => 1, 'digital_composite' => 3, 'vertical_active' => 1080, 'horizontal_active' => 1920, 'vertical_sync_offset' => 4, 'pixel_clock' => '148.5', 'vertical_sync_pulse_width' => 5, 'horizontal_border' => 0, 'ModeLine' => '"1920x1080" 148.5 1 +920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync', 'horizontal_image_size' => 477, 'vertical_blanking' => 45 } ], 'max_size_precision' => 'mm', 'gamma' => 120, 'max_size_horizontal' => '47.7', 'VertRefresh' => '56-76', 'extension_flag' => 1, 'feature_support' => { 'DPMS_suspend' => 0, 'DPMS_active_off' => 1, 'rgb' => 0, 'has_preferred_timing' => 1, 'GTF_compliance' => 0, 'sRGB_compliance' => 0, 'DPMS_standby' => 0 }, 'max_size_vertical' => '26.8', 'week' => 5, 'manufacturer_name' => 'PHL', 'serial_number2' => [ '############' ], 'checksum' => 61, 'EISA_ID' => 'PHLc0e5', 'monitor_name' => 'PHL 227E6', 'ratio' => '1.77985074626866', 'year' => 2016, 'monitor_range' => { 'vertical_max' => 76, 'horizontal_max' => 83, 'pixel_clock_max' => 170, 'vertical_min' => 56, 'horizontal_min' => 30 }, 'established_timings' => [ { 'Y' => '480', 'vfreq' => 60, 'X' => 640 }, { 'X' => 640, 'Y' => '480', 'vfreq' => 67 }, { 'X' => 640, 'Y' => '480', 'vfreq' => 72 }, { 'vfreq' => 75, 'Y' => '480', 'X' => 640 }, { 'X' => 720, 'vfreq' => '70', 'Y' => '400' }, { 'vfreq' => 60, 'Y' => '600', 'X' => 800 }, { 'vfreq' => 75, 'Y' => '600', 'X' => 800 }, { 'Y' => '768', 'vfreq' => 60, 'X' => 1024 }, { 'Y' => '768', 'vfreq' => 75, 'X' => 1024 }, { 'X' => 1280, 'vfreq' => '75', 'Y' => '1024' } ], 'HorizSync' => '30-83', 'ratio_precision' => 'mm', 'product_code' => 49381, 'edid_version' => 1 };

Notably now I read:

'max_size_horizontal' => '47.7', 'max_size_vertical' => '26.8',

and these are the physical measures of my monitor!

Even if I will remove mm calculation from my code, what is better than learn yet another unuseful thing? :)

Thanks for the support

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

In reply to Re^4: Tk screen and monitor size in mm, DPI and scaling -- Parse::EDID -- solution by Discipulus
in thread Tk screen and monitor size in mm, DPI and scaling by Discipulus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-23 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found