Comment 23 for bug 40621

Revision history for this message
Yannick (splitsch) wrote : Re: R50e fails to resume: Green moon constantly blinking

Hello,
Here is my sleep.sh file
#####################
#!/bin/bash

/bin/sync

/sbin/rmmod uhci-hcd
/sbin/rmmod ehci-hcd

/usr/bin/chvt 1

cat /proc/bus/pci/00/02.0 > /var/cache/video.config

echo -n mem > /sys/power/state

cat /var/cache/video.config > /proc/bus/pci/00/02.0

rm -rf /var/cache/video.config

/usr/bin/chvt 7

/sbin/modprobe uhci-hcd
/sbin/modprobe ehci-hcd
###########################

I don't know what it does, but it works well! With or without poweradaptater plugged-in.
I'm using Kubuntu dapper full updated.
If someone could explain ti me what this script does, and could make it better :)
Thanks!

ps: I must add that all the solution proposed didn't work.