How to install Nvidia driver on Debian and switch between drivers?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I tend to use nvidia-prime on Ubuntu to run my intel graphics card instead of NVIDIA, is there a way to use nvidia-prime on Debian?










share|improve this question
























  • Please add the output of lspci -v | egrep -i 'vga|3d|nvidia' | grep -i 'nvidia'

    – GAD3R
    Nov 1 '16 at 19:57











  • kernel modules : nvidiafb, nouveau, nvidia_340

    – Eduardo Díaz
    Nov 1 '16 at 20:08















0















I tend to use nvidia-prime on Ubuntu to run my intel graphics card instead of NVIDIA, is there a way to use nvidia-prime on Debian?










share|improve this question
























  • Please add the output of lspci -v | egrep -i 'vga|3d|nvidia' | grep -i 'nvidia'

    – GAD3R
    Nov 1 '16 at 19:57











  • kernel modules : nvidiafb, nouveau, nvidia_340

    – Eduardo Díaz
    Nov 1 '16 at 20:08













0












0








0


1






I tend to use nvidia-prime on Ubuntu to run my intel graphics card instead of NVIDIA, is there a way to use nvidia-prime on Debian?










share|improve this question
















I tend to use nvidia-prime on Ubuntu to run my intel graphics card instead of NVIDIA, is there a way to use nvidia-prime on Debian?







debian nvidia






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 6 at 21:31









Rui F Ribeiro

39.6k1479132




39.6k1479132










asked Nov 1 '16 at 19:47









Eduardo DíazEduardo Díaz

316




316












  • Please add the output of lspci -v | egrep -i 'vga|3d|nvidia' | grep -i 'nvidia'

    – GAD3R
    Nov 1 '16 at 19:57











  • kernel modules : nvidiafb, nouveau, nvidia_340

    – Eduardo Díaz
    Nov 1 '16 at 20:08

















  • Please add the output of lspci -v | egrep -i 'vga|3d|nvidia' | grep -i 'nvidia'

    – GAD3R
    Nov 1 '16 at 19:57











  • kernel modules : nvidiafb, nouveau, nvidia_340

    – Eduardo Díaz
    Nov 1 '16 at 20:08
















Please add the output of lspci -v | egrep -i 'vga|3d|nvidia' | grep -i 'nvidia'

– GAD3R
Nov 1 '16 at 19:57





Please add the output of lspci -v | egrep -i 'vga|3d|nvidia' | grep -i 'nvidia'

– GAD3R
Nov 1 '16 at 19:57













kernel modules : nvidiafb, nouveau, nvidia_340

– Eduardo Díaz
Nov 1 '16 at 20:08





kernel modules : nvidiafb, nouveau, nvidia_340

– Eduardo Díaz
Nov 1 '16 at 20:08










1 Answer
1






active

oldest

votes


















1














Edit your /etc/apt/sources.list file and add the following line:



deb http://httpredir.debian.org/debian/ jessie main contrib non-free


Update and install drivers:



aptitude update
aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms


Create an Xorg server configuration file:



mkdir /etc/X11/xorg.conf.d
echo -e 'Section "Device"ntIdentifier "My GPU"ntDriver "nvidia"nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf


Reboot



Debian-wiki



Edit



To switch between driver intel/nvidia run nvidia-settings from the terminal and choose the driver.






share|improve this answer

























  • after the installation how do i choose which GPU to use?

    – Eduardo Díaz
    Nov 1 '16 at 20:26











  • after performing this and rebooting my screen stays black like its loading with a "_" on the top of the screen I'm able to access tty1 using ctrl + alt + f1

    – Eduardo Díaz
    Nov 3 '16 at 3:59











  • @EduardoDíaz see here unix.stackexchange.com/a/314004/153195

    – GAD3R
    Nov 3 '16 at 8:02











  • While executing Xorg -configure i get number of created screens does not match number of detected devices. Configuration failed and the server terminates with error (2).

    – Eduardo Díaz
    Nov 3 '16 at 11:23











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f320384%2fhow-to-install-nvidia-driver-on-debian-and-switch-between-drivers%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Edit your /etc/apt/sources.list file and add the following line:



deb http://httpredir.debian.org/debian/ jessie main contrib non-free


Update and install drivers:



aptitude update
aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms


Create an Xorg server configuration file:



mkdir /etc/X11/xorg.conf.d
echo -e 'Section "Device"ntIdentifier "My GPU"ntDriver "nvidia"nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf


Reboot



Debian-wiki



Edit



To switch between driver intel/nvidia run nvidia-settings from the terminal and choose the driver.






share|improve this answer

























  • after the installation how do i choose which GPU to use?

    – Eduardo Díaz
    Nov 1 '16 at 20:26











  • after performing this and rebooting my screen stays black like its loading with a "_" on the top of the screen I'm able to access tty1 using ctrl + alt + f1

    – Eduardo Díaz
    Nov 3 '16 at 3:59











  • @EduardoDíaz see here unix.stackexchange.com/a/314004/153195

    – GAD3R
    Nov 3 '16 at 8:02











  • While executing Xorg -configure i get number of created screens does not match number of detected devices. Configuration failed and the server terminates with error (2).

    – Eduardo Díaz
    Nov 3 '16 at 11:23
















