Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
acpid event handling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
stei7766
n00b
n00b


Joined: 11 May 2008
Posts: 4

PostPosted: Sun May 11, 2008 4:58 am    Post subject: acpid event handling Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sun May 11, 2008 7:08 am    Post subject: Reply with quote

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
View user's profile Send private message
stei7766
n00b
n00b


Joined: 11 May 2008
Posts: 4

PostPosted: Sun May 11, 2008 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum