Talis mediocris tabellae cum sensore non operante (filius meus maximus natu optimus meus me expertus), diu cogitabam ubinam accommodarem. Googled, Googled et Googled (
Vos mos postulo:
Linux cum installed:
- x11vnc (sicut omnia tigrvnc et cetera ingenue non placet)
- Adb ex Android instrumenta ornamentum
Tablet/smers with debugging mode enabled and set to:
- AndroidNVC Hoc unum habeo, quia nullae sunt tabulae)
- Quoddam genus obumbrationis obumbrationis tentorium (uno sine vendo invenire non potui)
- Quilibet autoloader (currere VNC et obstructor) libitum est (magis in eo infra).
ok, let's start.
1. Exemplar Get pro xorg.conf
$ cvt 1024 768 25 # Можно и gtf, но он не всегда дает корректный modeline.
2. Edit
xorg.conf
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
Nos sileo X-sys et per arandr deprime. Eriges locum et ordinem. Videre debet aliquid simile hoc:
Hanc limam servamus - nobis usui erit.
3. Fasciculum crea in autoloading in WM/DE (I have planshet.sh)
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
Sit scriptor reprehendo:
$ xrandr |grep VIRTUAL1
VIRTUAL1 connected 1024x768+1600+0 (normal left inverted right x axis y axis) 0mm x 0mm
Cum in IceWM directorium autostart nullum est, sed fasciculus ~/.icewm/startup (quod exsecutabile esse debet), sequentia adde ei:
sh -c /path/to/planshet.sh
4. inactivare monitor vacua:
xset s off
xset s noblank
xset -dpms
Nunc iocum venit pars! Quomodo "ICTUS" coordinatas pro fabrica sine "modus iudicii et erroris" torquendo claviaturae in consolatorio?
Hujus rei gratia sculpta
6. Addamus haec omnia ad planshet.sh
plena version
#!/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 предварительно прописав адрес и порт
Et hoc faciam
chmod +x /path/to/planshet.sh
Ita est. Reboot X servo et multiscreen.
Conky currit in unum meum "parvum".
A screenshot of the double screen adicitur.
Ego quoque datas cartas in illum iacio cum aliquid effingo.
Source: www.habr.com