ghw
发表于 2012-8-27 08:08:13
BIOS里废掉一个显卡
loneil
发表于 2012-8-28 00:06:56
保留intel可以正常进入界面。
xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0"Screen0" 0 0
Screen 1"Screen1" RightOf "Screen0"
Screen 2"Screen2" RightOf "Screen1"
Screen 3"Screen3" RightOf "Screen2"
Screen 4"Screen4" RightOf "Screen3"
Screen 5"Screen5" RightOf "Screen4"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "catalogue:/etc/X11/fontpath.d"
FontPath "built-ins"
EndSection
Section "Module"
Load"dbe"
Load"dri"
Load"dri2"
Load"extmod"
Load"glx"
Load"record"
EndSection
Section "InputDevice"
Identifier"Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier"Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor3"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor4"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor5"
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",
### <percent>: "<f>%"
### : arg optional
#Option "DRI" # [<bool>]
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "FallbackDebug" # [<bool>]
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "Shadow" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "RelaxedFencing" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier"Card0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### : 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"Card1"
Driver "nv"
BusID "PCI:1:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### : arg optional
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # <str>
#Option "fbdev" # <str>
#Option "debug" # [<bool>]
Identifier"Card2"
Driver "fbdev"
BusID "PCI:0:2:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### : arg optional
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # <str>
#Option "fbdev" # <str>
#Option "debug" # [<bool>]
Identifier"Card3"
Driver "fbdev"
BusID "PCI:1:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### : arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier"Card4"
Driver "vesa"
BusID "PCI:0:2:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### : arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier"Card5"
Driver "vesa"
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
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
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
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor "Monitor2"
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
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen3"
Device "Card3"
Monitor "Monitor3"
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
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen4"
Device "Card4"
Monitor "Monitor4"
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
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen5"
Device "Card5"
Monitor "Monitor5"
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
Depth 24
EndSubSection
EndSection
haulm
发表于 2012-8-28 00:47:50
保留intel可以正常进入界面是啥意思? 是说打开 Bios 中的 intel 显卡就可以进入界面?还是说自己调整过 xorg.conf?
目前双显卡最好使用 intel 驱动,否则看置顶帖如何去开启双显支持,比较麻烦。
loneil
发表于 2012-8-28 01:11:45
bios没有提供关闭显卡的功能,是配置xorg.conf后。
只能用回以前的老办法了。。。
haulm
发表于 2012-8-28 02:01:15
原帖由 loneil 于 2012-8-28 01:11 发表 http://forum.linuxfans.org/images/common/back.gif
bios没有提供关闭显卡的功能,是配置xorg.conf后。
只能用回以前的老办法了。。。
我在脚本里面是通过 lspci | grep VGA 得到信息,分析后自动修正 xorg.conf,你的情况我可以加上代码备以后制做 ISO 时修正。
所以我要知道,如果你没有修改 xorg.conf 时,也就是默认时它里面倒底使用的两个驱动分别是什么?
我要知道 intel 驱动被用成了 vesa 或别的什么驱动了,以后我好更正啊。
loneil
发表于 2012-8-28 17:02:15
今晚回去折腾一下,话说,怎么看默认时,使用的驱动?
使用lspci | grep VGA 可以得到驱动信息么?
loneil
发表于 2012-8-28 18:50:23
不巧,要加班。:shock:...
haulm
发表于 2012-8-29 05:07:52
原帖由 loneil 于 2012-8-28 17:02 发表 http://forum.linuxfans.org/images/common/back.gif
今晚回去折腾一下,话说,怎么看默认时,使用的驱动?
使用lspci | grep VGA 可以得到驱动信息么?
我是指你没修改 xorg.conf 时的文件给到我,再试一下如果没有 xorg.conf 是否能工作,lspci | grep VGA 得到的是硬件信息,而系统默认配置的 xorg.conf 或者是无配置运行时可能对双显卡无能为力,所以只好我用脚本另行判断。
loneil
发表于 2012-8-29 23:25:41
我贴出来的那个xorg.conf的配置,就是没有修改过的,默认就是这个。
删除了xorg.conf,init 5黑屏。跟刚进入一样。
在默认的xorg.conf,保留intel可以正常运行,就是看到界面,其他单独保留都不行。
[ 本帖最后由 loneil 于 2012-8-29 23:30 编辑 ]
haulm
发表于 2012-8-30 07:04:51
我还是没看懂,保留也就是说不做修改? 看到界面到底是否是可以用还是说看不清?
双显很麻烦,那个 xorg.conf 列出了四个分别尝试的驱动。
loneil
发表于 2012-8-30 20:00:15
在默认的配置上,保留 intel 的 Section "Device" 和 Section "Screen" 就可以运行
可以正确显示界面并且可以登录使用的 xorg.conf
【xorg.confv1】
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0"Screen0" 0 0
Screen 1"Screen1" RightOf "Screen0"
Screen 2"Screen2" RightOf "Screen1"
Screen 3"Screen3" RightOf "Screen2"
Screen 4"Screen4" RightOf "Screen3"
Screen 5"Screen5" RightOf "Screen4"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "catalogue:/etc/X11/fontpath.d"
FontPath "built-ins"
EndSection
Section "Module"
Load"dbe"
Load"dri"
Load"dri2"
Load"extmod"
Load"glx"
Load"record"
EndSection
Section "InputDevice"
Identifier"Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier"Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor3"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor4"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor5"
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",
### <percent>: "<f>%"
### : arg optional
#Option "DRI" # [<bool>]
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "FallbackDebug" # [<bool>]
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "Shadow" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "RelaxedFencing" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier"Card0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### : 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"Card1"
Driver "nv"
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
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
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
Depth 24
EndSubSection
EndSection
除此之外,在这个可以运行的 xorg.conf【xorg.confv1】 的配置上,把 intel 和 nv 更改,替换为 fbdev 黑屏,或者替换为 vesa 也黑屏。没尝试过 fbdev+vesa。
在【xorg.confv1】 的配置上去掉nv,单独一个intel是可以运行和登录使用的。
[ 本帖最后由 loneil 于 2012-8-30 20:05 编辑 ]
haulm
发表于 2012-8-30 20:11:54
汗死,你怎么就描述不清楚,我到现在还不懂默认设置你能不能正常进入桌面。
loneil
发表于 2012-8-30 20:29:53
额,这样的,默认设置可以进入系统,但是在输入登录用户和密码的界面是黑色,鼠标可以移动,鼠标移动到输入框能看到鼠标图标改变成选择文本的图标。对应输入root和magic就进入系统了。
haulm
发表于 2012-8-30 21:07:58
也就是说 intel 驱动显示不理想,换 nvvesa 都不行,估计安装 nvidia 也不成吧。
loneil
发表于 2012-8-30 21:24:17
对。不知道能不能使用官方驱动。