With Ubuntu 18.04, I need the command line xrandr --output DP-1 --scale 0.5x0.5
. How can I automate that command when I power on my computer?
EDIT
I created the /etc/rc.local
file, and in that file I have written
#!/bin/bash
xrandr --output DP-1 --scale 0.5x0.5
exit 0
The problem is if I restart the computer, the screen is identical and wrong. It seems to work if I run the command bash /etc/rc.local
, but not if I restart the computer. How can I fix that?