N'ịbụ onye chọtara onwe m dị ka onye nwe mbadamba nkume dị otú ahụ nke nwere ihe mmetụta na-adịghị arụ ọrụ (ọkpara m gbalịrị ike ya), echere m ogologo oge banyere ebe m ga-emegharị ya. Googled, Googled na Googled (
Ị ga - achọ:
Linux arụnyere:
- x11 nc (Ezigbo ụdị tigervnc na ndị ọzọ anaghị amasị m)
- ADB site na ngwa ngwa android
Mbadamba ụrọ/smart nwere ọnọdụ nbibi agbanyere wee tọọ ya:
- AndroidNVC (Enwere m nke a, n'ihi na enweghị mgbasa ozi)
- Ụdị ihe mgbochi na-ekpuchi ihuenyo (enweghị m ike ịhụ nke na-enweghị mgbasa ozi)
- Ihe ọ bụla autoloader (na-agba ọsọ VNC na mgbochi) bụ nhọrọ (karịa na nke dị n'okpuru).
ok, ka anyi bido.
1. Nweta Modeline maka xorg.conf
$ cvt 1024 768 25 # Можно и gtf, но он не всегда дает корректный modeline.
2. Na-edezi
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
Anyị na-amalitegharị X-sys wee lelee site na arandr. Hazie ebe na nghazi. Ọ ga-adị ka nke a:
Anyị na-echekwa ya na faịlụ - ọ ga-abara anyị uru.
3. Mepụta faịlụ maka ibunye akpaaka na WM/DE (Enwere m 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
Ka anyị lelee:
$ xrandr |grep VIRTUAL1
VIRTUAL1 connected 1024x768+1600+0 (normal left inverted right x axis y axis) 0mm x 0mm
Ebe ọ bụ na enweghị akwụkwọ ndekọ autostart na IceWM, mana enwere faịlụ ~/.icewm/startup (nke a ga-arụ ọrụ), tinye ihe ndị a na ya:
sh -c /path/to/planshet.sh
4. Gbanyụọ ihe nleba anya:
xset s off
xset s noblank
xset -dpms
Ugbu a na-abịa akụkụ fun! Etu ị ga-esi nweta nhazi “mkpọtụ aka” maka ngwaọrụ na-enweghị “usoro nnwale na njehie” site na ịta ahụhụ keyboard na njikwa?!
N'ihi ihe dị otú ahụ ka m kpụrụ akpụ
6. Ka anyị tinye ihe a niile na planhet.sh
Ederede zuru ezu
#!/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 предварительно прописав адрес и порт
Anyị ga-emekwa ya
chmod +x /path/to/planshet.sh
Nke ahụ bụ ihe niile, n'ezie. Malitegharịa ihe nkesa X wee nweta multiscreen.
Enwere m conky na-agba ọsọ na "obere" m.
Ejikọnyere nseta ihuenyo nke ihu abụọ.
M na-atụbakwa akwụkwọ data na ya mgbe m na-emepụta ihe.
isi: www.habr.com