From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 26CEB158041 for ; Thu, 29 Feb 2024 11:27:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B51AE29D4; Thu, 29 Feb 2024 11:27:42 +0000 (UTC) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C2A9E29CF for ; Thu, 29 Feb 2024 11:27:41 +0000 (UTC) Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3bbbc6bcc78so535064b6e.1 for ; Thu, 29 Feb 2024 03:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709206061; x=1709810861; darn=lists.gentoo.org; h=in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:to:subject:from:to:cc:subject:date:message-id:reply-to; bh=l+ghsHsi2qnb2AQ0E5WNfqaVLs4GZWyhpvkJdKBFKBk=; b=YEcqGHAPeOOs174sgbacLr3RyBnXXLPL/V/z1zsvJ//9LAeuGc1lEzB3jCJ4oHq1B/ 9Rqxl1JJPYCMzqDazg1b1C5dFkvrZAc9jg2Num68forI+UO9KiRR5ysgK9Quu6ud3XGr G8fhLp3A5MlD69II5CI+gYA/Kzmvp47qtarR89mWD+jatrtFu7bCIVFCRpefLjSB4cxR NcaMdC7LB9iE5u5LNAD9chJojMc2uo2ciQ49TuZImKkTfob/5J388NMlo8bSnS+LgxIA UBJJfp8fral8++8f2eCJ3pJBuzA49l/nx01cFJkbAM9XzDthG+g1lr7tyzrhkTHqBYjg k26w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709206061; x=1709810861; h=in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:to:subject:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=l+ghsHsi2qnb2AQ0E5WNfqaVLs4GZWyhpvkJdKBFKBk=; b=jlh5a7SgtQ1izTF0CK7puMU0OoOhYSvSgdT6jKuRKap2zwZYxGG8JQWTtxSmfgae8G naeTR2Ugwlx7qYtE1RHyKwfLLvnEDl4HxbBEiObzg/GHoDhJVqqMpg3m9Bjt69wEAwtj ew+n136X5y6Y1tYBOnPAAHb0qFp/4RlSEjZgAZ7y9yaU3uOzYb9i0ceEycBJg9F/qQw+ wXosHmU0oao/CvWkNuzmGs4oKbhIUcc3q6L3MOVmB73XBkRb2VcK8BUc2CNpWW2KJvEk WeAv8KpvZOCA8NLT8h+xlkleTbJBYRjXS/z97HvUYkp40jXSalEvKdIjpmkpR7DKKAPq tmpQ== X-Gm-Message-State: AOJu0Yy0i74nxkFUHZEc1MXMCfUIOnlExXDlDUeXczHnahFwqA77uHt4 gfclzAv6xYFW0O/mpVTSrCdTdHSG4UsJkfkiJb4pt8pX+jADlh27UW50QKob X-Google-Smtp-Source: AGHT+IEQzFFmRmISqzJRU0SltbpnyB3FcEGaCni9mgKqZxLQCEI/xbt8SD/n/I45DivNUxflWNZNGA== X-Received: by 2002:a05:6808:301f:b0:3c1:9c73:7f2b with SMTP id ay31-20020a056808301f00b003c19c737f2bmr1786664oib.29.1709206061095; Thu, 29 Feb 2024 03:27:41 -0800 (PST) Received: from [10.8.8.16] ([37.19.221.87]) by smtp.gmail.com with ESMTPSA id ln21-20020a056a003cd500b006e363ca24dcsm1050292pfb.67.2024.02.29.03.27.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Feb 2024 03:27:40 -0800 (PST) Subject: Re: [gentoo-user] Why is KDE so bad at multiple monitors? To: gentoo-user@lists.gentoo.org References: <6c3931ca-944a-41b1-8980-6e6ac10faacd@gmail.com> From: Dale Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ 0Pet8zxxdXPJSCd475kza1AD+hhSyBZXB9yknYWgyY3cZe1rGmooJSi2KX4QxO7npwLThcO1 be6KKRkd35+Fi/a1BzVOHsZMiK/gcwxEFoMd27gir4ehaeHJfFXl+65w4hj0EsOZSxrJrm2C R50g5By2czSKP1bADEygFNpIJj51AR+wM88NImG2RPtlT2maYBzazvF05g65cdHXGp1C7W5P wwwKU2DgABB2t7N7z5A69LnryBRw4zUYDRRYLTYlBlYgg+xILm2c0OrBdxJgLJa7JE50Eo25 d3PFwt9J0gYvqy6sPFLl9So0sDg9zm0hKQtXOP5kgropUFGrNoJI+mjwF4rYLRBVzZwNAvlO OhEvHubBo3mEllv4x+FeptwXZxlk7gUsdqI8AxnFB8K9wi6FVQARAQABtBtEYWxlIDxyZGFs ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgCGyMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AW IQQSG1h01ruv/WNXc3Q3RqOgiQH1GwUCYVJy8gAKCRA3RqOgiQH1G+waEACeTZCt77jnRAmQ AV7otKuZekDWiLi3Eig8tj5ZJiCNSYA/hIxzmexRP0GMqjitcXK1iGw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 29 Feb 2024 05:27:38 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------21465B20ECC5340583322B36" X-Archives-Salt: b0b21377-3b1f-4336-adff-9c2e553ba396 X-Archives-Hash: da9950fdd26854d0005022f06d3d9bbb This is a multi-part message in MIME format. --------------21465B20ECC5340583322B36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mark Knecht wrote: > > > On Wed, Feb 28, 2024 at 3:24 PM Dale > wrote: > > > > Paul B. Henson wrote: > > > On Sat, Feb 24, 2024 at 08:53:37PM -0800, Daniel Frey wrote: > > >> After cursing KDE for a while with three monitors, does anyone > have any > > >> idea why KDE is so bad at managing multiple monitors? > > > . I ended up adding this to /usr/share/sddm/scripts/Xsetup: > > > > > > xrandr --output DVI-D-0 --primary --output HDMI-A-0 --left-of DVI-D-0 > > > --output DisplayPort-0 --right-of DVI-D-0 > > > > > > Always perfect since then :). > > > > I have two questions.  Does a upgrade change it back to defaults?  If > > so, there may be a file in /etc somewhere that is more permanent.  If > > not, cool.  :-) > > > > How did you get the info to match the hardware you have?  My main > > display is on a DB15HD port.  My second display in on a HDMI port.  I > > figure you ran a command to gather that info or there is a source of all > > the possibilities. > > > > I'd like to give that a shot.  Might help with my occasional issue. > > > > Dale > > > > :-)  :-) > > If you're just looking for what's connected to what port then xrandr > will tell you that. > > To get to Paul's equation you would need to figure out the ordering > yourself I think > > HTH, > Mark To provide a little more info on how this works.  This is how I did it.  It helps a LOT to have tab completion with this.  It will fill in a lot of the info and when unsure, list the available options.  First, I had to install the package xrandr.  My first problem is the command isn't available since it wasn't installed.  So, if you don't have it, install it. It's tiny.  This is what I have for my setup.  You can ignore that I watch TV and just pretend you have two monitors side by side or whatever and get the same results.  I have a DB15HD connector, referred to as VGA within xrandr.  That is my main monitor.  The second monitor is is connected to a HDMI port, seen as same in xrandr, and what I watch TV with.  This is the output I started with to get good clues.  root@fireball / # xrandr --listmonitors Monitors: 2  0: +*VGA-0 1920/598x1080/336+0+0  VGA-0  1: +HDMI-0 1920/1150x1080/650+1920+0  HDMI-0 root@fireball / # Since I have different ports, it is easy to see which is which.  The last bit is what you use in the command, not the first bits.  If all your ports are the same, mini HDMI for example, I think the port lowest to the bottom of the video card is number 0, or the first port.  Anyway, mine is easy.  I then typed in xrandr --output and hit tab twice.  It will list all the available monitors.  Pick the one you want to be the first output or main monitor.  In my case, VGA-0 as shown on the end of line one.  Once you type enough, tab completion will fill it in.  Then add --primary to that to make it the primary display.  For the second monitor, continue on with the command and tab completion.  Type in --output and hit tab twice again to list options.  Pick the second monitor and type enough in for tab completion to fill in the rest.  Then add --right-of, --left-of, --above or --below and then the output device for the main monitor.  For me, this is what my command looks like.  root@fireball / # xrandr --output VGA-0 --primary --output HDMI-0 --right-of VGA-0 root@fireball / # That makes VGA the primary, HDMI-0 second and to the right of VGA-0.  If you have more than two monitors, just keep adding --output and list and place the other monitors.  I don't have the means to test but that should work.  I'd think setting the primary is key in this so I wouldn't forget to include that.  Once you get that command, you can test it by going to a Konsole if using KDE or some other similar tool you can type commands in as root and run the command manually.  If it works correctly, add the command to the file in this path.  /usr/share/sddm/scripts/Xsetup  I haven't logged out and back in again yet so we will see when that happens if it really works and my little quirk goes away.  There is a man page for this.  It may have other options that you may need to add.  Just keep in mind, what is between each --output is what it applies too.  One could have different resolutions, image flipped or something and lots of other options.  Just keep the options in the right section of the command.  I hope this helps someone and makes decent sense.  I also hope it works after I logout and back in again.  :/   I'm making a note of the location in case I need to comment it out.  Better to be safe than sorry.  LOL  Dale :-)  :-)  --------------21465B20ECC5340583322B36 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Mark Knecht wrote:


