Судя по FPS во всех случаях glxgears обрабатывает графику картой intel.
fractal@kali:~$ primusrun glxgears
318 frames in 5.0 seconds = 63.455 FPS
302 frames in 5.0 seconds = 60.297 FPS
302 frames in 5.0 seconds = 60.304 FPS
302 frames in 5.0 seconds = 60.296 FPS
302 frames in 5.0 seconds = 60.303 FPS
fractal@kali:~$ optirun glxgears
317 frames in 5.0 seconds = 63.186 FPS
302 frames in 5.0 seconds = 60.310 FPS
302 frames in 5.0 seconds = 60.295 FPS
302 frames in 5.0 seconds = 60.309 FPS
302 frames in 5.0 seconds = 60.291 FPS
fractal@kali:~$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
359 frames in 5.0 seconds = 71.728 FPS
302 frames in 5.0 seconds = 60.300 FPS
302 frames in 5.0 seconds = 60.299 FPS
302 frames in 5.0 seconds = 60.296 FPS
302 frames in 5.0 seconds = 60.304 FPS
При использование primusrun карта nvidia вообще не используется.
fractal@kali:~$ primusrun lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce 610M] [10de:0dea] (rev ff) (prog-if ff)
fractal@kali:~$ optirun lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce 610M] [10de:0dea] (rev a1) (prog-if 00 [VGA controller])
fractal@kali:~$ lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce 610M] [10de:0dea] (rev a1) (prog-if 00 [VGA controller])
До использования optirun активной была только Intel.
Этот баг с не отключением карты nvidia после завершения работы приложения еще не убрали.
primusrun и optirun видят видеокарту nvidia, но похоже что запускает через intel. cuda и nvidia-smi работают только через optirun.
fractal@kali:~$ primusrun glxinfo |grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 610M/PCIe/SSE2
OpenGL core profile version string: 4.4.0 NVIDIA 352.21
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 352.21
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
fractal@kali:~$ optirun glxinfo |grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 610M/PCIe/SSE2
OpenGL core profile version string: 4.4.0 NVIDIA 352.21
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 352.21
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
fractal@kali:~$ glxinfo |grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile
OpenGL version string: 2.1 Mesa 10.3.2
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 10.3.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
Драйвера из репозитория дебиан самые последние, официальные драйвера с сайта nvidia не встают.
Как заставить приложения использовать карту nvidia?
Почему primusrun видит карту, но не работает?
Primusrun даже VGA controller не переключает!
[update #1]
Забыл добавлять vblank_mode=0, optirun и primusrun полностью функционируют.
Вопрос решен.