Skip to content
Snippets Groups Projects
Peter Hutterer's avatar
Peter Hutterer authored
We effectively already required that anyway:

WARNING: Project specifies a minimum meson_version '>= 0.47' but
  uses features which were added in newer versions:
 * 0.49.0: {'/ with string arguments'}

And once we use 0.56 we can use dependency.get_variable:
WARNING: Project targets '>= 0.56' but uses feature deprecated
  since '0.56.0': dependency.get_pkgconfig_variable. use dependency.get_variable(pkgconfig : ...) instead

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
c6a4b50d
History

wayland-info

wayland-info is a utility for displaying information about the Wayland protocols supported by a Wayland compositor.

It can be used to check which Wayland protocols and versions are advertised by the Wayland compositor.

wayland-info also provides additional information for a subset of Wayland protocols it knows about, namely Linux DMABUF, presentation time, tablet and XDG output protocols.

An example output is:

$ wayland-info
interface: 'wl_drm',                                     version:  2, name:  1
interface: 'wl_compositor',                              version:  4, name:  2
interface: 'wl_shm',                                     version:  1, name:  3
	formats: XRGB8888 ARGB8888
interface: 'wl_output',                                  version:  2, name:  4
	x: 0, y: 0, scale: 1,
	physical_width: 310 mm, physical_height: 170 mm,
	make: 'AUO', model: '0x123d',
	subpixel_orientation: unknown, output_transform: normal,
	mode:
		width: 1920 px, height: 1080 px, refresh: 60.049 Hz,
		flags: current preferred
[...]

wayland-info uses the Wayland protocol only and only shows features that the compositor implements via Wayland protocols.

Building

wayland-info is built using Meson and depends on Wayland and wayland-protocols.

$ git clone https://gitlab.freedesktop.org/wayland/wayland-utils.git
$ cd wayland-utils
$ meson build/ --prefix=...
$ ninja -C build/ install
$ cd ..

Running

wayland-info does not accept any command line option.

$ wayland-info

Reporting issues and contributing

wayland-info is hosted on freedesktop.org's GitLab instance. It uses the same contributing guidelines as the Wayland project, please refer to Wayland's contributing document for more information.

Credit

The code base of wayland-info is identical to weston-info and therefore all credits for wayland-info go to the authors and contributors of weston-info.

Because weston-info is a generally useful tool, even outside of weston, and gives interesting information on any Wayland compositor, this is basically a standalone version of weston-info as found in weston repository.