您尚未登录。

#1 2018-06-20 21:49:04

daiaji
会员
注册时间: 2018-06-20
帖子: 5

能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

/etc/X11/xorg.conf.d/secondary-gpu.conf

Section “Device”
Identifier “Device1”
Driver “radeon”
VendorName “AMD Corporation”
BoardName “AMD Secondary”
BusID “PCI:7:0:0”
EndSection

弄了之后X还不能启动

报错这样

[   219.726] (--) Log file renamed from "/var/log/Xorg.pid-3572.log" to "/var/log/Xorg.0.log"
[   219.727]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[   219.727] X Protocol Version 11, Revision 0
[   219.727] Build Operating System: openSUSE SUSE LINUX
[   219.727] Current Operating System: Linux linux-lpr1 4.17.1-1-default #1 SMP PREEMPT Thu Jun 14 06:39:01 UTC 2018 (df028bb) x86_64
[   219.727] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.17.1-1-default root=UUID=4f1b8374-6f94-4946-a0cb-f85e960c106e resume=/dev/disk/by-id/ata-GLOWAY_STK240GS3-S7_000000008850-part6 amd_iommu=on iommu=pt video=efifb:off splash=silent quiet showopts
[   219.727] Build Date: 17 April 2018  12:00:00PM
[   219.727] 
[   219.727] Current version of pixman: 0.34.0
[   219.727]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   219.727] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   219.727] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun 20 12:48:49 2018
[   219.727] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   219.727] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   219.727] (==) No Layout section.  Using the first Screen section.
[   219.727] (==) No screen section available. Using defaults.
[   219.727] (**) |-->Screen "Default Screen Section" (0)
[   219.727] (**) |   |-->Monitor "<default monitor>"
[   219.728] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[   219.728] (**) |   |-->Device "Device1"
[   219.728] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   219.728] (==) Automatically adding devices
[   219.728] (==) Automatically enabling devices
[   219.728] (==) Automatically adding GPU devices
[   219.728] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   219.728] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
[   219.728]     Entry deleted from font path.
[   219.728] (==) FontPath set to:
    /usr/share/fonts/misc:unscaled,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/ghostscript/,
    /usr/share/fonts/cyrillic:unscaled,
    /usr/share/fonts/truetype/,
    built-ins
[   219.728] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   219.728] (**) Extension "XFree86-DGA" is disabled
[   219.728] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[   219.728] (II) Loader magic: 0x5614f4fffce0
[   219.728] (II) Module ABI versions:
[   219.728]     X.Org ANSI C Emulation: 0.4
[   219.728]     X.Org Video Driver: 23.0
[   219.728]     X.Org XInput driver : 24.1
[   219.728]     X.Org Server Extension : 10.0
[   219.729] (++) using VT number 7

[   219.729] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   219.729] (II) xfree86: Adding drm device (/dev/dri/card0)
[   219.735] (--) PCI:*(0:1:0:0) 10de:1c82:1458:378e rev 161, Mem @ 0xfd000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[   219.735] (--) PCI: (0:7:0:0) 1002:9552:0000:0000 rev 0, Mem @ 0xc0000000/268435456, 0xfe120000/65536, I/O @ 0x0000a000/256, BIOS @ 0x????????/131072
[   219.735] (II) LoadModule: "glx"
[   219.735] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   219.736] (II) Module glx: vendor="X.Org Foundation"
[   219.736]     compiled for 1.19.6, module version = 1.0.0
[   219.736]     ABI class: X.Org Server Extension, version 10.0
[   219.736] (II) LoadModule: "radeon"
[   219.736] (WW) Warning, couldn't open module radeon
[   219.736] (II) UnloadModule: "radeon"
[   219.736] (II) Unloading radeon
[   219.736] (EE) Failed to load module "radeon" (module does not exist, 0)
[   219.736] (EE) No drivers available.
[   219.736] (EE)
Fatal server error:
[   219.736] (EE) no screens found(EE)
[   219.736] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.
[   219.736] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   219.736] (EE)
[   219.736] (EE) Server terminated with error (1). Closing log file.

wiki上说如果BIOS提供了选项就还行
没提供就只能交换显卡位置
但是第二条pci-e插游戏卡的话 就只有pci -e 2.0 x4的速度啊

最近编辑记录 daiaji (2018-06-20 21:53:31)

