Problem Description:
I have two screens, one being HDMI and the other DisplayPort (DP). I have the HDMI on the left and the other as my main working screen on the right.
I use sudo nvidia-settings command in a terminal and make sure the setup is as above. I also ensure the main primary (RH) screen is set to right of the LH screen but I find that the monitor name is greyed out and cannot therefore make this setting. I cannot easily scroll across from screen to screen without this setting being saved.
Try running it without sudo. I am not an NVIDIA user so this is just a guess, but you might be trying to set those properties for the root user, which is not the same account as your normal user and therefore your changes are âlostâ; technically not lost, probably, just invisible since they donât apply to your desktop session. Even the example on NVIDIAâs website doesnât use sudo.
Generally, you should always try to run programs without sudo first; only if that results in an error message to the effect that you lack privileges, i.e. permission denied or similar, do you need sudo.
See the Ubuntu docs for more info:
Thank you but still no change with or without sudo.
'lostâ, I should have been more âcorrectâ and said, ânot retainedâ.
I have a feeling that this may be caused by differences between my current desktop LXQt and the previous one, Xfce. LXQt has âDesktops 1 and 2â which is different to Xfce which only had one Desktop and I was easily able to switch across both with the Primary screen being set as my RH and main screen.
What is the exact problem then? Because this canât be it:
What you see in the screenshot is the greyed out name of your second monitor beside âRight ofâ; since there is only one choice available, itâs greyed out. The check mark is set for âMake this the primary display for the X screenâ.
You should probably just use the display settings dialog of LXQt, though; open the Lubuntu start menu and type âMonitorâ.
I only switched to LXQt yesterday and am still getting to terms with available setting. I was unaware of âMonitorâ and will check that out later as I am off to hospital now.
Simple and easy way to control the screens with one exception and I had the same problem with Xfce - for some reason it is only possible to have the primary screen on the left. I cannot find a setting which allows this:
âErgonomic Best Practice: Regardless of left or right placement, ergonomic experts recommend positioning the primary monitor directly centered in front of your keyboard and chair, with the secondary monitor angled slightly inward (15â20 degrees) to the side. This configuration minimizes neck strain by keeping your head straight for most tasks, rather than forcing constant lateral head turns.
Which is my setup and that of many people I see.
It could be that having unmatched monitors donât help.
I donât believe that to be true, see the Lubuntu docs on how to place monitors. It doesnât say âleftâ or ârightâ, you just place them on a map. The âprimaryâ flag is independent of that.
Now, what I can do is assume the primary monitor is directly in front of my keyboard and blank, then move the trash icon and any shortcuts which are on the primary monitor to the blank screen in front of me.
In my case I donât have any shortcuts so the trash icon is now on the screen in front of me and the left screen is blank. Thats how it should look but if I create another shortcut on the monitor in front of me it is placed on the left hand monitor which is correct according the the settings but not as I wanted it.
That means I have to turn my head left to access the new shortcut.
One thing to separate here: the LXQt monitor tool can set the primary output, but desktop icons are handled by pcmanfm-qt and may still appear on the first/left desktop area. I would check with `xrandr --query` after login whether DP-2 is actually marked `primary`. If it is not, a small autostart command like `xrandr --output DP-2 --primary --right-of HDMI-0` may be a cleaner workaround than changing the physical layout.
This sounds good. Can you explain how to make a small autostart command like xrandr --output DP-2 --primary --right-of HDMI-0 as I am not capable and I will give it a try.
Looks like a bug then, unless some file permissions got screwed up by running sudo nvidia-settings. Please check itâs the same with a brand new user; donât make that one an administrator, so you canât even run sudo with it. Make the changes you want with that account, reboot and see if it keeps those settings.
If itâs still the same then, report the bug:
ubuntu-bug lxqt-config
(thatâs my best guess at the component to blame)
Will you p-l-e-a-s-e stop running everything with sudo? Weâve tried to warn you multiple times. As a reminder:
As an addendum, sudo even ties the noose for you.
No, the reboot will undo that very change, because itâs just temporary. You should check, if the command does whatâs intended, i.e. switch your monitors around and mark the proper display as primary. This commnand (NOsudo):
xrandr --output DP-2 --primary --right-of HDMI-0
BTW, what exactly solved the issue? Did you report a bug or does it work with the pristine new user account?