I te mea ko ahau tonu te rangatira o taua papaa me te pukoro kore mahi (i whakamatau taku tama matamua i tana pai), ka whakaaro ahau mo te wa roa ki te waahi hei urutau. Googled, Googled me Googled (
Ko taku tikanga kei raro i te tapahi.
Ka hiahia koe:
Linux me te whakauru:
- x11vnc (Kaore au e pai ki nga momo tigervnc me etahi atu)
- adb mai i te kete taputapu phi
Papa/atamai me te aratau patuiro kua whakahohea ka tautuhia ki:
- AndroidNVC (Kei a au tenei, na te mea karekau he panui)
- Ko etahi momo parapara mata (kare i kitea e au tetahi kaore he panui)
- Ko nga kaitautauta katoa (whakahaere i te VNC me te paraka) he mea whiriwhiri (he nui ake i tera i raro nei).
pai, kia timata tatou.
1. Tikina Tauira mo xorg.conf
$ cvt 1024 768 25 # Можно и gtf, но он не всегда дает корректный modeline.
2. Whakatikatika
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
Ka timata ano matou i te X-sys ka tirohia ma te arandr. Whakaritehia te waahi me te whakatakotoranga. Me penei te ahua:
Ka tiakina e matou ki tetahi konae - ka whai hua ki a maatau.
3. Waihangatia he konae mo te uta aunoa ki WM/DE (kei a au te 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
Me taki tatou:
$ xrandr |grep VIRTUAL1
VIRTUAL1 connected 1024x768+1600+0 (normal left inverted right x axis y axis) 0mm x 0mm
I te mea karekau he whaiaronga autostart i IceWM, engari he konae ~/.icewm/startup (me taea te whakahaere), taapirihia nga mea e whai ake nei:
sh -c /path/to/planshet.sh
4. Monokia te whakaweti i te aroturuki:
xset s off
xset s noblank
xset -dpms
Inaianei kua tae mai te waahanga ngahau! Me pehea te tiki i nga tohu "tap" mo tetahi taputapu kaore he "whakamatautau me te hapa" ma te whakamamae i te papapātuhi i roto i te papatohu?!
Mo te ahua o taua mea i whakairo ahau
6. Me taapiri enei katoa ki planshet.sh
Putanga katoa
#!/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 предварительно прописав адрес и порт
A ka mahia e matou
chmod +x /path/to/planshet.sh
Ko te katoa, mau. Whakahoutia te tūmau X ka whiwhi mata maha.
He conky ahau e rere ana i runga i taku "iti".
He whakaahua o te mata rua kua piri.
Ka maka ano e au nga papaarangi ki runga ina whakatauira au i tetahi mea.
Source: will.com