[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Power button with ACPI



>Jeremy Brooks wrote:
>>>Compiled 2.6.10 kernel and included the neccessary things as described in
>>>the
>>>acpi-howto, installed acpi and acpid. dmesg | grep ACPI says:
>>>
> >
> ><snip>
> >
>>>So I think that my hardware is supported. In the BIOS APM is disabled and
>>>ACPI
>>>is enables enabled. I also found that the file /etc/acpi/events/powerbtn
>>>exists. But when I press the power button nothing happens.
>>>
> >
> >
> >Are there any messages in /var/log/messages when you press the button?
> >Have you verified that acpid is actually running?
> >~$ ps -ef | grep acpi
> >root        16     3  0 Feb04 ?        00:00:00 [kacpid]
> >root      4884     1  0 Feb04 ?        00:00:00 /usr/sbin/acpid -c
> >/etc/acpi/events -s /var/run/acpid.socket
> >
> >
> >
>
>jumping in without remembering the start so excuse if I say stupid things:
>
>sudo tail -f /var/log/acpid
>
>and then pressing the button would show something like:
>
>[Mon Feb  7 18:04:05 2005] received event "ibm/hotkey HKEY 00000080 
>00001003"
>[Mon Feb  7 18:04:05 2005] executing action "/etc/acpi/togglelcdlight.sh"
>[Mon Feb  7 18:04:05 2005] BEGIN HANDLER MESSAGES
>The radeon backlight looks on
>[Mon Feb  7 18:04:05 2005] END HANDLER MESSAGES
>[Mon Feb  7 18:04:05 2005] action exited with status 0
>[Mon Feb  7 18:04:05 2005] completed event "ibm/hotkey HKEY 00000080 
>00001003"
>[Mon Feb  7 18:04:09 2005] received event "ibm/hotkey HKEY 00000080 
>00001003"
>[Mon Feb  7 18:04:09 2005] executing action "/etc/acpi/togglelcdlight.sh"
>[Mon Feb  7 18:04:09 2005] BEGIN HANDLER MESSAGES
>[Mon Feb  7 18:04:09 2005] END HANDLER MESSAGES
>[Mon Feb  7 18:04:09 2005] action exited with status 0
>[Mon Feb  7 18:04:09 2005] completed event "ibm/hotkey HKEY 00000080 
>00001003"
>
>which in my case shows what happens when I use Fn+F3 to blank the screen 
>(execturing the /etc/acpi/togglelcdlight.sh
>
>Mind that if you use ibm_acpi you should really upgrade to the latest 
>0.10 just by copying it's ibm_acpi.c into your kernel tree and recompiling.
>
>This is important since 0.8 and 0.9 had broken the module parameter 
>loading. With 0.10 just have this in your /etc/modules
>
>ibm_acpi hotkey=enable,0xffff experimental=1

I don't have an ibm station and nothing is shown in /var/log/acpid when 
pressing power button. acpi is working because if execute 

echo 1 > /proc/acpi/sleep 

the computer goes into sleep state and if press some button, the computer 
comes back with no problem. 



Reply to: