diff --git a/cnchi/hardware/modules/bumblebee.py_ b/cnchi/hardware/modules/bumblebee.py_ index c6a9f1108..feda58884 100644 --- a/cnchi/hardware/modules/bumblebee.py_ +++ b/cnchi/hardware/modules/bumblebee.py_ @@ -43,15 +43,12 @@ VENDOR_IDS = ["0x10de", "0x8086"] DEVICES = "" PRIORITY = 3 -import i915 -import nvidia - class Bumblebee(Hardware): """ Bumblebee (Optimus cards) """ def __init__(self): self.cards_detected = 0 - Hardware.__init__(self, CLASS_NAME, CLASS_ID, VENDOR_IDS[0], DEVICES, PRIORITY) + Hardware.__init__(self, CLASS_NAME, CLASS_ID, VENDOR_IDS, DEVICES, PRIORITY) def check_device(self, class_id, vendor_id, product_id): """ Checks if the driver supports this device @@ -67,6 +64,7 @@ class Bumblebee(Hardware): return False self.cards_detected = self.cards_detected + 1 + if self.cards_detected >= 2: return True else: @@ -75,30 +73,24 @@ class Bumblebee(Hardware): @staticmethod def get_packages(): """ Get all required packages """ - pkgs = ["nvidia", "nvidia-utils", "nvidia-libgl", "libvdpau"] + pkgs = ["bumblebee", "mesa", "xf86-video-intel", "nvidia", "nvidia-settings", "bbswitch"] if os.uname()[-1] == "x86_64": - pkgs.extend(["lib32-nvidia-libgl", "lib32-libvdpau"]) + pkgs.extend(["lib32-nvidia-utils", "lib32-virtualgl", "lib32-mesa-libgl"]) return pkgs @staticmethod def get_conflicts(): """ Get conflicting packages """ - pkgs = ["mesa-libgl"] - if os.uname()[-1] == "x86_64": - pkgs.append("lib32-mesa-libgl") + pkgs = ["mesa-libgl", "xf86-video-nouveau"] + #if os.uname()[-1] == "x86_64": + # pkgs.append("lib32-mesa-libgl") return pkgs @staticmethod def post_install(dest_dir): """ Post install commands """ - path = os.path.join(dest_dir, "etc/X11/xorg.conf.d/20-nvidia.conf") - with open(path, 'w') as nvidia: - nvidia.write('Section "Device"\n') - nvidia.write(' Identifier "Nvidia Card"\n') - nvidia.write(' Driver "nvidia"\n') - nvidia.write(' VendorName "NVIDIA Corporation"\n') - nvidia.write(' Option "NoLogo" "true"\n') - nvidia.write('EndSection\n') + # Done in install.py + pass @staticmethod def is_proprietary(): diff --git a/cnchi/info.py b/cnchi/info.py index 0f0371b08..ea34c16c7 100755 --- a/cnchi/info.py +++ b/cnchi/info.py @@ -29,7 +29,7 @@ """ Set some Cnchi global constants """ -CNCHI_VERSION = "0.14.223" +CNCHI_VERSION = "0.14.224" CNCHI_WEBSITE = "http://www.antergos.com" CNCHI_RELEASE_STAGE = "production" diff --git a/cnchi/installation/install.py b/cnchi/installation/install.py index 6f8c5e64a..94c7b7159 100644 --- a/cnchi/installation/install.py +++ b/cnchi/installation/install.py @@ -1163,6 +1163,9 @@ def configure_system(self): services.append(self.settings.get("desktop_manager")) # In base we use systemd-networkd (setup already done above) services.append(self.settings.get("network_manager")) + # If bumblebee (optimus cards) is installed, enable it + if os.path.exists(os.path.join(DEST_DIR, "usr/lib/systemd/system/bumblebeed.service")): + services.extend(["bumblebee"]) services.extend(["ModemManager", "haveged"]) diff --git a/data/packages.xml b/data/packages.xml index bde02ec64..6adb59de6 100644 --- a/data/packages.xml +++ b/data/packages.xml @@ -499,6 +499,7 @@ hplip print-manager system-config-printer + python2-gnomekeyring splix python-pyqt5 diff --git a/update.info b/update.info index 97fc23fbd..ab86147be 100644 --- a/update.info +++ b/update.info @@ -1,2 +1,2 @@ -{"version":"0.14.223","files":[ +{"version":"0.14.224","files":[ ]}