Ran into this exact issue, and modifying line 198 to
```
if vendor.find('8086') != -1 or vendor.lower().find('1002') != -1:
```
successfully allowed me to use the utility. Thanks @Lialosiu.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-prime in Ubuntu.
https://bugs.launchpad.net/bugs/1948362
Title:
UnboundLocalError: local variable 't' referenced before assignment
Status in nvidia-prime package in Ubuntu:
New
Bug description:
```
Traceback (most recent call last):
File "/usr/bin/prime-select", line 458, in <module>
switcher.enable_profile(arg)
File "/usr/bin/prime-select", line 223, in enable_profile
if not self._has_integrated_gpu():
File "/usr/bin/prime-select", line 198, in _has_integrated_gpu
if t.find('8086') != -1 or t.lower().find('1002') != -1:
UnboundLocalError: local variable 't' referenced before assignment
```
at file `prime-select`, line 198
https://git.launchpad.net/ubuntu/+source/nvidia-prime/tree/prime-
select#n198
that `t` should be `vendor` I think. :)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1948362/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp