View previous topic :: View next topic |
Author |
Message |
stei7766 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 May 2008 Posts: 4
|
Posted: Sun May 11, 2008 4:58 am Post subject: acpid event handling |
|
|
Hello there,
acpid is giving me a strange problem:
When acpid is started by the init.d script, the actions which are supposed to happen don't. When I manually start acpid with start-stop-daemon, everything works. What really makes me scratch my head is the log output.
With init.d/acpid starting acpid at boot:
Quote: |
May 10 22:47:33 Ben acpid: notifying client 4759[0:0]
May 10 22:47:33 Ben acpid: executing action "/etc/acpi/x41tsdown.sh ibm/hotkey HKEY 00000080 00005009"
May 10 22:47:33 Ben acpid: action exited with status 0
May 10 22:47:33 Ben acpid: completed event "ibm/hotkey HKEY 00000080 00005009"
May 10 22:47:35 Ben thinkpad_acpi: unknown LID-related HKEY event: 0x500a
May 10 22:47:35 Ben acpid: received event "ibm/hotkey HKEY 00000080 0000500a"
May 10 22:47:35 Ben acpid: notifying client 4759[0:0]
May 10 22:47:35 Ben acpid: executing action "/etc/acpi/x41tsup.sh ibm/hotkey HKEY 00000080 0000500a"
May 10 22:47:35 Ben acpid: action exited with status 1
May 10 22:47:35 Ben acpid: completed event "ibm/hotkey HKEY 00000080 0000500a"
|
Manually starting acpid:
Quote: |
May 10 22:44:21 Ben acpid: notifying client 4759[0:0]
May 10 22:44:21 Ben acpid: executing action "/etc/acpi/x41tsdown.sh ibm/hotkey HKEY 00000080 00005009"
May 10 22:44:22 Ben acpid: action exited with status 0
May 10 22:44:22 Ben acpid: completed event "ibm/hotkey HKEY 00000080 00005009"
May 10 22:44:24 Ben thinkpad_acpi: unknown LID-related HKEY event: 0x500a
May 10 22:44:24 Ben acpid: received event "ibm/hotkey HKEY 00000080 0000500a"
May 10 22:44:24 Ben acpid: notifying client 4759[0:0]
May 10 22:44:24 Ben acpid: executing action "/etc/acpi/x41tsup.sh ibm/hotkey HKEY 00000080 0000500a"
May 10 22:44:26 Ben acpid: action exited with status 0
May 10 22:44:26 Ben acpid: completed event "ibm/hotkey HKEY 00000080 0000500a"
|
The only difference I can see is that the x41tsup.sh exits with a status 1 vs. a status 0, but the down.sh script exits the same on both.
Heres the x41tsdown.sh, incase you're wondering:
Quote: |
#!/bin/sh
#/etc/acpi/x41tsdown.sh
echo 'Rotating screen...'
/usr/local/bin/xrotate -
echo 'Starting keyboard...'
/usr/bin/xvkbd&
|
Any thoughts? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bunder Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Sun May 11, 2008 7:08 am Post subject: |
|
|
permissions on the script... maybe the user that acpid is running under can't read or exec the script.
cheers _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stei7766 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 May 2008 Posts: 4
|
Posted: Sun May 11, 2008 8:39 pm Post subject: |
|
|
I'm pretty sure its not a permissions issue, as the event happens just like its supposed to if I start acpid manually. So I think that the event scripts have the proper permissions. The event scripts have the same permissions as the init script, is that correct?
The problem seems to be that when acpid is started on init (or anytime its started by the init script), it just doesnt work, even though it SAYS it is running the event scripts in the log. It does however work if I manually run the line from the init script which starts acpid.
Thanks for the help!
Edit: Oh yea, and the event scripts are all owned by root, if that helps any |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|