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

nvidia card remains ON after stopping primusrun #13

Closed
nikonikolov opened this issue Jul 18, 2016 · 6 comments
Closed

nvidia card remains ON after stopping primusrun #13

nikonikolov opened this issue Jul 18, 2016 · 6 comments

Comments

@nikonikolov
Copy link

When I start an application with primusrun and then close it, the nvidia card remains ON. This is evident from the shortened battery life and from the fact that cat /proc/acpi/bbswitch prints ON. Tried manually unloading the nvidia module but even with --force option the system does not allow me and says it's in use. I also tried using bbswitch but bash says that this command is not found, although I installed the package. What configurations should I perform to make the nvidia card switch off automatically after the process that uses primusrun is terminated? I am using the proprietary nvidia drivers.

@ryanpcmcquen
Copy link
Collaborator

ryanpcmcquen commented Jul 18, 2016

Have you tried the recommended way of turning OFF the card with bbswitch?

https://github.com/Bumblebee-Project/bbswitch#turn-the-card-off-respectively-on

@nikonikolov
Copy link
Author

yes. after the tee command the cat /proc/acpi/bbswitch still prints 0000:01:00.0 ON. Actually I just found out that the nvidia card starts when bumblebeed is started, no need to run primusrun to turn it on. Isn't there an automated way that will switch it on only when primusrun is using it?

@nikonikolov
Copy link
Author

nikonikolov commented Jul 18, 2016

Sorry, my mistake, one of the nvidia modules was still loaded so that's why it could not switch off. Now I can switch it off manually. Anyway, how can I automate the behaviour?

@ryanpcmcquen
Copy link
Collaborator

ryanpcmcquen commented Jul 18, 2016

Writing a shell wrapper for primusrun that turns on the card would be somewhere to start ... glad to hear your other issue was fixed!

@nikonikolov
Copy link
Author

Thanks. Just a final question https://github.com/Bumblebee-Project/bbswitch#enable-card-on-shutdown - I am struggling to find out which will be the equivalent path for this file on Slackware?

@ryanpcmcquen
Copy link
Collaborator

@nikonikolov, I'm not sure, try this command:

find /etc -name bbswitch.conf

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