[ltp] Question on swsusp2 and other ACPI trivia

Bob Alexander linux-thinkpad@linux-thinkpad.org
Thu, 06 Jan 2005 18:43:44 +0100


Henrik Brix Andersen wrote:
> On Thu, 2005-01-06 at 16:25 +0100, Bob Alexander wrote:
> 
>>A tail -f /var/log/acpid shows events triggered for lid or FnF4 but NOT 
>>for FnF12 ... what am I missing ???
> 
> 
> You need to load the ibm-acpi module with the following parameters:
> 
> 	hotkey=enable,0xffff
> 
> Check the Documentation/ibm-acpi.txt file for more information.
> 
> Sincerely,
> Brix

Thank you Brix,
sorry for being so ignorant on modules :( currently my ibm_acpi is 
built-in the kernel and not loaded as a module.

I have seen that I can enable the key by echoing enable and 0xffff to 
/proc/acpi/ibm/hotkey

But maybe it would be "cleaner" if I recompile the kernel with ibm_acpi 
as a module and load the module with /etc/modules ?? And how do I add 
the option you specify in this file ?

What is your opinion ?

Again thank you
Bob

PS Do you have a sample script catching the Fn+F12 and/or using Fn+F5 to 
cycvle through internal and external video ?