Created
March 31, 2012 15:48
-
-
Save thinktainer/2266335 to your computer and use it in GitHub Desktop.
xend patch for inspiron with optimus gfx card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /root/pci.py 2012-03-31 16:36:52.633262092 +0100 | |
+++ /usr/lib/xen-4.1/lib/python/xen/util/pci.py 2012-03-31 16:41:00.057262001 +0100 | |
@@ -1266,7 +1266,12 @@ | |
pass | |
def get_info_from_sysfs(self): | |
- self.find_capability(0x11) | |
+ try: | |
+ self.find_capability(0x11) | |
+ except PciDeviceParseError, err: | |
+ log.error("Caught '%s'" % err) | |
+ return False | |
+ | |
sysfs_mnt = find_sysfs_mnt() | |
if sysfs_mnt == None: | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment