Доброго времени суток! У меня ноутбук HP Pavilion dv6-3090er Entertainment, в нём две видеокарты:
# lspci | grep VGA
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880M [Mobility Radeon HD 4225/4250]
02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Madison [Mobility Radeon HD 5650/5750 / 6550M]
По умолчанию X использует встроенную (обратить внимание не символ звёздочки, парсер меняет его на жирный текст):
# cat /var/log/Xorg.0.log | grep PCI
[ 19.840] (--) PCI:*(0:1:5:0) 1002:9712:103c:1440 rev 0, Mem @ 0xd0000000/268435456, 0xf0400000/65536, 0xf0300000/1048576, I/O @ 0x00004000/256
[ 19.841] (--) PCI: (0:2:0:0) 1002:68c1:103c:1440 rev 0, Mem @ 0xe0000000/268435456, 0xf0200000/131072, I/O @ 0x00003000/256, BIOS @ 0x????????/131072
В другом дистре я делал в rc.local обращение к vgaswitcheroo, отключал встроенную и прибивал X, после чего lightDM благополучно сам перезапускался уже на дискретной карте.
С сборке CLDG нет vgaswitcheroo по умолчанию в ядре (насколько я понял по отсутствию соответствующих веток в ФС), я решил просто указать конкретный PCI адрес в настройках X:
# cat /etc/X11/xorg.conf
#------------------------------------------------------------------------------
# Modified Calculate-core 3.1.5.1
# Processed template files:
# /var/lib/layman/calculate/profiles/templates/3.1/3_ac_install_live/1-live/x11-base/xorg-server/X11/xorg.conf
# For modify this file, create /etc/X11/xorg.conf.clt template.
#------------------------------------------------------------------------------
Section "ServerLayout"
Identifier "Xorg Configured"
Screen "Monitor"
EndSection
Section "Files"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/droid"
EndSection
Section "Module"
Load "dri"
Load "dbe" # Double buffer extension
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extension
EndSection
Section "Monitor"
Identifier "StandardMonitor"
Option "DPMS"
EndSection
Section "Device"
Identifier "radeonVGA"
Driver "radeon"
#BusID "PCI:2:0:0"
EndSection
Section "Screen"
Identifier "Monitor"
Device "radeonVGA"
Monitor "StandardMonitor"
DefaultDepth 24
Subsection "Display"
Viewport 0 0
Depth 24
Modes "1366x768"
EndSubsection
EndSection
Section "DRI"
Group "video"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "On"
EndSection
Как видите строка с BusID закомментирована, потому что если её раскомментировать, - иксы не стартуют. В лог пишет, что не найдены screen-ы, fatal error все дела.
Как мне в моём случае заставить иксы стартовать на дискретной карте? Заранее благодарю!