Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Do not setup a 20-nvidia.conf file. Do not install xf86-video-nouveau…
Browse files Browse the repository at this point in the history
… when installing nvidia.
  • Loading branch information
karasu committed Nov 16, 2016
1 parent 03cbdc5 commit ddc1ff6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 27 deletions.
11 changes: 2 additions & 9 deletions cnchi/hardware/nvidia.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,15 @@ def get_packages():
@staticmethod
def get_conflicts():
""" Get conflicting packages """
pkgs = ["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')
pass

@staticmethod
def is_proprietary():
Expand Down
11 changes: 2 additions & 9 deletions cnchi/hardware/nvidia_304xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,22 +145,15 @@ def get_packages():
@staticmethod
def get_conflicts():
""" Get conflicting packages """
pkgs = ["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')
pass

@staticmethod
def is_proprietary():
Expand Down
11 changes: 2 additions & 9 deletions cnchi/hardware/nvidia_340xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,15 @@ def get_packages():
@staticmethod
def get_conflicts():
""" Get conflicting packages """
pkgs = ["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')
pass

@staticmethod
def is_proprietary():
Expand Down

3 comments on commit ddc1ff6

@karasu
Copy link
Member Author

@karasu karasu commented on ddc1ff6 Nov 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And no pre-commit hook... again. Sorry.

@lots0logs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆 Do you clone a fresh copy every time?

@karasu
Copy link
Member Author

@karasu karasu commented on ddc1ff6 Nov 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the time, when I'm at work. 😬

Please sign in to comment.