Archives For wayland

Found that your desktop screen recording applications do not launch in Ubuntu 17.10 default Wayland session?

Well, try Green Recorder, the first desktop program to support Wayland display server on GNOME session.

Green Recorder is a GTK+ 3 application written in Python that features:

  • Record audio and video on almost all Linux interfaces.
  • Support mkv, avi, mp4, wmv, gif and nut (only WebM for Wayland)
  • A play button to play last recorded video.
  • Right-click system tray icon to stop recording.
  • Choose the audio input source from list.
  • Run command after recording.

How to Install Green Recorder in Ubuntu 17.10:

The latest Green Recorder 3.0.5 features a lot of small fixes and restrcutered UI. You can install it in Ubuntu 17.10, and Ubuntu 16.04, Ubuntu 14.04, Ubuntu 17.04 via its official PPA.

1. Open terminal either via Ctrl+Alt+T or by searching ‘terminal’ from app launcher. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:fossproject/ppa

Input your password (no visual feedback while typing) when it prompts and hit Enter.

2. Then run commands to check repository packages and install the recorder:

sudo apt-get update

sudo apt-get install green-recorder

Uninstall:

To remove the desktop screen recorder, simply run following command in terminal:

sudo apt-get remove --autoremove green-recorder

And remove the PPA via Software & Updater utility under Other Software tab.

Ubuntu 17.10 uses Wayland in the default session and Xorg for optional. However, many graphical applications need to run as root so far does not launch in Wayland.

You’ll get following similar errors while running graphical applications via root:

  1. For some applications, e.g., Synaptic Package Manager, Grub Customizer, Gparted, and Ubuntu Tweak, they does not launch in Wayland.

    Or you may get following error when trying to launch them via gksu command:

    Failed to run *** as user root. Unable to copy the user’s Xauthorization file.

  2. Starting graphical application via sudo in terminal window will get error:

    No protocol specified. Gtk-WARNING **: Cannot open display: :0

The most straightforward workaround is to use xhost to temporarily allow the root user to access the local user’s X session.

To do so, run command:

xhost si:localuser:root

After running the command, these graphical applications can be launched from app launcher or via sudo, gksu, pkexec commands until you log out.

To make this work automatically at login, search for and launch Startup Applications utility, click the “Add” button to run the command at startup:

  • name: whatever
  • command: xhost si:localuser:root
  • comment: whatever

Wayland PPA

Daily builds of Wayland and Weston are now available in PPA for Ubuntu 14.04, Ubuntu 14.10, and Ubuntu 15.04.

Thanks to Bryce Harrington, a former Canonical developer who continues to be heavily involved in Wayland development, he has created an automatic builds PPA to make it easy to try out the newest Wayland/Weston code on Ubuntu.

To get started, open terminal from the Dash, App launcher, or by pressing Ctrl+Alt+T on keyboard. When it opens, do below steps:

1. To add the PPA, paste below command in terminal and run:

sudo add-apt-repository -y ppa:wayland.admin/daily-builds

2. After that, install the package weston and XWayland via Synaptic Package Manager or by running below commands one by one:

sudo apt-get update

sudo apt-get install weston xwayland

3. Now you should be able to start Weston within X by running command weston, which provides a Terminal along with a basic window manager functionality.

If you want you can create & edit weston.ini file via below command:

gedit ~/.config/weston.ini

Change its appearances by adding some settings like this page. Finally the weston window looks like:

weston-window

4. To running Gnome Shell session on Wayland, run command:

sudo apt-get install gnome-session-wayland

Then log out and select “Gnome on Wayland” in gdm login screen:

gnome_on_wayland

If you’re using the default LightDM display manager, you may have to do :

  1. Install Gnome Shell if don’t have Gnome session:
    sudo apt-get install gnome-shell
  2. If you’ve installed Gnome-Shell but still using LightDM, run command to select gdm:
    sudo dpkg-reconfigure lightdm
  3. Finally restart your computer and you should see the gdm login screen as above picture shows.

wayland 1.3

Wayland is a protocol that specifies the communication between the display server (called Wayland compositor) and its clients. It is intended as a simpler replacement for X.

Wayland and Weston 1.3 has been released a few hours ago. See what’s new in this release:

  • More pixel formats for wl_shm (Tomeu Vizoso). We can now create RGB565 (and many more) shm surfaces and a compositor can indicate which ones it supports.
  • Doc work (Peter Hutterer, Bryce Harrington, Aaron Faanes). Much work on the doc build system from Peter and general wording and grammer improvements all around.
  • Multi resource support (Rob Bradford). Rob added support for dealing with lsits of resources which the weston side multi-resource fix builds on.
  • Support for language bindings (Jason Ekstrand). After a long time and many detours into fixing other parts of Wayland and Weston, Jason finally landed the language binding support. This feature lets you bind a higher level language to libwayland-client/server by providing custom dispatch functions.
  • Release requests for wl_pointer, wl_keyboard and wl_touch (Rob Bradford). We don’t have a way for a client to deregister its interest in receiving input events, we just drop them on the client side when the client destroys the proxy. With the release requests, we now have a way to stop the server from sending them in the first place.
  • Install the wayland.xml protocol defintion (Jason Ekstrand). We now install the core Wayland XML protocol definition in a public location. Language bindings can parse this to generate code or bind dynamically. This also introduces a well known protocol directory where other projects can install protocol files.
  • Very few bug fixes in this release. There was only a couple of actual bug fixes this time around, which again is a sign that core wayland is settling down.

See official announcement.

Download source tarball: weston-1.3.0.tar.xz.

Check out Wayland download page: wayland.freedesktop.org/releases/