Nouveau blacklisted but loaded

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








up vote
3
down vote

favorite












Hi I am trying to use Ubuntu-Prime for ubuntu 18 on an asus laptop with 2 GPU (intel & nvidia).



I found the power consumption of the computer to be way too high when I reboot with only the intel GPU (using prime-select intel or using nvidia-settings).



I found that the nouveau driver was loaded despite normally not used:



$ gpu-manager | grep nouveau
Is nouveau loaded? yes
Is nouveau blacklisted? yes
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card1", driven by "nouveau"
Found "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card1", driven by "nouveau"


I tried to blacklist it and also have a kernel startup option to prevent nouveau from being loaded yet it still loads. This seems very un-linuxy to me.







share|improve this question





















  • Is the nvidia driver loaded? Post the whole output of gpu-manager. Blacklisting doesn't prevent something from explicitly loading a driver, so something must be pulling it in, maybe because Nvidia's not loaded.
    – ubfan1
    Jun 4 at 22:59










  • No nvidia is not loaded. I would actually like my discrete GPU to be off to prevent it from draining the battery.
    – Antonin
    Jun 5 at 7:04










  • What video driver are you trying to use, Vesa? See askubuntu.com/questions/849481/… There might even be another framebuffer fallback driver possible.
    – ubfan1
    Jun 5 at 15:29










  • I do not see why I would need a driver for a graphic card supposedly off ?
    – Antonin
    Jun 6 at 9:20










  • Digging the issue, Ubuntu 18 has a conflicting service (with prime) that actually loads a driver for the discrete GPU : ``` systemctl status nvidia-fallback.service ● nvidia-fallback.service - Fall back on nouveau if nvidia is not loadedLoaded: loaded (/lib/systemd/system/nvidia-fallback.service; enabled; vendor preset: enable Active: active (exited) Process: 1007 ExecStart=/sbin/modprobe nouveau --config /(code=exited, status=0/SUCCESS) Main PID: 1007 (code=exited, status=0/SUCCESS) XX systemd[1]: Starting Fall back on nouveau if nvidia is not loaded
    – Antonin
    Jun 6 at 9:45















up vote
3
down vote

favorite












Hi I am trying to use Ubuntu-Prime for ubuntu 18 on an asus laptop with 2 GPU (intel & nvidia).



I found the power consumption of the computer to be way too high when I reboot with only the intel GPU (using prime-select intel or using nvidia-settings).



I found that the nouveau driver was loaded despite normally not used:



$ gpu-manager | grep nouveau
Is nouveau loaded? yes
Is nouveau blacklisted? yes
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card1", driven by "nouveau"
Found "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card1", driven by "nouveau"


I tried to blacklist it and also have a kernel startup option to prevent nouveau from being loaded yet it still loads. This seems very un-linuxy to me.







share|improve this question





















  • Is the nvidia driver loaded? Post the whole output of gpu-manager. Blacklisting doesn't prevent something from explicitly loading a driver, so something must be pulling it in, maybe because Nvidia's not loaded.
    – ubfan1
    Jun 4 at 22:59










  • No nvidia is not loaded. I would actually like my discrete GPU to be off to prevent it from draining the battery.
    – Antonin
    Jun 5 at 7:04










  • What video driver are you trying to use, Vesa? See askubuntu.com/questions/849481/… There might even be another framebuffer fallback driver possible.
    – ubfan1
    Jun 5 at 15:29










  • I do not see why I would need a driver for a graphic card supposedly off ?
    – Antonin
    Jun 6 at 9:20










  • Digging the issue, Ubuntu 18 has a conflicting service (with prime) that actually loads a driver for the discrete GPU : ``` systemctl status nvidia-fallback.service ● nvidia-fallback.service - Fall back on nouveau if nvidia is not loadedLoaded: loaded (/lib/systemd/system/nvidia-fallback.service; enabled; vendor preset: enable Active: active (exited) Process: 1007 ExecStart=/sbin/modprobe nouveau --config /(code=exited, status=0/SUCCESS) Main PID: 1007 (code=exited, status=0/SUCCESS) XX systemd[1]: Starting Fall back on nouveau if nvidia is not loaded
    – Antonin
    Jun 6 at 9:45













up vote
3
down vote

favorite









up vote
3
down vote

favorite











Hi I am trying to use Ubuntu-Prime for ubuntu 18 on an asus laptop with 2 GPU (intel & nvidia).



I found the power consumption of the computer to be way too high when I reboot with only the intel GPU (using prime-select intel or using nvidia-settings).



I found that the nouveau driver was loaded despite normally not used:



$ gpu-manager | grep nouveau
Is nouveau loaded? yes
Is nouveau blacklisted? yes
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card1", driven by "nouveau"
Found "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card1", driven by "nouveau"


I tried to blacklist it and also have a kernel startup option to prevent nouveau from being loaded yet it still loads. This seems very un-linuxy to me.







share|improve this question













Hi I am trying to use Ubuntu-Prime for ubuntu 18 on an asus laptop with 2 GPU (intel & nvidia).



I found the power consumption of the computer to be way too high when I reboot with only the intel GPU (using prime-select intel or using nvidia-settings).



I found that the nouveau driver was loaded despite normally not used:



$ gpu-manager | grep nouveau
Is nouveau loaded? yes
Is nouveau blacklisted? yes
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card1", driven by "nouveau"
Found "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card1", driven by "nouveau"


I tried to blacklist it and also have a kernel startup option to prevent nouveau from being loaded yet it still loads. This seems very un-linuxy to me.









share|improve this question












share|improve this question




share|improve this question








edited Jun 6 at 11:27









WinEunuuchs2Unix

34.1k756130




34.1k756130









asked Jun 4 at 22:14









Antonin

465




465











  • Is the nvidia driver loaded? Post the whole output of gpu-manager. Blacklisting doesn't prevent something from explicitly loading a driver, so something must be pulling it in, maybe because Nvidia's not loaded.
    – ubfan1
    Jun 4 at 22:59










  • No nvidia is not loaded. I would actually like my discrete GPU to be off to prevent it from draining the battery.
    – Antonin
    Jun 5 at 7:04










  • What video driver are you trying to use, Vesa? See askubuntu.com/questions/849481/… There might even be another framebuffer fallback driver possible.
    – ubfan1
    Jun 5 at 15:29










  • I do not see why I would need a driver for a graphic card supposedly off ?
    – Antonin
    Jun 6 at 9:20










  • Digging the issue, Ubuntu 18 has a conflicting service (with prime) that actually loads a driver for the discrete GPU : ``` systemctl status nvidia-fallback.service ● nvidia-fallback.service - Fall back on nouveau if nvidia is not loadedLoaded: loaded (/lib/systemd/system/nvidia-fallback.service; enabled; vendor preset: enable Active: active (exited) Process: 1007 ExecStart=/sbin/modprobe nouveau --config /(code=exited, status=0/SUCCESS) Main PID: 1007 (code=exited, status=0/SUCCESS) XX systemd[1]: Starting Fall back on nouveau if nvidia is not loaded
    – Antonin
    Jun 6 at 9:45

















  • Is the nvidia driver loaded? Post the whole output of gpu-manager. Blacklisting doesn't prevent something from explicitly loading a driver, so something must be pulling it in, maybe because Nvidia's not loaded.
    – ubfan1
    Jun 4 at 22:59










  • No nvidia is not loaded. I would actually like my discrete GPU to be off to prevent it from draining the battery.
    – Antonin
    Jun 5 at 7:04










  • What video driver are you trying to use, Vesa? See askubuntu.com/questions/849481/… There might even be another framebuffer fallback driver possible.
    – ubfan1
    Jun 5 at 15:29










  • I do not see why I would need a driver for a graphic card supposedly off ?
    – Antonin
    Jun 6 at 9:20










  • Digging the issue, Ubuntu 18 has a conflicting service (with prime) that actually loads a driver for the discrete GPU : ``` systemctl status nvidia-fallback.service ● nvidia-fallback.service - Fall back on nouveau if nvidia is not loadedLoaded: loaded (/lib/systemd/system/nvidia-fallback.service; enabled; vendor preset: enable Active: active (exited) Process: 1007 ExecStart=/sbin/modprobe nouveau --config /(code=exited, status=0/SUCCESS) Main PID: 1007 (code=exited, status=0/SUCCESS) XX systemd[1]: Starting Fall back on nouveau if nvidia is not loaded
    – Antonin
    Jun 6 at 9:45
















Is the nvidia driver loaded? Post the whole output of gpu-manager. Blacklisting doesn't prevent something from explicitly loading a driver, so something must be pulling it in, maybe because Nvidia's not loaded.
– ubfan1
Jun 4 at 22:59




Is the nvidia driver loaded? Post the whole output of gpu-manager. Blacklisting doesn't prevent something from explicitly loading a driver, so something must be pulling it in, maybe because Nvidia's not loaded.
– ubfan1
Jun 4 at 22:59












No nvidia is not loaded. I would actually like my discrete GPU to be off to prevent it from draining the battery.
– Antonin
Jun 5 at 7:04




No nvidia is not loaded. I would actually like my discrete GPU to be off to prevent it from draining the battery.
– Antonin
Jun 5 at 7:04












What video driver are you trying to use, Vesa? See askubuntu.com/questions/849481/… There might even be another framebuffer fallback driver possible.
– ubfan1
Jun 5 at 15:29




What video driver are you trying to use, Vesa? See askubuntu.com/questions/849481/… There might even be another framebuffer fallback driver possible.
– ubfan1
Jun 5 at 15:29












I do not see why I would need a driver for a graphic card supposedly off ?
– Antonin
Jun 6 at 9:20




I do not see why I would need a driver for a graphic card supposedly off ?
– Antonin
Jun 6 at 9:20












Digging the issue, Ubuntu 18 has a conflicting service (with prime) that actually loads a driver for the discrete GPU : ``` systemctl status nvidia-fallback.service ● nvidia-fallback.service - Fall back on nouveau if nvidia is not loadedLoaded: loaded (/lib/systemd/system/nvidia-fallback.service; enabled; vendor preset: enable Active: active (exited) Process: 1007 ExecStart=/sbin/modprobe nouveau --config /(code=exited, status=0/SUCCESS) Main PID: 1007 (code=exited, status=0/SUCCESS) XX systemd[1]: Starting Fall back on nouveau if nvidia is not loaded
– Antonin
Jun 6 at 9:45





Digging the issue, Ubuntu 18 has a conflicting service (with prime) that actually loads a driver for the discrete GPU : ``` systemctl status nvidia-fallback.service ● nvidia-fallback.service - Fall back on nouveau if nvidia is not loadedLoaded: loaded (/lib/systemd/system/nvidia-fallback.service; enabled; vendor preset: enable Active: active (exited) Process: 1007 ExecStart=/sbin/modprobe nouveau --config /(code=exited, status=0/SUCCESS) Main PID: 1007 (code=exited, status=0/SUCCESS) XX systemd[1]: Starting Fall back on nouveau if nvidia is not loaded
– Antonin
Jun 6 at 9:45











1 Answer
1






active

oldest

votes

















up vote
3
down vote













I found a way to disable nouveau and get my battery life back when using prime with intel graphic card :



2 bugs in Ubuntu 18 are concerned :



1. Prime fails to turn off discrete GPU (known issue).



Make sure that your discrete GPU is connected to PCI port 0000:01:00.0 (using lspci -vnn | grep '''[030[02]]' for instance)



Change /etc/systemd/system/display-manager.service.wants/nvidia-prime-boot.service and replace the current execstart (referencing vgaswitcheroo which is not usually available by ExecStart=/bin/sh -c "echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'")



2. nvidia-fallback loads nouveau when nvidia is not loaded



Even if we are willing not to use the discrete gpu !



Disable the following service which loads nouveau driver when nvidia driver is not loaded : sudo systemctl disable nvidia-fallback.service






share|improve this answer























  • This worked perfectly for me. Thank you.
    – Joseph Redfern
    Jun 25 at 10:04










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043638%2fnouveau-blacklisted-but-loaded%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote













I found a way to disable nouveau and get my battery life back when using prime with intel graphic card :



2 bugs in Ubuntu 18 are concerned :



1. Prime fails to turn off discrete GPU (known issue).



Make sure that your discrete GPU is connected to PCI port 0000:01:00.0 (using lspci -vnn | grep '''[030[02]]' for instance)



Change /etc/systemd/system/display-manager.service.wants/nvidia-prime-boot.service and replace the current execstart (referencing vgaswitcheroo which is not usually available by ExecStart=/bin/sh -c "echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'")



2. nvidia-fallback loads nouveau when nvidia is not loaded



Even if we are willing not to use the discrete gpu !



Disable the following service which loads nouveau driver when nvidia driver is not loaded : sudo systemctl disable nvidia-fallback.service






share|improve this answer























  • This worked perfectly for me. Thank you.
    – Joseph Redfern
    Jun 25 at 10:04














up vote
3
down vote













I found a way to disable nouveau and get my battery life back when using prime with intel graphic card :



2 bugs in Ubuntu 18 are concerned :



1. Prime fails to turn off discrete GPU (known issue).



Make sure that your discrete GPU is connected to PCI port 0000:01:00.0 (using lspci -vnn | grep '''[030[02]]' for instance)



Change /etc/systemd/system/display-manager.service.wants/nvidia-prime-boot.service and replace the current execstart (referencing vgaswitcheroo which is not usually available by ExecStart=/bin/sh -c "echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'")



2. nvidia-fallback loads nouveau when nvidia is not loaded



Even if we are willing not to use the discrete gpu !



Disable the following service which loads nouveau driver when nvidia driver is not loaded : sudo systemctl disable nvidia-fallback.service






share|improve this answer























  • This worked perfectly for me. Thank you.
    – Joseph Redfern
    Jun 25 at 10:04












up vote
3
down vote










up vote
3
down vote









I found a way to disable nouveau and get my battery life back when using prime with intel graphic card :



2 bugs in Ubuntu 18 are concerned :



1. Prime fails to turn off discrete GPU (known issue).



Make sure that your discrete GPU is connected to PCI port 0000:01:00.0 (using lspci -vnn | grep '''[030[02]]' for instance)



Change /etc/systemd/system/display-manager.service.wants/nvidia-prime-boot.service and replace the current execstart (referencing vgaswitcheroo which is not usually available by ExecStart=/bin/sh -c "echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'")



2. nvidia-fallback loads nouveau when nvidia is not loaded



Even if we are willing not to use the discrete gpu !



Disable the following service which loads nouveau driver when nvidia driver is not loaded : sudo systemctl disable nvidia-fallback.service






share|improve this answer















I found a way to disable nouveau and get my battery life back when using prime with intel graphic card :



2 bugs in Ubuntu 18 are concerned :



1. Prime fails to turn off discrete GPU (known issue).



Make sure that your discrete GPU is connected to PCI port 0000:01:00.0 (using lspci -vnn | grep '''[030[02]]' for instance)



Change /etc/systemd/system/display-manager.service.wants/nvidia-prime-boot.service and replace the current execstart (referencing vgaswitcheroo which is not usually available by ExecStart=/bin/sh -c "echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'")



2. nvidia-fallback loads nouveau when nvidia is not loaded



Even if we are willing not to use the discrete gpu !



Disable the following service which loads nouveau driver when nvidia driver is not loaded : sudo systemctl disable nvidia-fallback.service







share|improve this answer















share|improve this answer



share|improve this answer








edited Jun 6 at 12:11


























answered Jun 6 at 10:00









Antonin

465




465











  • This worked perfectly for me. Thank you.
    – Joseph Redfern
    Jun 25 at 10:04
















  • This worked perfectly for me. Thank you.
    – Joseph Redfern
    Jun 25 at 10:04















This worked perfectly for me. Thank you.
– Joseph Redfern
Jun 25 at 10:04




This worked perfectly for me. Thank you.
– Joseph Redfern
Jun 25 at 10:04












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043638%2fnouveau-blacklisted-but-loaded%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error