On Wed, Feb 28, 2024 at 3:24 PM Dale <rdalek1967@gmail.com> wrote:
>
> Paul B. Henson wrote:
> > On Sat, Feb 24, 2024 at 08:53:37PM -0800, Daniel Frey wrote:
> >> After cursing KDE for a while with three monitors, does anyone have any
> >> idea why KDE is so bad at managing multiple monitors?
> > <shrug>. I ended up adding this to /usr/share/sddm/scripts/Xsetup:
> >
> > xrandr --output DVI-D-0 --primary --output HDMI-A-0 --left-of DVI-D-0
> > --output DisplayPort-0 --right-of DVI-D-0
> >
> > Always perfect since then :).
>
> I have two questions.  Does a upgrade change it back to defaults?  If
> so, there may be a file in /etc somewhere that is more permanent.  If
> not, cool.  :-)
>
> How did you get the info to match the hardware you have?  My main
> display is on a DB15HD port.  My second display in on a HDMI port.  I
> figure you ran a command to gather that info or there is a source of all
> the possibilities.
>
> I'd like to give that a shot.  Might help with my occasional issue.
>
> Dale
>
> :-)  :-)

If you're just looking for what's connected to what port then xrandr will tell you that.

To get to Paul's equation you would need to figure out the ordering yourself I think

