clean up a bit and use plain xorg.conf-files as long as the uci x11 parser is not finished
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15584 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
29f6b33743
commit
3fd564903a
@ -111,15 +111,20 @@ define Build/Configure
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/xserver-common/install
|
define Package/xserver-common/install
|
||||||
$(INSTALL_DIR) $(1)/etc/{init.d,config}
|
$(INSTALL_DIR) $(1)/etc/{init.d,config,X11}
|
||||||
$(INSTALL_BIN) \
|
$(INSTALL_BIN) \
|
||||||
./files/x.init \
|
./files/x.init \
|
||||||
$(1)/etc/init.d/x11
|
$(1)/etc/init.d/x11
|
||||||
$(if $(X_CONFIG), \
|
$(INSTALL_DATA) ./files/tmp/x11.uci \
|
||||||
|
$(1)/etc/config/x11
|
||||||
|
test -f ./files/config.xorg/$(X_CONFIG) && \
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
./files/config/$(X_CONFIG) \
|
./files/config.xorg/$(X_CONFIG) \
|
||||||
$(1)/etc/config/x11 \
|
$(1)/etc/X11/xorg.conf
|
||||||
)
|
# test -f ./files/config.uci/$(X_CONFIG) && \
|
||||||
|
# $(INSTALL_DATA) \
|
||||||
|
# ./files/config.uci/$(X_CONFIG) \
|
||||||
|
# $(1)/etc/config/x11
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/xserver-xorg/install
|
define Package/xserver-xorg/install
|
||||||
|
@ -4,13 +4,10 @@ Section "ServerLayout"
|
|||||||
Identifier "Default Layout"
|
Identifier "Default Layout"
|
||||||
Screen 0 "Screen0" 0 0
|
Screen 0 "Screen0" 0 0
|
||||||
InputDevice "Mouse0" "CorePointer"
|
InputDevice "Mouse0" "CorePointer"
|
||||||
|
InputDevice "Mouse1" "CorePointer"
|
||||||
InputDevice "Keyboard0" "CoreKeyboard"
|
InputDevice "Keyboard0" "CoreKeyboard"
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
Section "Files"
|
|
||||||
FontPath "/usr/lib/X11/fonts/misc"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "Module"
|
Section "Module"
|
||||||
Load "dbe"
|
Load "dbe"
|
||||||
Load "extmod"
|
Load "extmod"
|
||||||
@ -24,19 +21,20 @@ EndSection
|
|||||||
Section "InputDevice"
|
Section "InputDevice"
|
||||||
Identifier "Keyboard0"
|
Identifier "Keyboard0"
|
||||||
Driver "keyboard"
|
Driver "keyboard"
|
||||||
Option "XkbModel" "pc105"
|
|
||||||
Option "XkbLayout" "us"
|
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
Section "InputDevice"
|
Section "InputDevice"
|
||||||
Identifier "Mouse0"
|
Identifier "Mouse0"
|
||||||
Driver "mouse"
|
Driver "mouse"
|
||||||
Option "Protocol" "PS/2"
|
Option "Protocol" "PS/2"
|
||||||
# Option "Protocol" "IMPS/2"
|
|
||||||
Option "Device" "/dev/psaux"
|
Option "Device" "/dev/psaux"
|
||||||
# Option "Device" "/dev/input/mice"
|
EndSection
|
||||||
Option "ZAxisMapping" "4 5"
|
|
||||||
Option "Emulate3Buttons" "yes"
|
Section "InputDevice"
|
||||||
|
Identifier "Mouse1"
|
||||||
|
Driver "mouse"
|
||||||
|
Option "Protocol" "IMPS/2"
|
||||||
|
Option "Device" "/dev/input/mice"
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
Section "Monitor"
|
Section "Monitor"
|
||||||
@ -56,38 +54,11 @@ EndSection
|
|||||||
Section "Device"
|
Section "Device"
|
||||||
Identifier "FBDev"
|
Identifier "FBDev"
|
||||||
Driver "fbdev"
|
Driver "fbdev"
|
||||||
#Option "shadowfb" "off"
|
|
||||||
VideoRam 4096
|
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
Section "Screen"
|
Section "Screen"
|
||||||
Identifier "Screen0"
|
Identifier "Screen0"
|
||||||
Device "Videocard0"
|
Device "Videocard0"
|
||||||
Monitor "Monitor0"
|
Monitor "Monitor0"
|
||||||
# DefaultDepth 8
|
|
||||||
DefaultDepth 16
|
|
||||||
# DefaultDepth 24
|
|
||||||
|
|
||||||
SubSection "Display"
|
|
||||||
Depth 8
|
|
||||||
Modes "1024x768" "800x600" "640x480"
|
|
||||||
EndSubsection
|
|
||||||
|
|
||||||
SubSection "Display"
|
|
||||||
Depth 16
|
|
||||||
Modes "1024x768" "800x600" "640x480"
|
|
||||||
EndSubsection
|
|
||||||
|
|
||||||
SubSection "Display"
|
|
||||||
Depth 24
|
|
||||||
FbBpp 32
|
|
||||||
Modes "1024x768" "800x600" "640x480"
|
|
||||||
EndSubsection
|
|
||||||
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "DRI"
|
|
||||||
Group 0
|
|
||||||
Mode 0666
|
|
||||||
EndSection
|
EndSection
|
||||||
|
|
34
Xorg/xorg/xserver/xorg-server/files/config.xorg/om_gta02
Normal file
34
Xorg/xorg/xserver/xorg-server/files/config.xorg/om_gta02
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# xorg configuration
|
||||||
|
|
||||||
|
Section "ServerLayout"
|
||||||
|
Identifier "Default Layout"
|
||||||
|
Screen 0 "Screen0" 0 0
|
||||||
|
InputDevice "Mouse0" "CorePointer"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "InputDevice"
|
||||||
|
Identifier "Mouse0"
|
||||||
|
Driver "tslib"
|
||||||
|
Option "Device" "/dev/event1"
|
||||||
|
Option "Width" "480"
|
||||||
|
Option "Height" "640"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Monitor"
|
||||||
|
Identifier "Monitor0"
|
||||||
|
VendorName "Monitor Vendor"
|
||||||
|
ModelName "OWRT"
|
||||||
|
Option "dpms"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Device"
|
||||||
|
Identifier "Videocard0"
|
||||||
|
Driver "glamo"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Screen"
|
||||||
|
Identifier "Screen0"
|
||||||
|
Device "Videocard0"
|
||||||
|
Monitor "Monitor0"
|
||||||
|
DefaultDepth 16
|
||||||
|
EndSection
|
@ -4,28 +4,28 @@ START=99
|
|||||||
|
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
|
||||||
screen() {
|
#screen() {
|
||||||
local cfg="$1"
|
# local cfg="$1"
|
||||||
config_get resolution $cfg resolution
|
# config_get resolution $cfg resolution
|
||||||
config_get dpi $cfg dpi
|
# config_get dpi $cfg dpi
|
||||||
[ -n "$resolution" ] && ARGS="$ARGS -screen $resolution"
|
# [ -n "$resolution" ] && ARGS="$ARGS -screen $resolution"
|
||||||
[ -n "$dpi" ] && ARGS="$ARGS -dpi $dpi"
|
# [ -n "$dpi" ] && ARGS="$ARGS -dpi $dpi"
|
||||||
}
|
#}
|
||||||
|
#
|
||||||
graphic() {
|
#graphic() {
|
||||||
local cfg="$1"
|
# local cfg="$1"
|
||||||
config_get device $cfg device
|
# config_get device $cfg device
|
||||||
[ -n "$device" ] && ARGS="$ARGS -fb $device"
|
# [ -n "$device" ] && ARGS="$ARGS -fb $device"
|
||||||
}
|
#}
|
||||||
|
#
|
||||||
input() {
|
#input() {
|
||||||
local cfg="$1"
|
# local cfg="$1"
|
||||||
config_get device $cfg device
|
# config_get device $cfg device
|
||||||
config_get driver $cfg driver
|
# config_get driver $cfg driver
|
||||||
#[ -n "$device" ] || return 0
|
# #[ -n "$device" ] || return 0
|
||||||
[ -n "$driver" ] || return 0
|
# [ -n "$driver" ] || return 0
|
||||||
ARGS="$ARGS -$cfg $driver,,device=$device"
|
# ARGS="$ARGS -$cfg $driver,,device=$device"
|
||||||
}
|
#}
|
||||||
|
|
||||||
desktop() {
|
desktop() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
@ -38,14 +38,14 @@ desktop() {
|
|||||||
start() {
|
start() {
|
||||||
export DISPLAY=":0"
|
export DISPLAY=":0"
|
||||||
config_load x11
|
config_load x11
|
||||||
config_foreach screen screen
|
# config_foreach screen screen
|
||||||
config_foreach graphic graphic
|
# config_foreach graphic graphic
|
||||||
config_foreach input input
|
# config_foreach input input
|
||||||
Xorg $ARGS &
|
Xorg $ARGS &
|
||||||
sleep 1 # give the xserver some time get initialized
|
sleep 1 # give the xserver some time get initialized
|
||||||
config_foreach desktop desktop
|
config_foreach desktop desktop
|
||||||
test -d /etc/xdg/autostart || exit
|
test -d /etc/xdg/autostart || exit
|
||||||
sleep 1 # give the first x11 application some time to get present - afterwars we'll start the x11 autostart applications
|
sleep 1 # give the first x11 application some time to get present - afterwards we'll start the x11 autostart applications
|
||||||
for elem in `ls /etc/xdg/autostart/`; do
|
for elem in `ls /etc/xdg/autostart/`; do
|
||||||
if grep "^Hidden=true" "/etc/xdg/autostart/$elem" > /dev/null; then
|
if grep "^Hidden=true" "/etc/xdg/autostart/$elem" > /dev/null; then
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user