1














Edit your /etc/apt/sources.list file and add the following line:



deb http://httpredir.debian.org/debian/ jessie main contrib non-free


Update and install drivers:



aptitude update
aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms


Create an Xorg server configuration file:



mkdir /etc/X11/xorg.conf.d
echo -e 'Section "Device"ntIdentifier "My GPU"ntDriver "nvidia"nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf


Reboot



Debian-wiki



Edit



To switch between driver intel/nvidia run nvidia-settings from the terminal and choose the driver.






share|improve this answer

























  • after the installation how do i choose which GPU to use?

    – Eduardo Díaz
    Nov 1 '16 at 20:26











  • after performing this and rebooting my screen stays black like its loading with a "_" on the top of the screen I'm able to access tty1 using ctrl + alt + f1

    – Eduardo Díaz
    Nov 3 '16 at 3:59











  • @EduardoDíaz see here unix.stackexchange.com/a/314004/153195

    – GAD3R
    Nov 3 '16 at 8:02











  • While executing Xorg -configure i get number of created screens does not match number of detected devices. Configuration failed and the server terminates with error (2).

    – Eduardo Díaz
    Nov 3 '16 at 11:23














1












1








1







Edit your /etc/apt/sources.list file and add the following line:



deb http://httpredir.debian.org/debian/ jessie main contrib non-free


Update and install drivers:



aptitude update
aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms


Create an Xorg server configuration file:



mkdir /etc/X11/xorg.conf.d
echo -e 'Section "Device"ntIdentifier "My GPU"ntDriver "nvidia"nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf


Reboot



Debian-wiki



Edit



To switch between driver intel/nvidia run nvidia-settings from the terminal and choose the driver.






share|improve this answer















Edit your /etc/apt/sources.list file and add the following line:



deb http://httpredir.debian.org/debian/ jessie main contrib non-free


Update and install drivers:



aptitude update
aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms


Create an Xorg server configuration file:



mkdir /etc/X11/xorg.conf.d
echo -e 'Section "Device"ntIdentifier "My GPU"ntDriver "nvidia"nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf


Reboot



Debian-wiki



Edit



To switch between driver intel/nvidia run nvidia-settings from the terminal and choose the driver.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 1 '16 at 20:38

























answered Nov 1 '16 at 20:21









GAD3RGAD3R

26k1751107




26k1751107












  • after the installation how do i choose which GPU to use?

    – Eduardo Díaz
    Nov 1 '16 at 20:26











  • after performing this and rebooting my screen stays black like its loading with a "_" on the top of the screen I'm able to access tty1 using ctrl + alt + f1

    – Eduardo Díaz
    Nov 3 '16 at 3:59











  • @EduardoDíaz see here unix.stackexchange.com/a/314004/153195

    – GAD3R
    Nov 3 '16 at 8:02











  • While executing Xorg -configure i get number of created screens does not match number of detected devices. Configuration failed and the server terminates with error (2).

    – Eduardo Díaz
    Nov 3 '16 at 11:23


















  • after the installation how do i choose which GPU to use?

    – Eduardo Díaz
    Nov 1 '16 at 20:26











  • after performing this and rebooting my screen stays black like its loading with a "_" on the top of the screen I'm able to access tty1 using ctrl + alt + f1

    – Eduardo Díaz
    Nov 3 '16 at 3:59











  • @EduardoDíaz see here unix.stackexchange.com/a/314004/153195

    – GAD3R
    Nov 3 '16 at 8:02











  • While executing Xorg -configure i get number of created screens does not match number of detected devices. Configuration failed and the server terminates with error (2).

    – Eduardo Díaz
    Nov 3 '16 at 11:23

















after the installation how do i choose which GPU to use?

– Eduardo Díaz
Nov 1 '16 at 20:26





after the installation how do i choose which GPU to use?

– Eduardo Díaz
Nov 1 '16 at 20:26













after performing this and rebooting my screen stays black like its loading with a "_" on the top of the screen I'm able to access tty1 using ctrl + alt + f1

– Eduardo Díaz
Nov 3 '16 at 3:59





after performing this and rebooting my screen stays black like its loading with a "_" on the top of the screen I'm able to access tty1 using ctrl + alt + f1

– Eduardo Díaz
Nov 3 '16 at 3:59













@EduardoDíaz see here unix.stackexchange.com/a/314004/153195

– GAD3R
Nov 3 '16 at 8:02





@EduardoDíaz see here unix.stackexchange.com/a/314004/153195

– GAD3R
Nov 3 '16 at 8:02













While executing Xorg -configure i get number of created screens does not match number of detected devices. Configuration failed and the server terminates with error (2).

– Eduardo Díaz
Nov 3 '16 at 11:23






While executing Xorg -configure i get number of created screens does not match number of detected devices. Configuration failed and the server terminates with error (2).

– Eduardo Díaz
Nov 3 '16 at 11:23


















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f320384%2fhow-to-install-nvidia-driver-on-debian-and-switch-between-drivers%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay