All of lore.kernel.org
 help / color / mirror / Atom feed
* another discrete nvidia switch on/off for an assortment of laptops
@ 2009-12-29 22:30 Albert Vilella
  2009-12-30  5:44 ` Len Brown
  2010-01-06 14:33 ` Matthew Garrett
  0 siblings, 2 replies; 4+ messages in thread
From: Albert Vilella @ 2009-12-29 22:30 UTC (permalink / raw)
  To: linux-acpi

Hi again,

In this occasion not providing a working module, but just a grep to
show 5 different laptop
models that use an almost identical ACPI call to report on the
discrete nvidia graphics switch:

All DSDT.dsl files are available here:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/312756
grep -e NVIF *.dsl

Acer_Aspire_7530G_nv.dsl:                Name (_UID, "NVIF")
Acer_Aspire_7530G_nv.dsl:                        Return
(\_SB.PCI0.IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
Acer_Aspire_7530G_nv.dsl:                    Method (NVIF, 3, NotSerialized)
Dell_Studio_XPS_13_nv.dsl:                Name (_UID, "NVIF")
Dell_Studio_XPS_13_nv.dsl:                        Return
(\_SB.PCI0.IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
Dell_Studio_XPS_13_nv.dsl:                    Method (NVIF, 3, NotSerialized)
Elitegroup_GF8100VM_nv.dsl:                            Name (_UID, "NVIF")
Elitegroup_GF8100VM_nv.dsl:                                    Return
(^^IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
Elitegroup_GF8100VM_nv.dsl:                    Method (NVIF, 3, NotSerialized)
MSI_EX630-034US.dsl:                            Name (_UID, "NVIF")
MSI_EX630-034US.dsl:                                    Return
(^^IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
MSI_EX630-034US.dsl:                    Method (NVIF, 3, NotSerialized)
MSI_EX630_nv.dsl:                            Name (_UID, "NVIF")
MSI_EX630_nv.dsl:                                    Return
(^^IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
MSI_EX630_nv.dsl:                    Method (NVIF, 3, NotSerialized)
Toshiba_Qosmio_X305_nv.dsl:                Name (_UID, "NVIF")
Toshiba_Qosmio_X305_nv.dsl:                        Return
(\_SB.PCI0.IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
Toshiba_Qosmio_X305_nv.dsl:                    Method (NVIF, 3, NotSerialized)

Cheers,

Albert.

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

* Re: another discrete nvidia switch on/off for an assortment of laptops
  2009-12-29 22:30 another discrete nvidia switch on/off for an assortment of laptops Albert Vilella
@ 2009-12-30  5:44 ` Len Brown
  2009-12-30  9:32   ` Norbert Preining
  2010-01-06 14:33 ` Matthew Garrett
  1 sibling, 1 reply; 4+ messages in thread
From: Len Brown @ 2009-12-30  5:44 UTC (permalink / raw)
  To: Albert Vilella; +Cc: linux-acpi

On Tue, 29 Dec 2009, Albert Vilella wrote:

> Hi again,
> 
> In this occasion not providing a working module, but just a grep to
> show 5 different laptop
> models that use an almost identical ACPI call to report on the
> discrete nvidia graphics switch:
> 
> All DSDT.dsl files are available here:
> https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/312756
> grep -e NVIF *.dsl
> 
> Acer_Aspire_7530G_nv.dsl:                Name (_UID, "NVIF")
> Acer_Aspire_7530G_nv.dsl:                        Return
> (\_SB.PCI0.IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
> Acer_Aspire_7530G_nv.dsl:                    Method (NVIF, 3, NotSerialized)
> Dell_Studio_XPS_13_nv.dsl:                Name (_UID, "NVIF")
> Dell_Studio_XPS_13_nv.dsl:                        Return
> (\_SB.PCI0.IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
> Dell_Studio_XPS_13_nv.dsl:                    Method (NVIF, 3, NotSerialized)
> Elitegroup_GF8100VM_nv.dsl:                            Name (_UID, "NVIF")
> Elitegroup_GF8100VM_nv.dsl:                                    Return
> (^^IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
> Elitegroup_GF8100VM_nv.dsl:                    Method (NVIF, 3, NotSerialized)
> MSI_EX630-034US.dsl:                            Name (_UID, "NVIF")
> MSI_EX630-034US.dsl:                                    Return
> (^^IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
> MSI_EX630-034US.dsl:                    Method (NVIF, 3, NotSerialized)
> MSI_EX630_nv.dsl:                            Name (_UID, "NVIF")
> MSI_EX630_nv.dsl:                                    Return
> (^^IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
> MSI_EX630_nv.dsl:                    Method (NVIF, 3, NotSerialized)
> Toshiba_Qosmio_X305_nv.dsl:                Name (_UID, "NVIF")
> Toshiba_Qosmio_X305_nv.dsl:                        Return
> (\_SB.PCI0.IXVE.IGPU.NVIF (FUNC, SUBF, ARGS))
> Toshiba_Qosmio_X305_nv.dsl:                    Method (NVIF, 3, NotSerialized)

There are about 50 DSDTs in that ubuntu feature request.
A sub-set of them include a WMI device
that calls itself "NVIF":

            Device (WMI0)
            {
                Name (_HID, "*pnp0c14")
                Name (_UID, "NVIF")
                Name (_WDG, Buffer (0xC8)
                {

Likely that name is the result of it appearing in some
nvidia reference AML/WMI code someplace; for use with
the associated Windows WMI driver.  Not immediately clear
what the capabilities of that WMI device are...

I happen to have a Sony VGN-Z540 with a stamina/speed switch.
It's BIOS does not supply a WMI device with this name.

-Len Brown
Intel Open Source Technology Center


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

* Re: another discrete nvidia switch on/off for an assortment of laptops
  2009-12-30  5:44 ` Len Brown
@ 2009-12-30  9:32   ` Norbert Preining
  0 siblings, 0 replies; 4+ messages in thread
From: Norbert Preining @ 2009-12-30  9:32 UTC (permalink / raw)
  To: Len Brown; +Cc: Albert Vilella, linux-acpi

On Mi, 30 Dez 2009, Len Brown wrote:
> I happen to have a Sony VGN-Z540 with a stamina/speed switch.
> It's BIOS does not supply a WMI device with this name.

I assume you know of
	http://global-social.net/tiki-view_blog.php?blogId=3
which uses a slightly extended sony-laptop module (maintained by me,
but I am in discussion with Mattia about pushing as much as possible
upstream) and several other things to enable switching on linux.

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan            TU Wien, Austria           Debian TeX Task Force
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
GRIMSBY (n.)
A lump of something gristly and foultasting concealed in a mouthful of
stew or pie. Grimsbies are sometimes merely the result of careless
cookery, but more often they are placed there deliberately by
Freemasons. Grimbies can be purchased in bulk from any respectable
Masonic butcher on giving him the secret Masonic handbag. One is then
placed correct masonic method of dealing with it. If the guest is not
a Mason, the host may find it entertaining to watch how he handles the
obnoxious object. It may be (a) manfully swallowed, invariably
bringing tears to the eyes. (b) chewed with resolution for up to
twenty minutes before eventually resorting to method (a) (c) choked on
fatally. The Masonic handshake is easily recognised by another Mason
incidentally, for by it a used grimsby is passed from hand to
hand. The secret Masonic method for dealing with a grimsby is as
follows : remove it carefully with the silver tongs provided, using
the left hand. Cross the room to your host, hopping on one leg, and
ram the grimsby firmly up his nose, shouting, 'Take that, you smug
Masonic bastard.'
			--- Douglas Adams, The Meaning of Liff

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

* Re: another discrete nvidia switch on/off for an assortment of laptops
  2009-12-29 22:30 another discrete nvidia switch on/off for an assortment of laptops Albert Vilella
  2009-12-30  5:44 ` Len Brown
@ 2010-01-06 14:33 ` Matthew Garrett
  1 sibling, 0 replies; 4+ messages in thread
From: Matthew Garrett @ 2010-01-06 14:33 UTC (permalink / raw)
  To: Albert Vilella; +Cc: linux-acpi

On Tue, Dec 29, 2009 at 10:30:47PM +0000, Albert Vilella wrote:
> Hi again,
> 
> In this occasion not providing a working module, but just a grep to
> show 5 different laptop
> models that use an almost identical ACPI call to report on the
> discrete nvidia graphics switch:

The NVIF interface is not the correct one to use. There's a _DSM method 
on the Nvidia PCI device that will call the appropriate methods. nouveau 
should support this in the current kernels - right now it'll just set 
the graphics to whatever state the BIOS has programmed. A module 
parameter to change the default might be interesting.

If you want to do this with the nvidia binary driver, you'll need to get 
nvidia to add support.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

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

end of thread, other threads:[~2010-01-06 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-29 22:30 another discrete nvidia switch on/off for an assortment of laptops Albert Vilella
2009-12-30  5:44 ` Len Brown
2009-12-30  9:32   ` Norbert Preining
2010-01-06 14:33 ` Matthew Garrett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.