{"id":13907826,"url":"https://github.com/wildtruc/nvidia-prime-select","last_synced_at":"2025-07-18T06:31:25.428Z","repository":{"id":46736145,"uuid":"65130610","full_name":"wildtruc/nvidia-prime-select","owner":"wildtruc","description":"This a fork of FedoraPrime enhanced for all linux distributions","archived":false,"fork":false,"pushed_at":"2019-10-10T11:21:50.000Z","size":185,"stargazers_count":128,"open_issues_count":6,"forks_count":14,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-08-07T23:54:12.089Z","etag":null,"topics":["linux","nvidia","nvidia-prime-select","optimus","shell-script","zenity"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wildtruc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-07T11:50:00.000Z","updated_at":"2024-07-14T22:14:36.000Z","dependencies_parsed_at":"2022-08-25T14:41:48.273Z","dependency_job_id":null,"html_url":"https://github.com/wildtruc/nvidia-prime-select","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wildtruc%2Fnvidia-prime-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wildtruc%2Fnvidia-prime-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wildtruc%2Fnvidia-prime-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wildtruc%2Fnvidia-prime-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wildtruc","download_url":"https://codeload.github.com/wildtruc/nvidia-prime-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226361547,"owners_count":17612921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","nvidia","nvidia-prime-select","optimus","shell-script","zenity"],"created_at":"2024-08-06T23:02:11.930Z","updated_at":"2025-07-18T06:31:25.412Z","avatar_url":"https://github.com/wildtruc.png","language":"Shell","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# nvidia-prime-select\nThis is a fork of **[FedoraPrime](https://github.com/bosim/FedoraPrime)** enhanced for all linux distributions.\n\n**PROJECT OUT OF DATE**\nPRIME scripts and techniques have now evolved far too much and this script should be considered obsolete.\nAs we no longer have the means to control its operation, it is preferable to move it to archive status.\n\n------------\n## Offlaod Technologie Testing preview\nPlease read [Offload](OFFLOAD.md) file for more details.\n\n------------\n\n# Introduction\nSeeking for a tools to swicht entirely from default **Intel®** GPU to the discret **Nvidia®** graphic card, I discover **[FedoraPrime](https://github.com/bosim/FedoraPrime)**.\n\nIt comes really useful for my default distro, **Fedora**, but not so cool for my custom **Nvidia®** driver install, **[FedoraPrime](https://github.com/bosim/FedoraPrime)** is **Fedora** only with a default driver config.\n\nThus, I discided to go deeper to solve that particular issue and a few others as well.\n - Choose for a custom driver install\n - Automatically configure xrandr for multi screens (or not)\n - Start **Nvidia®** GPU instead the default one whatever the end user desktop you choose.\n\n--------------\n# Update message\n### 2019-09-05 - v0.9.20\n**WARNING**: Do a 'sudo make install' this time, too much important things changed and don't forget to make a backup of /etc/nvidia-prime.\n(with root/admin terminal, do:)\n```mv -f /etc/nvidia-prime /etc/nvidia-prime.bak``` (to remove safely after controls)\n\n### 2019-08-20\nThere were many issues with grub config reported. It is hopefully fix and updated now. Please don't forget to report even if you think it's too minor and pointless.\n\n### 2018-04-01\nDev test was running on Fedora 24, since upgraded to Fedora 27 it appears that xrandr on modesettings is broken and dosn't work anymore for discret nvidia.\n\n### 2018-04-13\nFinally, the script needed a complete rewrite. For user, basics are still the same, but they work differently than the previous version.\n\nRead Changelog display before install/uninstall/update.\n\nThanks to the **[Nvidia Devtalk](https://devtalk.nvidia.com/default/topic/1024318/linux/-solved-nvidia-prime-on-dual-gpu-configuration-giving-a-blank-screen/2)** thread and to **nospam_** that giving me the necessary base to understand what changed. \n\nAlso added a libraries and xorg config editor.\n\nLibrary.conf is install by default and checked if configured.\n\nThere stil some issue with some session managers, see **Known Issues** at page bottom.\n\nHope you'll like those changes and don't forget to send any bug you get. :)\n\n### 2018-04-16\nBig mistake in repos upload :s. Forgot to send library.conf with last upgrade. My apologies.\n\n### 2018-04-22\nMulti display issue, see **CHANGELOG.md**.\n\n### 2018-04-24\nAdded options config file, report.sample and some fixes to grub and xrandr sections. See **CHANGELOG.md**.\n\n--------------\n\n# Usage\n\n## Default usage :\n  ```sh\n  nvidia-prime-select option\n  ```\n\n## Options\n - *intel* : use the default GPU\n - *nvidia* : use the **Nvidia®** GPU\n \n## Before all\nIn old version it was mandatory to edit library.conf first in case of special Nvidia drivers install. Now you can setup them directly with nvidia-prime-ui before entering you new setup. \n\nGnome and Cinnamon use a *monitors.xml*(~/.config/monitors.xml) file to keep your screen config and overide any other setup if it doesn't match the xml file.\n\nGdm Gnome3 may cause issue in some case. See **Issue** chapter in bottom ofthe page and send report if you can fix it this way.\n\n**nvidia-prime-select** comes with a *library.conf* file to set custom installation directories up (same case if you come from an other distro). If you're in this case, edit it first before launching/installing anything.\n\nExample of my custom driver install in Fedora 23:\n```sh\n  nv_drv_32='/opt/nvidia/lib'\n  nv_drv_64='/opt/nvidia/lib64'\n  nv_xorg_path='/opt/nvidia/xorg/modules'\n  rc_dir='/etc/rc.d'\n```\n\nOr use the simpliest way and launch **nvidia-prime-ui** from settings menu.\n\n**nvidia-prime-select** come also with 2 default xorg configs for **Intel®** and **Nvidia®**. Edit them as you wish before or after luanching command (edit function is available in nvidia-prime-ui).\n\n## Install\n**nvidia-prime-select** use the same install process as **[FedoraPrime](https://github.com/bosim/FedoraPrime)** :\n  ```sh\n  git clone https://github.com/wildtruc/nvidia-prime-select.git\n  cd nvidia-prime-select\n  sudo make install\n  ```\n\nTo update, run :\n  ```sh\n  sudo make update\n  ```\nTo uninstall, run :\n  ```sh\n  sudo make uninstall\n  ```\n\nWhen done, launch the commandline as admin/superuser or with nvidia-prime-ui as normal user. Then logout and restart your session.\n\nThe script will setup your actual *xrandr* configuration automatically.\n\n## Dependencies\n - zenity (updates messages and UI display)\n\n## Notes\n*Option \"DPI\" \"96 x 96\"* is set by default in the *xorg.nvidia.conf* because *xrandr* set it at *75* by default. If you have a weaker **Nvidia®** GPU, it's maybe a good thing to let it at *75* if you want to play some games smoother.\n\nUsually when the Nvidia® GPU starts the screen display some weird black lines at first, if it is, it means that Nvidia® GPU is started.\n\n## Known issues\nThe script has been test on Gnome Shell, Gnome Classic, Cinnamon, LXQT, Kodi (for previous version, lightdm only for new one).\n\n - The only issue comes with Gnome Classic, desktop crash on final start. I'm not sure it comes from Gnome Classic itself.\n - For **Fedora** users upgrading from **Fedora 23** to **24** using the **dnf** tools, don't forget to re-enable the service after the first reboot. You have to probably reset your display *xrandr* config too.\n - Since **Fedora 24**, *rc.nivia* schedule time set is not enough to let *GDM* fully start. Need to extend from 5 to 10 secondes (update 10/08/16).\n - Session restart on gdm (gnome3) may cause result in a blank screen. In previous nvidia-prime-select, this issues was fix by inserting a delay waiting for full gdm start before insert xrandr command line. Try to uncomment 'sleep' function in /etc/nvidia-prime/xinitrc.prime and different delay. If it doesn't fix, think to change session manager to lightdm.\n - In some case, xrandr display config (~.config/monitors.xml) could conflict with nvidia-prime-select xrandr auto conf function. First, remove ~.config/monitors.xml, and restart your session. If it doesn't fix, set your display again and disable nvidia-prime.desktop autostart (menu \u003e system \u003e pref \u003e personal \u003e autostart), then restart your session.\n - At session restart login has a strange behaviour and could take 30/40s to display correctly. It maybe a polkit issue, but not sure. Need debug and figure out.\n - Do not hesitate to send issue reports on Github page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwildtruc%2Fnvidia-prime-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwildtruc%2Fnvidia-prime-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwildtruc%2Fnvidia-prime-select/lists"}