alacritty: High DPI scaling factor/Wrong monitor dimensions

Which operating system does the issue occur on? Ubuntu 18.04

If on linux, are you using X11 or Wayland? (Whatever it defaults to in Ubuntu 18.04 - the output of loginctl was a little confusing: it showed gdm was running in Wayland, and I was logged in in X11) screenshot from 2018-06-15 15-57-50

X11

When I launch alacritty, it seems to set a device_pixel_ration of 1.6666… This means my fonts show up huge on the terminal window as soon as I start it. I only have one display attached to my laptop (the laptop’s inbuilt display).

I know there are other issues posted here surrounding similar DPI scaling issues, but they all seemed to be around dynamic scaling based on which monitor Alacritty is launched from. Once again, I only have one; 1920*1080.

Firstly, is there a hot-fix which allows me to override the device_pixel_ratio somewhere in the alacritty.yml (currently all values are the defaults)? Secondly, how can I find out where along the chain this is going wrong? The OS seems to see the 1920*1080 resolution just fine.

screenshot from 2018-06-15 15-55-29

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (17 by maintainers)

Most upvoted comments

@francesca64 has said he’s

How pink do I have to make my icon to keep from being misgendered? This sort of thing makes me feel like crying, and I ask for very little.

Anyway, tomaka/winit#548 won’t help with this. If your display has a relatively high pixel density (as in, if the physical size of it is smaller than average for that resolution) then 1.6666 is a sensible number for preventing things from being difficult to read (of course, that makes various assumptions about viewing distance). If that’s not what you want, then you can use the WINIT_HIDPI_FACTOR environment variable to override it (assuming you’re on winit 0.15.1).

Also, winit 0.16.0 will release pretty soon, since I just have one more small API change + a bug fix that I’m working on. I plan on making a glutin release that same day, but then it’s up to someone else to update Alacritty, since I’m not interested in doing that.

I really have no idea, but the powers at play seem motivated 😄