Hey people, haven't found anything too relevant in the archives (with a 
reply). I have a laptop with discrete graphics that absolutely suck, on 
Linux (yes, I know) even with overclock and literal years of tinkering, 
the integrated graphics are faster for the most part. Now, even when 
unused, the chip is still consuming power and making the fan spin. I want 
it to be a quiet headless machine. Also, the GPU itself is acceleration 
only and doesn't actually have a video out.

Now, on Linux, there's no (obvious) way to cut power to it but a third 
party kernel module called "acpi_call" from Nix allows:

$ echo "\_SB.PCI0.PEG1.GFX0.DOFF" | doas tee /proc/acpi/call
$ doas cat /proc/acpi/call # check result

Meanwhile, one called "bbswitch" provides:

$ doas tee /proc/acpi/bbswitch <<<OFF

Which is implemented as:

pci_save_state(dis_dev);
pci_clear_master(dis_dev);
pci_disable_device(dis_dev);
(...)
pci_set_power_state(dis_dev, PCI_D3cold);

I have not found anything even remotely equivalent in OpenBSD manpages, so 
any help will be appreciated.

Reply via email to