Screen boundaries issue

Hello everybody,
I’ve got an issue with boundaries of the workspace. Hardware Dell 5521 (11th generation i7), 64GB ram, 1TB SSD (NVMe), dock WD22TB4, 2 graphic cards - NVidia MX450 + Intel on chip). According the specification the notebook should be able to handle 3x 4K @60Hz connected to dock through its TB4 connection (seems kernel recognize it as TB3 only) so only 2x 4k through dock and remaining one through other USB-C/Video + adapter. Everything seems to work properly except the fact after login the workspace seems to be “moving” to down/right when I moved the mouse over the down/right edge of the visible area. I’m observing this for quite time now. Could not exactly tell when this started. Re-alignment of the screens occasionally helps right after login (when the area had already moved only re-login/restart helps) but it is annoying to re-align screen each time the machine starts.

Any suggestion how to fix this annoying issue would be welcomed…

You login and then use a mouse. To me that points to a GUI login with a desktop. But you fail to tell us which desktop.

Sorry, my bad KDE Plasma.

You seem to be describing the behavior of a “virtual” desktop larger than the desktop defined by the dimensions of your displays. If that’s been configured, “realignment” should require no more than moving the mouse back to the upper left extreme. If you don’t want a larger virtual desktop, you should be able to disable it in the same manner as it was configured, probably via NVidia settings. Virtual desktop is probably an optional setup via checkbox option in Plasma display settings as well. I always disable KScreen, so can’t be sure whether it’s there or what it might be called. Sharing the Xorg configuration file(s) created by NVidia setup should tell us if that is what happened, either /etc/X11/xorg.conf (likely), or (possibly) a group of files in /etc/X11/xorg.conf.d/. Sharing also output from inxi -Gaz should be useful. Please use PRE tags for any command input/output you paste here in reply, the </> icon above the input window, to preserve the command formatting.

  1. no /etc/X11/xorg.conf

2 . etc/X11/xorg.conf.d/

#(00-keyboard.conf)
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
        Option "XkbModel" "pc105+inet"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

and

#(90-intel.conf)
Section "ServerLayout"
    Identifier "layout"
    Screen "intel"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "ServerFlags"
    Option "AutoAddGPU" "false"
EndSection

# needed for NVIDIA PRIME Render Offload
Section "Device"
  Identifier "nvidia"
  Driver "nvidia"
  BusID "PCI:1:0:0"
