linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: sonypc with Sony Vaio VGN-SZ1VP
@ 2006-09-27 11:51 stelian
  2006-09-28 16:27 ` Yu Luming
  2007-01-04  5:24 ` Len Brown
  0 siblings, 2 replies; 49+ messages in thread
From: stelian @ 2006-09-27 11:51 UTC (permalink / raw)
  To: Len Brown
  Cc: Andrew Morton, Ismail Donmez, Stelian Pop, Andrea Gelmini,
	linux-kernel, linux-acpi

>> > Will sony_acpi ever make it to the mainline? Its very useful for new
>> Vaio
>> > models.
>
> Nope, not as it is.  Useful != supportable.
>
> 1. It must not create any files under /proc/acpi
>     This is creating a machine-specific API, which
>     is exactly what we don't want  Nobody can maintain
>     50 machine specific APIs.
>
>     These objects must appear generic and under sysfs
>     as if acpi were not involved in providing them.
>
> 2. its source code shall not live in drivers/acpi
>     it is not part of the ACPI implementation after all --
>     it is a platform specific driver.

In this case, would a patch ripping off asus_acpi, ibm_acpi and
toshiba_acpi  from the kernel be accepted ?

I don't really care much about sony_acpi (since I'm not maintaining it
anymore, even if I still answer support requests about it), but this is
just silly. This has been going on for more than one and a half year now.

Meanwhile (at least from what I've seen), the ACPI subsystem still doesn't
provide this "generic" API which platform specific driver need to
implement. drivers/acpi/{hotkey.c,video.c} are just rudimentary, and there
is no indication that this is going forward:

In March 2005 you (Len) said:

> The goal is to DELETE ibm, toshiba, and asus drivers -- or at least the
> duplicated functions in them.
>
> platform specific drivers make it harder, not easier, to support more
> hardware -- there are a zillion vendors out there, implementing special
> drivers for each of them is a strategy of last resort.

and

> I'd like to keep this driver out-of-tree
> until we prove that we can't enhance the
> generic code to handle this hardware
> without the addition of a new driver.

How long is this going to take ?

Stelian.


^ permalink raw reply	[flat|nested] 49+ messages in thread
* RE: sonypc with Sony Vaio VGN-SZ1VP
@ 2007-01-04 17:58 Cacy Rodney
  2007-01-05 17:33 ` Len Brown
  0 siblings, 1 reply; 49+ messages in thread
From: Cacy Rodney @ 2007-01-04 17:58 UTC (permalink / raw)
  To: linux-acpi

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,
         }
};

^ permalink raw reply	[flat|nested] 49+ messages in thread
[parent not found: <20060926135659.GA3685@jnb.gelma.net>]

end of thread, other threads:[~2007-01-11 20:01 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27 11:51 sonypc with Sony Vaio VGN-SZ1VP 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 17:11               ` Sony Vaio VGN-SZ340 (was Re: sonypc with Sony Vaio VGN-SZ1VP) Len Brown
2007-01-05 17:24                 ` MoRpHeUz
2007-01-05 18:10                   ` Len Brown
2007-01-06  4:09                     ` Bjorn Helgaas
2007-01-11 19:52                       ` Len Brown
2007-01-11 20:01                         ` Alexey Starikovskiy
2007-01-05  0:11           ` sonypc with Sony Vaio VGN-SZ1VP 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-11 12:20           ` sonypc with Sony Vaio VGN-SZ1VP [repost] Neil Bird
2007-01-05 17:19         ` sonypc with Sony Vaio VGN-SZ1VP Len Brown
2007-01-10  8:36           ` Neil Bird
2007-01-11 12:20           ` sonypc with Sony Vaio VGN-SZ1VP [repost] Neil Bird
2007-01-05 10:02       ` sonypc with Sony Vaio VGN-SZ1VP Stelian Pop
2007-01-05 12:13         ` Mattia Dongili
2007-01-05 14:23           ` Jan Engelhardt
2007-01-09 15:19   ` Luming Yu
  -- strict thread matches above, loose matches on Subject: below --
2007-01-04 17:58 Cacy Rodney
2007-01-05 17:33 ` Len Brown
2007-01-05 19:10   ` Mattia Dongili
     [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

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).