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:
parent
798c482e57
commit
8653a1ba6e
@ -94,6 +94,13 @@ DEPENDS_KDRIVE:=+calibrateproto \
|
|||||||
+libX11 \
|
+libX11 \
|
||||||
@DISPLAY_SUPPORT
|
@DISPLAY_SUPPORT
|
||||||
|
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_TARGET_olpc),)
|
||||||
|
XORG_CONFIG_FILE=xorg-olpc.conf
|
||||||
|
else
|
||||||
|
XORG_CONFIG_FILE=xorg.conf
|
||||||
|
endif
|
||||||
|
|
||||||
define Package/xorg-server/config
|
define Package/xorg-server/config
|
||||||
config XORG_BUILD_KDRIVE
|
config XORG_BUILD_KDRIVE
|
||||||
bool "Build kdrive instead of xserver"
|
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
|
rm -rf $(1)/usr/share/X11 $(1)/usr/lib/X11/xserver
|
||||||
$(INSTALL_DIR) $(1)/var/log/
|
$(INSTALL_DIR) $(1)/var/log/
|
||||||
$(INSTALL_DIR) $(1)/etc/X11/
|
$(INSTALL_DIR) $(1)/etc/X11/
|
||||||
$(CP) files/xorg.conf $(1)/etc/X11/
|
$(CP) files/$(XORG_CONFIG_FILE) $(1)/etc/X11/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Packages/xorg-server-config/install
|
define Packages/xorg-server-config/install
|
||||||
|
73
XOrg/server/xorg-server-X11R7.2/files/xorg-olpc.conf
Normal file
73
XOrg/server/xorg-server-X11R7.2/files/xorg-olpc.conf
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user