Новости:

Форуму исполнилось 12 лет!

Появилась ссылка на архив (до 16.06.2020 г.) форума и вики slackware.ru .
Владельцы и(или) правообладатели сайта slackware.ru могут со мной связаться
и я уберу ссылку по их первой же просьбе. По ссылке не работает поиск и, естественно, логин с регистрацией. Поэтому, всё только для чтения.

Главное меню

Slackware64 current + nvidia optimus

Автор Wyvern, 15 декабря 2016, 02:33:51

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Wyvern


# lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 650M] [10de:0fd1] (rev a1) (prog-if 00 [VGA controller])


# grep switcheroo /var/log/messages
Dec 14 21:40:20 N56VZ-Dragon kernel: [   26.341235] VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.PEG0.PEGP handle
Dec 14 21:40:20 N56VZ-Dragon kernel: [   26.671108] vga_switcheroo: enabled
Dec 14 21:41:56 N56VZ-Dragon kernel: [   28.192030] VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.PEG0.PEGP handle
Dec 14 21:41:56 N56VZ-Dragon kernel: [   28.527600] vga_switcheroo: enabled
Dec 14 21:50:55 n56vz-Dragon-DEV kernel: [   23.487649] VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.PEG0.PEGP handle
Dec 14 21:50:55 n56vz-Dragon-DEV kernel: [   23.817489] vga_switcheroo: enabled

cat /sys/kernel/debug/vgaswitcheroo/switch
cat: /sys/kernel/debug/vgaswitcheroo/switch: Нет такого файла или каталога


$  glxinfo|grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.1
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:


$ DRI_PRIME=1 glxinfo|grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.1
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

Похоже, что switcheroo есть, но его как бы и нет. Ведь это дело DRI_PRIME через делается?
Вообще, я не понял, как заставить работать приложение через дискретную карту.
Помогите, пожалуйста.

Graf

Сначала:
# mount -t debugfs /dev/debug /sys/kernel/debug

а потом
# cat /sys/kernel/debug/vgaswitcheroo/switch
и все операции с ним.

Что-то подобное обсуждали в этой ветке .
Может поможет :).