[[gentoo-on-n8x0:|back]]
====== X11 setup ======
Install **sys-apps/n8x0-env** with **USE='X'** from n8x0 overlay.
Run **rc-update add nokia-tablets-pointercal default**.
Uncomment following line in **/etc/ts.conf**:
module_raw input
Create **/etc/X11/xorg.conf** with following contents.
FIXME Keypad up/down/left/right doesn't work with this config.
Section "Monitor"
Identifier "monitor"
EndSection
Section "Device"
Identifier "device"
Driver "fbdev"
EndSection
Section "Screen"
Identifier "screen"
Device "device"
Monitor "monitor"
EndSection
Section "InputDevice"
Identifier "touchpad"
Driver "tslib"
Option "Device" "/dev/input/event3"
Option "EmulateRightButton" "1"
Option "CorePointer" "true"
EndSection
Section "InputDevice"
Identifier "keypad"
Driver "evdev"
Option "Device" "/dev/input/event2"
Option "CoreKeyboard" "true"
EndSection
Section "InputDevice"
Identifier "pwrbutton"
Driver "evdev"
Option "Device" "/dev/input/event0"
EndSection
Section "ServerLayout"
Identifier "layout"
Screen "screen"
InputDevice "touchpad"
InputDevice "keypad"
InputDevice "pwrbutton"
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
If you're using **xf86-video-omapfb** instead of **xf86-video-fbdev**,, replace **Device** section with following:
Section "Device"
Identifier "device"
Driver "omapfb"
Option "fb" "/dev/fb0"
EndSection
Install any desktop environment (lxde-meta/kde-meta/gnome/whatever).
Configure **XSESSION** variable in **/etc/rc.conf**.
Create user for yourself and set password.
===== With xdm =====
Configure **/etc/conf.d/xdm**.
Run **rc-update add xdm default** and reboot into Gentoo. If you did everything right, you'll see xdm welcome screen.
===== Without xdm =====
Add following command to **local_start** function in **/etc/conf.d/local** so X starts on boot
su - -l -c startx &
Reboot into Gentoo and you should see X desktop.
===== On-screen keyboard =====
For GTK-based environment install **app-accessibility/florence** from n8x0 overlay.