请教在NetBSD的X上配置GeForce 8800 GT显卡的问题(新开)

期待NetBSD6.0在桌面开发上的进展。

版主: lionux

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

请教在NetBSD的X上配置GeForce 8800 GT显卡的问题(新开)

帖子 leo » 2010-09-04 22:48

我的一台dell老机器:
CPU:Q6600, 显卡是GeForce 8800 GT 512M,内存4G。
请教在NetBSD的X上配置8800 GT显卡的问题,启动花屏,键鼠无反应。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 6:03

我想抽空试试看Xen, 关键是我目前正在为X折腾着, 从4开始使用时,NetBSD里的 X 就不认我的显卡Geforce 8800GT,即使按照OpenBSD的配置修改了xorg.conf也不行,startx就是启动不起来。这可是一台几年前的机器了,刚买来时一上OB就可以,这款显示卡NVIDIA只给freebsd提供了驱动,freebsd上启用hald就行了,netBSD上却无效,用户指南上说的很简单,没有找到答案。邮件列表上有人说要参看X的用户手册 ,并设置一个合适的.xinitrc文件,还在努力解决中,要跑xen老机器肯定不灵。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-09-05 7:46

呵呵,我工作倒班的,睡眠没有规律的。ob支持的话nb没理由不支持啊。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 8:09

lionux 写了:呵呵,我工作倒班的,睡眠没有规律的。ob支持的话nb没理由不支持啊。
难怪你总是神出鬼没地:eek:

OB是X11R6,NB和FB用的是X11R7,4.0x的时候一直以为是X11的版本升级导致的程序不完善,现在一试,5.02了还是不行,:mad:

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-09-05 8:24

X11R6只是目录不同,一样的。查了一下openbsd是4.3更新的Geforce 8800GT驱动到nv,看了netbsd源码应该支持。
这里

代码: 全选

commit d483ecd851bb84014f1fa86f0ada4540b3ad801e
Author: Aaron Plattner <aplattner@nvidia.com>
Date:   Tue Nov 13 17:18:10 2007 -0800

    G80: Reduce load detection false positives.

commit 4da88cb3dd13a86c477389c5b2d42d7d40ce2023
Author: Aaron Plattner <aplattner@nvidia.com>
Date:   Fri Nov 2 16:56:35 2007 -0700

    [color="sienna"]GeForce 8800 GT.[/color]

commit 58dbd31953d0e2f30d06b3fc5118a016a17666fe
Author: Aaron Plattner <aplattner@nvidia.com>
Date:   Tue Oct 23 13:17:27 2007 -0700

    Bump to 2.1.6.

commit 0887084730af8428e902dabc6e00c505f383f57f
Author: Aaron Plattner <aplattner@nvidia.com>
Date:   Sun Oct 14 14:15:07 2007 -0700

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

另开主题:请教在NetBSD的X上配置8800 GT显卡的问题

帖子 leo » 2010-09-05 8:34

还真不明白问题出在哪里了?
现在的问题不是进不了X,可以进,但是花屏,鼠键全不能动作。:mad:
我再试试,还不行我就单独开一个主题讨论了,在这里讨论有点跑题了。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-09-05 9:06

netbsd控制台如果开启鼠标,X就无法用。是跑题了:)

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 9:10

我是没有特意地开启,默认情况下会开启吗?请问控制台鼠标在哪里关闭?

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-09-05 10:12

默认不会开启鼠标。把X.log贴出来看看。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 10:19

要晚些时候了,现在的机器家里人在用(这台机器和我这台还不在同一个房间里,只能通过无线上网才行,在NetBSD下的驱动还在找,用OpenBSD的无线驱动还不行,现在给上面的NetBSD传资料仅能用U盘,而且这台老机器上其它的重要资料很多,新机器唯一的一块1.5T硬盘现在NetBSD还不识别)。
我正在看这里,发现很多东西还没有配置,这就难怪了。
还是OpenBSD简单一些,在很多新机器上不用设置什么X配置,但是不少老机器上的X配置nNetBSD做的更好一点。
我是原来一直用OpenBSD,一直感觉比较顺手,所以忽略了X配置这点,觉得能用就好,发现NB不能用也没有在意,就决定先放放,可见什么事也不能回避,否则出了问题后你转一圈回来还要解决。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-09-05 10:25

