1

I am using the new openGL driver to run a WebGL app. It runs a lot smoother if I change resolution to 720p, which I can do with

xrandr -s 1280x720

This works perfect, but resets after reboot. I have tried making a ~/.xprofile file which looks like this:

#!/bin/sh
xrandr -s 1280x720

The file has execute permissions, but the resolution remains at native 1920x1080 when I log in.

Is there a way to make my resolution permanent?

  • Welcome to the Raspberry Pi corner of the Stack Exchange network. Is that .xprofile file actually being run? I must confess I was not previously aware of it but I found this ArchLinux article (not explicitly something for an RPi but it was bit helpful) about the file and it make me wonder there is the lines in the other files to run this command when the X server is started up. On my RPi (Raspbian, "Jessie", SysV init!) I can find no trace of such a file or reference to it... which distribution are you using ("Raspbian" perhap?) – SlySven Jan 22 '17 at 2:09
  • I am running Raspbian Jessie. I don't know if it is actually being run. .xprofile was something I found while googling the original issue of how to change res on login – Panda Jan 22 '17 at 13:18
  • Yeah, it sounds as though the file is not being run - hence the absence of the change it is to provoke - ideally you just need to convince the X server to start in the right mode. Do you think this Foundation Forum topic "Change default X11 display resolution" has any relevance in your case i.e. to specify a framebuffer size in the config.txt file - more detail on that in the tag:config,txt... – SlySven Jan 23 '17 at 21:47
  • I tried that but it seems to be ignored when using the new OpenGL driver. – Panda Jan 26 '17 at 16:13
  • Just so I can check/get it - what package contains that OpenGL driver or how do I ensure I've got it present (what is the precise name and where will it appear in the system)? – SlySven Jan 26 '17 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.