Two monitor problem - M9 KDE

Two monitor problem - M9 KDE

Postby mackowiakp » Dec 19th, '24, 03:46

I have Geekom mini PC, Intel Core i7-13620h. Two physical HDMI outputs.
HDMI-1 set as default in BIOS and in System Settings.
Intel UHD Graphic processor build-in, two Philips HDMI monitors.
Video system driver set to "Kernel mode setting (Xorg modesetting)".
HDMI-1 connected monitor set as right and HDMI-2 set as left.
BIOS booting info and bootmanager menu are properly displayed on HDMI-1,
After booting M9 (KDE) login screen is displayed on both monitors but mouse cursor and active field to enter the pass are located on HDMI-2 connected display.
What's more, some applications start not on the default HDMI-1 but on HDMI-2. This only applies to some applications, not all.
Another strange thing is "Konsole" or terminal.
Sometimes (not always) to enable a new terminal card I can't do it on HDMI-1, I have to move Konsole to the second screen (HDMI-2) and there I can start the second card. Interestingly, after dragging Konsole to the screen from which it was launched again, everything still works correctly.
Is there anything that can be improved in the graphical environment configuration?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Two monitor problem - M9 KDE

Postby banjo » Dec 20th, '24, 04:24

I had some similar problems with Plasma after I first installed Mag 9. You can read about it at this thread.

https://forums.mageia.org/en/viewtopic.php?f=7&t=15282

In my case it looks like the problem resulted from Plasma not having completed its boot-up by the time the applications were launched, and that confused Plasma with respect to where the apps go etc.

My final workaround is to run all my desktop apps in a bash script after a short delay. That gives Plasma time to settle down before the apps get launched.

The script looks something like this

Code: Select all
#! /bin/bash
#
# This script delays the running of my applications for
# a few seconds to allow Plasma to settle down to avoid a Plasma
# bug that messes up the locations of the windows when logging in.
#
# Sleep for a few seconds to let Plasma settle down
sleep 5s
# Run all of my desktop apps
gkrellm &

Then in System Settings => Startup and Shutdown => Autostart, I run my script.

The script causes a brief delay before my applications show up, but they always run normally now.

Something to look at.

Banjo
(_)=='=~
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 476
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Two monitor problem - M9 KDE

Postby mackowiakp » Dec 21st, '24, 01:40

I am not convinced that this is exactly the same case.
In my case, the problem occurs on the login screen before starting the plasma.
The login screen appears on both monitors, but the password entry is not on HDMI-1 (default) but on HDMI-2.
The only application that I start in autostart is the Nextcloud client. It starts minimized to the bar and behaves correctly.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Two monitor problem - M9 KDE

Postby doktor5000 » Dec 21st, '24, 02:42

You should probably post at least your relevant x11 configs and also xrandr -q output.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Two monitor problem - M9 KDE

Postby mackowiakp » Dec 21st, '24, 06:59

OK, xorg.conf

Code: Select all
Section "ServerFlags"
    Option "DontZap" "False" # disable <Ctrl><Alt><BS> (server abort)
    #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
    AllowMouseOpenFail # allows the server to start up even if the mouse does not work
EndSection

Section "Module"
    Load "v4l" # Video for Linux
EndSection

Section "Monitor"
    Identifier "monitor1"
    VendorName "Plug'n Play"
   
    # Apple iMac modes
    ModeLine "1024x768"   78.525 1024 1049 1145 1312   768  769  772  800 +hsync +vsync
    ModeLine "800x600"    62.357  800  821  901 1040   600  601  604  632 +hsync +vsync
    ModeLine "640x480"    49.886  640  661  725  832   480  481  484  514 +hsync +vsync
   
    # Apple monitors tend to do 832x624
    ModeLine "832x624"    57      832  876  940 1152   624  625  628  667 -hsync -vsync
   
    # Apple PowerBook G3
    ModeLine "800x600"    100     800  816  824  840   600  616  624  640 -hsync -vsync
   
    # Apple TI Powerbook
    ModeLine "1152x768"   78.741 1152 1173 1269 1440   768  769  772  800 +vsync +vsync
   
    # Pismo Firewire G3
    ModeLine "1024x768"   65     1024 1032 1176 1344   768  771  777  806 -hsync -vsync
   
    # iBook2
    ModeLine "1024x768"   65     1024 1048 1184 1344   768  771  777  806 -hsync -vsync
   
    # 17" Apple Studio Display
    ModeLine "1024x768"   112.62 1024 1076 1248 1420 768 768 780 808 +hsync +vsync
   
    # HiRes Apple Studio Display
    ModeLine "1280x1024"  135    1280 1288 1392 1664  1024 1027 1030 1064
   
    # Another variation
    ModeLine "1280x1024"  134.989 1280 1317 1429 1688  1024 1025 1028 1066 +hsync +vsync
   
    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630
   
    # 768x576 @ 100 Hz, 61.6 kHz hsync
    ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
    Gamma 0.4 0.4 0.4
EndSection

Section "Device"
    Identifier "device1"
    VendorName "Intel Corporation"
    BoardName "Intel Kernel Mode setting (Xorg modesetting)"
    Driver "modesetting"
    Option "DPMS"
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
EndSection

Section "ServerLayout"
    Identifier "layout1"
    Screen "screen1"
EndSection


And xrandr

Code: Select all
[maciek@IT13 ~]$ xrandr -q
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
HDMI-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  74.97    50.00    59.94 
   1680x1050     59.88 
   1280x1024     76.25    75.02    75.02    60.02 
   1440x900      59.90 
   1280x960      60.00 
   1280x720      60.00    50.00    59.94 
   1152x768      68.35 
   1024x768      98.16    75.03    74.81    70.07    60.00    60.00 
   832x624       74.55    74.18 
   800x600      186.01    94.87    72.19    75.00    60.32    56.25 
   768x576       99.99    79.37 
   720x576       50.00 
   720x480       60.00    59.94 
   640x480      116.65    75.00    72.81    66.67    60.00    59.94 
   720x400       70.08 
