From: Carlos Corbacho <carlos@strangeworlds.co.uk>
To: "Erik Andrén" <erik.andren@gmail.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: Writing to the EC
Date: Mon, 5 Nov 2007 00:55:37 +0000 [thread overview]
Message-ID: <200711050055.37904.carlos@strangeworlds.co.uk> (raw)
In-Reply-To: <472E23BC.2010909@gmail.com>
On Sunday 04 November 2007 19:55:40 Erik Andrén wrote:
> To make a long story short, I've hacked up a kernel module that dumps
> the EC
For acer_acpi, we have a Perl script that can do this from userspace (but
it should run on any other machine, since there's nothing Acer specific
about dumping the EC registers).
http://aceracpi.googlecode.com/svn/trunk/acer_ec/acer_ec.pl
./acer_ec.pl regs
(ACPI throws a few warnings in dmesg, because we're stepping on it's turf
a bit here, but it's far simpler than having to write a kernel module
just to get a few registers).
> My questions to you ACPI and EC gurus are:
>
> 1. Is it possible that the EC is read-only from the OS perspective?
From the acer_acpi perspective, we've found that some EC registers are
read-only (e.g. on some laptops, there is a register to read the status
of the touchpad, but writes to it are ignored).
I imagine this is defined at the hardware level though, not by the OS.
> 3. Does anyone have a recommendation of programs to use for snooping I/O
> accesses in windows?
I did try playing around with writing my own simple application to access
the I/O ports, and then dump the EC data - unfortunately, I/O port programming
in Windows is "painful", to say the least.
-Carlos
--
E-Mail: carlos@strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2007-11-05 0:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-04 19:55 Writing to the EC Erik Andrén
2007-11-04 21:23 ` Richard Hughes
2007-11-04 21:31 ` Pavel Troller
2007-11-05 0:55 ` Carlos Corbacho [this message]
2007-11-05 19:00 ` Ângelo Miguel Arrifano
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=200711050055.37904.carlos@strangeworlds.co.uk \
--to=carlos@strangeworlds.co.uk \
--cc=erik.andren@gmail.com \
--cc=linux-acpi@vger.kernel.org \
/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