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 6224A158004 for ; Sun, 3 Mar 2024 19:00:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2BDDE2A9C; Sun, 3 Mar 2024 18:59:55 +0000 (UTC) Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (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 71DD9E2A47 for ; Sun, 3 Mar 2024 18:59:55 +0000 (UTC) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1dd0d46ecc3so2720185ad.2 for ; Sun, 03 Mar 2024 10:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709492393; x=1710097193; darn=lists.gentoo.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=UH1vwbufl7eWFCJStOg13dvJ93eySKgyYn5PdSiwBmE=; b=Qhd4hMZBJ0n187STsB3K22jUEmdpZ6kb9i/kd5l+dep7wjKPfSm+dciE8tRIxeXk2c h4TTCo7eYFe6FncSc0jLSYKifp7FUIX9tY5K660cf/2gMjE0MHCJNHT3I2/QeW0UC4Ib gjwnkk63QPflPVReifxUSWE+05eo96XotiZAqvsKWKvqCtW4q8QMGqeOfHXC8O68o89a scdbcl3lo2m9Rs3mxyJ572ljb3zbG3yKTV0ET07wT2/rTnUgIx3VUt5s4BtoWhmO+QLj 7YaU/voGDlaokBMcID9fs0KsvBW4qxUqr21EF1sVILmGIAnDpll+2xh1D++jOO7xgcYP bang== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709492393; x=1710097193; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UH1vwbufl7eWFCJStOg13dvJ93eySKgyYn5PdSiwBmE=; b=pQ5P32hIkZD/g7dxaStRIIMfImKiQ9yzBJ40TWBJAVWVe6lftDC6W6PWT50H+uRLa8 r3/G2uh7M2FLeY7esnYXWzqFP99/FnzhhS1c1eUNkD9g0wxowCBypH10rs9bv+XSvp6/ hmUJCjmqADFH+mDbWpUr2QuDtHKbqrMeUy74iTnHDrvgpuUyiZfvfvEz8eyAPPuyeF8V gU35tWRWLE46Ag/fiksrc+oFqTlOELq0Op8uyXJ/moqu7UvNrByFLHh7h32SXrhtd+A+ MvkPiODBa+mr5jKRc/kZFd0hYkKFfHKRwA77j16sjHKp4oJW7vILYtMqb2/cC4Poik4G 8V/Q== X-Gm-Message-State: AOJu0YwKHGULOQw4gkG/y+UZppe/v6C5PgCmBrMMV2AhoWcytOKIq38s 0Vo/b31g90k5+LgSkKzPAWEi817QuI5S6Y5wW88W3uJAVVe5PvJ2bmJnya9s X-Google-Smtp-Source: AGHT+IHFKFqJz2v5QJWgEDFJepNZrh8FoHo2hYhLrMXBkhcKCm6KbyvFTKqvZo8DMI/E7XePQdT4Sw== X-Received: by 2002:a17:903:40c3:b0:1dd:91c:bc50 with SMTP id t3-20020a17090340c300b001dd091cbc50mr3476487pld.38.1709492393447; Sun, 03 Mar 2024 10:59:53 -0800 (PST) Received: from [192.168.247.5] ([108.180.119.75]) by smtp.gmail.com with ESMTPSA id r2-20020a170903410200b001dcc0ffffc5sm6974802pld.166.2024.03.03.10.59.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Mar 2024 10:59:53 -0800 (PST) Message-ID: <35dee577-dbb4-4422-8a7f-1e3dc5835a94@gmail.com> Date: Sun, 3 Mar 2024 10:59:52 -0800 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 User-Agent: Mozilla Thunderbird 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> <8ad6c6ce-14eb-7c3d-ef2e-3b8204fededb@gmail.com> Content-Language: en-US From: Daniel Frey In-Reply-To: <8ad6c6ce-14eb-7c3d-ef2e-3b8204fededb@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Archives-Salt: 0a2d8dc4-5473-4373-a9d6-27c4989723c4 X-Archives-Hash: 69caef5c4d5a4faeb8280f872a55d41c On 2/29/24 03:27, Dale wrote: > 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 > > :-)  :-) I've been gone for a few days as I was rebuilding my main PC. I thought I'd provide an update: it was xorg-server causing all the issues. I figured as I had to redo everything anyway to switch to systemd and wayland as that's what the bigger DE's tend to be supporting nowadays. After fiddling around with systemd for a day (I'd tried it once before converting a system from openrc->systemd and failed miserably - nothing worked) I've reconfigured most things the "systemd" way. I guess starting fresh solves all sorts of issues. :o) Some things I like about systemd: - It is capable of automounting NFS shares out of the box; I just configured fstab so systemd automatically generated the automount configured it required. No extra steps needed; - It provides a scrollable list by default showing all the items you have access to in order to change how your machines behaves; - It isolates services in logs. This was helpful when sddm didn't want to behave. Some things I don't like: - It has nutty network configuration. It was applying an APIPA network address as the primary for my interface which broke all sorts of tools. Took me a while to figure out how to stop that. - It doesn't update resolv.conf even though I'd specified a DNS server! So literally nothing worked. For now I manually removed resolv.conf and put the DNS server there. Plan to use something else for network management that sets resolv.conf properly. I have no desire to use networkd-resolved. But, back to the original problem... I don't know what was broken in my original system. I always had to reconfigure monitors every time I logged in. As I mentioned I switched to wayland and on the fresh install it actually gave me a desktop. I set the monitor orientation and location, and I can log out and back in and it remembers the monitor orientation and location now. Which is what I was trying to solve. However, sddm was still quite broken and the monitors were in some default strange configuration that made no sense. I fought with this with xrandr trying to solve it and nothing I did would make it stick. I then found in KDE's sccm settings you can apply the wayland desktop settings to sccm - I did that but was disappointed when I rebooted that it didn't work. What did work was reading the docs and switching sddm to use wayland and kwin instead of X11! Once I did that, now the monitor layouts are the same between the desktop and sddm. So I'm happy about that. Other issues I came across were forgetting the kernel config for nvidia cards and tty output. It took me a lot of head scratching and searching to realize I had enabled something in the kernel that was doing this. The sound server also dramatically changed as I had no sound at all from KDE but I could see, use and get sound from the shell. Some new pipewire thing. I really wish that devs would fix existing things that have issues instead of making a new thing that doesn't work. Other than that, I really had no issues. Was able to mount encrypted volumes with no fuss. I'm now working on the important bits - customizing KDE again and restoring my backups. I did have an odd issue (well, still have actually - it's not resolved) with microcode but I'll create a new thread for that. So, wayland and systemd actually fixed something for me. Who would've thought... Dan