HTH,
Mark


To provide a little more info on how this works.  This is how I did it.  It helps a LOT to have tab completion with this.  It will fill in a lot of the info and when unsure, list the available options.  First, I had to install the package xrandr.  My first problem is the command isn't available since it wasn't installed.  So, if you don't have it, install it. It's tiny.  This is what I have for my setup.  You can ignore that I watch TV and just pretend you have two monitors side by side or whatever and get the same results.  I have a DB15HD connector, referred to as VGA within xrandr.  That is my main monitor.  The second monitor is is connected to a HDMI port, seen as same in xrandr, and what I watch TV with.  This is the output I started with to get good clues. 


root@fireball / # xrandr --listmonitors
Monitors: 2
 0: +*VGA-0 1920/598x1080/336+0+0  VGA-0
 1: +HDMI-0 1920/1150x1080/650+1920+0  HDMI-0
root@fireball / #


Since I have different ports, it is easy to see which is which.  The last bit is what you use in the command, not the first bits.  If all your ports are the same, mini HDMI for example, I think the port lowest to the bottom of the video card is number 0, or the first port.  Anyway, mine is easy.  I then typed in xrandr --output and hit tab twice.  It will list all the available monitors.  Pick the one you want to be the first output or main monitor.  In my case, VGA-0 as shown on the end of line one.  Once you type enough, tab completion will fill it in.  Then add --primary to that to make it the primary display. 

For the second monitor, continue on with the command and tab completion.  Type in --output and hit tab twice again to list options.  Pick the second monitor and type enough in for tab completion to fill in the rest.  Then add --right-of, --left-of, --above or --below and then the output device for the main monitor.  For me, this is what my command looks like. 


root@fireball / # xrandr --output VGA-0 --primary --output HDMI-0 --right-of VGA-0
root@fireball / #


That makes VGA the primary, HDMI-0 second and to the right of VGA-0.  If you have more than two monitors, just keep adding --output and list and place the other monitors.  I don't have the means to test but that should work.  I'd think setting the primary is key in this so I wouldn't forget to include that. 

Once you get that command, you can test it by going to a Konsole if using KDE or some other similar tool you can type commands in as root and run the command manually.  If it works correctly, add the command to the file in this path.  /usr/share/sddm/scripts/Xsetup  I haven't logged out and back in again yet so we will see when that happens if it really works and my little quirk goes away. 

There is a man page for this.  It may have other options that you may need to add.  Just keep in mind, what is between each --output is what it applies too.  One could have different resolutions, image flipped or something and lots of other options.  Just keep the options in the right section of the command. 

I hope this helps someone and makes decent sense.  I also hope it works after I logout and back in again.  :/   I'm making a note of the location in case I need to comment it out.  Better to be safe than sorry.  LOL 

Dale

:-)  :-) 
--------------21465B20ECC5340583322B36--