$ cvt 1024 768 25 # gtf, modeline.
Section "ServerLayout" Identifier "Xorg Configured" Screen 0 "Monitor" 0 0 Screen 2 "Screen2" rightof "Screen0" # " VNC" Option "Xinerama" "1" EndSection #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # , #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #Dummy Section "Device" Identifier "Device2" Driver "dummy" VideoRam 8000 EndSection #Dummy Section "Monitor" Identifier "Monitor2" Modeline "1024x768@25" 23.77 1024 1056 1144 1176 768 785 789 807 # . . 1 EndSection #Dummy Section "Screen" Identifier "Screen2" Device "Device2" Monitor "Monitor2" DefaultDepth 24 SubSection "Display" # Modes "1024x768" Virtual 1024 748 EndSubSection EndSection
x11vnc -rfbport 5900 -display :0 -dontdisconnect -noxfixes -xdamage -shared -forever -clip 1024x768+1600+0 -scale 1024x768 -bg -cursor X -o /home/$USER/x11vnc.log -repeat xrandr --addmode VIRTUAL1 1024x768 # xrandr --output VIRTUAL1 --mode 1024x768 # xrandr --output VIRTUAL2 --off --output HDMI1 --off --output VIRTUAL1 --mode 1024x768 --pos 1602x0 --rotate normal --output DP1 --off --output VGA1 --mode 1600x900 --pos 0x0 --rotate normal # arandr
$ xrandr |grep VIRTUAL1 VIRTUAL1 connected 1024x768+1600+0 (normal left inverted right x axis y axis) 0mm x 0mm
sh -c /path/to/planshet.sh
xset s off xset s noblank xset -dpms
#!/bin/bash x11vnc -rfbport 5900 -display :0 -dontdisconnect -noxfixes -xdamage -shared -forever -clip 1024x768+1600+0 -scale 1024x768 -bg -cursor X -o /home/$USER/x11vnc.log -repeat xrandr --addmode VIRTUAL1 1024x768 # xrandr --output VIRTUAL1 --mode 1024x768 # xrandr --output VIRTUAL2 --off --output HDMI1 --off --output VIRTUAL1 --mode 1024x768 --pos 1602x0 --rotate normal --output DP1 --off --output VGA1 --mode 1600x900 --pos 0x0 --rotate normal # arandr xset s off xset s noblank xset -dpms adb tcpip 5555 adb connect 192.168.0.14:5555 sudo adb devices adb shell input tap 1000 20 # "" ( , ) - 3 adb shell input tap 392 138 # AndroidVNC adb shell input tap 20 65 # VNC
chmod +x /path/to/planshet.sh
Source: https://habr.com/ru/post/445294/
All Articles