View previous topic :: View next topic |
Author |
Message |
TobyWan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/TV Stars/worf1.jpg)
Joined: 19 Apr 2005 Posts: 14
|
Posted: Thu Jan 10, 2008 6:59 pm Post subject: No acpi event generated, though file in /proc/acpi changes |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jrtayloriv Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Dec 2004 Posts: 149 Location: N. Idaho
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TobyWan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/TV Stars/worf1.jpg)
Joined: 19 Apr 2005 Posts: 14
|
Posted: Fri Jan 11, 2008 3:41 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
zogle n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine_2.gif)
Joined: 03 Oct 2005 Posts: 65 Location: the states
|
Posted: Sat May 03, 2008 6:49 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|