Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using xrandr to rescale the resolution on a netbook (Ubuntu 12.10). When I run the following command it works fine:

xrandr --output LVDS1 --mode 1024x600 --panning 1280x720 --scale 1.25x1.2

However when I put that command into .xprofile to load it at startup the screen has a black border in the expanded area rather than the proper output. I'm using exactly the same command so I'm not sure why it's not working.

share|improve this question
I'd suggest to put echo "$PATH" >> ~/my-path into .xprofile as well, log out and back in, and post the resulting info from ~/my-path. My gut feeling is that this is a path issue. – Michael Kjörling Feb 21 '13 at 14:13
I don't think it's to do with $PATH, I got – beacon_bonanza Feb 21 '13 at 14:19
You got what, a blank line? If so, it's definitely a path issue. Do which xrandr in a shell and use the full path instead of just the command name in .xprofile. – Michael Kjörling Feb 21 '13 at 14:24
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin‌​:/bin:/usr/games:/usr/local/games – beacon_bonanza Feb 21 '13 at 14:27
sorry had to switch computers to copy the path output. – beacon_bonanza Feb 21 '13 at 14:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.