about summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-02-02T12·16+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-02-02T18·31+0000
commit5521db80b17a05d5614f18feb4bb6305bef50f2d (patch)
tree1c04f415532992b203826abc3761cea88c55d62f /emacs
parent2ec436b2b5c7dc417cef80d9d9208c1379db009e (diff)
Attempt to debug xrandr behavior in display.el
Currently, after I connect my monitor to my laptop, I run `display/enable-4k`,
which will use `xrandr` to enable the display. The scaling of the enabled
display is not what I expect. So I've habituated re-running the same function,
`display/enable-4k`, which scales the display and meets my expectations.

What's strange is that if instead of running `display/enable-4k` the first time
from Emacs, I call `xrandr ...` from a terminal, this enables the display and
scales it properly on the first invocation.

I'm unsure how to explain this behavior. It's possible that a environment
variable is set properly in the terminal that isn't set in my Emacs, but this is
just a guess.

I'm going to using a different invocation in display.el that explicitly passes
the monitors dimensions. Let's see if that works.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/wpc/display.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/.emacs.d/wpc/display.el b/emacs/.emacs.d/wpc/display.el
index 8e5b89030325..2a7bbe94247f 100644
--- a/emacs/.emacs.d/wpc/display.el
+++ b/emacs/.emacs.d/wpc/display.el
@@ -46,7 +46,7 @@
   (prelude/start-process
    :name "display/enable-4k"
    :command (string/format
-             "xrandr --output %s --above %s --primary --auto --dpi 144"
+             "xrandr --output %s --above %s --primary --auto --size 3840x2160 --rate 30.00 --dpi 144"
              display/4k-monitor
              display/laptop-monitor)))