Wayland and weston on Porteus instead of xserver

Post here if you are a new Porteus member and you're looking for some help.
User avatar
sabir
White ninja
White ninja
Posts: 12
Joined: 14 May 2014, 19:54
Distribution: Porteus LXDE 32
Location: Russia

Wayland and weston on Porteus instead of xserver

Post#1 by sabir » 24 May 2014, 16:02

Hi all!
Weston perfectly works on Porteus (tested on LXDE 32 bit), if you use GUI mode.

Image

But in text mode it doesn't work :(
Of course I did this:

Code: Select all

root@porteus: groupadd weston-launch
root@porteus: usermod -a -G weston-launch guest
root@porteus: chown root /usr/bin/weston-launch
root@porteus: chmod +s /usr/bin/weston-launch
and this:

Code: Select all

guest@porteus:~$ mkdir /tmp/wl0
guest@porteus:~$ chmod 0700 /tmp/wl0
guest@porteus:~$ export XDG_RUNTIME_DIR=/tmp/wl0
guest@porteus:~$ weston-launch
Weston prints several error messages in one string (developers forgot about "\n" :crazy: )
How can I fix it? I mean I'd like to use wayland instead of xserver, just for fun of course :)

User avatar
sabir
White ninja
White ninja
Posts: 12
Joined: 14 May 2014, 19:54
Distribution: Porteus LXDE 32
Location: Russia

Re: Wayland and weston on Porteus instead of xserver

Post#2 by sabir » 31 May 2014, 08:44

sabir wrote:But in text mode it doesn't work :(
It works:
root@porteus weston --use-pixman --modules=xwayland.so --log=/home/guest/weston.log

Code: Select all

Date: 2014-05-30 Local time zone must be set--see zic manual page
[12:19:54.988] weston 1.5.90
               http://wayland.freedesktop.org/
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.5.90
               Build:  
[12:19:54.988] OS: Linux, 3.13.6-porteus, #1 SMP PREEMPT Fri Mar 7 07:25:21 Local time zone must be set--s, i686
[12:19:54.988] Starting with no config file.
[12:19:54.988] Loading module '/usr/lib/weston/drm-backend.so'
[12:19:54.991] initializing drm backend
[12:19:54.991] logind: not running in a systemd session
[12:19:54.991] logind: cannot setup systemd-logind helper (-2), using legacy fallback
[12:19:54.991] using /dev/dri/card0
[12:19:54.992] launching '/usr/lib/weston/weston-keyboard'
[12:19:55.002] input device Power Button, /dev/input/event2 is a keyboard
[12:19:55.002] input device Video Bus, /dev/input/event8 is a keyboard
[12:19:55.007] not using input device '/dev/input/event1'.
[12:19:55.007] input device Sleep Button, /dev/input/event0 is a keyboard
[12:19:55.007] input device USB2.0 1.3M UVC WebCam , /dev/input/event10 is a keyboard
[12:19:55.012] not using input device '/dev/input/event12'.
[12:19:55.017] not using input device '/dev/input/event11'.
[12:19:55.017] input device Microsoft  Compact Optical Mouse 500, /dev/input/event5 is a pointer caps = relative-motion button
[12:19:55.017] input device Microsoft Comfort Curve Keyboard 3000, /dev/input/event6 is a keyboard
[12:19:55.018] input device Microsoft Comfort Curve Keyboard 3000, /dev/input/event7 is a keyboard
[12:19:55.018] input device Asus Laptop extra buttons, /dev/input/event9 is a keyboard
[12:19:55.018] input device AT Translated Set 2 keyboard, /dev/input/event3 is a keyboard
[12:19:55.019] input device SynPS/2 Synaptics TouchPad, /dev/input/event4 is a touchpad
[12:19:55.019] input device SynPS/2 Synaptics TouchPad, /dev/input/event4 is a pointer caps = absolute-motion button
[12:19:55.034] Initialized backlight, device /sys/class/backlight/acpi_video0
[12:19:55.034] EDID data 'CMO', '', ''
[12:19:55.034] Output LVDS1, (connector 17, crtc 12)
               mode 1280x800@59.9, preferred, current
               mode 1280x720@59.9
               mode 1152x768@59.8
               mode 1024x768@59.9
               mode 800x600@59.9
               mode 848x480@59.7
               mode 720x480@59.7
               mode 640x480@59.4
[12:19:55.049] Loading module '/usr/lib/weston/desktop-shell.so'
[12:19:55.049] Loading module '/usr/lib/weston/xwayland.so'
[12:19:55.064] xserver listening on display :0
[12:19:55.064] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
[12:19:55.071] launching '/usr/lib/weston/weston-desktop-shell'
[12:19:58.368] already in the native mode
[12:20:19.245] forked X server, pid 3338
[12:20:19.248] xserver crashing too fast: 256
sabir wrote:How can I fix it? I mean I'd like to use wayland instead of xserver, just for fun of course :)
xwayland.so starts:

Code: Select all

[12:19:55.064] xserver listening on display :0
[12:20:19.245] forked X server, pid 3338
but still doesn't work. I mean X apps doesn't start:

Code: Select all

[12:20:19.248] xserver crashing too fast: 256
I'll try to fix it, may be, just for fun :)

Kriss
Samurai
Samurai
Posts: 135
Joined: 06 Jul 2011, 07:07
Location: Russia

Re: Wayland and weston on Porteus instead of xserver

Post#3 by Kriss » 28 Jul 2014, 10:20

Can you please tell how you achieved this? I'd like to try this for x86_64
I've tried to compile v1.5 from sources and got error that glesv2 is not installed while trying to compile weston.

I'm not sure I understand the part about "x apps", but isn't x applications are handled through compatibility layer "xwayland"? Or am I missed something?
Suggestions/corrections/additions are always welcome.

Post Reply