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

Issue 3647002: monitor_reconfig: Add script to run for external displays. (Closed)

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

Description

monitor_reconfig: Add script to run for external displays. This adds a run_monitor_configure script that uses xrandr to check if there's an external display connected, and then runs monitor_reconfigure if so. I plan to make us run this after starting the X server. Change-Id: Ia19b5832950e405d9d88295226771d6364846b99 BUG=chromium-os:1743 TEST=ran it Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=afaeace

Patch Set 1 #

Total comments: 1

Patch Set 2 : update path #

Patch Set 3 : apply review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
A run_monitor_reconfigure View 1 2 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Daniel Erat
10 years, 2 months ago (2010-10-09 00:32:31 UTC) #1
sosa
LGTM w/ nit http://codereview.chromium.org/3647002/diff/1/2 File run_monitor_reconfigure (right): http://codereview.chromium.org/3647002/diff/1/2#newcode18 run_monitor_reconfigure:18: if (( test "$NUM_OUTPUTS" -gt 1 ...
10 years, 2 months ago (2010-10-09 00:37:50 UTC) #2
Daniel Erat
10 years, 2 months ago (2010-10-09 00:44:04 UTC) #3
On 2010/10/09 00:37:50, sosa wrote:
> LGTM w/ nit
> 
> http://codereview.chromium.org/3647002/diff/1/2
> File run_monitor_reconfigure (right):
> 
> http://codereview.chromium.org/3647002/diff/1/2#newcode18
> run_monitor_reconfigure:18: if (( test "$NUM_OUTPUTS" -gt 1 )); then
> Why not just use  [ ] rather than an explicit call to test?

Because I hate shell scripting and can never keep track of what [[, ((, and [ do
and which ones are supported by bash/dash/sh. :-(  Thanks, updated.

Powered by Google App Engine
This is Rietveld 408576698