[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhel6-branch] set the resolution with resolution= from the cmdline (#594918).



Hi looks good, except for ...

On 05/25/2010 01:46 PM, Ales Kozumplik wrote:
tested x86_64 and vmware. note that the xrandr call does nothing if
--dpi=96 is also present, so I didn't use it.

Erm:

<snip>

+def set_x_resolution(runres):
+    # cant do this if no window manager is running because otherwise when we
+    # open and close an X connection in the xutils calls the X server will exit
+    # since this is the first X connection (if no window manager is running)
+    if runres and opts.display_mode == 'g' and not flags.usevnc and wm_pid :
+        try:
+            log.info("Setting the screen resolution to: %s.", runres)
+            iutil.execWithRedirect("xrandr",
+                                   ["-d", ":1", "-s", runres, "--dpi", "96"],
+                                   stdout="/dev/tty5", stderr="/dev/tty5")


Then why do I see it here ?

Regards,

Hans


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]