pity-riotous
pity-riotous
pity-riotous
pity-riotous
hyenas
hyenas
hyenas
hyenas
Linux on your Apple Mac | iLinux • View topic - Getting suspend + touchpad to work properly on 11.04

Getting suspend + touchpad to work properly on 11.04

Getting suspend + touchpad to work properly on 11.04

Postby linuxopjemac » Sat May 28, 2011 10:00 am

Every macbook on the wiki lists the suspend on close breaking the touchpad when it resumes and this has yet to be fixed. I've seen a number of users mention this here on the apple forum as well with no answer.

After some digging when i realized the module section of acpi-support did nothing to fix this I found a script which will load the driver after resume properly. The culprit is the bcm5974 module. Found here is the original script for fedora http://nareshv.blogspot.com/2009/06/...cbook-pro.html

There are a few launchpad issues already open for this bug for mactel but none are listed as being worked on.

Create the script in suspend.d
Code: Select all
sudo nano  /usr/lib/pm-utils/suspend.d/02touchpad

Paste the following
Code: Select all
#!/bin/bash

if [ -e '/usr/lib/pm-utils/functions' ];then
. /usr/lib/pm-utils/functions
fi

suspend_bcm5974() { /sbin/rmmod bcm5974; }
resume_bcm5974() { /sbin/modprobe bcm5974; }

case "$1" in
    suspend|hibernate)
        suspend_bcm5974;
        ;;
    thaw|resume)
        resume_bcm5974;
        ;;
    *)
        ;;
esac

exit $?

Make the script executable
Code: Select all
sudo chmod 755 /usr/lib/pm-utils/suspend.d/02touchpad

After this I have not had an issue with the touchpad after resuming from suspend on my Macbook Pro 4,1. Let me know if it resolves the issue for you as well.
linuxopjemac
Site Admin
 
Posts: 498
Joined: Tue Feb 02, 2010 8:48 am

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron
pity-riotous
pity-riotous
pity-riotous
pity-riotous
hyenas
hyenas
hyenas
hyenas