thank you! this is the program i was using. i read the wiki and it should work now.
If you have it working let me know what you have done. I’m interested in knowing.
i was able to install prime-run and follow the wiki:
here is the output from xrandr:
xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associate
roviders: 0 name:modesetting
Provider 1: id: 0x258 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0
however, when i ran glxgears, i did not see the overlay onscreen.
i wonder if there is a way to know whether gpu offloading actually happened. Is there another test or system log? Sorry ricklinux regarding my low skill level.
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME="nvidia" __VK_LAYER_NV_optimus="NVIDIA_only" __GL_SHOW_GRAPHICS_OSD=1 glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
304 frames in 5.0 seconds = 60.649 FPS
301 frames in 5.0 seconds = 60.010 FPS
406 frames in 5.0 seconds = 81.187 FPS
300 frames in 5.0 seconds = 59.999 FPS
301 frames in 5.0 seconds = 60.002 FPS
301 frames in 5.0 seconds = 60.001 FPS
300 frames in 5.0 seconds = 59.994 FPS
301 frames in 5.0 seconds = 60.026 FPS
● optimus-manager.service - Optimus Manager Commands Daemon
Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-10-17 19:59:58 CDT; 14min ago
Process: 679 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=exited, status=0/S>
Process: 742 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exited, status=0/SUC>
Main PID: 894 (python3)
Tasks: 1 (limit: 18747)
Memory: 34.2M
CGroup: /system.slice/optimus-manager.service
└─894 /usr/bin/python3 -u -m optimus_manager.daemon
Oct 17 19:59:58 x360 python3[894]: [1] INFO: Opening UNIX socket
Oct 17 19:59:58 x360 python3[894]: [1] INFO: Awaiting commands
Oct 17 20:00:29 x360 python3[894]: [30491] INFO: Received command : {
Oct 17 20:00:29 x360 python3[894]: "args": {
Oct 17 20:00:29 x360 python3[894]: "mode": "hybrid"
Oct 17 20:00:29 x360 python3[894]: },
Oct 17 20:00:29 x360 python3[894]: "type": "switch"
Oct 17 20:00:29 x360 python3[894]: }
Oct 17 20:00:29 x360 python3[894]: [30491] INFO: Writing requested GPU mode hybrid
Oct 17 20:00:29 x360 python3[894]: [30491] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': >
l
Did you look at this part?
Edit: Do you have mesa-demos installed?
i did now.
still no overlay.
I don’t have any hybrid equipment so it’s hard to understand sometimes what you mean? I have nvidia but on a desktop.
Sorry i’ve not been clear.
The wiki describes that with the commands given, there should be a text overlay in the glxgears to indicate that the output is indeed being processed by the nvidia gpu.
I see output similar to yours, but no text overlay, so i am not sure whether it is being generated by the gpu or not.
i wondered if there is any command or log that shows what gpu is being used by a particular task.
just to make sure that my installation is working as hybrid.
Did you use the command to put it in hybrid mode?
Edit: Read the section under this.
How can I check which GPU my X session is running on ?
Run optimus-manager --print-mode
. Alternatively, you can run glxinfo | grep "OpenGL renderer"
to get the name of the current GPU.
I was directed to a log file created by optimus-manager during switch.
here is the output:
less /var/log/optimus-manager/switch/switch-20201017T200030.log
i suppose it was successfully set up then.
thanks.
[7] INFO: # Xorg pre-start hook
[7] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'hybrid', 'current_mode': 'intel'}
[7] INFO: Requested mode is: hybrid
[7] INFO: Checking for GDM display servers
[791] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[791] INFO: Unloading modules ['nouveau'] (if loaded)
[826] INFO: Loading module nvidia
[1630] INFO: Loading module nvidia_drm
[2333] INFO: Loaded extra Intel Xorg options (0 lines)
[2334] INFO: Loaded extra Intel Xorg options (0 lines)
[2334] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[2334] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20201017T200030', 'requested_mode': 'hybrid'}
[2334] INFO: Xorg pre-start hook completed successfully.
[4] INFO: # Xorg post-start hook
[4] INFO: Running /etc/optimus-manager/xsetup-hybrid.sh
[16] INFO: Writing state {'type': 'done', 'switch_id': '20201017T200030', 'current_mode': 'hybrid'}
[16] INFO: Xorg post-start hook completed successfully.
Well it looks good to me. Like i say i don’t have any of this hardware to play with so i’m just going on gut instinct of how it is supposed to work. Following what i know and guessing at the parts i don’t. This looks right and i don’t see any errors.