X window system 從buildroot移植二三事
目錄
- 必須安裝
- /etc/xorg.conf 的建置
- 字體可以都不用安裝
必須安裝
- x server : 用 /dev/dri 選 Module /dev/fb0 選 kdrive
- xinit, xauth, xterm這三個沒有就開不了
/etc/xorg.conf 的建置
即使沒有這個檔案也還是可以啟動,但至少有以下缺點:
- input device 只會安裝 keyboard, mouse
- 加載的順序與速度問題
先前遇到一個 touch screen 的個案:
- buildroot install xdriver-xf86-input-tslib
- /usr/lib/xorg/module/input 會出現 tslib_dri.so
- /etc/xorg.conf 編輯
Section "Module"
Load "glx"
Load "dri"
Load "mouse"
Load "tslib"
Load "fbdev"
EndSection
Section "InputClass"
Identifier "tslib touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event0"
(假設touch screen device id 是 /dev/input/event0)
Driver "tslib"
EndSection
發生一件奇妙的事情,假設/dev/input/event0 其實是一個滑鼠
也還是可以用 tslib 接收,x server 並不會回報錯誤
ref: https://github.com/merge/xf86-input-tslib/blob/master/80-tslib.conf
字體可以都不用安裝
嵌入式系統下有限的空間 /usr/share/fonts/X11/ 什麼都不裝還是可以用 x server