linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Toby Cubitt <tsc25@cantab.net>
To: linux-acpi@vger.kernel.org
Subject: Rotating tablet screen updates lid state but doesn't generate an event
Date: Mon, 14 Jan 2008 13:39:23 +0000	[thread overview]
Message-ID: <478B660B.3030706@cantab.net> (raw)

Hi,

I hope this is the right list to post this kind of question.

I'm running a 2.6.23 kernel (with the tuxonice and Gentoo patchsets
applied) on a Toshiba Portege M400 tablet PC, and I have the legacy
/proc/acpi support built into the kernel (CONFIG_ACPI_PROCFS=y and
CONFIG_ACPI_PROC_EVENT=y), since acpid still depends on it for now. I
also have Toshiba ACPI support built into the kernel, in case that's
also relevant (CONFIG_ACPI_TOSHIBA=y).

When I open or close the lid as on a normal laptop,
/proc/acpi/button/lid/LID/state is updated and acpi
"button/lid" events are generated in /proc/acpi/event, as expected.
However, when I rotate the screen into tablet mode, although the lid
state is updated to "closed", nothing is generated in /proc/acpi/event.
Then, when I lift the lid to rotate it back to normal laptop position, a
"button/lid" event _is_ generated in /proc/acpi/event, identical to
normal lid events (and the lid state is updated to "open").

So it seems as though acpi is correctly identifying closing the lid and
rotating the screen into tablet mode as two different types of events,
but isn't writing anything to /proc/acpi/event for the latter. On the
other hand, it is generating identical events for both opening the lid
and rotating the screen back to laptop mode.

I guess the correct behaviour would be along the lines of what
apparently happens in Thinkpad tablets: opening and closing the lid
should generate "button/lid" events, and rotating the screen to and from
tablet mode should generate a different type of event. (Though if
the kernel just generated any event other than "button/lid" when the
screen was rotated to tablet mode, it would still be usable.)

I'm happy to provide more information if it would be helpful, but I have
no experience at all in helping debug kernel code, so I'm not sure what
I should be telling you.

Thanks for any help,

Toby

             reply	other threads:[~2008-01-14 13:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 13:39 Toby Cubitt [this message]
2010-02-07 19:15 ` Rotating tablet screen updates lid state but doesn't generate an event Matthew Garrett
  -- strict thread matches above, loose matches on Subject: below --
2010-02-07 15:16 Thomas Ibbotson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478B660B.3030706@cantab.net \
    --to=tsc25@cantab.net \
    --cc=linux-acpi@vger.kernel.org \
    --cc=t.s.cubitt.98-dated-1200750052.7226bb@cantab.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).