def _has_integrated_gpu(self):                                                  
                                                                                
                                                
        status = False;
        
        path = '/var/lib/ubuntu-drivers-common/last_gfx_boot'                   
                          
        if os.path.isfile(path):
            with open(path, 'r') as f:                                          
                          
                t = f.read()                                                    
                          
                if t.find('8086') != -1 or t.lower().find('10de') != -1:        
                          
                    status = True                                               
                          
                f.close()
        
        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/buqmskei77bkucdqj9g7dwwxcy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1942791

Title:
  _has_integrated_gpu() needs to consider the desktop case

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1942791/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to