Hi!
As from the console to see the display?
I found the tool
read-edid .
After the command :
get-edid | parse-edid
gives the answer:
root@image-pc:/home/studi# get-edid | parse-edid
This is read-edid version 3.0.1. Prepare for some fun.
Attempting to use i2c interface
Looks like no busses have an EDID. Sorry!
Attempting to use the classical VBE interface
Performing real mode VBE call
Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
Function supported
Call successful
VBE version 300
VBE string at 0x11100 "Intel(R) VLV Mobile/Desktop Graphics Chipset Accelerated VGA BIOS"
VBE/DDC service about to be called
Report DDC capabilities
Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x0 cx=0x0
Function supported
Call successful
Monitor and video card combination does not support DDC1 transfers
Monitor and video card combination does not support DDC2 transfers
0 seconds per 128 byte EDID block transfer
Screen is not blanked during DDC transfer
Reading next EDID block
VBE/DDC service about to be called
Read EDID
Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
Function supported
Call successful
Checksum Correct
Section "Monitor"
Identifier "�
@"
ModelName "�
@"
Looks like VBE was successful. Have a good day.
VendorName "SDC"
# Monitor Manufactured week 0 of 2011
# EDID version 1.3
# Digital Display
DisplaySize 340 190
Gamma 2.20
Option "DPMS" "false"
Modeline "Mode 0" 69.39 1366 1414 1446 1464 768 770 775 790 -hsync -vsync
EndSection
how to get data off of
DisplaySize 340 190
grep can't use as it sees all text as one string.
How to pull data using
awk or maybe there is another utility to output the diagonal?
I think here you need to use regular expressions, but I'm not very familiar with it.
SOLVED!
How do I know the diagonal
edid=`get-edid | parse-edid`
echo -e "$(edid)" | grep 'DisplaySize' | awk '{print sprintf("%,1f". sqrt("$2*$2+$3*$3")*0.04)}'