You are not logged in.
Hi,
I have a 4k monitor, and to get a proper scaling have to execute 'exec xrandr --output DP-2 --scale 1.25x1.25' every time I login. Could you please advice where I can put it to run automatically? For some reason, Gnome's autorun is not working. Thanks!
Offline
Gnome's autorun is not working.
Did you try this? https://wiki.archlinux.org/index.php/GN … plications
Are you sure the .desktop file you created is working?
It's also possible that gnome-settings-daemon is doing its xrandr configuration after your autostart script, resetting the scaling factor to default.
I think you should be able to prevent this by clearing the command from Exec= in /etc/xdg/autostart/org.gnome.SettingsDaemon.XRANDR.desktop, but I can't guarantee that won't break something else.
You could also try adding few seconds of 'sleep' before your xrandr command, to let gnome-settings-daemon to finish its xrandr configuration first.
I believe gnome 3.26 should allow using decimal scaling ratios from its own settings, so hopefully this hack won't be necessary for you in the near future :)
Offline
This sounds like you're relying on some side-effect or perform an ugly workaround. Why do you need to blow up the output resolution itfp? What's the output of
xrandr -q
xdpyinfo | grep resolution
Offline
xrandr -q returns
DP-2 connected primary 4800x2700+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
3840x2160 60.00*+ 29.98 24.00
1024x768 60.00
800x600 60.32
640x480 59.94
The latter returns
resolution: 96x96 dots per inch
Offline
The DPI value is wrong. The actual, physical, DPI are 163 and you blew it up (blurring the output) to 200.
Instead of scaling the output, try "xrandr --dpi 163", notice that this will only affect processes started afterwards.
=> xorg log?
Since you're on gnome on Xorg, you're probably using the nvidia blob?
In that case, /etc/X11/xorg.conf.d/20-nvidia.conf
Section "Device"
Identifier "Default nvidia Device"
Driver "nvidia"
# other settings
Option "DPI" "163x163"
Option "UseEdidDpi" "False"
# more other settings
EndSection
Offline
The DPI value is wrong. The actual, physical, DPI are 163 and you blew it up (blurring the output) to 200.
Instead of scaling the output, try "xrandr --dpi 163", notice that this will only affect processes started afterwards.=> xorg log?
Since you're on gnome on Xorg, you're probably using the nvidia blob?
In that case, /etc/X11/xorg.conf.d/20-nvidia.confSection "Device" Identifier "Default nvidia Device" Driver "nvidia" # other settings Option "DPI" "163x163" Option "UseEdidDpi" "False" # more other settings EndSection
Thank you!
After appying update to xorg's config I get in xorg log:
[ 732.484] (**) NVIDIA(0): Option "DPI" "163x163"
[ 732.497] (**) NVIDIA(0): DPI set to (163, 163); computed from "DPI" X config option
But it doesn't seem to work, on the other hand, "xrandr --dpi 163" worked properly.
Last edited by mksense (2017-07-23 10:02:27)
Offline
Check if this command works - stored into ~/.xprofile (normal - 0644 privileges). Put this content into ~/.xprofile:
xrandr --output DP-2 --scale 1.25x1.25 &
This character & at the end of the line is very important.
Log out and log in to test changes.
Last edited by Fixxer (2017-07-26 20:35:25)
Offline
Smells like something™ that knowsbetterthanyou™ (gnome-shell) resets the dpi at startup... *sigh*
Try 192 dpi instead (what gnome apparently considers the HiDPI value limit, maybe it'll stick to that)
Other than that, gnome seems to have floating point text scaling and fixed integer pixel scaling options buried in dconf, but hardcodes those 96dpi - and that will impact non-gnome software.
Offline