Open source solution to use android devices as external display on linux.
- x11 (x11vnc) (xorg only for now, sorry wayland users)
- adb
- [optional] arandr, needed to be able to move the display around
- Start the SSH server on the android client.
In termux, run:sshd
. - Be sure to be able to successfully connect to the it from the linux machine:
ssh {CLIENT_IP} -p 8022
If not, setup a secure authentication method (instructions)
- Connect the android client to the linux machine through
adb
(guide) - [Optional] You can even connect them through adb wirelessly:
adb connect {CLIENT_IP}
- Be sure that the android device is unlocked, then execute NXD:
./nxd
- No virtual display is found:
xrandr: cannot find output "VIRTUAL1"
The solution would be to create this file/usr/share/X11/xorg.conf.d/20-intel.conf
with the following content:
Section "Device"
Identifier "intelgpu0"
Driver "intel"
Option "VirtualHeads" "2"
EndSection
and the logout/re-login.