Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumblebee Support #28

Open
mr-remington opened this issue Feb 24, 2019 · 4 comments
Open

Bumblebee Support #28

mr-remington opened this issue Feb 24, 2019 · 4 comments
Labels
C: missing feature Missing feature that is confirmed working on Windows using the Surface Serial Hub (EC) device. D: Book 2 Device: Surface Book 2 P: low Priority: Low priority

Comments

@mr-remington
Copy link

This looks ACPI related. I'm running Ubuntu 18.10. After upgrading to 4.19 from Jake, I found out the 390 drivers are unsupported in 4.19 so I upgraded the nvidia driver to 410.

410 no longer uses prime-select and prefers bumblebee/optirun to enable the graphics card.

remi@sb2:~$ optirun firefox
[  549.113374] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  549.113409] [ERROR]Aborting because fallback start is disabled.

Looking at dmesg:

[  265.746948] bbswitch: version 0.8
[  265.746960] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[  265.746978] bbswitch: Found discrete VGA device 0000:02:00.0: \_SB_.PCI0.RP05.PXSX
[  265.747354] bbswitch: No suitable _DSM call found.

The device ID properly maps to the nvidia card but that _DSM call looks like ACPI related. Any ideas?

@qzed
Copy link
Member

qzed commented Feb 26, 2019

Hmm yeah, I haven't gotten bbswitch to work, not sure what we'd have to do to change that. Also I need to get up to date on the whole GPU switching thing, if I understand it correctly, getting vga-switcheroo to work would be the proper way forward (if that's even possible)? I'll definitely have a look into it.

@qzed qzed changed the title nvidia 410 w/ bumblebee. [SB2] Bumblebee Support Apr 11, 2019
@qzed
Copy link
Member

qzed commented Apr 11, 2019

For anyone interested: I've been working on this. While it's not a drop-in replacement for bbswitch and not supported by bumblebee, you can manually switch the dGPU on before calling optirun and switch it off afterwards.

@qzed qzed transferred this issue from linux-surface/surface-aggregator-module Apr 13, 2019
@qzed
Copy link
Member

qzed commented Apr 13, 2019

Moved from https://github.com/qzed/linux-surfacegen5-acpi, as I want to keep these two modules separate for now and I think this should be handled here.

@qzed qzed changed the title [SB2] Bumblebee Support Bumblebee Support Apr 13, 2019
@qzed qzed transferred this issue from qzed/linux-surfacebook2-mshw0153 Dec 28, 2019
@qzed
Copy link
Member

qzed commented Dec 28, 2019

Moving back to https://github.com/qzed/linux-surfacegen5-acpi as this module is now integrated there.

The feature/dgpu-vgasw branch contains an experimental implementation for vga-switcheroo. You can enable that by setting the module-parameters vgasw=y and vgasw_dummy_client=y. This currently only works via the proprietary nvidia driver, nouveau fails to load properly, which is probably an unrelated issue. Loading the module with these options should then provide the vga-switcheroo debugfs interface (/sys/kernel/debug/vgaswitcheroo/switch).

To get this to work with the bumblebee deamon, some additional configuration thereof is required via its bumblebee.conf file: You explicitly need to specify Driver=nvidia and under [driver-nvidia] you need to set PMMethod=switcheroo. This should then automatically power-on the dGPU when you run stuff with optirun (or pvkrun, ...) and power it off afterwards.

@qzed qzed added C: missing feature Missing feature that is confirmed working on Windows using the Surface Serial Hub (EC) device. D: Book 2 Device: Surface Book 2 P: low Priority: Low priority labels Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: missing feature Missing feature that is confirmed working on Windows using the Surface Serial Hub (EC) device. D: Book 2 Device: Surface Book 2 P: low Priority: Low priority
Projects
None yet
Development

No branches or pull requests

2 participants