openSUSE / SUSEPrime

Provide nvidia-prime like package for openSUSE
64 stars 11 forks source link

-Added nvidia-prime-render offload support with both modesetting and … #61

Closed simopil closed 3 years ago

simopil commented 3 years ago

…xf86-video-intel drivers

-Added support for nvidia.prime=intel|intel2|nvidia|offload kernel parameter (with service enabled) Priorities: forced-boot > kernel parameter > suseprime boot preference > last used

-Made runtime switching totally independent from systemd service, now service runs only during boot -bbswitch totally independent from systemd service, service not needed for power management -No need for two different packages with and without service, bbswitch works in both cases only suse-prime package with service disabled by default could be an idea -Deprecation of boot_state variable/file: faster, easier and safer -Removed "booting" function and merged into "systemd_call" switch case, cause systemd_call will be called only during boot

-bbswitch management changes -bbswitch module blacklisted and removed from initrd -suseprime will load it (if installed) to disable nvidia and unload it to turn it ON: makes offload|nvidia boot faster, bbswitch not needed in nvidia|offload mode -bbcheck function checks for nvidia module loaded instead bbswitch status if bbswitch is not loaded

-Added various functions to decentralize case switches: nvpwr, logout_switch, logout_switch_no_dm, nv_offload_capable, offload_pref_check

-Deleted all "TAB" characters, replaced with 4-space and corrected entire script indentation -Removed various useless comments about old features -New file "/etc/prime/offload_type" stores intel driver in offload mode, editable with "prime-select offload-set" -Updated usage section with new features -Resolved bug in bbcheck function that causes creation of an empty file named "0" in root and home directory -Updated README with my contact and "Custom bootloader entries" section