离线

#2 2018-06-21 12:24:40

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

lspci -vks 7:0.0

命令看看你的显卡用的啥驱动。根据这个命令的输出确定你的配置文件具体内容。

还有你的电脑是笔记本还是台式机?两张显卡是核显+独显的关系还是两张都是独显?

Xorg日志的错误提示是说你的机器上找不到一个叫做radeon的显卡驱动,你检查一下是不是应该使用amdgpu,或者其他啥的。

离线

#3 2018-06-25 20:53:16

daiaji
会员
注册时间: 2018-06-20
帖子: 5

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

matrikslee 说:

lspci -vks 7:0.0

命令看看你的显卡用的啥驱动。根据这个命令的输出确定你的配置文件具体内容。

还有你的电脑是笔记本还是台式机?两张显卡是核显+独显的关系还是两张都是独显?

Xorg日志的错误提示是说你的机器上找不到一个叫做radeon的显卡驱动,你检查一下是不是应该使用amdgpu,或者其他啥的。

sudo lspci -vks 1:0.0
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV710/M92 [Mobility Radeon HD 4330/4350/4550] (prog-if 00 [VGA controller])
        Flags: bus master, fast devsel, latency 0, IRQ 39, NUMA node 0
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at fe520000 (64-bit, non-prefetchable) [size=64K]
        I/O ports at e000 [size=256]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Legacy Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: radeon
        Kernel modules: radeon

没办法 姑且把卡换到第一条pci-e
用老的开源驱动没跑了

离线

#4 2018-06-25 22:36:54

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

你装了xf86-video-radeon吗?


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#5 2018-06-25 23:07:14

daiaji
会员
注册时间: 2018-06-20
帖子: 5

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

xtricman 说:

你装了xf86-video-radeon吗?

正在加载软件源数据...
正在读取已安装的软件包...
'xf86-video-ati' 已安装过了。
没有 'xf86-video-ati-18.0.1-1.2.x86_64' 的更新候选。已安装了可获取的最高版本。
正在解决软件包依赖关系...

无事可做。

离线

#6 2018-06-25 23:25:19

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

如果把除了Identifier外全部删除呢?


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#7 2018-06-26 00:20:25

daiaji
会员
注册时间: 2018-06-20
帖子: 5

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

xtricman 说:

如果把除了Identifier外全部删除呢?

系统会挂的吧这个……

离线

#8 2018-06-26 07:11:47

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

跟系统又什么关系,又一个没了X就是系统死了的?


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#9 2018-06-26 18:17:11

daiaji
会员
注册时间: 2018-06-20
帖子: 5

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

xtricman 说:

跟系统又什么关系,又一个没了X就是系统死了的?

行行行 我快照一下

离线

#10 2018-06-30 17:07:10

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

用lsmod 看看 有没有列出radeon这个module,如果没有(我感觉你这个情况应该就是没有加载内核模块导致的),用modprobe radeon将显卡驱动模块加载起来,

还有,你可以ls /dev/dri/, 看看这个目录下有几个东西,如果你的radeon内核模块启动起来后,会出现对应于该显卡的设备文件

最近编辑记录 matrikslee (2018-06-30 17:09:14)

离线

#11 2018-07-23 00:11:44

Kurobac
小白
注册时间: 2018-05-12
帖子: 85

Re: 能强制指定Xorg从第二张显卡启动吗?老铁救命啊!

因为你内核命令行加了video=efifb:off。
radeon模块需要KMS,内核命令行加了video就会关闭KMS…
可能的可行解决办法就是装闭源驱动。
我前两天入了块GT640 OEM当4K亮机卡(因为我主板只有4K@30Hz输出),碰到了类似的问题。Xorg配置完显卡依旧提示找不到监视器,我就接着配置监视器,之后日志才告诉我说KMS启动失败…
我装完NVIDIA闭源驱动之后Xorg就能自动配置成功了,但是还是遇到一大堆问题。严重的屏幕撕裂,tty黑屏,GRUB黑屏,也就是说从自检完成到Xorg启动这段时间全都是黑屏…读着Troubleshooting读的头都大了…也不知道是因为这个内核选项还是我没配置好…
后来干脆直接退了,这两天在闲鱼找有DP的主板……

最近编辑记录 Kurobac (2018-07-23 00:13:05)


# pacman -Syu

离线

页脚