- Notifications
You must be signed in to change notification settings - Fork0
NVIDIA Manager for Optimus/Bumblebee
License
quebin31/nvman
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
optimus-manager
which is only tested inArch Linux based distros.
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.
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 with
bumblebee
regarding the performance loss. - Sometimes you want to run a program with
optimus-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.
- bumblebee (Official repo)
- primus (Official repo)
- optimus-manager (AUR)
You should definetly take advantage of thePKGBUILD
available on the AUR.
Using
yay
yay -S nvman
Using
makepkg
git clone https://aur.archlinux.org/nvman.gitcd nvmanmakepkg -sic
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
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
Using
nvidia
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
Using
run
to run something usingprimusrun
nvman run glxgears
Using
switch
to switch GPU usingoptimus-manager
nvman switch auto
Using
default
to set your default service at boot (default value: optimus)nvman default optimus
Using
startup
to set your initial GPU on boot (only valid if your default service isoptimus)nvman startup intel
Using
status
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
Why should I use
nvman
?
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 doing
nvman.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.
About
NVIDIA Manager for Optimus/Bumblebee