[mdlug] Location of xorg.conf in Ubuntu 18.04
R Kannan
rk111810 at gmail.com
Sat Nov 9 09:48:58 EST 2024
I found the following post in nvidia forum where my exact problem is
discussed.
https://forums.developer.nvidia.com/t/metamode-seems-to-be-ignored-bezel-correction-partly-solved/119492/4
There is no fix but a workaround is to use a command line of the
following format can be used to reset the offsets as needed..
nvidia-settings --assign 'CurrentMetaMode'="..."
I created a script to do so after X launches.
On 11/9/24 08:58, R Kannan wrote:
> Hello,
>
> I did some more digging and found the followig in /var/log/Xorg.0.log
>
> [ 3350.717] (II) NVIDIA(0): Setting mode "DVI-I-0: nvidia-auto-select
> @1280x1024 +0+56 {ViewPortIn=1280x1024, ViewPortOut=1280x1024+0+0},
> HDMI-0: nvidia-auto-select @1920x1080 *+1920+0* {ViewPortIn=1920x1080,
> ViewPortOut=1920x1080+0+0}"
>
> I am not sure where it is getting this offset of 1920 for HDMI port
> from as I have the following line in /etc/X11/xorg.conf file
>
> Option "metamodes" "DVI-I-0: nvidia-auto-select +0+56,
> HDMI-0: nvidia-auto-select *+1280+0*"
>
> Apparently it is ignoring /etc/X11/xorg.conf file for some reason.
> More digging is needed.
>
> Thanks
>
>
> On 10/30/24 05:00, LAP wrote:
>>> On 10/27/24 10:47, R Kannan wrote:
>>>> Hello,
>>>>
>>>> I recently had changed one of my two monitors and I am having a
>>>> tough time getting new settings stick in X11/nVidia . I have to go
>>>> to nVidia X server settings every time to reset after logging in. I
>>>> have tried modifying /etc/X11/xorg.cof and files
>>>> under /usr/share/X11/xorg.conf.d with no success. It always seem to
>>>> go back to the original settings on starting X. Google seems to
>>>> indicate that these are the locations for xorg.conf.
>>>>
>> Check this link:
>>
>> https://download.nvidia.com/XFree86/Linux-x86/1.0-7174/nvidia-settings-user-guide.txt
>>
>> 4. Loading Settings Automatically
>>
>> The NVIDIA X driver does not preserve values set with nvidia-settings
>> between runs of the X server (or even between logging in and logging
>> out of X, with xdm, gdm, or kdm). This is intentional, because
>> different users may have different preferences, thus these settings
>> are stored on a per user basis in a configuration file stored in
>> the user's home directory.
>>
>> The configuration file is named "~/.nvidia-settings-rc". You can
>> specify a different configuration file name with the "--config"
>> commandline option.
>>
>> After you have run nvidia-settings once and have generated a
>> configuration file, you can then run:
>>
>> nvidia-settings --load-config-only
>>
>> at any time in the future to upload these settings to the X
>> server again. For example, you might place the above command in
>> your ~/.xinitrc file so that your settings are applied automatically
>> when you log in to X.
>> _______________________________________________
>> mdlug mailing list
>> mdlug at mdlug.org
>> http://mdlug.org/mailman/listinfo/mdlug
>
>
More information about the mdlug
mailing list