<div dir="ltr"><div>Hello<br></div><div><br></div><div>As a followup to this thread </div><div><br></div><div><a href="http://lists.dragonflybsd.org/pipermail/users/2016-July/312927.html">http://lists.dragonflybsd.org/pipermail/users/2016-July/312927.html</a></div><div><br></div><div>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. </div><div><br></div><div><a href="https://github.com/peeterm007/gmux-apple">https://github.com/peeterm007/gmux-apple</a></div><div><br></div><div>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: </div><div><br></div><div>---</div><div># kldload ./gmux_apple_acpi.ko </div><div><br></div><div>gmux_apple_acpi0: <apple gmux controller> port 0x700-0x7fe on acpi0</div><div>gmux_apple_acpi0: Found gmux version 1.9.33 [classic]</div><div><br></div><div># kldunload gmux_apple_acpi</div><div><br></div><div>gmux_apple_acpi0: detached</div><div>---</div><div><br></div><div>(Thanks to Sephe for fixing the acpi IO address range!) It still needs more work regarding initialization and power handling. </div><div><br></div><div>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. </div><div><br></div><div>Cheers</div><div><br></div><div>Peeter</div><div><br></div><div>--</div><div><br></div></div>