Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No acpi event generated, though file in /proc/acpi changes
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
TobyWan
n00b
n00b


Joined: 19 Apr 2005
Posts: 14

PostPosted: Thu Jan 10, 2008 6:59 pm    Post subject: No acpi event generated, though file in /proc/acpi changes Reply with quote

Hi,

I've installed Gentoo on a Toshiba Portege M400 tablet PC, and am trying to get the screen to rotate automatically when changing to tablet mode.

When the screen is rotated into tablet mode, the /proc/acpi/button/lid/LID/state changes from "open" to "closed", but as far as I can tell no acpi event is generated. There's nothing in /var/log/messages, nor do I see anything if I disable acpid and monitor /proc/acpi/event manually.

Acpi is certainly working: when the laptop lid is closed, a "button/lid" event is generated. In fact, the "button/lid" event is also generated when the screen is rotated from tablet mode back to the normal orientation (but luckily it's possible to distinguish this from the lid close event by checking /proc/acpi/.../LID/state).

Does anyone know why acpi doesn't generate an event even though the /proc/acpi file changes? Is there a way to persuade acpi to generate the event? It would have to be distinguishable from the normal "button/lid" event of course (e.g. a "button/lid" with a different keycode).

Thanks for any help!

Toby
Back to top
View user's profile Send private message
jrtayloriv
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2004
Posts: 149
Location: N. Idaho

PostPosted: Thu Jan 10, 2008 8:36 pm    Post subject: Reply with quote

Perhaps this would help?

http://gentoo-wiki.com/TIP_ACPI_basic_configuration#Lid
Back to top
View user's profile Send private message
TobyWan
n00b
n00b


Joined: 19 Apr 2005
Posts: 14

PostPosted: Fri Jan 11, 2008 3:41 pm    Post subject: Reply with quote

Thanks for the link, but sadly it's not what I need. I know how to configure acpid to respond to ACPI events. My problem is that no ACPI event is generated in the first place when the screen is rotated to tablet mode.

What mystifies me is that /proc/acpi/button/lid/LID/state changes, so the kernel must be detecting the screen rotation, but for some reason doesn't write it to /proc/acpi/event (where acpid listens).

I should have added that I'm using the tuxonice-sources-2.6.23-r6 kernel. I wonder if /proc/acpi being deprecated in 2.6.23 kernels has anything to do with it...? The ACPI-related parts of my kernel config are as follows:

# Power management options (ACPI, APM)
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_PROC_EVENT is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_BAY=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
CONFIG_ACPI_TOSHIBA=y
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_SBS is not set
CONFIG_X86_ACPI_CPUFREQ=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_PNPACPI=y
CONFIG_BLK_DEV_IDEACPI=y
CONFIG_ATA_ACPI=y

Toby
Back to top
View user's profile Send private message
zogle
n00b
n00b


Joined: 03 Oct 2005
Posts: 65
Location: the states

PostPosted: Sat May 03, 2008 6:49 am    Post subject: Reply with quote

try enabling
CONFIG_ACPI_PROC_EVENT=y
and
CONFIG_ACPI_PROCFS=y
_________________
everything is a function of time.

"i was pricking my finger before you knew what the fam was"
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