Tar éis dom féin a bheith ina úinéir ar mheán-táibléad den sórt sin le braiteoir neamh-oibre (rinne mo mhac is sine a dhícheall), smaoinigh mé ar feadh i bhfad faoin áit ar cheart é a oiriúnú. Googled, Googled agus Googled (
Tá mo mhodh faoi bhun an ghearrtha.
Beidh ort:
Linux le suiteáil:
- x11vnc (Go fírinneach ní maith liom gach sórt tigervnc agus eile)
- Adb ón trealamh android-uirlisí
Táibléad/cliste le mód dífhabhtaithe cumasaithe agus socraithe chun:
- AndroidNVC (Tá an ceann seo agam, mar níl aon fhógraí ann)
- Blocálaí scagtha scáileáin de shaghas éigin (ní raibh mé in ann ceann a aimsiú gan fógraíocht)
- Tá aon uathlódóir (rith VNC agus seachfhreastalaí) roghnach (tuilleadh air sin thíos).
ceart go leor, déanaimis tosú.
1. Faigh Modeline le haghaidh xorg.conf
$ cvt 1024 768 25 # Можно и gtf, но он не всегда дает корректный modeline.
2. Eagarthóireacht
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
Déanaimid an X-sys a atosú agus seiceáil trí arandr. Socraigh an suíomh agus an treoshuíomh. Ba cheart go mbeadh cuma air mar seo:
Sábhálaimid é i gcomhad - beidh sé úsáideach dúinn.
3. Cruthaigh comhad le huaslódáil in WM/DE (tá planshet.sh agam)
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
Déanaimis seiceáil:
$ xrandr |grep VIRTUAL1
VIRTUAL1 connected 1024x768+1600+0 (normal left inverted right x axis y axis) 0mm x 0mm
Ós rud é nach bhfuil aon eolaire autostart in IceWM, ach go bhfuil comhad ~/.icewm/startup (ba cheart a bheith inrite), cuir an méid seo a leanas leis:
sh -c /path/to/planshet.sh
4. Díchumasaigh bánú monatóireachta:
xset s off
xset s noblank
xset -dpms
Anois tagann an chuid spraoi! Conas na comhordanáidí “sconna” do ghléas a fháil gan an “modh trialach agus earráide” tríd an méarchlár a chéasadh sa chonsól?!
Ar mhaithe lena leithéid de rud a dhealbh mé
6. Cuirimis é seo go léir le planshet.sh
Leagan iomlán
#!/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 предварительно прописав адрес и порт
Agus déanfaimid é
chmod +x /path/to/planshet.sh
Sin uile, i ndáiríre. Atosaigh an freastalaí X agus faigh ilscáileán.
Tá conky agam ag rith ar mo cheann “beag”.
Tá seat den scáileán dúbailte ceangailte.
Caithim bileoga sonraí air freisin nuair a bhíonn rud éigin á shamhaltú agam.
Foinse: will.com