Skip to contentSkip to conversation

New: After resuming from suspend, discrete GPU is powered on and can't be turned off

Bug 108058 [email protected] 1 participant 9 messages Sep 25, 2018 – Dec 4, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=108058

Bug ID: 108058
Summary: After resuming from suspend, discrete GPU is powered
on and can't be turned off
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 141734
--> https://bugs.freedesktop.org/attachment.cgi?id=141734&action=edit
kernel log

Overall, nouveau works without problem in managing discrete GPU PM, and if I check power consumption using powertop on a fresh boot it reports an average battery discharge rate of ~7W like always.
After I resume the laptop from suspend, /sys/kernel/debug/vgaswitcheroo/switch reports that the device is
dynamically turned off:

0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0

But if I check with powertop, I get a battery discharge rate of ~11W. To better identify the problem, I tried using bumbleebee+bbswitch+nvidia-driver and see what bbswitch module reports. On a fresh boot, it works
ok as the nouveau driver, but after resuming from suspend /proc/acpi/bbswitch reports that the card is turned ON, and there is no way to power it off:

[root@example user]# cat /proc/acpi/bbswitch 0000:04:00.0 ON
[root@example user]# tee /proc/acpi/bbswitch <<<OFF OFF
[root@example user]# cat /proc/acpi/bbswitch 0000:04:00.0 ON

I attached the kernel log using following parameters when using only nouveau driver (no bumblebee/bbswitch/nvidia): log_buf_len=1M nouveau.debug=debug.

System specs:
Asus Vivobook S551LN
Intel i7 4500U
NVIDIA 840M
Archlinux 4.18.9-arch1-1-ARCH (but affecting older versions, since early 4.x version when i started using linux)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): bug-108058-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 108058] After resuming from suspend, discrete GPU is powered on and can't be turned off

https://bugs.freedesktop.org/show_bug.cgi?id=108058

--- Comment #1 from Tolga Cakir <[email protected]> --- I might have the same issue - I posted it under bug 98386. Happens on a Dell M3800, Intel Core i7-4702HQ, Nvidia Quadro K1100M, Arch Linux w/ kernel 4.19.2.

Same as you, after fresh boot I get around ~7W in idle and after S3 resume I get 15W and more, no matter how long I wait. Contrary to your observations, bbswitch works for me; nouveau doesn't.

I have found out, that echoing lowest pstate (/sys/kernel/debug/dri/*/pstate) after S3 resume solves this issue. Power consumption drops back to 7-8W in idle.

I will post full dmidecode and dmesg in a couple of hours.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 108058] After resuming from suspend, discrete GPU is powered on and can't be turned off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=108058

--- Comment #2 from Tolga Cakir <[email protected]> --- Created attachment 142575
--> https://bugs.freedesktop.org/attachment.cgi?id=142575&action=edit
dmesg, comments at line 947 and 1051

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 108058] After resuming from suspend, discrete GPU is powered on and can't be turned off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=108058

--- Comment #3 from Tolga Cakir <[email protected]> --- Created attachment 142576
--> https://bugs.freedesktop.org/attachment.cgi?id=142576&action=edit
dmidecode Dell M3800

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 108058] After resuming from suspend, discrete GPU is powered on and can't be turned off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=108058

--- Comment #4 from Tolga Cakir <[email protected]> --- Created attachment 142577
--> https://bugs.freedesktop.org/attachment.cgi?id=142577&action=edit
lspci Dell M3800

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 108058] After resuming from suspend, discrete GPU is powered on and can't be turned off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=108058

--- Comment #5 from Tolga Cakir <[email protected]> --- Created attachment 142578
--> https://bugs.freedesktop.org/attachment.cgi?id=142578&action=edit
lspci verbose Dell M3800

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 108058] After resuming from suspend, discrete GPU is powered on and can't be turned off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=108058

--- Comment #6 from Tolga Cakir <[email protected]> --- No longer occurs under stable kernel 4.20.6. Can you confirm this @Domenico?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 108058] After resuming from suspend, discrete GPU is powered on and can't be turned off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=108058

--- Comment #7 from Domenico Iezzi <[email protected]> --- Still occurring to me on linux 5.0.2.

I also noticed that after resuming from suspend, if I run something with the discrete GPU like this:

DRI_PRIME=1 glxgears -info

the power consumption returns to normal values. This seems to be the same behavior already noticed by @Tolga in comment #1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 108058] After resuming from suspend, discrete GPU is powered on and can't be turned off

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=108058

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #8 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/461.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau