Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-24 Thread Aaron Plattner

On 9/23/20 11:31 PM, Yuri wrote:

But how does it work when the NVidia utility switches it to this mode then?


Does the output look blurry or fuzzy when that happens? I wonder if 
you're getting a 2560x1600 desktop scaled down to 1920x1080.


You should be able to tell for sure by looking at the output of "xrandr 
--verbose" and "nvidia-settings -q CurrentMetaMode" after setting that 
configuration.



I think Adam's analysis is right: your GPU and/or cable can't support 
the full 3840x21600 native mode of this display, so it falls back to the 
highest mode the monitor says it can support that fits within the 
available bandwidth.


-- Aaron


I use the HDMI cable.

Yuri

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-24 Thread Adam Nielsen
> Here is the log: https://people.freebsd.org/~yuri/Xorg.0.log

So from here you can see:

  DFP-0: 330.0 MHz maximum pixel clock
  Samsung U28D590 (DFP-1): 230.0 MHz maximum pixel clock
  EDID maximum pixel clock : 300.0 MHz

  Validating Mode "3840x2160_30":
Mode is rejected: PixelClock (297.0 MHz) too high for
Display Device (Max: 230.0 MHz).

This means that 3840x2160 @ 30 Hz requires a pixel clock of 297 MHz,
your monitor can go up to 300 MHz, but your video card can only support
230 MHz on that output.

Since there isn't enough bandwidth between the video card and the
monitor, this one is removed from the list of available modes.

> > If that doesn't work, what monitor, video card, and cable type are
> > you using? (e.g. HDMI, Dual DVI, or DisplayPort)
> 
> Monitor: Samsung U28D590
> Video card: NVidia GT610

You didn't say what type of cable you are using so my guess would be
it's something like single-link DVI when you need dual-link DVI, or the
monitor requires HDMI 1.4 and the card only supports an older version.

The output says that although DFP-1 is limited to 230 MHz, DFP-0
supports 330 MHz so if you have a different output on the card you
could try that in case only one output supports 4K.

Cheers,
Adam.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-24 Thread Yuri

But how does it work when the NVidia utility switches it to this mode then?


I use the HDMI cable.




Yuri

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-24 Thread Yuri

On 2020-09-23 23:02, Yuri wrote:



Here is the log: https://people.freebsd.org/~yuri/Xorg.0.log



This log says that that the mode 2560x1600_60 is rejected because the 
pixel frequency is too high.



But when I changed "2560x1600" to "2560x1600_50" it now fails:

> [ 91284.546] (WW) NVIDIA(GPU-0): Mode is rejected: Only 
EDID-provided modes are allowed on
> [ 91284.546] (WW) NVIDIA(GPU-0): Samsung U28D590 (HDMI-0) 
(continuous frequency modes not

> [ 91284.546] (WW) NVIDIA(GPU-0): allowed).
> [ 91284.546] (WW) NVIDIA(GPU-0): Mode "2560x1600_60" is invalid.


This is even with Option  "IgnoreEDID"  "1"


Yuri


___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-24 Thread Yuri

On 2020-09-23 14:22, Aaron Plattner wrote:
I think we need a better picture of what's actually connected to your 
system and what it's reporting itself as capable of. The full output 
of xrandr would help, and it would also help to add


Option "ModeDebug"

to the "Device" or "Screen" section of /etc/X11/xorg.conf, restart the 
X server, and the attach /var/log/Xorg.0.log. 



Here is the log: https://people.freebsd.org/~yuri/Xorg.0.log


Yuri

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-23 Thread Aaron Plattner

On 9/23/20 1:35 PM, Yuri wrote:

On 2020-09-23 08:21, Pete Wright wrote:
$ xrandr |grep 2560 



Interestingly, this command shows nothing after Xorg was started, but 
shows 2560x1600 after the "NVidia settings" program changes the 
resolution to 2560x1600.


I just need to find a way, if any, to do this automatically.

I think we need a better picture of what's actually connected to your 
system and what it's reporting itself as capable of. The full output of 
xrandr would help, and it would also help to add


Option "ModeDebug"

to the "Device" or "Screen" section of /etc/X11/xorg.conf, restart the X 
server, and the attach /var/log/Xorg.0.log.


-- Aaron

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-23 Thread Yuri

On 2020-09-23 08:21, Pete Wright wrote:
$ xrandr |grep 2560 



Interestingly, this command shows nothing after Xorg was started, but 
shows 2560x1600 after the "NVidia settings" program changes the 
resolution to 2560x1600.


I just need to find a way, if any, to do this automatically.


Yuri


___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-23 Thread Yuri

On 2020-09-23 03:47, Adam Nielsen wrote:

