If anybody still has a reproducer, it would be useful to set a trace point like this:
sudo vim /usr/bin/prime-select
# ...
import pdb pdb.set_trace()
if profile == 'nvidia':
# Always allow enabling nvidia
# (No need to check if nvidia is available) self._enable_nvidia()
elif profile == "on-demand": self._disable_nvidia(keep_nvidia_modules=True)
else:
# Make sure that the installed packages support PRIME
#if not self._supports_prime():
# sys.stderr.write('Error: the installed packages do not support PRIME\n')
# return False self._disable_nvidia()
# ...
and see if _disable_nvidia is entered when `prime-select intel` is invoked while `prime-select query` shows "nvidia" or "on-demand".
Before I removed the driver and the nvidia-prime package, I could switch the profile back and forth using `prime-select intel` and `prime-select nvidia` without any positive effect so it would be useful to find out why.
The code only depends on the target profile specified via command line and the current profile (read from /etc/prime-discrete) so I don't have any guesses yet:
If anybody still has a reproducer, it would be useful to set a trace point like this:
sudo vim /usr/bin/ prime-select
# ...
pdb.set_ trace()
import pdb
if profile == 'nvidia':
self. _enable_ nvidia( )
self. _disable_ nvidia( keep_nvidia_ modules= True) prime() : write(' Error: the installed packages do not support PRIME\n')
self. _disable_ nvidia( )
# Always allow enabling nvidia
# (No need to check if nvidia is available)
elif profile == "on-demand":
else:
# Make sure that the installed packages support PRIME
#if not self._supports_
# sys.stderr.
# return False
# ...
and see if _disable_nvidia is entered when `prime-select intel` is invoked while `prime-select query` shows "nvidia" or "on-demand".
Before I removed the driver and the nvidia-prime package, I could switch the profile back and forth using `prime-select intel` and `prime-select nvidia` without any positive effect so it would be useful to find out why.
The code only depends on the target profile specified via command line and the current profile (read from /etc/prime- discrete) so I don't have any guesses yet:
https:/ /github. com/tseliot/ nvidia- prime/blob/ cf757cc9585dfc0 32930379fc81eff b3a3d59606/ prime-select# L114-L143