LinuxSir.cn,穿越时空的Linuxsir!

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

求助,startx直接黑屏,/var/log/xorg.0.log 无任何输出

[复制链接]
发表于 2011-1-30 17:51:40 | 显示全部楼层 |阅读模式
如题,黑屏是指显示器还是在工作的,也就是有背光,整个屏幕是黑色,怎么办,黑屏之前有输出,看到了两个 EE 但是一下子就过去了,想拍照都不行,日志里没任何信息。
用的是nvidia-drivers,需要xorg.conf,我是直接从本机上的另一个Debian系统上拷过来的,也使用nvidia-xconfig 生成过,都不行,大家有什么办法?
还需要提供什么信息,我补上来。
发表于 2011-1-30 18:02:07 | 显示全部楼层
如果是startx进去的话,要先emerge -av twm xterm,因为如果~/.xinitrc不存在的话,startx是调用/etc/X11/xinit/xinitrc文件的,而那个文件里面默认打开的是tmw窗口管理和xterm.xclock之类的程序。

或者你直接装gnome之类的桌面环境,然后在~/.xinitrc写入exec gnome-session,这样startx就直接进入gnome环境了。

这是我的xorg.conf文件,希望对你有帮助
  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         InputDevice    "Mouse0" "CorePointer"
  5.         InputDevice    "Keyboard0" "CoreKeyboard"
  6. EndSection
  7. Section "Files"
  8.         ModulePath   "/usr/lib/xorg/modules"
  9.         ModulePath   "/usr/lib/opengl/xorg-x11/extensions/"
  10.         FontPath     "/usr/share/fonts/misc/"
  11.         FontPath     "/usr/share/fonts/TTF/"
  12.         FontPath     "/usr/share/fonts/OTF/"
  13.         FontPath     "/usr/share/fonts/Type1/"
  14.         FontPath     "/usr/share/fonts/100dpi/"
  15.         FontPath     "/usr/share/fonts/75dpi/"
  16. EndSection
  17. Section "Module"
  18.         Load  "glx"
  19.         Disable  "dri2"
  20.         Load  "dbe"
  21.         Load  "extmod"
  22.         Disable  "dri"
  23.         Load  "record"
  24. EndSection
  25. Section "InputDevice"
  26.         Identifier  "Keyboard0"
  27.         Driver      "kbd"
  28. EndSection
  29. Section "InputDevice"
  30.         Identifier  "Mouse0"
  31.         Driver      "mouse"
  32.         Option            "Protocol" "auto"
  33.         Option            "Device" "/dev/input/mice"
  34.         Option            "ZAxisMapping" "4 5 6 7"
  35. EndSection
  36. Section "Monitor"
  37.         Identifier   "Monitor0"
  38.         VendorName   "Monitor Vendor"
  39.         ModelName    "Monitor Model"
  40. EndSection
  41. Section "Device"
  42.         Identifier  "Card0"
  43.         Driver      "nvidia"
  44.         BusID       "PCI:1:0:0"
  45. EndSection
  46. Section "Screen"
  47.         Identifier "Screen0"
  48.         Device     "Card0"
  49.         Monitor    "Monitor0"
  50.         SubSection "Display"
  51.                 Viewport   0 0
  52.                 Depth     1
  53.         EndSubSection
  54.         SubSection "Display"
  55.                 Viewport   0 0
  56.                 Depth     4
  57.         EndSubSection
  58.         SubSection "Display"
  59.                 Viewport   0 0
  60.                 Depth     8
  61.         EndSubSection
  62.         SubSection "Display"
  63.                 Viewport   0 0
  64.                 Depth     15
  65.         EndSubSection
  66.         SubSection "Display"
  67.                 Viewport   0 0
  68.                 Depth     16
  69.         EndSubSection
  70.         SubSection "Display"
  71.                 Viewport   0 0
  72.                 Depth     24
  73.         EndSubSection
  74. EndSection
  75. Section "Extensions"
  76.         Option        "Composite" "Enable"
  77. EndSection
复制代码
回复 支持 反对

使用道具 举报

发表于 2011-1-30 23:27:11 | 显示全部楼层
我的发现无论我是否在xorg.conf里面加上Disable  "dri2",它都是无法加载dri2的。
并且用startx死活进不去fvwm。
总出现fcitx 这个无效(已安装fcitx ,并在.xinitrc里面加上fcitx &),
exec:fvwm2 找不到。

如果用startx  /usr/bin/fvwm却可以。
回复 支持 反对

使用道具 举报

发表于 2011-1-30 23:39:56 | 显示全部楼层
Post by hayse2000;2127112
我的发现无论我是否在xorg.conf里面加上Disable  "dri2",它都是无法加载dri2的。
并且用startx死活进不去fvwm。
总出现fcitx 这个无效(已安装fcitx ,并在.xinitrc里面加上fcitx &),
exec:fvwm2 找不到。

如果用startx  /usr/bin/fvwm却可以。


试试 exec fvwm & 我用fvwm的时候是这样启动的

~/.xinitrc

exec fvwm &

export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim

fcitx &
回复 支持 反对

使用道具 举报

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

本版积分规则

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