On Sun, Nov 09, 2014 at 11:01:32AM +0100, Lampshade wrote:
> Hi
> I was trying half year ago to use OpenBSD 5.5, but system heated my laptop. I 
> have Intel and Nvidia GPU in laptop. I can not disable Nvidia GPU via BIOS. 
> Laptop always exposes and enables two GPUs by default.  OpenBSD does not 
> disabled Nvidia GPU, so it heated laptop. I have tried OpenBSD 5.6 and it 
> still heats my laptop. On Linux Nvidia's GPU is disabled automatically. I 
> wanted to find how to disable my card manually, I used acpi_call Linux module 
> (on Linux of course). In my laptop script turn_off_gpu.sh is disabling GPU 
> when I strip methods variable to:
> 
> methods="
> \_SB.PCI0.PEG0.PEGP._OFF"
> 
> and enables when:
> methods="
> \_SB.PCI0.PEG0.PEGP._ON"
> 
> Is there any way in OpenBSD to send first (disabling) command to hardware? It 
> is the only reason I don't use OpenBSD. Maybe somebody can write few lines of 
> code and I will compile kernel for myself?
> 
> References:
> http://linux-hybrid-graphics.blogspot.com/2010/07/u ??? ch-onoff.html
> https://github.com/mkottman/acpi_call
> 

The right way to handle this IMO isn't to provide a generic way to
evaluate arbitrary AML methods. That way lies madness.

A better solution is to create an actual driver for nvidia0 or
whatever and have that driver do nothing except disable the hardware
by evaluating the method referenced above and likely also putting
the device in D3 from the PCI side.

Your diff to implement said functionality is certainly welcome.

Reply via email to