optimus-manager | A Linux program to handle GPU switching on Optimus laptops | GPU library
kandi X-RAY | optimus-manager Summary
kandi X-RAY | optimus-manager Summary
A Linux program to handle GPU switching on Optimus laptops.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Report errors about the optimus - manager .
- Main entry point .
- Logs the current desktop session .
- Validate the config file
- Process a command .
- Generate the text for a Docker script .
- Set the device power .
- Load nvidia modules
- Generate the text section for the hypervisor .
- Power down GPUs .
optimus-manager Key Features
optimus-manager Examples and Code Snippets
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
$ nvidia-smi
Sun Dec 2 16:22:40 2018
+----------------------------------------------
Commands:
nvidia Turn on/off NVIDIA GPU, useful for CUDA
run Run any command with primusrun
switch Switch gpu using optimus-manager
startup Set startup gpu for optimus service
default
$ nvidia-optimus-manager status
Current profile: intel
OpenGL vendor: Intel
Discrete graphics card power status: suspended
$ nvidia-optimus-manager configure intel
Info: selecting the intel profile
$ nvidia-optimus-manager configure nvidia
Info: se
Community Discussions
Trending Discussions on optimus-manager
QUESTION
I have a bit of a hacky setup on my laptop where I use optimus-manager
to configure my screen layout at X startup based on whether an external monitor is connected or not. If it is, I only want to use the external monitor and not the laptop monitor, but because of a limitation of NVIDIA drivers, I need to leave my laptop monitor on, and just lower the backlight brightness. See my /etc/optimus-manager/xsetup-hybrid.sh
for how this works (eDP-1
is my laptop screen, and HDMI-1-0
is my external monitor):
ANSWER
Answered 2021-Mar-19 at 21:07It's likely apps are being displayed where the mouse currently resides. You could use xdotool to ensure mouse is on desired display to begin with.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install optimus-manager
You can use optimus-manager like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page