LoginSignup
0
0

More than 5 years have passed since last update.

weston(wayland) の screenshot の取り方

Posted at

はじめに

Tizen IVI 3.0 以降は X11 を捨てて wayland 一本になりました。
wayland のリファレンス実装 weston でのスクリーンショットを取る方法の情報が少ないのでメモります。

weston(wayland) の screenshot の取り方

元ネタは https://bugs.tizen.org/jira/browse/TIVI-44

weston上で Win + s を入力すると png のスクリーンショットが /proc/"weston の PID"/cwd/wayland-screenshot.png と生成されます。

入力したコマンドは以下の通り。

(Win + s を入力)
root:~> ps -ef|grep weston
root       178   170  0  8月07 ?      00:00:00 /usr/bin/weston-launch -- -i0
app        191   178  0  8月07 tty2   00:00:00 /usr/bin/weston -i0                  <- weston の pid は 191
app        211   191  0  8月07 tty2   00:00:00 /usr/libexec/weston-keyboard
app        215   191  0  8月07 tty2   00:00:00 /usr/libexec/weston-desktop-shell
root       350   283  0 00:42 pts/0    00:00:00 grep weston
root:~> scp /proc/191/cwd/wayland-screenshot.png $USER@$SERVER:~/ <- png ファイルを scp 経由で送信する。

とれたスクリーンショットは以下の通り。
wayland-screenshot.png

おわりに

wayland になって X11 で使えてた手法が使えなくなってちょっと不便ですね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0