On 8/20/24 19:27, Masaru Nomiya wrote:
Hello,

In the Message; 

  Subject    : Re: Need help with a laptop that will only run Plasma/Wayland
  Message-ID : <ad85133e-c59c-4d07-9207-8c076c83dc98@marcchamberlin.com>
  Date & Time: Tue, 20 Aug 2024 00:50:27 -0700

[MC] == Marc Chamberlin via openSUSE Users <users@lists.opensuse.org> has written:

[...]
MN> > Anyway, this is all I can think of;
 
MN> >  export DISPLAY=$(ip address | grep “4” | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")'):0

MC>  This incantation doesn't seem to work, and produces a null string. I tried to
MC>  break this command down and execute it in partial commands broken at each
MC>  pipe. I found one error, the quotes around the 4 are wrong, I think. So I
MC>  changed it and tried this partial command -

marc@marcslaptop:~> ip address | grep "4"
MC>     link/ether 38:d5:47:31:54:0f brd ff:ff:ff:ff:ff:ff
MC>     inet 192.168.10.10/24brd 192.168.10.255 scope global eth0
MC>     link/ether e4:a7:a0:46:83:e0 brd ff:ff:ff:ff:ff:ff
[..]
marc@marcslaptop:~> ip address | grep "net" | head -1 | awk '{print $NF}'
MC>  lo

MC>  Now I am outside of my comfort zone, I am not a user of awk so this is out of my
MC>  league! Taking this to the last step produces a null string -


marc@marcslaptop:~> ip address | grep "net" | head -1 | awk '{print $NF}' | awk
MC>  'sub(/\r$/,"")'
MC>  marc@marcslaptop:~>

I'm Tumbleweed, but like this;

  $ export DISPLAY=$(ip address | grep “4” | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")'):0

  $ echo $DISPLAY
  :0
OK, same here -
marc@marcslaptop:~> export DISPLAY=$(ip address | grep “4” | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")'):0
marc@marcslaptop:~> echo $DISPLAY
:0


  $ export DISPLAY=
  $ echo $DISPLAY

then,

  $ export DISPLAY=$(ip address | grep “net” | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")'):0

  $ echo $DISPALY
  :0
  
Ditto -
marc@marcslaptop:~> export DISPLAY=$(ip address | grep “net” | head -1 | awk '{print $NF}' | awk 'sub(/\r$/,"")'):0
marc@marcslaptop:~> echo $DISPLAY
:0


I think the problem is around the X server?

What the result of;

     1. $ ps -ef | grep Xorg 
marc@marcslaptop:~> ps -ef | grep Xorg  
marc     23325 29033  0 21:59 pts/2    00:00:00 grep --color=auto Xorg

Do you expect a process to be running with Xorg as part of it's name? None of my other systems, either 15.4 or 15.5 have such a process.

and

     2. $ ls -l /tmp/.X11-unix
marc@marcslaptop:~> ls -l /tmp/.X11-unix
total 0
srwxrwxrwx 1 root root  0 Aug 19 09:28 X0
srwxr-xr-x 1 marc users 0 Aug 19 09:28 X1



Test 2 might return nil though....


No, Test 2 did return something, but I don't grok what it means...

Thanks so much for staying with me and trying to help, I really do appreciate it!   Marc...