This is a fork SUSE-PRIME re-writen in System V standarts for unofficially Slackware

————————————————————————————-

nvidia-optimus-switch

[EN] DESCRIPTION:

What’s slackware-prime? SLACKWARE-PRIME: a tool that lets you choose intel or nvidia card for X session in a Optimus technology laptop, performances are better than bumblebee.

Script provides:

A choice to change default vga on boot, or remember the latest session

REQUIREMENTS:

Nvidia proprietary drivers

Remove “slackware-prime” package after driver setup

USAGE:

vga switch [intel | nvidia ] >> [ROOT] system waits for logout to switch video card

vga default [intel | nvidia | keep] >> [ROOT] set default vga on boot (keep > remember latest session)

vga query >> show current gpu and boot settings

File Paths

RULES

“optimus-switch.conf” /etc/modprobe.d/ || modprobe rules for boot and modesetting

EXECUTABLES

“vga” /usr/bin/ || executable tool, provides you all options

CONFIG_FILES

“config” /etc/prime/ || main configuration file with all settings, DO NOT EDIT

“xorg-intel.conf” /etc/prime/ || slackware-prime xorg config file of SlackwarePrime project

“xorg-nvidia.conf” /etc/prime/ || slackware-prime xorg config file of SlackwarePrime project

SERVICES

“prime_switch” /etc/prime/services/ || core of entire script

“prime-select.sh” /etc/prime/services/ || prime-select executable of SLACKWARE-Prime project