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.
This commit is contained in:
William Carroll 2020-02-02 12:16:27 +00:00
parent 2ec436b2b5
commit 5521db80b1

View file

@ -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)))