Score:0

How can I instruct Ubuntu to launch VLC using my integrated (Intel) GPU instead of my default NVIDIA GPU?

al flag

I have my NVIDIA GPU set as the default within Ubuntu 22.04, since I wasn't able to get my external monitor to work otherwise. However, I am having trouble getting VLC to play videos correctly using the NVIDIA card, whereas I found that these same videos play well using my integrated Intel graphics.

Is there a way that I can instruct Ubuntu to use Intel for VLC video playback while keeping NVIDIA as the default graphics card in all other applications?

cc flag
Are you using X or Wayland? How are you setting Nvidia to be the default (selecting power/performance no longer does that)?
KBurchfiel avatar
al flag
I'm using the default Ubuntu GNOME UI, so I think the answer is X? I set the Nvidia card as the default by following the steps in this guide: https://www.linuxbabe.com/desktop-linux/switch-intel-nvidia-graphics-card-ubuntu (ie sudo prime-select nvidia) I wouldn't mind having the Intel card as the default except that my external monitor wasn't displaying an image when I switched over to it.
cc flag
x vs Wayland is a choice at login (when password field is displayed, click on gear in lower right corner.). CUDA samples need Nvidia to run, and the prime-select did not fix the problem. xrandr --listproviders (when runnint X) and ensure Intel (modesetting) is the sink output. Fix for a prog with Env vars __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia <prog to run>
David avatar
cn flag
It is not a VLC setting VLC will only use the default video. You need to set the default.
Score:1
cn flag

I can do this if I add vlc to the favourites bar (at the bottom of the screen) Search key (windows) type vlc right click vlc's icon select add to favorites. then bring up app bar at the bottom right click vlc icon launch using discrete graphics card.

as I am a naughty boy and using manually installed drivers, and I have no idea if it does indeed use the discrete graphics card, and as I am using wayland per echo $XDG_SESSION_TYPE , use at your , well, discretion.

actually I just checked and you have that option in your intitial software search choice, you don't need to add it to favorites.

ubuntu 22.04

pierrely avatar
cn flag
this may or not help https://starbeamrainbowlabs.com/blog/article.php?article=posts%2F436-running-application-on-nvidia.html
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.