WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Weston for piCore  (Read 3609 times)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Weston for piCore
« on: October 23, 2019, 03:10:29 AM »
Note that the weston wayland compositor is now available for piCore 9.x armv7 - be sure to read the graphics-KERNEL and weston info files.

There's not much that can be done with weston in piCore at the moment as gtk3 does not have the wayland backend (yet) and weston does not have the freerdp plugin  :P

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Weston for piCore
« Reply #1 on: November 18, 2019, 12:59:14 AM »
wayland backend added to gtk3 in 9.x armv7 repo and tested with weston compositor

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Weston for piCore
« Reply #2 on: November 19, 2019, 10:42:41 PM »
freerdp backend added to weston

A remote weston desktop can be opened as follows:

server piCore 9.x armv7:
Code: [Select]
[create certificates]
$ winpr-makecert -rdp -path /home/tc
[or]
$ openssl genrsa -out box.key 2048
$ openssl req -new -key box.key -out box.csr
$ openssl x509 -req -days 365 -signkey box.key -in box.csr -out box.crt

[start weston server]
$ XDG_RUNTIME_DIR=/run/user/1001 weston --backend=rdp-backend.so --rdp-tls-cert=box.crt --rdp-tls-key=box.key --width=1024 --height=768 --socket=wayland-1

client CorePure64 10.x:
Code: [Select]
$ xfreerdp /v:box /sec:tls /size:1024x768 /v:192.168.1.109
Unfortunately there are problems of multiple key press echoes  :(
« Last Edit: November 19, 2019, 11:49:16 PM by Juanito »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Weston for piCore
« Reply #3 on: November 20, 2019, 12:52:51 AM »
Creating a ~/.config/weston.ini on piCore such that:
Code: [Select]
$ cat weston.ini
[keyboard]
repeat-delay=1000

..fixes the problem  :)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Weston for piCore
« Reply #4 on: December 08, 2019, 10:48:57 PM »
gedit, epiphany and nautilus added to have some gui tools available in the piCore weston compositor

The following weston.ini can be copied to ~/.config for launch icons:
Code: [Select]
[launcher]
icon=/usr/local/share/weston/icon_terminal.png
path=/usr/local/bin/weston-terminal

[launcher]
icon=/usr/local/share/icons/Adwaita/22x22/apps/accessories-text-editor.png
path=/usr/local/bin/gedit

[launcher]
icon=/usr/local/share/icons/Adwaita/22x22/apps/system-file-manager.png
path=/usr/local/bin/nautilus

[launcher]
icon=/usr/local/share/icons/Adwaita/22x22/apps/web-browser.png
path=/usr/local/bin/epiphany

[shell]
num-workspaces=4

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Weston for piCore
« Reply #5 on: May 19, 2020, 11:57:59 PM »
weston and freerdp tested over a remote connection in piCore-11.x using the instructions above.

Although I cannot view a video in epiphany locally on an RPi4 (presumably due to being restricted to fkms, an RPi3 is OK with kms) - I can view one remotely with an RPi4 as the server.

eog and totem added to the repos to view images/videos in weston.

For the moment totem doesn't want to play videos, but they can be viewed in weston with:
Code: [Select]
$ gst-launch-1.0 playbin uri=file:///mnt/mmcblk0p2/media/video/video_test.mp4
or
$ ffplay /mnt/mmcblk0p2/media/video/video_test.mp4
« Last Edit: May 20, 2020, 12:03:02 AM by Juanito »