public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Writing to the EC
@ 2007-11-04 19:55 Erik Andrén
  2007-11-04 21:23 ` Richard Hughes
  2007-11-05  0:55 ` Carlos Corbacho
  0 siblings, 2 replies; 5+ messages in thread
From: Erik Andrén @ 2007-11-04 19:55 UTC (permalink / raw)
  To: linux-acpi

Hello,

I'm currently in the process of trying to write routines for controlling
the backlight on my Clevo M72R.

Pressing the hotkeys do work but I do belive this is the result of that
the embedded controller is hardwired to the keyboard.

To make a long story short, I've hacked up a kernel module that dumps
the EC (with inspiration from the ibm acpi driver) using the exported
ec_read and ec_write symbols from the ec.c in the kernel acpi source and
I've been able to locate a register which change when I manually push
the brightness hotkey buttons (0xC9).

The bad part is that writing to the EC using the ec_write function
doesn't work at all. Sure it completes the operation, but when probing
the register afterwards, no change of value is seen.

My questions to you ACPI and EC gurus are:

1. Is it possible that the EC is read-only from the OS perspective?

2. Are there any common quirks / initialization that is needed to
getting the EC to register commands?

3. Does anyone have a recommendation of programs to use for snooping I/O
accesses in windows?

With kind regards
Erik Andrén
-
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-05 18:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-11-05 19:00   ` Ângelo Miguel Arrifano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox