LoginSignup
0
1

`raspberry pi5`上で`xdotool`が効かなかった時の解決方法備忘メモ

Posted at

raspberry pi5上でxdotoolが効かなかった時の解決方法備忘メモです

準備

  • raspberry pi5
  • HDMI(micro) - HDMIケーブル 1本
  • USBキーボード、USBマウス 1個づつ
  • 電源(USB-typeC接続) 1個
  • 何かしらのディスプレイ

OS imageの更新

以下を参考に、rpi-imagerからOSイメージを更新する

https://zenn.dev/karaage0703/articles/8fe578dba4857a

sudo apt install -y rpi-imager

xdotoolが効かない...

xdotoolが効かない...と思って色々調べていたところ、
Display設定がデフォルトではWaylandになっているようなので、X11に切替える。
具体的には以下から設定する。

sudo raspi-config

Advanced Options --> Wayland --> X11 を選択する。
設定時に再起動が求められるので再起動すればOK。再起動後にxdotoolが効くようになりました。

Re: Using python script to run xdotool command
Quote
xdotool does not work with the now default Wayland.
You can use sudo raspi-config (advanced menu) to switch back to X11.

参考

0
1
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
1