So I have this option of Launch Using Discrete Graphics Card, which I presume allows me to open applications so that they use the discrete NVIDIA GTX 1650 graphic card on my laptop. It seems to be equivalent of using switcherooctl launch command.
$ uname -a
Linux some-name-here 5.18.0-4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.16-1 (2022-08-10) x86_64 GNU/Linux
$ nvidia-smi
Thu Aug 18 15:19:25 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.141.03 Driver Version: 470.141.03 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A |
| N/A 42C P8 4W / N/A | 5MiB / 3911MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1398 G /usr/lib/xorg/Xorg 4MiB |
+-----------------------------------------------------------------------------+
When I actually use it, it doesn't work, as in it isn't working properly.
For example, on Chromium with Hardware acceleration enabled, I get:
But when I normally launch, I don't have such problems:
Launching with switcheroo command, we can see following output on terminal:
[24936:24936:0818/145402.243976:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[24936:24936:0818/145402.244193:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[24936:24936:0818/145402.244256:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[24936:24936:0818/145402.244756:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[24936:24936:0818/145402.244819:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[24936:24936:0818/145402.244859:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[24936:24936:0818/145402.244889:ERROR:gl_ozone_egl.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
[24936:24936:0818/145402.247139:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[24976:24976:0818/145402.469444:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[24976:24976:0818/145402.469610:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[24976:24976:0818/145402.469644:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[24976:24976:0818/145402.470012:ERROR:angle_platform_impl.cc(43)] Display.cpp:992 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[24976:24976:0818/145402.470080:ERROR:gl_surface_egl.cc(831)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[24976:24976:0818/145402.470106:ERROR:gl_surface_egl.cc(1353)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[24976:24976:0818/145402.470130:ERROR:gl_ozone_egl.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
[24976:24976:0818/145402.472348:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[25015:25015:0818/145402.482869:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is
Electrons app also don't work, either black screen or just shows a frozen screen of previous window.
Similarly, Sublime Text with hardware acceleration enabled spits out this error:
The glmark2 score is also worse (536) for the NVIDIA card (switcherooctl launch glmark2 --fullscreen --show-all-options) compared to 4551 for the normal integrated card (glmark2 --fullscreen --show-all-options).




