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

bbswitch on fails - optirun hangs with 100% cpu usage #50

Closed
andaag opened this issue Jan 21, 2012 · 4 comments
Closed

bbswitch on fails - optirun hangs with 100% cpu usage #50

andaag opened this issue Jan 21, 2012 · 4 comments

Comments

@andaag
Copy link

andaag commented Jan 21, 2012

Hi

I had optirun working yesterday, today on a clean boot (on a laptop, ran it out of power yesterday..) it won't work.

optirun --debug glxgears hangs with 100% cpu usage with these messages:
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] VGL Compression: proxy
[DEBUG]optirun version 3.0 starting...

I figured I'd try doing it manually, and executed echo "ON" > /proc/acpi/bbswitch and that hung as well. This dmesg | grep bbswitch:
[ 5.298012] bbswitch: Found integrated VGA device 0000:00:02.0: SB.PCI0.GFX0
[ 5.298021] bbswitch: Found discrete VGA device 0000:01:00.0: SB.PCI0.PEG0.PEGP
[ 5.298091] bbswitch: detected an Optimus _DSM function
[ 5.298097] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[ 5.404598] bbswitch: disabling discrete graphics
[ 5.404747] bbswitch: Result of Optimus _DSM call: 11000041
[ 91.949351] bbswitch: enabling discrete graphics
[ 531.305904] bbswitch: enabling discrete graphics

@andaag
Copy link
Author

andaag commented Jan 21, 2012

I shutdown the laptop and removed the power, then booted it up again and bbswitch works again. But there's something going on here atleast.

@Lekensteyn
Copy link
Member

I think that the nvidia driver decided to load itself, half-enabling the nvidia card, but causing a kernel error later. Could you pastebin your /var/log/syslog?
Removing the power resets the hardware and ACPI state, so such issues with ACPI are likely fixed with this.

@andaag
Copy link
Author

andaag commented Jan 22, 2012

I've been trying to reproduce this, but I haven't been able to. Feel free to close this, and I'll reopen if/when I can reproduce and attach a syslog.

@andaag
Copy link
Author

andaag commented Feb 17, 2012

Ran into this again

echo "OFF" > /proc/acpi/bbswitch

  • this returns instantly, but bbswitch still says it's on. The nvidia driver is not loaded.

cat /proc/acpi/bbswitch returns 0000:01:00.0 ON

syslog here : https://gist.github.com/61c5aaf75fb96cdcf6f0

@Lekensteyn Lekensteyn reopened this Mar 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants