this post was submitted on 30 Aug 2023
1412 points (97.5% liked)

Technology

60130 readers
2994 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] bobman@unilem.org 1 points 1 year ago (1 children)

It's just optimus now.

The issue is that in order for a program to use the dedicated GPU, I need to launch it with prime-run prepended to it.

[–] Intralexical@lemmy.world 1 points 1 year ago

There's probably some programs that you always want to run with the dedicated GPU, though.

Copy the launchers for those from /usr/share/applications to ~/.local/share/applications, and edit the Exec= line to include prime-run?

Or, assuming prime-run is inheritable (since otherwise apps that need renderer subprocesses wouldn't work), run an application launcher/menu itself with prime-run?

Actually, it looks like prime-run just sets a couple environment variables anyway. So set those however you want for each program.

What does "NVIDIA Control Panel" look like these days? It's been a couple years since I've seen it. No options in there?

I'm assuming you still want the IGPU and not the discrete GPU for rendering the desktop/simple programs, for power consumption and performance reasons, so you're not willing to just turn the IGPU off or stick your entire session under prime-run or export its environment variables in ~/.profile or whatever.


It looks like there are also GPU switcher taskbar applets for both KDE and GNOME. This sounds like it would be easy enough.

…I think back when I was setting up a NVIDIA laptop, I might have just put a toggle for optimus-manager somewhere, or something.