Reputation: 893
I expect xrandr --dpi 180
to change the dpi from 90 to 180 on the fly per-session and thus downscale resolution, but nothing happens. Am I missing something? I was able to change the dpi with the silly hack of adding fonts.fontconfig.dpi=180
to /etc/nixos/configuration.nix
then nixos-rebuild test
, which is less than ideal.
To be very clear, here's my situation:
1. the default resolution is too low for my laptop screen and everything (fonts) looks painfully small.
2. I learned adding fonts.fontconfig.dpi=180
to /etc/nixos/configuration.nix
on nixos can set the dpi to 180 from the default 96 so that everything has normal size (fonts).
3. However, I now sometimes open the vm on a monitor which has lower resolution than my laptop, and I'd like to change the dpi on the fly when switching between using the laptop screen and the monitor.
Upvotes: 3
Views: 2267
Reputation: 34021
After changing the DPI via that setting, programs won't necessarily immediately react to it.
You may need to re-open certain applications to see the change.
Upvotes: 1