gmux and switcheroo for DragonFly
karu.pruun
karu.pruun at gmail.com
Fri Sep 2 05:56:22 PDT 2016
Hello
As a followup to this thread
http://lists.dragonflybsd.org/pipermail/users/2016-July/312927.html
on why Xorg won't start on apple macbookpro, I had a look at linux's
apple-gmux driver. It is part of the switcheroo subsystem for apple laptops
with hybrid graphics. Over the last weeks I've been working on bringing the
apple-gmux driver to DragonFly.
https://github.com/peeterm007/gmux-apple
This is my first encounter with kernel and driver programming, and it's
still work in progress, but the gmux driver now un/loads fine:
---
# kldload ./gmux_apple_acpi.ko
gmux_apple_acpi0: <apple gmux controller> port 0x700-0x7fe on acpi0
gmux_apple_acpi0: Found gmux version 1.9.33 [classic]
# kldunload gmux_apple_acpi
gmux_apple_acpi0: detached
---
(Thanks to Sephe for fixing the acpi IO address range!) It still needs more
work regarding initialization and power handling.
As far as I can see, Linux's switcheroo consists of other parts that need
to be brought over to DragonFly. I wonder if anyone is working on this? I'd
like to avoid duplicating work. If there's work done on switcheroo I could
test if it works with the apple gmux driver. Alternatively, if there's
still work to be done I'd be happy to contribute if I can.
Cheers
Peeter
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20160902/bc30867c/attachment.html>
More information about the Users
mailing list