HDMI-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+  59.94 
   1680x1050     59.88 
   1280x1024     75.02    60.02 
   1440x900      74.98    59.90 
   1280x720      60.00    59.94 
   1024x768      75.03    60.00 
   800x600       75.00    60.32 
   720x480       60.00    59.94 
   640x480       75.00    72.81    66.67    60.00    59.94 
   720x400       70.08 
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Two monitor problem - M9 KDE

Postby doktor5000 » Dec 21st, '24, 12:55

There's usually also something under /etc/Xorg/xorg.conf.d/ ...
For your initial description, you don't mention which apps don't start on HDMI-1 initially (my guess is GTK-based apps).
And for konsole I don't know what you mean by "cards" - do you mean additional tabs in a running konsole window ?

Also the issue with the login screen I don't understand, as you don't have your display mirrored user/password prompt will only display on one of them.
If you want to change on which it's displayed, you need to adapt the monitor setup in the Xsetup scripts of the display manager. There are various threads about that,
as the display configuration is normally only loaded with your desktop, and is not present for the login manager. As an example for sddm (you didn't mention what login manager you use):
https://blog.victormendonca.com/2018/06 ... e-screens/
https://discuss.kde.org/t/how-to-change ... ddm/3377/2
https://www.reddit.com/r/archlinux/comm ... _a_single/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Two monitor problem - M9 KDE

Postby mackowiakp » Dec 21st, '24, 13:31

In /etc/Xorg/xorg.conf.d/ is only keyboard config:

Code: Select all
[maciek@IT13 ~]$ cat /etc/X11/xorg.conf.d/00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbModel" "pc105"
        Option "XkbLayout" "pl"
        Option "XkbOptions" "compose:rwin"
EndSection


Are these GTK-based applications? I think mostly yes.
What is interesting, however, is that after the first launch of such an application after dragging it to the first screen, it restarts correctly.
Yes, by "cards" I understand "tabs" in the Console
I do not have duplicate screens and the user/pass prompt is displayed on both monitors, when, as I wrote, the password is entered on the second monitor and the mouse cursor is there initially.
Moving the mouse cursor to the first screen is not possible. Such a move is only possible after logging in.
I use SDDM.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Two monitor problem - M9 KDE

Postby mackowiakp » Dec 22nd, '24, 01:46

I added such lines in /usr/share/sddm/scripts/Xsetup

Code: Select all
/usr/bin/xrandr --output HDMI-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-2 --mode 1920x1080 --pos 0x0 --rotate normal
/usr/bin/xrandr --output HDMI-1 --primary
/usr/bin/xrandr --output DP-1 --off
/usr/bin/xrandr --output DP-2 --off


This partially solved the problem of the login screen. The login prompt is displayed on both screens but it is possible to enter user/pass on the first screen. However, initially the cursor for entering login data is on the second screen but it is possible to click on the fields on the first screen and enter user/pass.
After starting Plasma the situation is as follows.
"Native" applications installed from the M9 repo`s probably all start correctly on the first screen.
Some applications installed via "Discover" (or "Discover" via Flatpak) start on the second screen.
An example is "PDF Arranger" or "MS Edge". It is interesting that the first of these applications always starts on the second screen and the second only for the first time after installation. Dragging the MS Edge window to the first screen once causes it to start correctly later.
The "MQTT Exporer" application or the extremely important for me "AlizaMS" (Medical Imaging) installed manually as AppImage always start on the second screen.
How can this be improved so that everything always starts initially on the first screen?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Two monitor problem - M9 KDE

Postby doktor5000 » Dec 22nd, '24, 12:27

Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Two monitor problem - M9 KDE

Postby mackowiakp » Dec 23rd, '24, 09:07

The question is whether the cause is not the use of the i915 video driver and not the dedicated Intel Iris Xe driver.
Here is the all of the information:

Code: Select all
[maciek@IT13 TMP]$ inxi -GSxxz --vs
inxi 3.3.36-00 (2024-09-04)
System:
  Kernel: 6.6.65-desktop-2.mga9 arch: x86_64 bits: 64 compiler: gcc v: 12.3.0
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.7 wm: kwin_x11 dm: SDDM
    Distro: Mageia 9
Graphics:
  Device-1: Intel Raptor Lake-P [UHD Graphics] driver: i915 v: kernel
    arch: Gen-13 ports: active: HDMI-A-1,HDMI-A-2 empty: DP-1,DP-2
    bus-ID: 00:02.0 chip-ID: 8086:a7a8
  Device-2: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-1.2:4 chip-ID: 046d:0825
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9
    compositor: kwin_x11 driver: X: loaded: modesetting,v4l dri: iris gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary,right
    model: Philips PHL 241E1 res: 1920x1080 dpi: 93 diag: 604mm (23.8")
  Monitor-2: HDMI-A-2 mapped: HDMI-2 pos: left model: Philips 226V4
    res: 1920x1080 dpi: 102 diag: 547mm (21.5")
  API: EGL v: 1.5 platforms: device: 0 drv: iris device: 1 drv: swrast gbm:
    drv: iris surfaceless: drv: iris x11: drv: iris inactive: wayland
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.2.8 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel Graphics (RPL-P)
    device-ID: 8086:a7a8
  API: Vulkan v: 1.3.231 surfaces: xcb,xlib device: 0 type: integrated-gpu
    driver: mesa intel device-ID: 8086:a7a8 device: 1 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000


And if there is a newer driver, how to use it?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest

cron