[ltp] Re: 2.6.6 + APM

Uwe Walter linux-thinkpad@linux-thinkpad.org
Wed, 19 May 2004 08:36:24 +0200


On Di, 2004-05-18 at 15:02, Dan Borello wrote:
> Have you ever suspended overnight?

Yes, without a problem.


> That seems to be my problem with the
> dri drivers.  ATI drivers just lockup for me. I might try removing the
> USB stuff also.

I do something like this in /etc/apm/suspend.d/99own (also liked into
resume.d):

case "${1},${2}" in
(suspend,*)
        #kill bluetooth:
        hciconfig hci0 down
        echo "apmd_proxy: own: rmmod usbserial usb-storage hid uhci_hcd ehci_hcd"
        rmmod usbserial
        rmmod usb-storage
        rmmod hid
        rmmod uhci_hcd
        rmmod ehci_hcd
        sync
    ;;
(resume,suspend)
        echo "apmd_proxy: own: modprobe ehci_hcd uhci_hcd hid"
        modprobe ehci_hcd
        modprobe uhci_hcd
        modprobe hid
    ;;
esac
exit 0


Greetings, UW(e)