All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lekensteyn <lekensteyn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Omar Andrés Zapata Mesa"
	<andresete.chaos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: properly check for _DSM function support and Optimus support for vga_switcheroo
Date: Mon, 19 Dec 2011 10:44:02 +0100	[thread overview]
Message-ID: <CALBR5Zw0gEDqKrSUF3R30tSSC6DUgfhVm0Y1Mp60e4bB4ObijQ@mail.gmail.com> (raw)
In-Reply-To: <CAOB9epp8EdpetsPStfdnGNx5-2dKi42j3DQiVKN_dzMdFcssWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2508 bytes --]

It's works on a muxless Clevo B7130  intel / nvidia GT425M. It has also
been tested
on the legacy optimus call, although that crashed X
http://pastebin.com/9Sum3tT3
That bug is said to be fixed
http://cgit.freedesktop.org/xorg/xserver/commit/?id=fb22a408c69a84f81905147de9e82cf66ffb6eb2

2011/12/19 Omar Andrés Zapata Mesa <andresete.chaos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> Tested on toshiba m645 optimus intel/nvidia 310m
> output
> bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.P0P2.VGA_
> [21832.787656] bbswitch: detected an Optimus _DSM function
> [21832.787664] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is
> on
> but dont work nvidia video card.  do it work with not mux optimus?
>
>
> On Sat, Dec 17, 2011 at 5:50 PM, Lekensteyn <lekensteyn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
>> a GT425M
>> dGPU:
>> # cat /sys/kernel/debug/vgaswitcheroo/switch
>> 0:IGD:+:Pwr:0000:00:02.0
>> 1:DIS: :Pwr:0000:01:00.0
>> # tee /sys/kernel/debug/vgaswitcheroo/switch <<<OFF
>> OFF
>> # cat /sys/kernel/debug/vgaswitcheroo/switch
>> 0:IGD:+:Pwr:0000:00:02.0
>> 1:DIS: :Off:0000:01:00.0
>> # tee /sys/kernel/debug/vgaswitcheroo/switch <<<ON
>> ON
>> # cat /sys/kernel/debug/vgaswitcheroo/switch
>> 0:IGD:+:Pwr:0000:00:02.0
>> 1:DIS: :Pwr:0000:01:00.0
>>
>> The iGPU/dGPU LEDS on the keyboard also change as a result.
>>
>> A second patch to make the device stay off after suspend is in progress.
>>
>> Regards,
>> Peter
>>
>>
>> _______________________________________________
>> Nouveau mailing list
>> Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
>> http://lists.freedesktop.org/mailman/listinfo/nouveau
>>
>>
>
>
> --
> Omar Andres Zapata Mesa
> Fundamental Interaction Phenomenology Gruop (Gfif)
> Head Developer
> http://gfif.udea.edu.co
> Gfif Developers (Gfif Dev)
> Division of computer science
> http://gfifdev.udea.edu.co
> System Engineering Student
> Universidad de Antioquia At Medellin - Colombia
> Usuario Linux  #490962
>
>

[-- Attachment #1.2: Type: text/html, Size: 4759 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2011-12-19  9:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-17 12:14 properly check for _DSM function support and Optimus support for vga_switcheroo Lekensteyn
     [not found] ` <CALBR5ZxR9iuvT57bDZ8yW9ZkZjuoUhBTYw4HBsmsiwoRi4gSkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-17 22:50   ` Lekensteyn
     [not found]     ` <CALBR5ZyE2ZRX7eFBhooB22e9BRf0f3H2xqtvXB2iwe8nvKKnvw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-19  4:39       ` Omar Andrés Zapata Mesa
     [not found]         ` <CAOB9epp8EdpetsPStfdnGNx5-2dKi42j3DQiVKN_dzMdFcssWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-19  9:44           ` Lekensteyn [this message]
     [not found]             ` <CALBR5Zw0gEDqKrSUF3R30tSSC6DUgfhVm0Y1Mp60e4bB4ObijQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-19 10:04               ` Gianluca Cecchi
     [not found]                 ` <CAG2kNCwBwRJ_VrS9NHnmGvOTTLuwmBKd5kG8OknJG+f20Kvqsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-19 13:26                   ` Lekensteyn
2012-01-08 23:13                     ` Lekensteyn
     [not found]                       ` <CALBR5Zxuwv-zBQfVr7By3su2rjWjcVapX7oCCfeybjBMPY9cbA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-01-09 22:45                         ` Ben Skeggs
2012-01-12 17:29                           ` Dave Airlie

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=CALBR5Zw0gEDqKrSUF3R30tSSC6DUgfhVm0Y1Mp60e4bB4ObijQ@mail.gmail.com \
    --to=lekensteyn-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=andresete.chaos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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 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.