Properly blacklisting a module?

Asked by Torsten Spindler

For getting suspend (S3) and resume to work on my laptop I need to unload the ehci_hcd module. I can add it to SUSPEND_MODULES in /usr/lib/pm-utils and it works. Is there a cleaner solution? Configuring this in /usr/lib does not look right to me.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu pm-utils Edit question
Assignee:
No assignee Edit question
Solved by:
Przemek K.
Solved:
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

Hello:

You can add its name to the /etc/modprobe.d/blacklist file.

For more info on the init.d structure check this out:

http://www.debian.org/doc/debian-policy/ch-opersys.html

Note:

As a tip: If any of the post here answers your question here please click " This solved my problem " Button on the RHS bottom of the answer post.. Or if you are using an email interface please click the link below ' If this answers your question " or something similar in the post of the answer which solved your problem

Regards

Bhavani Shankar.

Revision history for this message
Torsten Spindler (tspindler) said :
#2

This will remove the module from the system completely, I only want to unload when suspending to RAM.

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Hello:

These links may help you out:

http://www.neowin.net/forum/lofiversion/index.php/t379484.html

and here is a clear explanation on suspend to RAM

http://ftp.riken.go.jp/Linux/suse/people/trenn/powersave_documentation/Suspend.html

Regards

Bhavani Shankar.

Revision history for this message
Torsten Spindler (tspindler) said :
#4

Thanks, but my question is specific to the pm-utils package and not a general problem with suspend and resume.

Revision history for this message
Best Przemek K. (azrael) said :
#5

Opensuse wiki provides a good explanation of pm-utils:
http://en.opensuse.org/Pm-utils#Configuration
There is information about unloading modules before suspend.

Revision history for this message
Torsten Spindler (tspindler) said :
#6

Thanks Przemysław Kulczycki, that solved my question.

Revision history for this message
PeterPall (peterpall) said :
#7

Alternatively addding the module name to the MODULES= line of /etc/default/acpi-support should work instead.