I'm trying to send keystrokes from my android to my Retropie using ssh. After a lot of searching I found that I have to use ssh with the
-X flag which was already a hassle as most apps don't support flags. I fond one now (VX ConnectBot) and when I echo
$DISPLAY I get
localhost:10 so x11 forwarding seems properly enabled. But when I try to do anything with xdotool like
DISPLAY=':0' xdotool ... I always get the error
Error: Can't open display: (null).
Any ideas why? Or any other ideas on how I can control the keyboard from my android?