public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Marco Chiappero <marco@absence.it>
To: Norbert Preining <preining@logic.at>
Cc: Brad Campbell <lists2009@fnarfbargle.com>,
	Mattia Dongili <malattia@linux.it>,
	linux-acpi@vger.kernel.org,
	platform-driver-x86 <platform-driver-x86@vger.kernel.org>
Subject: Re: sony-laptop on VAIO TT help request
Date: Thu, 14 Jul 2011 00:11:41 +0200	[thread overview]
Message-ID: <4E1E181D.1030301@absence.it> (raw)
In-Reply-To: <20110712062157.GA15096@gamma.logic.tuwien.ac.at>

Il 12/07/2011 08:21, Norbert Preining ha scritto:
> Hi Marc,
>
> sorry for the silence, I was overly busy with a state exam on Japanese
> and some presentations.

Hi Norbert,
there is no problem at all.

> What I am missing is the shock protector, there is a sensor built in.

Yes I know, and it seems that a device driver is used under Windows... 
can you confirm this? Can you see this sensor under the device listing 
of Windows? Handle 0x0113 might allow to turn on/off this sensor, but 
then it should controlled by another driver, I'm afraid.

>> This last one is interesting because, from the other DSTDs I have seen,
>> I suspect your notebook to have handle 0x0113, an handle that allows to
>> enable/disable an unknown feature, is it the HDD protection?
>
> How can I check that?

I can provide you a patch for testing this feature.

>> This is interesting too. Ok, let's not speak about the multiplexer
>> methods, let us speak about handle 0x0128, related to the Hybrid GFX
>> feature. I have never done a deep analysis, maybe you can help here.
>> First of all, newer VPCZ1 models come with a few more methods, dealing
>> with the screen brightness level, HSC5, HSC6, HSC7. Then:
>> - HSC0 returns the event reason (1 switch position change? what about
>> 2,3,4?)
>
> Currently we are not evaluating HSC0 at all, I am not sure about its
> function.

HSC0 returns HGER (Hybrid GFX Event Reason), a number that can be read 
when an Hybrid GFX event is notified (for example when the physical 
switch change its position), telling userspace what triggered that event.

> only HSC1 is used to query the speed/stamina switch.

It also provides other informations, do you know their meaning?

Method (HSC1, 0, Serialized)
{
     Store (Zero, Local0)
     If (AVIL)			<-- ??
     { ... }

     If (^^H8EC.SWPS)		<-- switch position
     { ... }

     If (LEqual (HGAP, One))	<-- Hyb GFX A? Presence?
     { ... }

     If (LEqual (HGAP, 0x02))	<-- Hyb GFX A? Presence?
     { ... }

     If (HDME)		<-- HDMI Exit? HDMI routing capability?
     { ... }

     If (DVIE)
     { ... }

     If (^^H8EC.ATSW)		<-- switch set to auto
     { ... }

     ...
}

> Furthermore, the path of HSC1 is different on different modules
> 	_SB.PCI0.LPC.SNC.HSC1	(VGN)
> and
> 	_SB.PCI0.LPCB.SNC.HSC1	(VPC)

This is not relevant, we just call the SN07 method from the SNC device, 
so don't care about it.

> Not much more is used actually, but turning on/off the nvidia (secondary
> gpu) and the speed/stamina led by hooking into
> 	_SB.PCI0.OVGA._DSM (VGN)
> and
> 	_SB.PCI0.P0P2.DGPU._DSM (VPC)
> with various function indices (2 ->  led, 3 ->  gpu off).

If I'm not wrong the video driver should take care of calling _DSM and 
other multiplexing methods (MXDS, MXMX and so on), is it right?
We need to find out more about methods HSC1, HSC2, HSC3, HSC4, but I 
don't own the hardware.
Then we can start changing the code to be more compliant to the kernel 
guidelines.

  reply	other threads:[~2011-07-13 22:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-07-13 22:50               ` Norbert Preining
2011-07-04  9:19       ` Brad Campbell
2011-07-04 11:11         ` Marco Chiappero

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=4E1E181D.1030301@absence.it \
    --to=marco@absence.it \
    --cc=linux-acpi@vger.kernel.org \
    --cc=lists2009@fnarfbargle.com \
    --cc=malattia@linux.it \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=preining@logic.at \
    /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