Results 1 to 6 of 6

Thread: KDE/Plasma keeps swapping monitor 1 & monitor 2 at random times

  1. #1
    Join Date
    Feb 2013
    Location
    SW Chicago suburbs
    Posts
    57

    Default KDE/Plasma keeps swapping monitor 1 & monitor 2 at random times

    In general, the KDE desktop seems to have some, uh, "issues". Sometimes the panel on monitor 1 disappears altogether. On occasion, right-clicking on the main window to get to the "Activities..." menu item fails to pop up the Activity list. Every once in a while, switching to a different activity fails to load the wallpaper on one monitor, usually the right-hand one that I prefer to call monitor 2 but, well, read on...

    Several times a day, seemingly at random, I've been finding that my dual monitor setup has monitor 1 (left) and monitor 2 (right) swap identities. Applications that I've configured to only appear on monitor 1 (via right-click->Special Window Settings) appear on monitor 2. Sometimes clicking on the main application launcher on the panel located on monitor 1 opens the application drop down menu on monitor 2. The panel I have setup on the edge of monitor 2 to hold the Activity switcher suddenly appears on what is supposed to be monitor 1 but KDE/Plasma probably now thinks is monitor 2. Audacious is supposed to display track information on monitor but winds up displaying it on monitor 2 despite my resetting it back to monitor 1 just the previous hour. Logging out and back in usually helps but not always. Jumping into the system settings and manually settings things to "normal" only fixes the problem for a little while.

    This swapping misbehavior was once an occasional things but it's happening several time/day now. I thought it might have been tied to using a screensaver and screen locking but I've disabled those and the monitor switches have not stopped.

    Q1: What software component might be affecting the monitor arrangement?

    Q2: In what config file are these settings saved?

    (I'm thinking of writing something that'll set/unset the immutable attribute on that config file to prevent changes from happening except when I want to make them... instead of whatever is swapping the monitor identities whenever I'm away at lunch, off at a meeting, etc.. But I see that as something of a last resort if the process that's making the changes cannot be tamed.)

    Ideas?

    Fixed in 15.4?

    TIA...

  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    3,793
    Blog Entries
    1

    Default Re: KDE/Plasma keeps swapping monitor 1 & monitor 2 at random times

    Is this in Xorg, Wayland, or both?

    What is output from inxi -Ga run in Konsole in Xorg session?

    Quote Originally Posted by rnturner View Post
    Ideas?
    1. Complain upstream. You're hardly the only one who has experienced multiple screen mismanagement by Plasma.
    2. Disable KScreen2 in startup
    3. Use another method to position screens

    There are several other paths to positioning screens.
    1. Arandr will create a script to position screens. You can tie the script to startup and/or a hotkey combination.
    2. Use xrandr in Konsole or xterm to position screens and designate the primary screen, where the main toolbar will appear. This script would differ little to none from one that arandr would create. It's just that using xrandr directly would result in some educational effect. Either arandr's script or your own can be put into global effect, so that it takes effect on your login screen instead of only after Plasma starts, and would also apply if you start some alternative DE session.
    3. Configuration via /etc/X11/xorg.con*. This is the hard way. Try everything else first.
    Reg. Linux User 211409 *** multibooting since 1992
    Primary: 15.3, TW, 15.1 & 13.1 on Haswell @earthlink.net
    Secondary: eComStation (OS/2) &15.2 on i965P/Radeon
    Tertiary: Debian, Fedora, Mageia, more on Rocket Lake & older Intel, AMD, NVidia....

  3. #3
    Join Date
    Feb 2013
    Location
    SW Chicago suburbs
    Posts
    57

    Default Re: KDE/Plasma keeps swapping monitor 1 & monitor 2 at random times

    Quote Originally Posted by mrmazda View Post
    Is this in Xorg, Wayland, or both?
    Xorg. Don't use Wayland.

    What is output from inxi -Ga run in Konsole in Xorg session?
    Code:
    $ inxi -Ga
    Graphics:
      Device-1: NVIDIA TU116 [GeForce GTX 1650] vendor: Micro-Star MSI 
      driver: nvidia v: 470.86 bus ID: 01:00.0 chip ID: 10de:2188 
      Display: x11 server: X.org 1.20.3 compositor: kwin_x11 driver: nvidia 
      unloaded: fbdev,modesetting,nouveau,vesa alternate: nv 
      resolution: <xdpyinfo missing> 
      OpenGL: renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 470.86 
      direct render: Yes
    I suspect it doesn't much matter but inxi didn't report anything about the monitors: two Asus VP280 (1920x1080), one driven via DisplayPort, the other HDMI.

    Disable KScreen2 in startup
    Not familiar with the bit of code. What's it intended to do. I'm not seeing it as a running process so I assume it starts, does something, and leaves.

    Where would I disable it?

    ... Use another method to position screens

    There are several other paths to positioning screens.
    1. Arandr will create a script to position screens. You can tie the script to startup and/or a hotkey combination.
    2. Use xrandr in Konsole or xterm to position screens and designate the primary screen, where the main toolbar will appear. This script would differ little to none from one that arandr would create. It's just that using xrandr directly would result in some educational effect. Either arandr's script or your own can be put into global effect, so that it takes effect on your login screen instead of only after Plasma starts, and would also apply if you start some alternative DE session.
    3. Configuration via /etc/X11/xorg.con*. This is the hard way. Try everything else first.
    I not averse to any of the above... even The Hard Way provided I can find readable documentation. I'll do some searching for a little leisure reading.

    I found "kscreen-doctor" in /usr/bin which, without any arguments, produces comparable output to what xrandr shows (though the output is garishly colored for some reason). So maybe there's a fourth path.

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,977
    Blog Entries
    1

    Default Re: KDE/Plasma keeps swapping monitor 1 & monitor 2 at random times

    Quote Originally Posted by rnturner View Post
    Not familiar with the bit of code. What's it intended to do.
    KScreen is a KDE screen management utility, running as a background service.

    I'm not seeing it as a running process so I assume it starts, does something, and leaves.

    Where would I disable it?
    KDE System Settings > Workspace > Startup and Shutdown > Background Services, disable KScreen 2 (as required).
    openSUSE Leap 15.3; KDE Plasma 5

  5. #5
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    3,793
    Blog Entries
    1

    Default Re: KDE/Plasma keeps swapping monitor 1 & monitor 2 at random times

    Quote Originally Posted by rnturner View Post
    Code:
    $ inxi -Ga
    Graphics:
      Device-1: NVIDIA TU116 [GeForce GTX 1650] vendor: Micro-Star MSI 
      driver: nvidia v: 470.86 bus ID: 01:00.0 chip ID: 10de:2188 
      Display: x11 server: X.org 1.20.3 compositor: kwin_x11 driver: nvidia 
      unloaded: fbdev,modesetting,nouveau,vesa alternate: nv 
      resolution: <xdpyinfo missing> 
      OpenGL: renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 470.86 
      direct render: Yes
    I suspect it doesn't much matter but inxi didn't report anything about the monitors: two Asus VP280 (1920x1080), one driven via DisplayPort, the other HDMI.
    openSUSE needs a better inxi maintainer. Leap is stuck with a broken antique inxi version. However, it's easily remedied:
    Code:
    zypper in xdpyinfo
    inxi -U
    Afterward, inxi -Ga will produce more useful output, which I could probably use to provide a specific suggestion.
    Reg. Linux User 211409 *** multibooting since 1992
    Primary: 15.3, TW, 15.1 & 13.1 on Haswell @earthlink.net
    Secondary: eComStation (OS/2) &15.2 on i965P/Radeon
    Tertiary: Debian, Fedora, Mageia, more on Rocket Lake & older Intel, AMD, NVidia....

  6. #6
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,077
    Blog Entries
    15

    Default Re: KDE/Plasma keeps swapping monitor 1 & monitor 2 at random times

    Quote Originally Posted by mrmazda View Post
    openSUSE needs a better inxi maintainer. Leap is stuck with a broken antique inxi version. However, it's easily remedied:
    Code:
    zypper in xdpyinfo
    inxi -U
    Afterward, inxi -Ga will produce more useful output, which I could probably use to provide a specific suggestion.
    Hi
    So add your name to the list of maintainers?

    @OP, any reason your running an out of date and unsupported nvidia driver? Either the 470.129.06 (G05) or 515.43.04 (G06 - Beta) will work...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •