GNOME Bugzilla – Bug 669537
Monitor size rounded up in Display (16" instead of 15.6")
Last modified: 2012-05-17 17:02:34 UTC
We found that Gnome Display Manager always show 15.6" monitor size as 16". Checking the logic below how gnome display manager calculate the size of the monitor: if (width_mm != -1 && height_mm != -1) { double d = sqrt (width_mm * width_mm + height_mm * height_mm); inches = (int)(d / 25.4 + 0.5); } The width of the monitor is 344mm, and the height is 194mm, and then the diagonal is sqrt((344^2) + (194^2)) = 394.932906mm inches = 394.932906 / 25.4 + 0.5 = 16.0485396 = 16 Thus, 15.6" will always be rounded up to 16".
Which exact GNOME version is this about? Would be nice to set in the "Version" field when reporting bugs. Thanks!
Sorry, the version is 2.28. I know that for gnome 3.x, gnome display manager no longer display the size of internal monitor. Just wonder to know if you guys still maintain 2.28 or up ?
(In reply to comment #2) > Just wonder to know if you guys still maintain 2.28 or up ? No.
Fixed in gnome-desktop (where the code lives now). commit 2ed4f948b8b1c7cdbcbe0ed82dc11179df5fa176 Author: Bastien Nocera <hadess@hadess.net> Date: Thu May 17 17:57:41 2012 +0100 gnome-rr: Better display dimensions in names For a small number of displays, we know the size it's sold as, so make 15.6" displays show up as 15.6", not 16. https://bugzilla.gnome.org/show_bug.cgi?id=669537