Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 614436

Summary: x11-drivers/nvidia-drivers-378.13 doesn't shutdown when hibernate
Product: Gentoo Linux Reporter: Christophe PEREZ <chris>
Component: Current packagesAssignee: David Seifert <soap>
Status: RESOLVED OBSOLETE    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Christophe PEREZ 2017-04-01 16:54:19 UTC
After upgrading nvidia-drivers to stable version 378.13, hibernate doesn't power off. I have to use power button to end the hibernate process. And when I power on, resume works fine.

I find only one error in /var/log/pm-suspend.log :
sam. avril  1 12:40:19 AST 2017: performing hibernate
/usr/lib64/pm-utils/pm-functions: ligne 323 : echo: erreur d'écriture : Argument invalide
sam. avril  1 12:41:11 AST 2017: Awake.
sam. avril  1 12:41:11 AST 2017: Running hooks for thaw

Downgrading to x11-drivers/nvidia-drivers-375.26 solves the problem and all works fine.

So I just masked =x11-drivers/nvidia-drivers-375.39
Comment 1 Christophe PEREZ 2017-04-01 16:59:29 UTC
Created attachment 468878 [details]
emerge --info
Comment 2 Christophe PEREZ 2017-04-30 23:50:25 UTC
I had exactly the same problem with another PC when I updated nvidia-drivers to 378.13

The line 323 of /usr/lib64/pm-utils/pm-functions is :
echo "$HIBERNATE_MODE_SAVE" > /sys/power/disk

with HIBERNATE_MODE_SAVE set to "platform"

I decided to try with lastest x11-drivers/nvidia-drivers-381.09, but not better.

After searching and reading https://askubuntu.com/questions/895593/cant-set-hibernate-mode-shutdown-in-etc-pm-config-d
and
https://askubuntu.com/questions/767679/ubuntu-16-04-doesnt-shut-down-after-suspend-or-hibernate/837334#837334

I created :
# cat /etc/pm/config.d/hibernate_mode 
HIBERNATE_MODE="shutdown"

And now, even with x11-drivers/nvidia-drivers-381.09, hibernate can now shutdown correctly.
I don't understand why it works like that now, and I didn't need it with <x11-drivers/nvidia-drivers-378.13, on 2 differents PCs.

PS : sorry for my bad english.
Comment 3 Ionen Wolkens gentoo-dev 2021-03-02 20:50:21 UTC
Considering this happened with the last-rited pm-utils and nvidia-drivers made many changes regarding power management since, I'll assume this is obsolete.

Glad managed to find a workaround back then still.