Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

NVIDIA Manager for Optimus/Bumblebee

License

NotificationsYou must be signed in to change notification settings

quebin31/nvman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️WARNING⚠️ This script depends onoptimus-manager which is only tested inArch Linux based distros.

Introduction

This tiny script pretends to be a manager for both well known programs:bumblebee andoptimus-manager. Both of them providesolutions for laptops that have NVIDIA.

What's the problem trying to solve?

If you already known howbumblebee andoptimus-manager works, you may have noticedthat you may need both of them.

  • Sometimes you want to run a program withbumblebee regarding the performance loss.
  • Sometimes you want to run a program withoptimus-manager regarding that you have tolog out and log in.

You will have to stop and start your services manually all the time, also you need to keeptrack of which of them is starting at boot, they are indeed conflictive.

Dependencies

  • bumblebee (Official repo)
  • primus (Official repo)
  • optimus-manager (AUR)

Installation

You should definetly take advantage of thePKGBUILD available on the AUR.

  • Usingyay

    yay -S nvman
  • Usingmakepkg

    git clone https://aur.archlinux.org/nvman.gitcd nvmanmakepkg -sic

Configuration

There is a simple config file and it's located at/etc/nvman/config. The only validvalue is the default service started at boot. You won't need to modify this file manuallyalmost never, instead you should usenvman default <bumblebee|optimus>.

  • Config syntax:

    default = <bumblebee|optimus>
  • Default config:

    default = optimus

Usage

Commands:  nvidia  <on|off>                Turn on/off NVIDIA GPU, useful for CUDA  run     <cmd>                   Run any command with primusrun  switch  <nvidia|intel|auto>     Switch gpu using optimus-manager  startup <nvidia|intel>          Set startup gpu for optimus service  default <bumblebee|optimus>     Set default service at boot  start   <bumblebee|optimus>     Manually start the service  stop    <bumblebee|optimus>     Manually stop the service  help                            Show this help  status                          Show the current status of both services

Commands examples

  • Usingnvidia to turn on/off your NVIDIA GPU on demand. This command is really usefulfor CUDA, and if you suspect that your NVIDIA GPU is on.

    nvman nvidia on./cuda-program
  • Usingrun to run something usingprimusrun

    nvman run glxgears
  • Usingswitch to switch GPU usingoptimus-manager

    nvman switch auto
  • Usingdefault to set your default service at boot (default value: optimus)

    nvman default optimus
  • Usingstartup to set your initial GPU on boot (only valid if your default service isoptimus)

     nvman startup intel
  • Usingstatus to see what are you currently using (you can also just typenvman)

    Optimus          : active    (enabled)Bumblebee        : inactive  (disabled)NVIDIA GPU       : offDefault service  : optimusOptimus mode     : intelOptimus startup  : intel

F.A.Q.

Why should I usenvman?

As I stated above, maybe you want to havebumblebee andoptimus-manager on yoursystem.nvman will help you to work with them, without systemd headaches.

What's doingnvman.service? Is it necessary?

It's TOTALLY necessary to have enablednvman.service, it basically takes care that onlyone of the services (bumblebee oroptimus) start at boot, since they can break yoursystem if both of them are enabled.


[8]ページ先頭

©2009-2025 Movatter.jp