diff options
author | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-05 00:31:48 +0000 |
---|---|---|
committer | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-05 00:31:48 +0000 |
commit | b2df163d24184beb210f2f2eb510074b0ab453bd (patch) | |
tree | 6121ece7ac0ea40fc745b346fcafa87346f5a8d7 /remoting | |
parent | c5b061b03e788345e1d703f543785670f4370e73 (diff) | |
download | chromium_src-b2df163d24184beb210f2f2eb510074b0ab453bd.zip chromium_src-b2df163d24184beb210f2f2eb510074b0ab453bd.tar.gz chromium_src-b2df163d24184beb210f2f2eb510074b0ab453bd.tar.bz2 |
Set Virtual Me2Me desktop's initial DPI to 96
BUG=168210
TEST=Before any client connects, "xdpyinfo -display :20|grep -A1 dimensions" shows ~96dpi.
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11782006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rwxr-xr-x | remoting/tools/me2me_virtual_host.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/remoting/tools/me2me_virtual_host.py b/remoting/tools/me2me_virtual_host.py index e0d7205..005a1e2 100755 --- a/remoting/tools/me2me_virtual_host.py +++ b/remoting/tools/me2me_virtual_host.py @@ -330,22 +330,22 @@ class Desktop: label = "%dx%d" % (width, height) args = ["xrandr", "--newmode", label, "0", str(width), "0", "0", "0", str(height), "0", "0", "0"] - proc = subprocess.Popen(args, env=self.child_env, stdout=devnull, - stderr=devnull) - proc.wait() + subprocess.call(args, env=self.child_env, stdout=devnull, stderr=devnull) args = ["xrandr", "--addmode", "screen", label] - proc = subprocess.Popen(args, env=self.child_env, stdout=devnull, - stderr=devnull) - proc.wait() + subprocess.call(args, env=self.child_env, stdout=devnull, stderr=devnull) # Set the initial mode to the first size specified, otherwise the X server # would default to (max_width, max_height), which might not even be in the # list. label = "%dx%d" % self.sizes[0] args = ["xrandr", "-s", label] - proc = subprocess.Popen(args, env=self.child_env, stdout=devnull, - stderr=devnull) - proc.wait() + subprocess.call(args, env=self.child_env, stdout=devnull, stderr=devnull) + + # Set the physical size of the display so that the initial mode is running + # at approximately 96 DPI, since some desktops require the DPI to be set to + # something realistic. + args = ["xrandr", "--dpi", "96"] + subprocess.call(args, env=self.child_env, stdout=devnull, stderr=devnull) devnull.close() |