_has_integrated_gpu() needs to consider the desktop case
Bug #1942791 reported by
jeremyszu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
Critical
|
jeremyszu | ||
nvidia-prime (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In recovery (from a storage) case, the /var/lib/
---
During the recovery, a worker executes ubuntu-drivers install.
The expected result is "on-demand" but it goes to "on" because /var/lib/
`ubuntu-drivers install` calls `prime-select on-demand` calls enable_profile() and then enable_profile() calls _has_integrated
Since _has_integrated
Changed in oem-priority: | |
assignee: | nobody → jeremyszu (os369510) |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: oem-priority originate-from-1942041 stella |
tags: | added: originate-from-1942028 |
tags: | added: originate-from-1942822 |
Changed in oem-priority: | |
importance: | High → Critical |
To post a comment you must log in.
def _has_integrated _gpu(self) :
status = False;
path = '/var/lib/ ubuntu- drivers- common/ last_gfx_ boot' isfile( path): ).find( '10de') != -1:
status = True
f.close( )
if os.path.
with open(path, 'r') as f:
t = f.read()
if t.find('8086') != -1 or t.lower(
return status
---
According to the discussion with Alberto[1], we are agree to check sysfs (e.g. vendor, chassis, etc..) instead.
https:/ /chat.canonical .com/canonical/ pl/buqmskei77bk ucdqj9g7dwwxcy