指南有点老了XFree86的,我是先 xorg -configure 在root目录生成配置文件修改下分辨率,cp到etc就能用了。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 10:34

lionux 写了:指南有点老了XFree86的,我是先 xorg -configure 在root目录生成配置文件修改下分辨率,cp到etc就能用了。
是吗?我以为是先 X -configure ,然后把xorg.conf.new扔到 /etc/X11/ 下呢。——不过,这样做了没成功。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-09-05 10:47

对,xorg.conf.new cp 到 /etc/X11/xorg.conf

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 10:59

lionux 写了:对,xorg.conf.new cp 到 /etc/X11/xorg.conf
我是这样做了,要注意是, Xorg.conf, 不是xorg.conf, 不过要么可能这里配置的监视器或显卡有问题,要么可能是键鼠配置的问题,总之不是花屏就是斑马条,键鼠全都用不了,有时系统还自动重新启动,ctrl+Alt+space 也无法退出x。多数情况下ctrl+Alt+del也无效。只有运行大写的X时可以 进入x网格界面,鼠标外观不正常但是还能移动,只不过左右键都无效,也没有shell窗口,很是郁闷。我还是先看看指南吧,虽然有点老,但是也比没有强。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 14:15

我安装的是amd64的版本,还没有你说的这个xf86config命令,我还是使用 X -configure,未找到X.log
我贴出生成的xorg.conf.new文件吧——已经拷贝到/etc/X11/Xorg.conf了

代码: 全选

Section "ServerLayout"
 Identifier     "X.org Configured"
 Screen      0  "Screen0" 0 0
 InputDevice    "Mouse0" "CorePointer"
 InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
 RgbPath      "/usr/X11R7/lib/X11/rgb"
 ModulePath   "/usr/X11R7/lib/modules"
 FontPath     "/usr/X11R7/lib/X11/fonts/misc/"
 FontPath     "/usr/X11R7/lib/X11/fonts/TTF/"
 FontPath     "/usr/X11R7/lib/X11/fonts/Speedo/"
 FontPath     "/usr/X11R7/lib/X11/fonts/Type1/"
 FontPath     "/usr/X11R7/lib/X11/fonts/CID/"
 FontPath     "/usr/X11R7/lib/X11/fonts/75dpi/"
 FontPath     "/usr/X11R7/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
 Load  "GLcore"
 Load  "cfb"
 Load  "cfb32"
 Load  "dbe"
 Load  "dri"
 Load  "extmod"
 Load  "glx"
 Load  "mfb"
 Load  "record"
 Load  "shadow"
 Load  "xtrap"
 Load  "freetype"
 Load  "type1"
EndSection
Section "InputDevice"
 Identifier  "Keyboard0"
 Driver      "kbd"
EndSection
Section "InputDevice"
 Identifier  "Mouse0"
 Driver      "mouse"
 Option     "Protocol" "wsmouse"
 Option     "Device" "/dev/wsmouse"
 Option     "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
 Identifier   "Monitor0"
 VendorName   "Monitor Vendor"
 ModelName    "Monitor Model"
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     "SWcursor"            # [<bool>]
        #Option     "HWcursor"            # [<bool>]
        #Option     "NoAccel"             # [<bool>]
        #Option     "ShadowFB"            # [<bool>]
        #Option     "UseFBDev"            # [<bool>]
        #Option     "Rotate"              # [<str>]
        #Option     "VideoKey"            # <i>
        #Option     "FlatPanel"           # [<bool>]
        #Option     "FPDither"            # [<bool>]
        #Option     "CrtcNumber"          # <i>
        #Option     "FPScale"             # [<bool>]
        #Option     "FPTweak"             # <i>
        #Option     "DualHead"            # [<bool>]
 Identifier  "Card0"
 Driver      "nv"
 VendorName  "nVidia Corporation"
 BoardName   "Unknown Board"
 BusID       "PCI:1:0:0"
