sensei73
2008-11-19, 23:47
1-edit /usr/lib/pm-utils/sleep.d/50modules
You should see this:
#!/bin/sh
. "${PM_FUNCTIONS}"
suspend_modules()
{
[ -z "$SUSPEND_MODULES" ] && return 0
for x in $SUSPEND_MODULES ; do
modunload $x
done
return 0
}
2-Kill lirc service and insert and unload your lirc modules likes this (for me lirc_mceusb2 and lirc_dev) WARNING --->lirc_dev MUST be unloaded after your remote module
#!/bin/sh
. "${PM_FUNCTIONS}"
suspend_modules()
{
/etc/init.d/lirc stop
rmmod -k lirc_mceusb2
rmmod -k lirc_dev
[ -z "$SUSPEND_MODULES" ] && return 0
for x in $SUSPEND_MODULES ; do
modunload $x
done
return 0
}
-3- Insert these lines to reload needed modules and restart lirc and resume, like this:
resume_modules()
{
modprobe lirc_mceusb2
modprobe lirc_dev
sleep 1
/etc/init.d/lirc start
modreload
}
And voilà!!!! Resume work with Mce still working!!! Please comment!!!:nod:
You should see this:
#!/bin/sh
. "${PM_FUNCTIONS}"
suspend_modules()
{
[ -z "$SUSPEND_MODULES" ] && return 0
for x in $SUSPEND_MODULES ; do
modunload $x
done
return 0
}
2-Kill lirc service and insert and unload your lirc modules likes this (for me lirc_mceusb2 and lirc_dev) WARNING --->lirc_dev MUST be unloaded after your remote module
#!/bin/sh
. "${PM_FUNCTIONS}"
suspend_modules()
{
/etc/init.d/lirc stop
rmmod -k lirc_mceusb2
rmmod -k lirc_dev
[ -z "$SUSPEND_MODULES" ] && return 0
for x in $SUSPEND_MODULES ; do
modunload $x
done
return 0
}
-3- Insert these lines to reload needed modules and restart lirc and resume, like this:
resume_modules()
{
modprobe lirc_mceusb2
modprobe lirc_dev
sleep 1
/etc/init.d/lirc start
modreload
}
And voilà!!!! Resume work with Mce still working!!! Please comment!!!:nod: