Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] any experience with wayland?
Date: Sun, 29 Mar 2020 00:24:43
Message-Id: O2LZOI5C.3FRBAHWG.XVNBGQ2M@NJTYC2YA.VKLSDQ4W.34ZQNWKT
In Reply to: Re: [gentoo-user] any experience with wayland? by Jack
1 Top posting because the previous parts of the thread are not really
2 relevant, except perhaps for context of how I got here. Short version
3 is I initially had trouble launching plasma under wayland, but
4 eventually figured out (got a clue) how to do so without invoking
5 startx. At the time, I only did so to test a few specific issues with
6 one program. Recently, I decided to give wayland another try. In
7 general, it seems pretty good (i.e., for me few noticeable differences
8 from X) but I do have a few issues I'd love to resolve.
9
10 First, I have two monitors, and wayland persists in starting with them
11 "backwards." I use systemsettings5 display configuration and drag them
12 to the right position, but I have to do so every time I start a new
13 session. (At some point, I'll just switch the cables to the two
14 monitors, but I would think this setting would hold across sessions.
15 Am I missing something, or is there a bug somewhere that it uses the
16 default every session?
17
18 Next, I've had a few cases where I come back to my computer in the
19 morning, and find it sitting at the command line. I haven't noticed
20 anything in any log files that looks suspicious to me. I'm open to any
21 suggestions on how to track down the cause if it happens again - but
22 it's been over a week.
23
24 My current issue is that VirtualBox is segfaulting on startup, and I
25 want to try it in X to see if that's the issue. (In searching for that
26 problem, I found a virtualbox bug that seemed to imply VB will
27 eventually work with wayland, but not yet.) The problem I'm having is
28 that if I start Xorg, it does start, but with no background and no
29 taskbar. Gkrellm is running, presumably started as it was running when
30 I exited the last session, xwin_wayland is running, as is plasma
31 (didn't write down exactlly which binary). I can run konsole with
32 "konsole --display :0.0" from a different virtual terminal, and can
33 launch programs from there (once I "export DISPLAY=:0.0) and at one
34 point even got a taskbar to start (plasmashell, perhaps?). However,
35 it's clear stuff is still missing, as invoking "leave" either from the
36 start menu or right clicking on the desktop has no effect, and the best
37 way I've found to stop the session is to issue "killall xinit" from the
38 other virtual terminal.
39
40 I start wayland with an alias for ". /home/jack/.winitrc 1>xwlog
41 2>xwerr" and .winitrc sets some ENV vars, and ends with "dbus-launch
42 --exit-with-session startplasma-wayland". I start X with "startx
43 1>xxlog 2>xxerr" and the last line of .xinitrc is "exec dbus-launch
44 --sh-syntax --exit-with-session startplasma-x11".
45
46 Thanks for any pointers of where I need to dig deeper or what config
47 file I've likely got messed up.
48
49 Jack
50
51 ---------------------------------------------------
52 On 2020.01.09 12:57, Jack wrote:
53 > Thanks. I think my underlying problem was that all the commands to
54 > launch wayland (variants on "dbus-launch startplasma-wayland") were
55 > all very close to the last line of .xinitrc when launching X, so I
56 > just made changes there, but stupidly didn't recognize that I needed
57 > to issue that line directly, not indirectly through startx. Thanks
58 > for the necessary clue. I obviously still have tuning to do, but I
59 > do have a functioning desktop. (I also don't use any DM, and am
60 > happy I was able to get this working without needing to add that
61 > layer.)
62 >
63 >
64 > On 2020.01.09 12:40, Franz Fellner wrote:
65 >> Look here for some hints:
66 >> https://github.com/elogind/elogind/issues/61
67 >> Not everything should apply as you are using Gentoo, but I think
68 >> there
69 >> might be a solution for you (pam configuration might be a first
70 >> step).
71 >> Unfortunately I can't help with elogind as I'm using systemd and
72 >> there I
73 >> have no issues with starting a wayland desktop.
74 >>
75 >> Wayland won't work ON TOP OF X11. You can start X applications within
76 >> Wayland using XWayland (will be done automatically).
77 >> But trying to start wayland through startx will fail.
78 >>
79 >> Am Do., 9. Jan. 2020 um 19:31 Uhr schrieb Mick
80 >> <michaelkintzios@×××××.com>:
81 >>
82 >> > On Thursday, 9 January 2020 17:19:18 GMT Jack wrote:
83 >> > > On 2020.01.09 11:38, Franz Fellner wrote:
84 >> > > > Am Do., 9. Jan. 2020 um 18:35 Uhr schrieb Jack <
85 >> > > >
86 >> > > > ostroffjh@×××××××××××××××××.net>:
87 >> > > > > Based on various wiki and forum posts,
88 >> > > > > I'm using "dbus-run-session startplasma-wayland" as the
89 >> last line
90 >> > > >
91 >> > > > in
92 >> > > >
93 >> > > > > .xinitrc, and launching with startx.
94 >> > > >
95 >> > > > I stopped reading here.
96 >> > > > Please think about that again, especially what wayland was
97 >> meant to
98 >> > > > REPLACE!
99 >> > >
100 >> > > So if you think that's wrong/outdated/inappropriate - please
101 >> suggest an
102 >> > > alternative.
103 >> > >
104 >> > > I know the ultimate goal is for Wayland to replace xorg-server,
105 >> but
106 >> > > everything I have read so far indicates that currently it is
107 >> really
108 >> > > just the compositor, and in the case of KDE, that compositing is
109 >> > > incorporated into kwin (launched as kwin_wayland instead of
110 >> kwin_x11.)
111 >> > > I have seen no instructions anywhere on how to launch wayland
112 >> totally
113 >> > > independent of xorg. As I said - I'll be happy to be pointed to
114 >> any
115 >> > > docs I seem to have missed. I do agree that most of the
116 >> instructions
117 >> > > out there seem to be somewhat outdated, but I would expect to
118 >> find
119 >> > > SOMETHING up to date.
120 >> >
121 >> > Perhaps as far back as 6 months ago I was able to run Plasma and
122 >> > Enlightenment
123 >> > desktops in Wayland, starting them from sddm DM. A couple of
124 >> months ago
125 >> > Wayland broke for me. It tries to start, then drops me back into
126 >> the
127 >> > login
128 >> > screen. I haven't bothered to troubleshoot it, because the
129 >> mechanism of
130 >> > providing me with a GUIfied desktop is less of an interest to me
131 >> than
132 >> > being
133 >> > able to get a desktop in the first place.
134 >> > --
135 >> > Regards,
136 >> >
137 >> > Mick
138 >>
139 >
140 >