public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* sony-laptop on VAIO TT help request
@ 2011-06-30 10:07 Brad Campbell
  2011-06-30 13:55 ` Mattia Dongili
  0 siblings, 1 reply; 11+ messages in thread
From: Brad Campbell @ 2011-06-30 10:07 UTC (permalink / raw)
  To: linux-acpi

G'day all,

I have a sony Vaio TT notebook. It works reasonably well with the 
sony-laptop kernel module excepting the following items

- No control over the optical drive power state
- No control over the "battery care" function in the embedded controller
- No control over the "quick charge" function

All three of these functions are sub-functions of the SNY6001 method 
call, just the same as the rfkill functions.

I've reverse engineered all three of them with the assistance of some 
damaged windows drivers and software. I'd like to add these functions 
into the sony-laptop module, but I've absolutely no idea where to start.

I can use the rfkill code as a working example to get me started on 
getting access to the required bits in ACPI, so I suppose I need some 
targeted questions to get any usable response.

1) The optical power functions are completely different from the current 
implementation (where specific method calls are made). I can't really 
figure out the best way to make the function I need have the same 
interface as the legacy functions "cd-power" sysfs file. Advice or ideas 
would be welcome.

2) Is there any precedent for how I might attempt to implement an 
interface to the battery care and quick charging functions?

Quick charge is easy, it's just a boolean, but the battery care is a bit 
more curly. On my machine it's relatively easy. It has 4 settings (off, 
50%, 80%, 100%) and various combinations of bits make it behave the same 
way. On off is just the LSB of the control byte, however the user space 
application leads me to believe there may be the possibility of 
individually setting these bits on batteries in machines that have more 
than one. I don't really want to paint myself into a corner, but then I 
don't really know what I'm doing anyway.

It would help _heaps_ if someone with a vaio that has (A) The battery 
care function, and (B) more than one place a battery can plug in, could 
send me a DSDT to examine.

Help, ideas or advice more than welcome.

Regards,
Brad

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

end of thread, other threads:[~2011-07-13 22:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 10:07 sony-laptop on VAIO TT help request Brad Campbell
2011-06-30 13:55 ` Mattia Dongili
2011-06-30 15:52   ` Brad Campbell
2011-07-01  9:46     ` Marco Chiappero
2011-07-01  9:50       ` Norbert Preining
2011-07-01 13:55         ` Marco Chiappero
2011-07-12  6:21           ` Norbert Preining
2011-07-13 22:11             ` Marco Chiappero
2011-07-13 22:50               ` Norbert Preining
2011-07-04  9:19       ` Brad Campbell
2011-07-04 11:11         ` Marco Chiappero

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