You could try the IgnoreEDID option in case the monitor isn't reporting
its valid modes correctly.  But I'm not sure why you have Depth 1
(monochrome) rather than the more usual 24 or 32.  What happens if you
set Depth 32?



Adding this line

> Option  "IgnoreEDID"  "1"

into the "Device" section didn't help, and Xorg printed the same warning 
into Xorg


There are sections for all depths, including Depth 24, so this isn't a 
problem.




If that doesn't work, what monitor, video card, and cable type are you
using? (e.g. HDMI, Dual DVI, or DisplayPort)



Monitor: Samsung U28D590

Video card: NVidia GT610



Yuri


___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-23 Thread Pete Wright



On 9/23/20 12:44 AM, Yuri wrote:

Xorg for me starts with the resolution 1920x1080.

I know that 2560x1600 is supported because the NVidia settings program 
can switch to 2560x1600 by typing 2560x1600 into it. The window 
manager stays in a square with the size 1920x1080, and the extra space 
appears around it.



But how to change xorg.conf in order to make 2560x1600 a default 
resolution?



I tried to add the line Modes into this section:

    SubSection "Display"
    Viewport   0 0
    Depth 1
    Modes  "2560x1600" "1920x1080"
    EndSubSection

But Xorg fails to accept the 2560x1600 value with this warning:

[  9995.669] (WW) NVIDIA(0): No valid modes for "DFP-1:2560x1600"; 
removing.


and still uses 1920x1080.




I would run xrandr after X has started (even at the incorrect 
resolution) and grep for 2560 - it should give you the specific 
resolution that Xorg detects as valid.  For example on my system:


$ xrandr |grep 2560
HDMI-A-0 connected primary 2560x1440+1080+0 (normal left inverted right 
x axis y axis) 553mm x 311mm

   2560x1440 59.95*+
$

in my environment i do not populate xorg.conf with resolutions, rather I 
let X auto-detect them.  Then if the default resolution does not do what 
I want I have a script which sets the desired layout and resolution.  
For example here's one for my dual monitor setup:

$ cat ~/.screenlayout/duce.sh
#!/bin/sh
xrandr --output DisplayPort-0 --mode 1920x1080 --pos 0x0 --rotate right 
--output HDMI-A-0 --primary --mode 2560x1440 --pos 1080x0 --rotate 
normal --output DVI-D-0 --off

$

Regarding the nvidia utility setting the 2560x1600 resolution - perhaps 
its injecting custom modelines, if that is the case you can also do this 
via xrandr using the --newmode argument.


cheers,
-pete



--
Pete Wright
p...@nomadlogic.org
@nomadlogicLA

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-23 Thread Adam Nielsen
>      SubSection "Display"
>      Viewport   0 0
>      Depth 1
>      Modes  "2560x1600" "1920x1080"
>      EndSubSection
> 
> But Xorg fails to accept the 2560x1600 value with this warning:
> 
> [  9995.669] (WW) NVIDIA(0): No valid modes for "DFP-1:2560x1600"; removing.
> 
> and still uses 1920x1080.

You could try the IgnoreEDID option in case the monitor isn't reporting
its valid modes correctly.  But I'm not sure why you have Depth 1
(monochrome) rather than the more usual 24 or 32.  What happens if you
set Depth 32?

If that doesn't work, what monitor, video card, and cable type are you
using? (e.g. HDMI, Dual DVI, or DisplayPort)

Cheers,
Adam.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s


Re: How to switch to a particular resolution? Xorg complains "No valid modes for "DFP-1:2560x1600"; removing." and ignores my setting.

2020-09-23 Thread Sérgio Basto
On Wed, 2020-09-23 at 00:44 -0700, Yuri wrote:
> Xorg for me starts with the resolution 1920x1080.
> 
> I know that 2560x1600 is supported because the NVidia settings
> program 
> can switch to 2560x1600 by typing 2560x1600 into it. The window
> manager 
> stays in a square with the size 1920x1080, and the extra space
> appears 
> around it.
> 
> 
> But how to change xorg.conf in order to make 2560x1600 a default
> resolution?
> 
> 
> I tried to add the line Modes into this section:
> 
>  SubSection "Display"
>  Viewport   0 0
>  Depth 1
>  Modes  "2560x1600" "1920x1080"
>  EndSubSection
> 
> But Xorg fails to accept the 2560x1600 value with this warning:
> 
> [  9995.669] (WW) NVIDIA(0): No valid modes for "DFP-1:2560x1600";
> removing.
> 
> and still uses 1920x1080.
> 

you may try xrandr command line , kde and gnome have gui's (display
configuration) 

> Thank you,
> 
> Yuri
> 
> 
> ___
> xorg@lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: https://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
-- 
Sérgio M. B.

___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s