EndSection
  1. ixni -Gaz
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Dell driver: i915
    v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports:
    active: DP-1,DP-3,DP-4 off: eDP-1 empty: DP-2,DP-5,HDMI-A-1
    bus-ID: 0000:00:02.0 chip-ID: 8086:9a60 class-ID: 0300
  Device-2: NVIDIA TU117M [GeForce MX450] vendor: Dell driver: nvidia
    v: 525.116.03 alternate: nouveau,nvidia_drm non-free: 520.xx+
    status: current (as of 2022-10) arch: Turing code: TUxxx
    process: TSMC 12nm built: 2018-22 bus-ID: 0000:01:00.0 chip-ID: 10de:1f98
    class-ID: 0302
  Device-3: Sunplus Innovation Integrated_Webcam_HD type: USB
    driver: uvcvideo bus-ID: 3-3:2 chip-ID: 1bcf:28c4 class-ID: 0e02
    serial: <filter>
  Device-4: Microdia speedlink webcam type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 3-8.1.3.3.3:16 chip-ID: 0c45:6301
    class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia dri: iris
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 11520x2160 s-dpi: 96 s-size: 3045x571mm (119.88x22.48")
    s-diag: 3098mm (121.97")
  Monitor-1: DP-1 pos: primary,center model: Samsung LU28R55
    serial: <filter> built: 2022 res: 3840x2160 hz: 60 dpi: 154 gamma: 1.2
    size: 632x360mm (24.88x14.17") diag: 727mm (28.6") ratio: 16:9 modes:
    max: 3840x2160 min: 720x400
  Monitor-2: not-matched mapped: DP-2-1 pos: left res: 3840x2160 hz: 60
    dpi: 154 size: 632x360mm (24.88x14.17") diag: 727mm (28.64") modes: N/A
  Monitor-3: not-matched mapped: DP-2-2 pos: right res: 3840x2160 hz: 60
    dpi: 154 size: 632x360mm (24.88x14.17") diag: 727mm (28.64") modes: N/A
  Monitor-4: eDP-1 note: disabled model: Najing CEC Panda 0x0057 built: 2020
    res: 3840x2160 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel UHD Graphics (TGL GT1)
    direct render: Yes

Well I would understand the virtual desktop would be bigger than the screen resolution (that way I’ll me able to move mouse out of screen) but the behavior is a bit different. It allows me to move cursor out of screen on bottom/right side but after that the upper left corner (where I could move the mouse cursor) shifts right/down by probably the offset I moved out of screen. So after that the upper left corner is not reachable anymore (was reachable before I moved the cursor out of screen).

What does the following command report?

kscreen-doctor -o

If you remove the existing kscreen configuration (in ~/.local/share/kscreen directory) then log out and back in again, does the problem remain? As mrmazda mentioned already kscreen2 (background services) can be disabled if found to be the cause of this issue.

Output: 474 eDP-1-1 disabled connected priority 0 Panel Modes: 482:1920x1080@60! 483:1920x1080@60 484:1920x1080@60 485:1920x1080@60 486:1920x1080@48 487:1680x1050@60 488:1680x1050@60 489:1400x1050@60 490:1600x900@60 491:1600x900@60 492:1600x900@60 493:1600x900@60 494:1280x1024@60 495:1400x900@60 496:1400x900@60 497:1280x960@60 498:1440x810@60 499:1440x810@60 500:1368x768@60 501:1368x768@60 502:1280x800@60 503:1280x800@60 504:1280x800@60 505:1280x800@60 506:1280x720@60 507:1280x720@60 508:1280x720@60 509:1280x720@60 510:1024x768@60 511:1024x768@60 512:960x720@60 513:928x696@60 514:896x672@60 515:1024x576@60 516:1024x576@60 517:1024x576@60 518:1024x576@60 519:960x600@60 520:960x600@60 521:960x540@60 522:960x540@60 523:960x540@60 524:960x540@60 525:800x600@60 526:800x600@60 527:800x600@56 528:840x525@60 529:840x525@60 530:864x486@60 531:864x486@60 532:700x525@60 533:800x450@60 534:800x450@60 535:640x512@60 536:700x450@60 537:700x450@60 538:640x480@60 539:640x480@60 540:720x405@60 541:720x405@59 542:684x384@60 543:684x384@60 544:640x400@60 545:640x400@60 546:640x360@60 547:640x360@60 548:640x360@60 549:640x360@59 550:512x384@60 551:512x288@60 552:512x288@60 553:480x270@60 554:480x270@60 555:400x300@60 556:400x300@56 557:432x243@60 558:432x243@60 559:320x240@60 560:360x202@60 561:360x202@59 562:320x180@60 563:320x180@59 Geometry: 0,0 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 475 HDMI-1-1 disabled disconnected priority 0 HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 476 DP-1-1 enabled connected priority 1 DisplayPort Modes: 488:1680x1050@60 494:1280x1024@60 505:1280x800@60 511:1024x768@60 526:800x600@60 527:800x600@56 539:640x480@60 564:3840x2160@60*! 565:3840x2160@50 566:3840x2160@60 567:3840x2160@30 568:3840x2160@30 569:2560x1440@60 570:1920x1080@60 571:1920x1080@50 572:1920x1080@60 573:1600x900@60 574:1280x1024@75 575:1440x900@60 576:1152x864@75 577:1280x720@60 578:1280x720@50 579:1280x720@60 580:1024x768@75 581:1024x768@70 582:832x624@75 583:800x600@72 584:800x600@75 585:720x576@50 586:720x480@60 587:720x480@60 588:640x480@75 589:640x480@73 590:640x480@67 591:640x480@60 592:720x400@70 Geometry: 3840,0 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 477 DP-1-2 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 478 DP-1-2-1 enabled connected priority 2 DisplayPort Modes: 487:1680x1050@60 494:1280x1024@60 504:1280x800@60 511:1024x768@60 526:800x600@60 527:800x600@56 539:640x480@60 567:3840x2160@30 568:3840x2160@30 569:2560x1440@60 570:1920x1080@60 571:1920x1080@50 572:1920x1080@60 573:1600x900@60 574:1280x1024@75 576:1152x864@75 577:1280x720@60 578:1280x720@50 579:1280x720@60 580:1024x768@75 581:1024x768@70 582:832x624@75 583:800x600@72 584:800x600@75 585:720x576@50 586:720x480@60 587:720x480@60 588:640x480@75 589:640x480@73 590:640x480@67 591:640x480@60 592:720x400@70 593:3840x2160@60*! 594:1440x900@60 Geometry: 0,0 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 479 DP-1-2-2 enabled connected priority 3 DisplayPort Modes: 487:1680x1050@60 494:1280x1024@60 504:1280x800@60 511:1024x768@60 526:800x600@60 527:800x600@56 539:640x480@60 567:3840x2160@30 568:3840x2160@30 569:2560x1440@60 570:1920x1080@60 571:1920x1080@50 572:1920x1080@60 573:1600x900@60 574:1280x1024@75 576:1152x864@75 577:1280x720@60 578:1280x720@50 579:1280x720@60 580:1024x768@75 581:1024x768@70 582:832x624@75 583:800x600@72 584:800x600@75 585:720x576@50 586:720x480@60 587:720x480@60 588:640x480@75 589:640x480@73 590:640x480@67 591:640x480@60 592:720x400@70 594:1440x900@60 595:3840x2160@60*! Geometry: 7680,0 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 480 DP-1-2-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown

The monitor geometries checks out as expected at least.

Well throw out whole kscreen config and it is acting same way :frowning:

Create a new user, then login as that user. Is the issue still present?

Yep :frowning: same for the newly created user…

I think you’re observing a bug, but here are a few things to do before reporting or deciding where to report:

1-Do you get the same behavior in a wayland session?

2-Do you get the same behavior in an IceWM session instead of Plasma?

3-Do you get the same behavior if you completely disconnect one external display and not disable the laptop screen?

4-Can you reproduce by booting 15.5, Neon, or some other recently released distro’s live media?

5-Paste here input/output from running xrandr, so we can see if it reports anything useful that inxi didn’t. Feel free to omit most or all resolution lines that contain neither * nor +.

Ok, so I understand that you have Intel+NVIDIA.

FWIW, here’s an an old Ubuntu thread describing similar desktop/pointer behaviour with NVIDIA hardware.

It may be worth searching for other similar reports. Likely a bug that needs fixing.

You could also try testing behaviour in another desktop environment perhaps.

Well xrandr returns “interesting” values for Screen 0 (still have 3x 4K in line so shouldn’t it be 11520x2160 ?). It is right after the restart of machine and immediate log-in, interestingly enough on the login screen this behavior is not observable (it is working as expected)…

Screen 0: minimum 8 x 8, current 13440 x 7560, maximum 32767 x 32767
eDP-1-1 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  59.97    59.96    59.93    47.99  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-1 connected primary 3840x2160+3840+0 (normal left inverted right x axis y axis) 632mm x 360mm
   3840x2160     60.00*+  50.00    59.94    30.00    29.97  
   2560x1440     59.95  
   1920x1080     60.00    50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-2-1 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 632mm x 360mm
   3840x2160     60.00*+  30.00    29.97  
   2560x1440     59.95  
   1920x1080     60.00    50.00    59.94  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x800      59.81  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DP-1-2-2 connected 3840x2160+7680+0 (normal left inverted right x axis y axis) 632mm x 360mm
   3840x2160     60.00*+  30.00    29.97  
   2560x1440     59.95  
   1920x1080     60.00    50.00    59.94  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x800      59.81  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DP-1-2-3 disconnected (normal left inverted right x axis y axis)

Well I had installed elementaryOS 6.x before Tumbleweed (basically customized Ubuntu) there I’ve observed it sometimes “forgot” screen configuration completely (same machine + dock + external monitors). Leap was struggling same issue as Ubuntu that time and Manjaro KDE same. Linux Mint was working properly.
Personally got some issues with any Ubuntu based distros and don’t like Fedora/CentOS at all :frowning: .

Does the KDE Wayland session work for you?

Seems to working properly.

What is the actual impact changing it ?

I’m not accessing machine remotely and so far all the applications I got seems to work properly…

Ok, that is good to know. For the most part you may not notice any difference. It really depends on your exact software/hardware environment and requirements, but there is solid development and support for Plasma Wayland, bugs are being actively squashed when reported.

I follow the following developer blog…

If you observe any issues or just want to get more technically familiar with KDE Wayland, the following link may be of value to you…
https://community.kde.org/KWin/Wayland

1 Like

By what means was the laptop display being disabled when using X11? According to Intel, the i7-11850H should support 4 at once, unlike most of its predecessors limited to 3, which probably hampered/hampers software development and testing for 4 display configurations.

It sure should, as long as only 3 displays are connected. But, you have 4 - the laptop display AFAIK can’t be physically disconnected. X11 (kernel?) doesn’t necessarily do very well when un-powered but connected displays are present. It apparently knows and wants to be ready if/when its power comes on.

That suggests brokenness in X11, given lack of trouble with your Wayland session. 13440 minus 1920 leaves 11520. 7560 is 1920 + 3 * 2160. So, xrandr seems to think X11 has given you all 4 displays across at the same time as all 4 stacked, while not visibly locating a presumptive FHD display. :stuck_out_tongue:

If Wayland keeps on behaving as expected, keep on using it, but you might wish to get the Xorg failure on record in Bugzilla, in case you find an issue with Wayland.

1 Like