You are not logged in.

#1 2020-10-22 15:45:07

hytew
Member
Registered: 2011-01-20
Posts: 15

Wrong vertical resolution on maximize window on Gnome

Hello, since a couple of days after make a pacman upgrade I realize that maximized windows have a wrong vertical size, bigger that normal, so, I can't see the bottom of the windows.

[Imgur](https://i.imgur.com/7uij2oN.png)

The same happen with a window maximized to all screen.

I'm using:
linux-lts (upgraded yesterday)
nvidia driver (GeForce GTX 760)
Gnome 3.38.1 with X11

Some idea about this problem?.

Last edited by hytew (2020-10-30 20:22:01)

Offline

#2 2020-10-30 17:21:32

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

Today I changed the resolution and the problem still the same.

Someone had this problem last weeks?. Thank you.

Offline

#3 2020-10-30 20:16:53

seth
Member
Registered: 2012-09-03
Posts: 18,969

Re: Wrong vertical resolution on maximize window on Gnome

Please edit your post and replace the oversized image w/ a link (optionally thumbnail, 200x200 px)

Then post the output of "xrandr -q" and "xwininfo" and "xprop" on a maximized window (the pointer will turn into a "+" and clicking the window will produce some output)

Offline

#4 2020-10-30 20:26:51

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

Thanks Seth.

xrandr && xwininfo && xprop
Screen 0: minimum 8 x 8, current 3440 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 800mm x 340mm panning 3440x1567+0+0
   3440x1440     59.97 + 100.00*   84.96    49.99
   1024x768      60.00
   800x600       60.32
   640x480       59.94

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x2600002 "xrandr"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  1
  Relative upper-left Y:  1
  Width: 3440
  Height: 1567
  Depth: 32
  Visual: 0xba
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2600001 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0--127  +0--127
  -geometry 3440x1567+-1+-1

WM_HINTS(WM_HINTS):
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_FOCUSED
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_UNITE_ORIGINAL_STATE(CARDINAL) = 2, 0, 1, 0, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_GTK_EDGE_CONSTRAINTS(CARDINAL) = 85
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING
_NET_WM_ICON(CARDINAL) =
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified size: 800 by 600
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
WM_CLIENT_MACHINE(STRING) = "deskda"
_NET_WM_PID(CARDINAL) = 83721
WM_CLASS(STRING) = "Alacritty", "Alacritty"
XdndAware(ATOM) = BITMAP
_MOTIF_WM_HINTS(CARDINAL) = 2, 0, 2, 0, 0
_NET_WM_NAME(UTF8_STRING) = "xrandr"
WM_NAME(STRING) = "xrandr"

Last edited by hytew (2020-10-31 12:05:59)

Offline

#5 2020-10-30 20:34:51

seth
Member
Registered: 2012-09-03
Posts: 18,969

Re: Wrong vertical resolution on maximize window on Gnome

Please use code tags for shell I/O and file contents, https://bbs.archlinux.org/help.php#bbcode


DP-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 800mm x 340mm panning 3440x1567+0+0

Idk who, where or what configures that, but the output is panning.
You can fix that in nvidia-settings (maybe loading it's config triggers this) or w/

xrandr --output DP-1 --panning 3440x1440

but this is transient and w/o deactivating the trigger it will re-appear w/ likely the next login.

Offline

#6 2020-10-31 12:11:47

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

Thanks again seth, updated the log with bbcode.

I also don't know how the configuration changed, it started a day after a pacman update.

Using the nvidia-settings or nvidia-xconfig don't help.
The same with the command `xrandr --output DP-1 --panning 3440x1440` no effect at all.

My `/etc/X11/xorg.conf`, it seems ok for me:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 455.38

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 455.28

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Dell AW3418DW"
    HorizSync       73.0 - 151.0
    VertRefresh     30.0 - 100.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 760"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-4"
    Option         "metamodes" "3440x1440_100 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

My nvidia-settings conf:

https://i.imgur.com/V0jHLDu.png
https://i.imgur.com/faw3PGA.png

moderator edit -- replaced oversized images with links.
Pasting pictures and code

Last edited by 2ManyDogs (2020-10-31 12:17:46)

Offline

#7 2020-10-31 12:31:13

seth
Member
Registered: 2012-09-03
Posts: 18,969

Re: Wrong vertical resolution on maximize window on Gnome

What's the output of "xrandr -q" after running "xrandr --output DP-1 --panning 3440x1440"?

As there's nothing special in the xorg.conf, you should rather remove it. A static server config will cause more trouble than good.

Offline

#8 2020-11-02 16:53:22

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

Thanks Seth for your patience.

Executed on a maximized terminal:

xrandr && xwininfo && xprop
Screen 0: minimum 8 x 8, current 3440 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 798mm x 335mm panning 3440x1567+0+0
   3440x1440     59.97 + 100.00*   84.96    49.99
   1024x768      60.00
   800x600       60.32
   640x480       59.94

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x2a00002 "xrandr"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  1
  Relative upper-left Y:  1
  Width: 3440
  Height: 1567
  Depth: 32
  Visual: 0xba
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2a00001 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0--127  +0--127
  -geometry 3440x1567+-1+-1

WM_HINTS(WM_HINTS):
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_FOCUSED
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_UNITE_ORIGINAL_STATE(CARDINAL) = 2, 0, 1, 0, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_GTK_EDGE_CONSTRAINTS(CARDINAL) = 85
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING
_NET_WM_ICON(CARDINAL) =
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified size: 800 by 600
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
WM_CLIENT_MACHINE(STRING) = "deskda"
_NET_WM_PID(CARDINAL) = 43346
WM_CLASS(STRING) = "Alacritty", "Alacritty"
XdndAware(ATOM) = BITMAP
_MOTIF_WM_HINTS(CARDINAL) = 2, 0, 2, 0, 0
_NET_WM_NAME(UTF8_STRING) = "xrandr"
WM_NAME(STRING) = "xrandr"

Executed on the same terminal but des-maximized:

xrandr --output DP-1 --panning 3440x1440

Executed on the same terminal after maximize again:

xrandr && xwininfo && xprop
Screen 0: minimum 8 x 8, current 3440 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 798mm x 335mm panning 3440x1567+0+0
   3440x1440     59.97 + 100.00*   84.96    49.99
   1024x768      60.00
   800x600       60.32
   640x480       59.94

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x2a00002 "xrandr"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  1
  Relative upper-left Y:  1
  Width: 3440
  Height: 1567
  Depth: 32
  Visual: 0xba
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2a00001 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0--127  +0--127
  -geometry 3440x1567+-1+-1

WM_HINTS(WM_HINTS):
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_FOCUSED
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_UNITE_ORIGINAL_STATE(CARDINAL) = 2, 0, 1, 0, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_GTK_EDGE_CONSTRAINTS(CARDINAL) = 85
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING
_NET_WM_ICON(CARDINAL) =
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified size: 800 by 600
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
WM_CLIENT_MACHINE(STRING) = "deskda"
_NET_WM_PID(CARDINAL) = 43346
WM_CLASS(STRING) = "Alacritty", "Alacritty"
XdndAware(ATOM) = BITMAP
_MOTIF_WM_HINTS(CARDINAL) = 2, 0, 2, 0, 0
_NET_WM_NAME(UTF8_STRING) = "xrandr"
WM_NAME(STRING) = "xrandr"

Offline

#9 2020-11-02 19:32:11

seth
Member
Registered: 2012-09-03
Posts: 18,969

Re: Wrong vertical resolution on maximize window on Gnome

DP-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 798mm x 335mm panning 3440x1567+0+0

The panning is still there after what should™ have disabled it.
Do you get any errors for "xrandr --output DP-1 --panning 3440x1440"?
Can you pan differently, eg. "xrandr --output DP-1 --panning 4000x2000"?

Offline

#10 2020-11-04 17:09:19

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

Thanks again Seth.
No error with the first one, and yes, I can pan differently with your example, but not with 1200w pixesl:

deskda :: ~ » xrandr --output DP-1 --panning 3440x1440
deskda :: ~ » xrandr --output DP-1 --panning 4000x2000
deskda :: ~ » xrandr --output DP-1 --panning 3440x1200
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  29 (RRSetPanning)
  Serial number of failed request:  42
  Current serial number in output stream:  42

All very strange.

Offline

#11 2020-11-04 19:59:04

seth
Member
Registered: 2012-09-03
Posts: 18,969

Re: Wrong vertical resolution on maximize window on Gnome

You cannot pan below the actual resolution (so x1200 can't work)
Are the other values reflected in "xrandr -q"?

Offline

#12 2020-11-06 16:36:08

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

xrandr -q before and after:

xrandr -q
Screen 0: minimum 8 x 8, current 3440 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 798mm x 335mm panning 3440x1567+0+0
   3440x1440     59.97 + 100.00*   84.96    49.99
   1024x768      60.00
   800x600       60.32
   640x480       59.94
╭─deskda in ~
╰$ xrandr --output DP-1 --panning 3440x1440
╭─deskda in ~
╰$ xrandr -q
Screen 0: minimum 8 x 8, current 3440 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 798mm x 335mm panning 3440x1567+0+0
   3440x1440     59.97 + 100.00*   84.96    49.99
   1024x768      60.00
   800x600       60.32
   640x480       59.94
╭─@deskda in ~
╰$ xrandr --output DP-1 --panning 4000x2000
╭─@deskda in ~
╰$ xrandr -q
Screen 0: minimum 8 x 8, current 4000 x 2000, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 798mm x 335mm panning 4000x2127+0+0
   3440x1440     59.97 + 100.00*   84.96    49.99
   1024x768      60.00
   800x600       60.32
   640x480       59.94

Some how is adding always 127 pixels.

Offline

#13 2020-11-06 21:27:21

seth
Member
Registered: 2012-09-03
Posts: 18,969

Re: Wrong vertical resolution on maximize window on Gnome

Does panning also show this weird behavior  w/ the XGA resolution or on 3440x1440@60Hz?

Offline

#14 2020-11-06 22:30:38

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

Yes, same problem, tried with all Hz and resolutions that I can choose.

Today I installed the plasma-desktop and I don't have the problem with maximized windows, but looking on xrandr -q it says the same:

Screen 0: minimum 8 x 8, current 3440 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected primary (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected 3440x1440+0+0 (normal left inverted right x axis y axis) 798mm x 335mm panning 3440x1567+0+0
   3440x1440     59.97*+ 100.00    84.96    49.99
   1024x768      60.00
   800x600       60.32
   640x480       59.94

I'm thinking to change definitely to KDE, or maybe try i3 or another window manager.

Thanks a lot Seth for your help, I don't want disturb you more with this problem.

Offline

#15 2020-11-07 08:41:27

seth
Member
Registered: 2012-09-03
Posts: 18,969

Re: Wrong vertical resolution on maximize window on Gnome

There's nothing wrong w/ changing the WM, but this would only gloss over the issue by treating sceen estate differently for maximization (which is arbitrary)
You might eg. still run into trouble w/ certain fullscreen windows, so getting to the bottom of this will not be a waste of time.

But the static panning overhead is hard to explain…

xev -event randr

This will log randr events - maybe there's a second randr event (by some randr daemon?)

As for mitigating the problem, you could try

xrandr --output DP-1 --panning 3440x1313

If there's no server error as before, you might end up w/ 3440x1440…

Offline

#16 2021-01-10 16:13:58

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

Ok, finally I had a time to review the issue again. I tried the last solution of seth, didn't work, also install the lts nvidia driver but I had the same problem (before I used the nvidia-dkms).

Finally the solution was to remove all nvidia packages (nvidia, nvidia-lts, lib32-nvidia-utils nvidia-utils), dkms related (dkms, linux-headers, nvidia-dkms) and the /etc/X11 config folder, and install mesa, lib32-mesa and xf86-video-nouveau.

Now is detecting well the resolution and it seems that the general performance of the computer improved, before I had a little laggy opening some apps.

I will wait some days before mark the thread as solved.

Offline

#17 2021-02-19 23:49:23

Slizzered
Member
Registered: 2010-04-13
Posts: 13

Re: Wrong vertical resolution on maximize window on Gnome

I just had the same problem with a very similar setup.
Although it appears you found a solution that works for you, I am posting this for future reference (since I had to look for the solution for quite a while).
This isn't persistent, but it completely solved my panning issues (still using the proprietary nVidia driver).

(Not my solution)

https://www.reddit.com/r/archlinux/comments/jbqkx9/visual_screen_bigger_than_physical_screen/ wrote:

Solution:

I checked the identified monitor and noticed that the resolution wasn't identified correctly:

xrandr --listmonitors
Monitors: 1
0: +DP-1 3440/798x1567/335+0+0  DP-1

so i added a new Monitor with the correct resolution:

xrandr --setmonitor ROG 3440/798x1440/335+0+0 DP-1

Last edited by Slizzered (2021-02-19 23:50:16)

Offline

#18 2021-02-20 08:06:44

hytew
Member
Registered: 2011-01-20
Posts: 15

Re: Wrong vertical resolution on maximize window on Gnome

Nice Slizzered, I will try your solution on a few days, as I need to reinstall my system on a new hard disk, Thanks for share.

Offline

Board footer

Powered by FluxBB