Difference between revisions of "Talk:Pm-utils"

From ArchWiki
Jump to: navigation, search
(Black screen when waking from hibernate with radeon driver)
Line 7: Line 7:
 
== Black screen when waking from hibernate with radeon driver ==
 
== Black screen when waking from hibernate with radeon driver ==
  
I have encountered problems, when using dynpm for the radeon driver and trying to hibernate. After resuming from hibernation the screen will be black, however everything else working (tested by keeping a console open with a command to execute and starting the execution after resuming).
+
When using the radeon driver and having {{ic|radeon}} in the {{ic|HOOKS}} array of the {{ic|/etc/mkinitcpio.conf}} resuming from hibernation results in the screen being black, however everything else working (testable by keeping a console open with a command to execute and starting the execution after resuming).
This seems to be related to using {{ic|dynpm}} as the power management method in radeon. (verifiable by executing {{ic|cat /sys/class/drm/card0/device/power_method}} )
+
This seems to be related to using {{ic|radeon.dpm<nowiki>=</nowiki>1}} (default since kernel 3.13) as the power management method in radeon.
  
Adding a quirk in {{ic|/etc/pm/sleep.d/}} with this content:
+
Removing {{ic|radeon}} from the HOOKS array (and rebuiling the initrd) fixes this problem.
{{bc|
+
(See [https://bugs.freedesktop.org/show_bug.cgi?id=72716 here].)
#!/bin/bash
 
#
 
case "$1" in
 
    hibernate)
 
        echo 'profile' > /sys/class/drm/card0/device/power_method
 
        sleep 1
 
        ;;
 
    thaw)
 
        echo 'dynpm' > /sys/class/drm/card0/device/power_method
 
        ;;
 
    *)
 
        exit $NA
 
        ;;
 
esac
 
}}
 
and also replacing {{ic|1=radeon.dynpm=1}} by {{ic|1=radeon.dynpm=0}} in the kernel commandline fixes this.
 
  
Secondly radeon must not be in the mkinitcpio HOOKS arrey for hibernation to work properly. Otherwise Xorg will crash soon after restarting resulting in a black screen with a movable cursor.
+
== Computer does not turn off when hibernating ==
See [https://bugs.freedesktop.org/show_bug.cgi?id=72716 here] .  
+
 
[[User:Cryptkiddy|Cryptkiddy]] ([[User talk:Cryptkiddy|talk]]) 19:19, 26 July 2014 (UTC)
+
It is possible that after Linux hibernates and has written the data to disk, the computer does not power off properly. If it is then forcefully powered off and later restarted, resuming will work fine.
 +
 
 +
This can easily be fixed by making an executable file named {{ic|/etc/pm/config.d/hibernate_mode}} which contains the single line: {{ic| HIBERNATE_MODE<nowiki>=</nowiki>"shutdown" }}.
 +
After that pm-hibernate should properly shut down the computer.
 +
 
 +
 
 +
[[User:Cryptkiddy|Cryptkiddy]] ([[User talk:Cryptkiddy|talk]]) 20:08, 26 July 2014 (UTC)

Revision as of 20:08, 26 July 2014

"Locking the screen saver on hibernate or suspend" does not work

This script does not work. --Ninquitassar 09:09, 12 January 2012 (EST)


Black screen when waking from hibernate with radeon driver

When using the radeon driver and having radeon in the HOOKS array of the /etc/mkinitcpio.conf resuming from hibernation results in the screen being black, however everything else working (testable by keeping a console open with a command to execute and starting the execution after resuming). This seems to be related to using radeon.dpm=1 (default since kernel 3.13) as the power management method in radeon.

Removing radeon from the HOOKS array (and rebuiling the initrd) fixes this problem. (See here.)

Computer does not turn off when hibernating

It is possible that after Linux hibernates and has written the data to disk, the computer does not power off properly. If it is then forcefully powered off and later restarted, resuming will work fine.

This can easily be fixed by making an executable file named /etc/pm/config.d/hibernate_mode which contains the single line: HIBERNATE_MODE="shutdown" . After that pm-hibernate should properly shut down the computer.


Cryptkiddy (talk) 20:08, 26 July 2014 (UTC)