Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Issue 1646010: monitor_reconfigure: Try to improve resolution selection. (Closed)

Created:
10 years, 8 months ago by Daniel Erat
Modified:
9 years, 7 months ago
Reviewers:
sosa
CC:
chromium-os-reviews_chromium.org, sosa, kanliu
Visibility:
Public.

Description

monitor_reconfigure: Try to improve resolution selection. My initial thinking was that this should work as follows: - find the device with the lowest max resolution - set the other device to use the nearest resolution that it has to the first's (that's >= it) - set the screen to use the first, smaller device's resolution (with black bars taking up the extra space on the larger device) xrandr doesn't appear to let the screen be a lower resolution than any of the devices, though. Regardless, I tried this version with a low-res Eee, a high-res Eee, and an X200, on both a projector and on a VC device, and it did something reasonable on all of them, so it seems like it's probably worth checking it in soon to make Kan happy and then refining it further. :-) BUG=chromium-os:1796 TEST=tried it on an X200 and various Eee PCs with a few projectors

Patch Set 1 #

Total comments: 12

Patch Set 2 : apply review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -117 lines) Patch
M src/platform/monitor_reconfig/monitor_reconfigure_main.h View 1 2 chunks +45 lines, -23 lines 0 comments Download
M src/platform/monitor_reconfig/monitor_reconfigure_main.cc View 1 2 chunks +106 lines, -94 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Erat
http://codereview.chromium.org/1646010/diff/1/3 File src/platform/monitor_reconfig/monitor_reconfigure_main.h (right): http://codereview.chromium.org/1646010/diff/1/3#newcode49 src/platform/monitor_reconfig/monitor_reconfigure_main.h:49: bool FindBestResolutions( Had to catch the shuttle before I ...
10 years, 8 months ago (2010-04-16 01:23:38 UTC) #1
sosa
Overall looks good. Looking through your code review I think I finally see what happened ...
10 years, 8 months ago (2010-04-16 17:39:19 UTC) #2
sosa
As a note, none of my questions should block this getting in. LGTM On Fri, ...
10 years, 8 months ago (2010-04-16 20:12:47 UTC) #3
Daniel Erat
> I always assumed I think that the LVDS1 had the worst > resolutions, but ...
10 years, 8 months ago (2010-04-19 19:11:14 UTC) #4
sosa
10 years, 8 months ago (2010-04-19 19:46:37 UTC) #5
lgtm!

Powered by Google App Engine
This is Rietveld 408576698