linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Cacy Rodney <cacy-rodney-cacy@tlen.pl>
Cc: linux-acpi@vger.kernel.org
Subject: Re: sonypc with Sony Vaio VGN-SZ1VP
Date: Fri, 5 Jan 2007 12:33:20 -0500	[thread overview]
Message-ID: <200701051233.20366.lenb@kernel.org> (raw)
In-Reply-To: <459D4051.9020506@tlen.pl>

On Thursday 04 January 2007 12:58, Cacy Rodney wrote:
> Hello everyone!
> 
> I know that the thread is much further but I'd like to inform the 
> maintainer (whoever is) that the driver v0.2 (there is v0.3 but in this 
> context it is not important) with the updated sony_acpi_values structure 
> (enclosed at the end) is working and gives me about 20% of energy 
> conservation.
> By clear, I have Sony Vaio SZ2.
> The cdpower(cdrom),sound,lan files in sony directory can power off 
> (_PS3) the relevant devices. To do that
> 
> echo 0 >/proc/acpi/sony/cdpower etc.
> 
> To ON the devices
> 
> echo 1 >/proc/acpi/sony/cdpower etc.
> 
> (unfortunately, after the commend sequence the lan card is not 
> initialized properly and to use it again the computer must be rebooted - 
> but i'm working to change it :))
> 
> The acpi methods of SNC are:
> 
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: GBRT, args 0
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: SBRT, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: GPBR, args 0
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: SPBR, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: PWAK, args 0
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: PWRN, args 0
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: CSXB, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: GWDP, args 0
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: CDPW, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: GCDP, args 0
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: SLRS, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: RBMF, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: RSBI, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: CBMF, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: AZPW, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: GAZP, args 0
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: LNPW, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: GLNP, args 0
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: SCAM, args 1
> Jan  4 17:56:12 darkstar kernel: sony_acpi: method: name: GCAM, args 0
> 
> Anyone knows what the rest do?
> 
> Best regards
> Cacy
> 
> 
> } sony_acpi_values[] = {
>          {
>                  .name           = "brightness",
>                  .acpiget        = "GBRT",
>                  .acpiset        = "SBRT",
>                  .min            = 1,
>                  .max            = 8,
>                  .debug          = 0,
>          },
>          {
>                  .name           = "brightness_default",
>                  .acpiget        = "GPBR",
>                  .acpiset        = "SPBR",
>                  .min            = 1,
>                  .max            = 8,
>                  .debug          = 0,
>          },
>          {
>                  .name           = "cdpower",
>                  .acpiget        = "GCDP",
>                  .acpiset        = "CDPW",
>                  .min            = 0,
>                  .max            = 1,
>                  .debug          = 0,
>          },
>          {
>                  .name           = "sound",
>                  .acpiget        = "GAZP",
>                  .acpiset        = "AZPW",
>                  .min            = 0,
>                  .max            = 1,
>                  .debug          = 0,
>          },
>          {
>                  .name           = "lan",
>                  .acpiget        = "GLNP",
>                  .acpiset        = "LNPW",
>                  .min            = 0,
>                  .max            = 1,
>                  .debug          = 0,
>          },
>          {
>                  .name           = NULL,
>          }
> };

With /proc/acpi/ going away, this raises the question of where sony_acpi should put stuff
that is under development -- as unlike brightness -- it will not have a generic home in sysfs.

To do it right,  some analysis of the DSDT which has these vendor methods in them
will be necessary.  It is conceivable that these methods can be hooked to the generic
device power management support if the "real" devices in sysfs can be found.

A word of warning, which may be totally obvious here, is that the method names above
are completely arbitrary choices on the part of a BIOS engineer at Sony, and the
next BIOS engineer can make completely different choices for what names are used
or what the same names do.

Only if we had documentation or some sort of support from Sony could we know or sure.
Happily they identified their platform device with PNPID SNY5001 -- so at least this
stuff will not run wild on non-Sony products.

cheers,
-Len

  reply	other threads:[~2007-01-05 17:33 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-04 17:58 sonypc with Sony Vaio VGN-SZ1VP Cacy Rodney
2007-01-05 17:33 ` Len Brown [this message]
2007-01-05 19:10   ` Mattia Dongili
  -- strict thread matches above, loose matches on Subject: below --
2006-09-27 11:51 stelian
2006-09-28 16:27 ` Yu Luming
2007-01-04  5:24 ` Len Brown
2007-01-04 10:09   ` Stelian Pop
2007-01-04 19:15     ` Mattia Dongili
2007-01-04 20:51       ` Andrew Morton
2007-01-04 21:18         ` Mattia Dongili
2007-01-04 21:28           ` Andrew Morton
2007-01-04 21:36             ` Timo Hoenig
2007-01-04 21:36             ` Richard Hughes
2007-01-04 21:58               ` Mattia Dongili
2007-01-05 17:02                 ` Len Brown
2007-01-05 18:06                   ` Mattia Dongili
2007-01-04 23:36         ` Stelian Pop
2007-01-04 23:44           ` Andrew Morton
2007-01-04 23:54             ` Stelian Pop
2007-01-05  4:16               ` Andrew Morton
2007-01-05  9:58                 ` Stelian Pop
2007-01-05  2:20             ` MoRpHeUz
2007-01-05  0:11           ` Jan Engelhardt
2007-01-05  9:15             ` Mattia Dongili
2007-01-05  9:59             ` Stelian Pop
2007-01-04 23:34       ` Stelian Pop
2007-01-05  9:23       ` Neil Bird
2007-01-05 16:24         ` Mattia Dongili
2007-01-10  8:32           ` Neil Bird
2007-01-05 17:19         ` Len Brown
2007-01-10  8:36           ` Neil Bird
2007-01-05 10:02       ` Stelian Pop
2007-01-05 12:13         ` Mattia Dongili
2007-01-05 14:23           ` Jan Engelhardt
2007-01-09 15:19   ` Luming Yu
     [not found] <20060926135659.GA3685@jnb.gelma.net>
     [not found] ` <45195583.4090500@popies.net>
     [not found]   ` <200609262056.32052.ismail@pardus.org.tr>
2006-09-27  5:14     ` Andrew Morton
2006-09-27  5:59       ` Jan Engelhardt
2006-09-27  6:04       ` Len Brown
2006-09-27  7:50         ` Ismail Donmez
2006-09-28 15:48           ` Yu Luming
2006-09-27 16:26       ` Andrea Gelmini

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=200701051233.20366.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=cacy-rodney-cacy@tlen.pl \
    --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;
as well as URLs for NNTP newsgroup(s).