EndSection
Section "Screen"
 Identifier "Screen0"
 Device     "Card0"
 Monitor    "Monitor0"
 SubSection "Display"
  Viewport   0 0
  Depth     1
 EndSubSection
 SubSection "Display"
  Viewport   0 0
  Depth     4
 EndSubSection
 SubSection "Display"
  Viewport   0 0
  Depth     8
 EndSubSection
 SubSection "Display"
  Viewport   0 0
  Depth     15
 EndSubSection
 SubSection "Display"
  Viewport   0 0
  Depth     16
 EndSubSection
 SubSection "Display"
  Viewport   0 0
[color=red][B]virtual 1920 1200 <--------------------我也尝试了在这里加入了真实的分辨率,但是还是无效。[/B][/color]
  Depth     24
 EndSubSection
EndSection

/var/log/xorg.0.log文件比较大不贴了,压缩了一下,详附件:
其中有一个EE错误

代码: 全选

(EE) NV(0): G80 PROBE_DETECT unimplemented
感觉还是显卡驱动的问题。

此外就我所知,8800GT有两款,一款是1G显存的,我的是另一款——512M显存的。不知道和这个有无关系,暂时在网上没有找到相关的信息。
附件
Xorgconf.tar.gz
(5.43 KiB) 下载 661 次

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 14:31

又在http://www.nvnews.net/vbulletin/showthread.php?t=111090这里找到一个诉苦的,两年前了,和我一样,也是4G内存,此老兄比较生猛,我更愿意相信他是从机器里拆掉了2G现存。:p

不知道NetBSD默认是不是也关闭了大内存支持,我先看看amd64内核配置文件的源代码。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-09-05 16:34

果然是有限制,在/usr/src/sys/arch/amd64/conf/GENERIC 里有这一段:

代码: 全选

# The following options limit the overall size of physical memory
# and/or the maximum address used by the system.
# Contrary to REALBASEMEM and REALEXTMEM, they still use the BIOS memory map
# and can deal with holes in the memory layout.
#options  PHYSMEM_MAX_SIZE=64 # max size of physical memory (in MB)
#options  PHYSMEM_MAX_ADDR=2048 # don't use memory above this (in MB)
将2048改为4096后,鼠标可动,但是屏幕还是花屏,系统让查一下Xorg.0.log文件,这次log文件更大,239K,压缩好先放在这里吧,明天再研究了。

