-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ubuntu 18.04] prime-select intel is not powering off the nvidia card #8
Comments
Thanks for feedback, hope it gets fixed soon! |
Manual workaround: https://wiki.archlinux.org/index.php/hybrid_graphics |
I can get Nvidia to power down with this script: #!/bin/bash
echo "Switching off nvidia"
# move from Nvidia to intel graphics (if not already done)
prime-select intel
# switch of power to Nvidia (repeat after each laptop start)
echo "auto" > /sys/bus/pci/devices/0000\:01\:00.0/power/control
# Results in power down freeze, but seems needed?
echo "1" > /sys/bus/pci/devices/0000\:01\:00.0/remove After running this, One nasty issue: the |
@tvld freeze during shutdown could be the result of the nouveau driver being loaded after switching to intel. Nouveau does not really work with 10xx gpus. Adding |
@BonaBeavis my current grub line is: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_osi=! acpi_osi='Windows 2009' nouveau.runpm=0" What does |
@tvld It prevents the nouveau modul from loading, there was a change in prime. Prime now uses the nouveau modul for powering off the dgpu when in intel mode. Bug #1765363 “prime-select intel is not powering off the nvidia ...” : Bugs : nvidia-prime package : Ubuntu |
@BonaBeavis can you copy your total Grub line here? It makes no difference for me. |
You are right, maybe
|
Trying these kennel parameters killed my wifi. Is there anything you are
doing to prevent that?
…On Tue, May 15, 2018, 8:29 AM BonaBeavis ***@***.***> wrote:
You are right, maybe i915.modeset=1 is missing
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_rev_override=1 enable_fbc=1 enable_psr=1 i915.modeset=1 disable_power_well=0 nouveau.modeset=0"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACvYtVBR0j5UmpclocHOpPhoE2_8klDks5tyuY2gaJpZM4TwqE4>
.
|
I think those are the necessary ones:
Never had a wifi problem, but it is all trial and error with these boot parameters. Workarounds all the way down. |
Seems that this wasn't the wifi issue. My firmware somehow got nuked at the same time that I was making these parameter changes and I mis-attributed the failure. |
Running I kept powertop running and in another terminal ran: $ cat /sys/bus/pci/devices/0000\:01\:00.0/power/control
# resulted in "on", which is not good I then executed ( see bug report ): sudo sh -c 'echo auto > /sys/bus/pci/devices/0000\:01\:00.0/power/control' Powertop dropped to about 6W ! )) $ sudo nano /lib/systemd/system/gpuoff.service And pasted contents: [Unit]
Description=Power-off gpu
[Service]
Type=oneshot
ExecStart=/bin/bash -c "if [[ `prime-select query` == 'intel' ]]; then echo auto > /sys/bus/pci/devices/0000\:01\:00.0/power/control; fi"
[Install]
WantedBy=default.target To test the script you can run If ok, run To confirm that it works PS For what it is worth, my GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.modeset=1 nouveau.modeset=0" |
Great job all! :) @tvld can i add the service/script to the respin? This may help lot of people! |
@stockmind for sure, I have cleaned it up a bit. |
I ended up doing the same with bbswitch... Can anyone comment on that the difference is between this method and installing bbswitch? |
@damageboy no idea; I did not try bbswitch... If it works for you a standard package might be better... |
How about bash -c 'if [[ "`prime-select query`" == "intel" ]]; then echo auto > /sys/bus/pci/devices/0000\\:01\\:00.0/power/control ; fi' |
@luispabon Can do... but I dont see a problem with setting device power on "auto" in Nvidia mode as well? |
Actually there isn't. That was my script to explicitly turn it off changed to |
@luispabon I could be wrong, but I think the only two available modes are "auto" and "on". I thought "off" is not available ... |
Totally works here 👍 |
Thanks @tvld ! |
Sorry for the silly question, is there any chance to switch back to Nvidia card, after applying @tvld 's solution? |
@nicobonne That is not a silly question: in my case, That said, to be 100% sure it is not the start up script I have modified slightly to ensure the power settings are only applied when on intel mode as @luispabon already mentioned but I changed syntax: ExecStart=/bin/bash -c "if [[ `prime-select query` == 'intel' ]]; then echo auto > /sys/bus/pci/devices/0000\:01\:00.0/power/control; fi" For me it does not matter... nvidia prevents the login prompt with or without the powersetting on 'auto'. I dont need Nvidia, so I did not spend time debugging. Maybe someone else can test if they can still get Nvidia to run? With the revised script line? |
@mablae I have the 54W battery, wifi on and bluetooth mouse, FHD screen at 50%. Your wakeup/s are very high... You must be running something? Did you install TLP ? |
That's really good power consumption. I've never seen it lower than 7w on mine. Do you have the FHD or UHD screen? Is this measured on an empty desktop session (eg no other apps other than the DE itself running)? |
@tvld I have the same problem. I don't believe X is correctly picking up the new graphics card. |
@luispabon I believe I can boot on Nvidia if I delete /etc/X11/xorg.conf... but I dont wanna go there. Very time consuming to debug this nonsense ;-)) |
@mogul was that a fresh install of 19.04 or an upgrade off a respun ISO? |
I just did a fresh install of 19.04 and yes! ... All worked straight out of the box on my XPS15 9560 FHD. My idle power usage with 50% screen, WiFi and Bluetooth on: Without TLP:
With TLP installed:
Basically, Intel in idle gives me 30% more battery time. In practice this might be a bit more as the fans seem more aggressive with Nvidia. |
FYI, you can undervolt Intel CPU with undervolt.py I use: for my Dell XPS 9560, which saves a bit more... |
@damageboy do you have measurements ? |
No, I did it a long time ago, but I remember a 5%+ improvement with 50% brightness, don't have it written / logged anywhere... |
Can confirm |
@tvld is that running on intel or nvidia graphics? |
@luispabon what, the 10C? Seems on both. But it did not help me a lot. I was hoping I could get the fan under 3000rpm as that is a real noise threshold for me, during working with Nvidia but that only happens in absolute idle. Normal work I sadly am back to Intel now... |
just did a fresh install of 19.04 on my 9560 (4k monitor) and it worked flawlessly. getting about ~7W running idle with prime intel profile selected, brightness turned all the way down, and bluetooth off. |
To those who did a fresh install of 19.04, I have a couple of questions. Do you mean the respun version of it or just the standard ISO? Does multi-monitor work out of the box? And could the fact that I am running dual boot affect this in any way? |
@mablae : |
Thanks @tvld! I'll give 19.04 a shot on dual boot and post an update. |
Vanilla 19.04 works fine on the laptop. Including multimonitor - I've tried dp over thunderbolt and hdmi (3 displays inc laptop), and also via thunderbolt dock (tb16, also 3 displays). All good. |
@markkosorus i have my xps dual booted with windows and it all works without any issues |
@paulyu99 yeah, was about to post an update. 19.04 works out of the box on dual boot. |
The power control worked on my XPS 15 9570 with UHD 4K touch screen, 18.04LTS.
|
The solution pointed by @tvld worked flawlessly until kernel 4.15.0-54. For kernel 4.15.0-58 even after running Is anyone facing the same issue? |
Installed Ubuntu 19.10. Sad to say, my idle CPU on Intel only raised with 15% to 7W. I dont know what causes yet, but first glance seemed that |
Ok, found the culprit, it seems. After I upgraded to 19.10, I got flooded with But now I know that this also shot up my power consumption. So, today, I removed the So, for now, can not use Nvidia at all, unless I change the grub every time... bummer :( |
That's great! So did you create two Grub configurations, so you can reboot and pick "with nVidia" or "without nVidia"? |
So this bug is not valid on 19.10 anymore with stock Ubuntu. I don't run
any workarounds anymore, all 190% stock.
…On Sun, 24 Nov 2019, 15:11 Alon Diamant, ***@***.***> wrote:
Ok, found the culprit, it seems.
After I upgraded to 19.10, I got flooded with syslog errors with Nvidia
*enabled* or *on-demand*: PCIE Bus Error: Severity=Corrected after
booting into Ubuntu. To get rid of those, I edited /etc/default/grub to
contain GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi". That helped,
the errors no longer appeared...
But now I know that this also shot up my power consumption. So, today, I
removed the pci-nomsi and now we are to an astonishing great *3.74W* with
50% display and BT mouse!
[image: Screenshot from 2019-11-02 11-36-59]
<https://user-images.githubusercontent.com/986182/68069809-b8796b00-fd65-11e9-9d04-6b132d66456a.png>
So, for now, can not use Nvidia at all, unless I change the grub every
time... bummer :(
See what Nvidia
<https://devtalk.nvidia.com/default/topic/1065906/linux/ubuntu-upgrade-from-19-04-gt-19-10-amp-enabling-nvidia-435-floods-quot-pcie-bus-error-severity-corrected-quot-/>
has to say.
That's great! So did you create two Grub configurations, so you can reboot
and pick "with nVidia" or "without nVidia"?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8?email_source=notifications&email_token=ABQXYVZ5GZ5ZYV2QYLCM66LQVKKT3A5CNFSM4E6CUE4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFANQAY#issuecomment-557897731>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQXYV3USZE4LPLOQTLSGGLQVKKT3ANCNFSM4E6CUE4A>
.
|
@luispabon no " syslog errors with Nvidia" ? |
Nothing that I can see when I enable the driver. I get some when I connect my TB16 dock though, but doesn't seem to impede operation. |
@luispabon @tvld What is the configuration you're using on your own machine? Thank you! |
@advance512 for myself I don't have a bottom line for Ubuntu 19.10 Nvidia on XPS15. Two grubs is not really feasible. For now, sad to say I dont use Nvidia. |
Of course. Laptop runs fine on 19.10 default installation, including recommended nvidia drivers (nvidia-435) which are also installed during system installation (if from scratch). Some notes:
I haven't yet tried the new optimus-like gpu offloading (requires a newer version of X as well as the nvidia driver). I'm unsure if it's even compatible with pre 2xxx series. Something to check out for 20.04. |
Feeling all giddy, I tried booting stock 19.10 on my 9560 and it
wouldn't even boot. Did you have to do anything special to get it
installed? I've had some ups and downs on the respun 17.10, and was
excited to move on.
Cheers,
*Jeff LaCoursiere*
STRATUSTALK, INC. / CTO
Phone: *+1 703.496.4990 x108*
Mobile: *+1 815.546.6599*
Email: *[email protected]* <mailto:[email protected]>
Website: *https://www.stratustalk.com*
Address: *One Freedom Square
13th Floor
Reston, VA 20190*
<https://www.facebook.com/jeff.lacoursiere>
<https://linkedin.com/in/jeff-lacoursiere-884361>
<https://www.twitter.com/stratustalk>
…On 12/7/19 8:21 AM, Luis Pabon wrote:
Of course. Laptop runs fine on 19.10 default installation, including
recommended nvidia drivers (nvidia-435) which are also installed
during system installation (if from scratch). Some notes:
* No need for any custom kernel boot parameters, for instance to
ensure suspend/resume works (no |acpi_rev_override| for instance)
* Switch back and forth using |prime-select|
* If you're using gnome, it only requires you to log out & back in,
not a reboot. It basically requires X to restart. I'm not sure how
this works in gnome wayland since I'm a sway user
* If you do not want the nvidia drivers installed (or you must at
some point reboot with the driver uninstalled for whatever
reason), you *must blacklist nouveau*. The driver simply won't
work on this GTX 1050 and the system will bot to a blank screen.
This is the only custom config I've needed.
|modprobe.d/blacklist-nouveau.conf 1:blacklist nouveau 2:options
nouveau modeset=0 |
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8?email_source=notifications&email_token=AINPWYB7CIPGEYQ4S54HN3LQXOWPXA5CNFSM4E6CUE4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGH25Y#issuecomment-562855287>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AINPWYHVS5TBE5VNYKEAMUDQXOWPXANCNFSM4E6CUE4A>.
|
@lacoursj It should do boot just fine. I have latest BIOS, so you might check if you need to upgrade? Further, I think I have |
It is problem upstream, but you may be interested. Bug #1765363 “prime-select intel is not powering off the nvidia ...” : Bugs : nvidia-prime package : Ubuntu
The text was updated successfully, but these errors were encountered: