Den 11.01.2025 23:37, skrev Andrew Randrianasulu:


вс, 12 янв. 2025 г., 01:25 Terje J. Hanssen via Cin <[email protected]>:

    Extracted info from referenced documents:

    The Switcheroo-Control is a D-Bus service to check the
    availability of hybrid GPU configurations and integrate with the
    desktop environment. This tool is the recommended solution to
    manage GPU switching on systems with multiple GPUs.

    Users are encouraged to move away from legacy tools like prime,
    bbswitch, and bumblebee, as they can cause more harm than good on
    modern systems.

    switcherooctl integrates well with Wayland and Xorg, is a
    lightweight userspace utility and its functionality extends across
    both Intel + NVIDIA and AMD + NVIDIA setups. By using
    switcherooctl, users can easily select which GPU to use for
    specific applications and eliminate the need for complex scripts
    or environment variables.
    ------------

    https://negativo17.org/prime-optimus-laptops-and-multi-gpu-systems/
    https://news.opensuse.org/2024/12/09/gpu-switching-game-changing/

    For openSUSE on SkyLake with Nvidia dGPU + integrated Intel iGPU I
    followed this installation and setup guide
    SDB:NVIDIA Switcheroo Control
    https://en.opensuse.org/SDB:NVIDIA_Switcheroo_Control

    After installing the switcheroo-control package, it had to be
    enabled as a service and then reboot:
    systemctl enable switcheroo-control.service

    -------

    According to its online help info

    switcherooctl version
    2.6

    switcherooctl help list
    Usage:
      switcherooctl list

    List the known GPUs.

    switcherooctl help launch
    Usage:
      switcherooctl launch [COMMAND…]

    Launch a command on a specific GPU.

    Options:
      -g, --gpu=GPU-ID                The GPU to launch on

    The default GPU to launch on will be the first discrete GPU, or the
    default GPU if there’s only one. Identifiers can be found using the
    list command.

    ------------
    Example:

    switcherooctl list

    Device: 0
      Name:        Intel® HD Graphics 530
      Default:     yes
      Environment: DRI_PRIME=pci-0000_00_02_0

    Device: 1
      Name:        NVIDIA Corporation GM206 [GeForce GTX 960]
      Default:     no
      Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia
    __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only

    -----------

    I have not so far any example command(s) to launch(?)


May be at opensuse forums someone already posted how to use it? I think those forums will be best place to ask, due to user concentration.


Well, yes, I am there (also), and found the SDB document how to enable the tool's service.

I see I should not have added the question mark, as my post merely was targeted as info about this generic Linux tool ;) One feature mentioned in the references is Selecting the GPU to use when running a program from the desktop.
-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to