You have to remember lightdm is running with different permissions as your user. Me personally, i would have left it broken because it is easier (you see the password prompt, do you) and concentrate on running the commands with my user permissions after login. With autostart, script, service or whatever startup method works.
Create an Autostart item to run the script on login
Xfce - Session - Autostart - ArchWiki
To launch custom applications when Xfce starts up, click the Applications Menu > Settings > Settings Manager and then choose the Session and Startup option and click the tab Application Autostart. You will see a list of programs that get launched on startup. To add an entry, click the Add button and fill out the form, specifying the path to an executable you want to run.
xfce:xfce4-session:preferences - Application Autostart [Xfce Docs]
They’re errors from the last 2 xrandr commands, which did nothing because the parameters are invalid (you’re trying to stuff something large into something small).
Your issue looks like the result of running a command like this (or equivalent permanent config, see below).
xrandr --output LVDS-1 --fb 2048x1536 --mode 1920x1080 --panning 2048x1536
The first xrandr command fixes it, as it sets the panning equal to the mode (resolution).
This should also work.
xrandr --output LVDS-1 --mode 2048x1536 --panning 0x0 # should disable panning
# or if you prefer 1920x1080
xrandr --output LVDS-1 --mode 1920x1080 --panning 0x0
It sounds like this behaviour may have been configured globally. Have you checked for xorg config that might be causing this?
ls -R /etc/X11
At the risk of perhaps oversimplifying the problem, is there any reason that you wish to avoid using the proprietary Nvidia drivers?
The 340xx are no longer available via the official Manjaro repositories, however they are still obtainable in other formats:
- Download Display Driver 340.1080 drivers directly from Nvidia (not officially supported, but still a workable solution).
- Or possibly 340xx LTS via the AUR.
- Also [HowTo] get legacy 340xx NVIDIA drivers back seems promising.
Any of these options would doubtless come with caveats, being that the GPU (and machine, generally) is so dated.
Informational:-
The Sony Vaio VPCF115FM manual; in case it’s useful:
Downloadable version (.pdf):