---还是不行,发现,重新启动后还是老样子,先睡觉了:(

NetBSD邮件列表里发现也有人存在同样的问题。http://mail-index.netbsd.org/tech-x11/2 ... 00460.html
附件
Xorglog.tar.gz
(9.46 KiB) 下载 853 次

John.Fu
铁 Fe
帖子: 77
注册时间: 2010-05-04 21:06

帖子 John.Fu » 2010-09-06 16:04

呵呵,还是别上X吧,还不如 Xen 一个 Windows XP 玩桌面,我就准备这样干!

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-09-06 19:20

leo 写了:我安装的是amd64的版本,还没有你说的这个xf86config命令,我还是使用 X -configure,未找到X.log
我贴出生成的xorg.conf.new文件吧——已经拷贝到/etc/X11/xorg.conf了

代码: 全选

Section "ServerLayout"
 Identifier     "X.org Configured"
 Screen      0  "Screen0" 0 0
 InputDevice    "Mouse0" "CorePointer"
 InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
 RgbPath      "/usr/X11R7/lib/X11/rgb"
 ModulePath   "/usr/X11R7/lib/modules"
 FontPath     "/usr/X11R7/lib/X11/fonts/misc/"
 FontPath     "/usr/X11R7/lib/X11/fonts/TTF/"
 FontPath     "/usr/X11R7/lib/X11/fonts/Speedo/"
 FontPath     "/usr/X11R7/lib/X11/fonts/Type1/"
 FontPath     "/usr/X11R7/lib/X11/fonts/CID/"
 FontPath     "/usr/X11R7/lib/X11/fonts/75dpi/"
 FontPath     "/usr/X11R7/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
 Load  "GLcore"
 Load  "cfb"
 Load  "cfb32"
 Load  "dbe"
 Load  "dri"
 Load  "extmod"
 Load  "glx"
 Load  "mfb"
 Load  "record"
 Load  "shadow"
 Load  "xtrap"
 Load  "freetype"
 Load  "type1"
EndSection
Section "InputDevice"
 Identifier  "Keyboard0"
 Driver      "kbd"
EndSection
Section "InputDevice"
 Identifier  "Mouse0"
 Driver      "mouse"
 Option     "Protocol" "wsmouse"
 Option     "Device" "/dev/wsmouse"
 Option     "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
 Identifier   "Monitor0"
 VendorName   "Monitor Vendor"
 ModelName    "Monitor Model"
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     "SWcursor"            # [<bool>]
        #Option     "HWcursor"            # [<bool>]
        #Option     "NoAccel"             # [<bool>]
        #Option     "ShadowFB"            # [<bool>]
        #Option     "UseFBDev"            # [<bool>]
        #Option     "Rotate"              # [<str>]
        #Option     "VideoKey"            # <i>
        #Option     "FlatPanel"           # [<bool>]
        #Option     "FPDither"            # [<bool>]
        #Option     "CrtcNumber"          # <i>
        #Option     "FPScale"             # [<bool>]
        #Option     "FPTweak"             # <i>
        #Option     "DualHead"            # [<bool>]
 Identifier  "Card0"
 Driver      "nv"
 VendorName  "nVidia Corporation"
 BoardName   "Unknown Board"
 BusID       "PCI:1:0:0"
EndSection
Section "Screen"
 Identifier "Screen0"
 Device     "Card0"
 Monitor    "Monitor0"
 SubSection "Display"
  Viewport   0 0
  Depth     1
 EndSubSection
 SubSection "Display"
  Viewport   0 0
  Depth     4
 EndSubSection
 SubSection "Display"
  Viewport   0 0
  Depth     8
 EndSubSection
 SubSection "Display"
  Viewport   0 0
  Depth     15
 EndSubSection
 SubSection "Display"
  Viewport   0 0
  Depth     16
 EndSubSection
 SubSection "Display"
  Viewport   0 0
[color=red][B]virtual 1920 1200 <--------------------我也尝试了在这里加入了真实的分辨率,但是还是无效。[/B][/color]
  Depth     24
 EndSubSection
EndSection

/var/log/xorg.0.log文件比较大不贴了,压缩了一下,详附件:
其中有一个EE错误

代码: 全选

(EE) NV(0): G80 PROBE_DETECT unimplemented
感觉还是显卡驱动的问题。

此外就我所知,8800GT有两款,一款是1G显存的,我的是另一款——512M显存的。不知道和这个有无关系,暂时在网上没有找到相关的信息。

同过Xorg -configure生成的xorg.conf没有识别出来显卡,但在log里显示有识别出来。把xorg.conf删除直接startx看看,现在xorg会自动设置的。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-09-06 19:34

leo 写了:如果是有限制,在/usr/src/sys/arch/amd64/conf/GENERIC 里有这一段:

代码: 全选

# The following options limit the overall size of physical memory
# and/or the maximum address used by the system.
# Contrary to REALBASEMEM and REALEXTMEM, they still use the BIOS memory map
# and can deal with holes in the memory layout.
#options  PHYSMEM_MAX_SIZE=64 # max size of physical memory (in MB)
#options  PHYSMEM_MAX_ADDR=2048 # don't use memory above this (in MB)
将2048改为4096后,鼠标可动,但是屏幕还是花屏,系统让查一下Xorg.0.log文件,这次log文件更大,239K,压缩好先放在这里吧,明天再研究了。

---还是不行,发现,重新启动后还是老样子,先睡觉了:(

NetBSD邮件列表里发现也有人存在同样的问题。http://mail-index.netbsd.org/tech-x11/2 ... 00460.html

控制台下鼠标好用不,shell下敲wsmoused试试。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 32 访客