LinuxSir.cn,穿越时空的Linuxsir!

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

屏幕四周是黑色的,只有中间能显示。请问是怎么回事啊?

[复制链接]
发表于 2005-1-30 12:24:44 | 显示全部楼层 |阅读模式
屏幕四周是黑色的,只有中间能显示。东芝2410 笔记本,redhat9.0,显示芯片是nvidia geforce 4 32m。屏幕四周大约有3厘米的地方全是黑色,不知道是什么缘故,是不是没有装显卡驱动?
 楼主| 发表于 2005-1-31 00:20:31 | 显示全部楼层
去nvidia网站下载NVIDIA-Linux-x86-1.0-6629-pkg1.run装上后,上下左都正常了,但是右边还有大约1厘米的地方是黑色。还有只能到800×600,不能修改到1024×768。请问是不是什么地方还需要设置?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-1 11:09:09 | 显示全部楼层
好像刷新频率也有问题,看起来很模糊。这是我的xf86config内容:
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "DevInputMice" "AlwaysCore"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection

Section "Module"

        #Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        #Load  "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
# Or if you just want both to be control, use:
#        Option        "XkbOptions"        "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option            "XkbRules" "xfree86"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "S/2"
        Option            "Device" "/dev/psaux"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
        Identifier  "DevInputMice"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Toshiba"
        ModelName    "Generic"
        DisplaySize  400        400
        HorizSync    28 - 50
        VertRefresh  43 - 75
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        VendorName  "Videocard vendor"
        BoardName   "NVIDIA GeForce 4 (generic)"
        VideoRam    32768
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-1 15:15:17 | 显示全部楼层
Toshiba 2410笔记本 ,356MB内存、pentium 1.8G、NVIDIA GeForce4 420 go Toshiba internal 1024*768 panel
我查看了论坛里的一些帖子,用了以下方法:
1、用#redhat-config-xfree86命令在显示器类型里面没有找到General Lcd Display  这一项,所以显示器类型我选的是Toshiba;
2、用xvidtune命令,提示:sorry:You have requested a mode-line That is not possible ,or not supported by your hardware configuration.
3、在XF86Config中在modes中加上"1024*768",启动x-windows后,用redhat-config-xfree86命令,刷新频率显示的是1024×168,但是图形还是老样子,一看就是800×600。
我都在论坛上转悠了几天了,还是没有找到解决的方法,那位兄弟能帮帮忙!谢谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-4 12:45:25 | 显示全部楼层
问题已解决:找到帖子:
twiryh - 2004年 12月02日 11:29
发表主题:
--------------------------------------------------------------------------------
如果你是东芝的2410,试试这个:
Configuring XF86Config
It is a bit tricky to get the GeForce4 420 to work. Use the following hints for your XF86Config-4.
Add an entry into the "Module" section in the XF86Config:

Load "glx"

Remove the following entries, if existing:

Load "GLcore"
Load "dri"

In section "Device" replace module "nv" with "nvidia". We should also set the BusID.

Driver "nvidia"
BusID "AGP:01:00:0"

Somehow DDC is not working properly on this laptop. So we have to put the following lines into the section "Device":

Option "NoDDC" "1"
Option "IgnoreEDID" "1"

Using a TFT together with the commercial Nvidia-drivers will let us use the following lines.

Option "GenerateRTList" "0"
Option "OverridePolarity" "1"

Put the following two lines into section "Screen":

Option "NoDDC" "1"
Option "NvAgp" "1"

If you like some eyecandy you can add a translucent shadow to the X-pointer. Add the folowing lines at the end of section "Device":

# Some Pointer Eyecandy
Option "CursorShadow" "1"
Option "CursorShadowAlpha" "63"
Option "CursorShadowYOffset" "2"
Option "CursorShadowXOffset" "4"

Removing the ugly black stripe in X
Now we're almost there. Firing up X should work now. But there will be an ugly black vertical stripe on the right-hand side of the screen. To get rid of it put the following line into your modules.conf

options NVdriver NVreg_SoftEDIDs=0 NVreg_Mobile=2

Using recent drivers (16-Feb-2003 and up) this issue can also be solved by adding the following line to the Device section in your XF86Config-4.

Option "FlatPanelProperties" "Scaling = native"

Remember: using Debian, please do not write stuff directly to /etc/modules.conf. The content is regenerated on upgrades. Put the line into /etc/modutils/NVdriver and call update-modules once.
回复 支持 反对

使用道具 举报

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

本版积分规则

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