-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use manual remove for PCI device instead of Bbswitch? #74
Comments
Thanks for the report. Indeed I could disable the NVIDIA GPU that way. :-) linux:/home/tux # modprobe nvidia linux:/home/tux # dmesg Unfortunately I was not able to reenable it. :-( I've tried linux:/home/tux # echo 1 | tee /sys/bus/pci/devices/0000:01:00.0/rescan linux:/home/tux # echo 1 /sys/bus/pci/devices/0000:01:00.0/rescan linux:/home/tux # modprobe nvidia EDIT: |
I was able to reenable card with |
OMG. ;-) Indeed now it works for me. :-) Even easier. disable nVidia GPU reenable nVidia GPU |
Adding our bbswitch expert. @simopil What do you think? Should we try to get rid of bbswitch? Looks like it would be possible. |
The only problem I see is that rescan command is not exclusive to GPU and will add any previously removed PCI device. And vice versa, calling rescan by user or by some hardware-info app will silently enable GPU... |
Yeah. Valid points. And there might be more reasons, why bbswitch kernel module has been written ... |
I tried removing device, it disappeared from system but leds on my laptop shows that nvidia card is still powered on. |
Thanks for your input @simopil ! |
Hi, It's me again 😄
In this issue we found out that bbswitch is not working on my laptop. TLDR about my investigation is in this comment.
Finally I was able to disable discrete GPU with just
echo 1 | sudo tee /sys/bus/pci/devices/0000\:01\:00.0/remove
.And I'm started thinking, that maybe this is the right way for disabling the device? In this case we don't need to have dependency on bbswitch (which seems to be almost dead, if you look at it's repo). But I don't have the right expertise on the topic to see the whole picture.
So what do you think, is it possible to integrate such solution into suse-prime itself, or there are some hidden caveats in such approach?
The text was updated successfully, but these errors were encountered: