On 2014/05/20 18:41, Lampshade wrote: > I have laptop with Optimus technology so it is without dedicated multiplexer. > Intel > GPU is proxy for Nvidia GPU. First Linux I installed on this laptop was Ubuntu > 12.10 and by default it disabled Nvidia GPU. It is good behaviour, under > Linux and > OpenBSD I want Nvidia GPU to be disabled. Nvidia GPU is useful for me in > Windows (example Autodesk's Inventor) so I don't want to change laptop. When I > installed OpenBSD 5.5-current Nvidia GPU is enabled and is consuming a lot of > power and heating my laptop to 64 Celsius degrees (°C) in idle when CPU was > underclocked to 800 Mhz... For two weeks I was searching for solution but I > haven't > finded it (I am not familiar with *BSD systems) so I decided to remove OpenBSD > from laptop :/ But I had searching for solution further and in FreeBSD forum > (in 9.2 they have version from 2013) I finded that it is a way to disable > Nvidia GPU > via acpica. Unfortunately on Liux forum there was an user who claimed that in > his > VPS acpica in OpenBSD 5.4 is old and can't send any signals to some devices. > Should I > question him about details? > > I am a regular user who just want some security in Internet, I don't how > programmers > are dealing with hardware, I can just write very, very simple program in C > and this is > all my hacking skill :/
I've updated the acpica port in -current but it won't help you with this. On OpenBSD acpica is *only* used as a development tool (disassembler/debugger). we do not use Intel's acpi code in the kernel, we have our own implementation - anything you read about doing this on FreeBSD is not directly relevant. For what you're looking for, I think you would need a kernel driver, and I think it's going to be fairly machine-specific. There's a general-purpose linux driver that allows calling specific acpi methods from userland via a /proc interface, plus some sample scripts to disable second gpu on certain known laptops (https://github.com/mkottman/acpi_call) and there's something similar for FreeBSD, but nothing directly suitable for porting to OpenBSD.
