Adding specific OLPC xorg.conf

git-svn-id: svn://svn.openwrt.org/openwrt/packages@10237 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
ryd 2008-01-24 20:00:45 +00:00
parent 798c482e57
commit 8653a1ba6e
2 changed files with 81 additions and 1 deletions

View File

@ -94,6 +94,13 @@ DEPENDS_KDRIVE:=+calibrateproto \
+libX11 \
@DISPLAY_SUPPORT
ifneq ($(CONFIG_TARGET_olpc),)
XORG_CONFIG_FILE=xorg-olpc.conf
else
XORG_CONFIG_FILE=xorg.conf
endif
define Package/xorg-server/config
config XORG_BUILD_KDRIVE
bool "Build kdrive instead of xserver"
@ -152,7 +159,7 @@ define Package/xorg-server/install
rm -rf $(1)/usr/share/X11 $(1)/usr/lib/X11/xserver
$(INSTALL_DIR) $(1)/var/log/
$(INSTALL_DIR) $(1)/etc/X11/
$(CP) files/xorg.conf $(1)/etc/X11/
$(CP) files/$(XORG_CONFIG_FILE) $(1)/etc/X11/
endef
define Packages/xorg-server-config/install

View File

@ -0,0 +1,73 @@
# xorg configuration
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
FontPath "/usr/lib/X11/fonts/misc"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
# Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
# Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
# Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "OWRT"
Option "dpms"
EndSection
Section "Device"
Identifier "FBDev"
Driver "fbdev"
#Option "shadowfb" "off"
VideoRam 4096
EndSection
Section "Screen"
Identifier "Screen0"
Device "FBDev"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1200x900"
EndSubsection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection