LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1035|回复: 4

Xorg到底应该如何来搞啊

[复制链接]
发表于 2009-12-20 22:43:35 | 显示全部楼层 |阅读模式
freeman ~ #  Xorg-configure                                               _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/freeman:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running

Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.








_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/freeman:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already ru$

Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional informat$

(WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
(WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
 楼主| 发表于 2009-12-20 22:47:04 | 显示全部楼层
freeman ~ # lsmod
Module                  Size  Used by
via                    33760  2
drm                   103456  3 via
i2c_core               12288  1 drm
af_packet               8432  0
mousedev                7428  1
usbhid                 12396  0
hid                    30996  1 usbhid
snd_via82xx            14120  0
snd_ac97_codec         78864  1 snd_via82xx
ac97_bus                 528  1 snd_ac97_codec
snd_pcsp                4528  0
snd_mpu401_uart         3376  1 snd_via82xx
snd_pcm                42680  3 snd_via82xx,snd_ac97_codec,snd_pcsp
snd_rawmidi            12192  1 snd_mpu401_uart
snd_seq_device          3484  1 snd_rawmidi
snd_timer              12596  1 snd_pcm
ehci_hcd               27616  0
uhci_hcd               17436  0
rtc_cmos                6128  0
evdev                   5984  0
psmouse                16832  0
snd                    33124  8 snd_via82xx,snd_ac97_codec,snd_pcsp,snd_mpu401_uart,snd_pcm,snd_rawmidi,snd_seq_device,snd_timer
snd_page_alloc          4920  2 snd_via82xx,snd_pcm
usbcore                93984  3 usbhid,ehci_hcd,uhci_hcd
via_agp                 4400  1
soundcore               2944  1 snd
fan                     1552  0
rtc_core                9320  1 rtc_cmos
via_rhine              15224  0
rtc_lib                 1296  1 rtc_core
processor              19416  1
thermal                 7724  0
agpgart                18944  2 drm,via_agp
button                  2624  0
thermal_sys             8944  3 fan,processor,thermal
回复 支持 反对

使用道具 举报

发表于 2009-12-21 09:47:16 | 显示全部楼层
该不会是其它应用占领了tcp 6000端口吧?加上-nolisten tcp试试,最好贴出/var/log/Xorg.0.log大家帮你看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-21 11:52:25 | 显示全部楼层
经过一次又一次的瞎折腾

startx 的回显
Fulfilled via DRI at 19238400
Freed 19238400 (pool 2)
expected keysym, got XF86TouchpadToggle: line 122 of inet
expected keysym, got XF86TouchpadToggle: line 122 of inet
/etc/X11/xinit/xinitrc: line 58: twm: command not found
/etc/X11/xinit/xinitrc: line 59: xclock: command not found



Post by xorg.conf

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "glx"
        Load  "dri2"
        Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "extmod"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync    30-107
        VertRefresh  48-120
              Option       "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "rintVGARegs"               # [<bool>]
        #Option     "rintTVRegs"                # [<bool>]
        #Option     "I2CScan"                    # [<bool>]
        #Option     "VBEModes"                   # [<bool>]
        #Option     "NoAccel"                    # [<bool>]
        #Option     "AccelMethod"                # <str>
        #Option     "ExaNoComposite"             # [<bool>]
        #Option     "ExaScratchSize"             # <i>
        #Option     "SWCursor"                   # [<bool>]
        #Option     "ShadowFB"                   # [<bool>]
        #Option     "Rotate"                     # [<str>]
        #Option     "VideoRAM"                   # <i>
        #Option     "ActiveDevice"               # [<str>]
        #Option     "BusWidth"                   # [<str>]
        #Option     "Center"                     # [<bool>]
        #Option     "anelSize"                  # [<str>]
        #Option     "ForcePanel"                 # [<bool>]
        #Option     "TVDotCrawl"                 # [<bool>]
        #Option     "TVDeflicker"                # <i>
        #Option     "TVType"                     # [<str>]
        #Option     "TVOutput"                   # [<str>]
        #Option     "TVPort"                     # [<str>]
        #Option     "DisableVQ"                  # [<bool>]
        #Option     "DisableIRQ"                 # [<bool>]
        #Option     "EnableAGPDMA"               # [<bool>]
        #Option     "NoAGPFor2D"                 # [<bool>]
        #Option     "NoXVDMA"                    # [<bool>]
        #Option     "VbeSaveRestore"             # [<bool>]
        #Option     "DisableXvBWCheck"           # [<bool>]
        #Option     "ModeSwitchMethod"           # [<str>]
        #Option     "MaxDRIMem"                  # <i>
        #Option     "AGPMem"                     # <i>
        Identifier  "Card0"
        Driver      "openchrome"
        VendorName  "Unknown Vendor"
        BoardName   "Unknown Board"
        BusID       "CI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport  0 0
                Depth     24
                Modes     "1440x900"
        EndSubSection
EndSection


Post by xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs


if [ -n "`/etc/X11/chooser.sh`" ]; then
        command="`/etc/X11/chooser.sh`"
else
        failsafe="yes"
fi

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
        for f in /etc/X11/xinit/xinitrc.d/* ; do
                [ -x "$f" ] && . "$f"
        done
        unset f
fi
if [ -n "$failsafe" ]; then
        twm &
        xclock -geometry 50x50-1+1 &
        xterm -geometry 80x50+494+51 &
        xterm -geometry 80x20+494-0 &
        exec xterm -geometry 80x66+0+0 -name login
else
        exec $command
fi



什么问题 没有twm和xclock的包?
expected keysym, got XF86TouchpadToggle: line 122 of inet 这个是什么意思谁能给我解释一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-21 12:01:42 | 显示全部楼层
安装完twm和xclock  startx能启动了 。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表