← 返回命令列表

Linux command

switcheroo-control 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List available GPUs

switcherooctl list

Launch application on discrete GPU

switcherooctl launch [application]

Launch on specific GPU

switcherooctl -g [1] launch [application]

Check service status

systemctl status switcheroo-control.service

Enable the service

sudo systemctl enable --now switcheroo-control.service

说明

switcherooctl is the command-line interface for switcheroo-control, a daemon that manages hybrid graphics on Linux laptops with multiple GPUs. It provides a simple way to list available graphics adapters and launch applications on a specific GPU. On hybrid graphics systems with both integrated (power-efficient) and discrete (high-performance) GPUs, applications default to the integrated GPU. Using switcherooctl, you can run specific applications on the discrete GPU for better graphics performance. The underlying daemon interfaces with the kernel's vga_switcheroo subsystem and provides a D-Bus API that desktop environments like GNOME and KDE use for GUI-based GPU selection. Setting the environment variable DRI_PRIME=1 achieves a similar effect for individual applications.

参数

-g, --gpu _index_
GPU index to use for launch command.
-h, --help
Display help information.
-v, --version
Display version information.

FAQ

What is the switcheroo-control command used for?

switcherooctl is the command-line interface for switcheroo-control, a daemon that manages hybrid graphics on Linux laptops with multiple GPUs. It provides a simple way to list available graphics adapters and launch applications on a specific GPU. On hybrid graphics systems with both integrated (power-efficient) and discrete (high-performance) GPUs, applications default to the integrated GPU. Using switcherooctl, you can run specific applications on the discrete GPU for better graphics performance. The underlying daemon interfaces with the kernel's vga_switcheroo subsystem and provides a D-Bus API that desktop environments like GNOME and KDE use for GUI-based GPU selection. Setting the environment variable DRI_PRIME=1 achieves a similar effect for individual applications.

How do I run a basic switcheroo-control example?

Run `switcherooctl list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -g, --gpu _index_ do in switcheroo-control?

GPU index to use for launch command.