From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lekensteyn Subject: Re: properly check for _DSM function support and Optimus support for vga_switcheroo Date: Mon, 19 Dec 2011 14:26:27 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1717548914==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: Gianluca Cecchi Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1717548914== Content-Type: multipart/alternative; boundary=14dae93407bbdb487704b471e51b --14dae93407bbdb487704b471e51b Content-Type: text/plain; charset=ISO-8859-1 A quickly written way to test this module is described for Ubuntu at http://pastebin.com/c5XqKSsW. Basically, you need to apply the patch on nouveau and rebuild the nouveau kernel module. A comparison of different methods that works for toggling the dGPU is available: https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods Regards, Lekensteyn On Mon, Dec 19, 2011 at 11:04 AM, Gianluca Cecchi wrote: > >> On Sat, Dec 17, 2011 at 5:50 PM, Lekensteyn > wrote: > >>> > >>> Hello guys, > >>> > >>> I've prepared a patch based on my findings for the bbswitch module > >>> (https://github.com/Lekensteyn/acpi-stuff/tree/master/bbswitch). This > >>> adds a proper > >>> check whether a _DSM function is supported or not and make OFF / ON for > >>> vga_switcheroo work for nVidia Optimus models. The patch is based > against > >>> the > >>> mainline kernel. > >>> > >>> It has been tested on my Clevo B7130 laptop running kernel 3.2 which > has > > Hello, > I have an Asus U36SD laptop with Optimus and Fedora 16 with kernel > 3.1.5-6.fc16.x86_64 > Any way I can test it? > Currently I'm using acpi_call to switch off nvidia card and gain 4w > for more battery life. > > [g.cecchi@ope46 ~]$ lspci -vnnn|grep -i vga > 00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd > Generation Core Processor Family Integrated Graphics Controller > [8086:0126] (rev 09) (prog-if 00 [VGA controller]) > 01:00.0 VGA compatible controller [0300]: nVidia Corporation Device > [10de:1050] (rev ff) (prog-if ff) > > What benefit would it give me? Chance to use nvidia for graphic > related apps ? With nouveau andor nvidia proprietary driver? > Thanks in advance for any pointer > > Gianluca > _______________________________________________ > Nouveau mailing list > Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > http://lists.freedesktop.org/mailman/listinfo/nouveau > --14dae93407bbdb487704b471e51b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable A quickly written way to test this module is described for Ubuntu at
http://pastebin.com= /c5XqKSsW. Basically, you need to apply the patch on nouveau
and reb= uild the nouveau kernel module.

A comparison of different methods that works for toggling the dGPU is a= vailable:
https://github.com/Bumblebee-Project/Bumblebee/w= iki/Comparison-of-PM-methods

Regards,
Lekensteyn

On Mon, Dec 19= , 2011 at 11:04 AM, Gianluca Cecchi <gianluca.cecchi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= > wrote:
>> On Sat, Dec 17, 2011 at 5:50 PM, Lekensteyn <lekensteyn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> w= rote:
>>>
>>> Hello guys,
>>>
>>> I've prepared a patch based on my findings for the bbswitc= h module
>>> (https://github.com/Lekensteyn/acpi-stuff/tre= e/master/bbswitch). This
>>> adds a proper
>>> check whether a _DSM function is supported or not and make OFF= / ON for
>>> vga_switcheroo work for nVidia Optimus models. The patch is ba= sed against
>>> the
>>> mainline kernel.
>>>
>>> It has been tested on my Clevo B7130 laptop running kernel 3.2= which has

Hello,
I have an Asus U36SD laptop with Optimus and Fedora 16 with kernel
3.1.5-6.fc16.x86_64
Any way I can test it?
Currently =A0I'm using acpi_call to switch off nvidia card and gain 4w<= br> for more battery life.

[g.cecchi@ope46 ~]$ lspci -vnnn|grep -i vga
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd
Generation Core Processor Family Integrated Graphics Controller
[8086:0126] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device
[10de:1050] (rev ff) (prog-if ff)

What benefit would it give me? Chance to use nvidia for graphic
related apps ? With nouveau andor nvidia proprietary driver?
Thanks in advance for any pointer

Gianluca
_______________________________________________
Nouveau mailing list
Nouveau@= lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

--14dae93407bbdb487704b471e51b-- --===============1717548914== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============1717548914==--