I am currently running startx to start up a new instance of an X server in my fresh installation of Ubuntu 16.04. I've used arandr to create and run an xrandr script to change my default resolution from 1024x768 to 1920x1080. This script works perfectly when run manually from an xterm. However, I want it to run automatically when X starts. I've googled a ton and have seen a ton of suggestions, but none of them seem to work for me.
I've added the command to my .xinitrc/.xsession/.xsessionrc/.xprofile/etc. files in my home directory. I also tried adding it to /etc/X11/Xsession.d/45custom_xrandr-settings. Nothing works. If I redirect stdout and stderr of the xrandr command to a file, I get an empty file created. Any ideas how I can do this?
Setting default resolution in X
Aucun commentaire:
Enregistrer un commentaire