Comment 107 for bug 120434

Revision history for this message
Mark Wilmoth (mark-wilmoth) wrote :

Well I learned something new.

Creating a script that executes after hibernates resumes (thaw) can be done like this:

sudo touch /etc/pm/sleep.d/99_r5u87x-reload
sudo chmod +x /etc/pm/sleep.d/99_r5u87x-reload
sudo nano /etc/pm/sleep.d/99_r5u87x-reload

Add everything between the dashed lines to file 99_r5u87x-reload

----------------------------------------------------------------

#!/bin/sh
case "$1" in
    hibernate|suspend)
        # do nothing
        ;;
    thaw) #thaw|resume)
        /usr/sbin/r5u87x-loader --reload 2>/dev/null
        ;;
    *)
        ;;
esac
exit $?

---------------------------------------------------------------

Save and enjoy video after a thaw.