【ARM-LInux开发】如何运行wayland
来源:互联网 发布:天津加工中心编程招聘 编辑:程序博客网 时间:2024/06/05 05:18
Running Wayland
原文:https://jan.newmarch.name/Wayland/RunningWayland/
skip table of contents
Show table of contents
Resources
Weston under X
A Wayland compositor is a mixture of a Wayland server, a window manager and a compositor. Weston is a reference implementation of a compositor and normally would be run as a full windowing system, talking directly to the hardware. How to do this is described in the next section.
In order to experiment with Weston in an X environment, Weston can talk to the X server as though it was an X client. This is not the intended use of Wayland, but can be useful. This kind of use will not in general be supported by Wayland compositors. Anyway, to use Weston this way, simply type
weston
from within an X terminal.This will bring up a window under X looking like
WestonIt contains a small menu bar across the top, with a terminal icon and the date. If you were around at the beginning of X, then it would look pretty familiar - and we all got really excited by it! This window is decorated by the X window manager, which would not happen in a standalone environment.Wayland in a standalone environment
If you are running a Linux system in a command line environment, then you can start a Wayland compositor directly, talking to the hardware. For example, to run Weston type the following at the command prompt:
weston-launch
This will set the proper access permissions and run Weston.It is not possible to do an X screen dump of this: the standard X tools such as gnome-screenshot
will try to connect to the X server, and there isn't one running!
Virtual terminals
Linux has had virtual terminals almost from the beginning. These allow you to have multiple login sessions, each basically independent of the others. By default, Linux has seven of these, so you can have upto seven login sessions running. Note that this is not the same as using multiple terminal windows under X: this is a separate mechanism.
You switch between virtual terminals by the key sequence CTL-ALT-F<n> where n is 1-7. If you are running X as in a normal user distro, then that is usually running in virtual terminal 7. So if you press the keys CTL-ALT-F4 you will get a login prompt for virtual terminal 4. When you want to return to your GUI environment, just press CTL-ALT-F7.
Virtual terminals and X
This is easy: when you switch to another virtual terminal, the X server releases control of the hardware. That means you can do whatever you want, including starting up another X session!
Running a Wayland compositor in a virtual terminal
Switch to a virtual terminal. Login, and at the command prompt, start a compositor.
Many distros such as Ubuntu include the proof-of-concept compositor weston
in their repositories. Download and install it by, say,
sudo apt-get install weston
under a Debian-derived system such as Ubuntu. Then in a virtual terminal, runweston-launch
What runs under Wayland?
If it's an application relying only on X, then it won't run. This includes applications with a long history in X: xterm
, xclock
and xedit
, for example. They just complain that they can't find an X server and give up.
Many GUI applications are now built using toolkits such as Gtk or KDE. Many of these toolkits are progressively including support for Wayland, and many of their applications run okay. This includes for example eog
. But other applications using Gtk don't, including Firefox, Chromium and Gimp. This is at June, 2014. The situation can change rapidly.
XWayland
The X server can be modified to talk to Wayland instead of to the hardware. This has been done as the XWayland project. At present, Weston has been modified to listen on the X ports 6000+. It starts an X server as a Weston client when an X client starts.
To run Weston with XWayland, in a non-X environment, run
weston-launch -- --modules=xwayland.so
[doesn't work for me. sets DISPLAY to :1 but xclock can't open it]The page XWayland has details.
- 【ARM-LInux开发】如何运行wayland
- 如何在ARM开发板的嵌入式linux系统上运行的QT程序
- ARM开发板如何安装Linux系统
- [ARM-Linux开发] 嵌入式 linux如何生成ko文件
- 建立ARM+Linux运行环境
- 建立ARM+Linux运行环境
- QEMU 运行ARM Linux Kernel
- ARM+LINUX如何入门
- 如何学习arm linux
- ARM-Linux驱动开发
- ARM-linux开发工具
- ARM-Linux程序开发
- arm-linux 开发步骤
- ARM linux 时区开发
- 【ARM-Linux开发】【Qt开发】Qt Creator自定义编译运行步骤
- linux-arm笔记1:ubuntu 下如何安装、破解SecureCRT 软件,连接arm开发板
- Linux应用程序开发(二)---让PHP5支持java在arm linux运行
- 【引用】Linux应用程序开发(二)---让PHP5支持java在arm linux运行
- centos 6.5安装MySQL
- 补题清单
- 虚拟机里面的centos不能上网,ping不通网关或者外网地址b
- java学习 基础变量
- java下载压缩包简化代码
- 【ARM-LInux开发】如何运行wayland
- UILabel显示固定行数的问题
- Mysql+mybatis 反转生成实体类和Mapper文件以及Mapper.xml文件
- java 中整型与字符型的相互转换
- java interrupt()方法
- linux search.
- linux基础命令
- week3_day1_SQL SERVER
- 文章标题