Re: [OxLUG] nvidia metamodes

Top Page
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Gregory Matthews
To: Oxfordshire Linux User Group Discussion List, David Newman
Subject: Re: [OxLUG] nvidia metamodes
Hi David...

On 05/09/2019 17:34, David Newman wrote:
> Recently, nvidia-settings stopped writing to xorg.conf. It didn't ask
> for a password before editing it.

thats not the issue as I am writing the config to /tmp and then copying
it either wholesale or partly into place.


> But sudo nvidia-xconfig does copy the current settings to xorg.conf
> David
> On 05/09/2019 13:26, Gregory Matthews wrote:
>> Hi...
>> so, my google-fu is failing me on this one. I have a workstation where
>> the user would like two portrait displays, side by side.
>> Normally I would fire up nvidia-settings, generate a suitable
>> configuration file and copy the relevant sections into a .conf file in
>> /etc/X11/xorg.conf.d/ and everyone is happy.
>> This time, I cannot get the metamode setting to stick. From the log
>> file it looks like my custom metamode setting is validated and applied:
>> [   671.993] (II) NVIDIA(0): Validated MetaModes:
>> [   671.993] (II) NVIDIA(0):
>> [   671.993] (II) NVIDIA(0):
>> "GPU-d4a728df-a219-1180-a5de-2ebd26841b63.GPU-0.DVI-I-1:1920x1200_60+1200+0{rotation=right},GPU-37f84398-deca-dcd8-b41f-38a972d9731f.GPU-1.DVI-I-1:1920x1200_60+0+0{rotation=left}"
>> [   671.993] (II) NVIDIA(0): Virtual screen size determined to be 2400
>> x 1920
>> ...
>> [   672.025] (II) NVIDIA(0): Setting mode
>> "GPU-d4a728df-a219-1180-a5de-2ebd26841b63.GPU-0.DVI-I-1:1920x1200_60+1200+0{rotation=right},GPU-37f84398-deca-dcd8-b41f-38a972d9731f.GPU-1.DVI-I-1:1920x1200_60+0+0{rotation=left}"
>> but then further down the log file it appears that different modes are
>> applied:
>> [   673.383] (II) NVIDIA(0): Setting mode "GPU-1.DVI-I-1: 1920x1200_60
>> @1200x1920 +0+0 {ViewPortIn=1200x1920, ViewPortOut=1920x1200+0+0,
>> Rotation=90}"
>> [   673.507] (II) NVIDIA(0): Setting mode "NULL"
>> [   673.588] (II) NVIDIA(0): Setting mode "GPU-0.DVI-I-1:
>> nvidia-auto-select @1920x1200 +1200+0 {ViewPortIn=1920x1200,
>> ViewPortOut=1920x1200+0+0}"
>> [   673.632] (II) NVIDIA(0): Setting mode "GPU-0.DVI-I-1:
>> nvidia-auto-select @1920x1200 +1200+0 {ViewPortIn=1920x1200,
>> ViewPortOut=1920x1200+0+0}, GPU-1.DVI-I-1: nvidia-auto-select
>> @1920x1200 +0+0 {ViewPortIn=1920x1200, ViewPortOut=1920x1200+0+0}"
>> The result is that neither display is rotated.
>> The xorg.conf snippet looks like this:
>> Section "Screen"
>>     Identifier     "Screen0"
>>     Device         "Device0"
>>     Monitor        "Monitor0"
>>     DefaultDepth    24
>>     Option         "Stereo" "0"
>>     Option         "nvidiaXineramaInfoOrder" "DFP-0"
>>     Option         "metamodes"
>> "GPU-d4a728df-a219-1180-a5de-2ebd26841b63.GPU-0.DVI-I-1: 1920x1200_60
>> +1200+0 {rotation=right},
>> GPU-37f84398-deca-dcd8-b41f-38a972d9731f.GPU-1.DVI-I-1: 1920x1200_60
>> +0+0 {rotation=left}"
>>     Option         "MultiGPU" "Off"
>>     Option         "SLI" "off"
>>     Option         "BaseMosaic" "on"
>>     SubSection     "Display"
>>         Depth       24
>>     EndSubSection
>> EndSection
>> The displays are connected to separate Quadro K620 cards. Base OS is
>> Redhat 7.
>> what is going on? how are those other modes being set?
>> thanks for any insight.

Greg Matthews              01235 778658
Scientific Computing Operations Manager
Diamond Light Source Ltd Oxfordshire UK

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom