Installation of 334.21 to support GeForce GTX 750 Ti

Benjamin Schieder benjamin at anderdonau.de
Tue Apr 1 17:58:43 UTC 2014


 

Awesome! I'll build the drivers today or tomorrow and try them later
this week when I'm back home at my eGPU setup. 

This is an even better answer than I'd hoped for! 

Kind regards,
Benjamin 

Am 2014-04-01 19:37, schrieb russl17 at comcast.net: 

> I recently picked up a GTX 750 card, and was also hoping Debian packages for 334.21 would show up relatively soon in unstable and/or testing.
> 
> I haven't run nvidia for quite a while, I was running a 6600 GT card or something like that at one time. Been running an ATI HD4850 for quite a while now using the radeon driver.
> 
> Based on the comments in the changelog for the nvidia-graphics-drivers, I'll venture a guess that only long lived branch releases make it into the Debian repositories. Here's the line from the 331.49 changelog:
> * New upstream long lived branch release 331.49 (2014-02-18).
> 
> Nvidia lists the 334.21 driver as the latest short lived branch version, see
> http://www.nvidia.com/object/unix.html [1]
> So I've been looking into building my own deb files for 334.21. Trying to follow the comments in the README.source from the nvidia-graphics-drivers source packages.
> 
> I also found a packaging tutorial from Lucas Nussbaum that was very useful, see
> https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf [2]
> 
> I can happily report I was able to build, install and am now running the 334.21 nvidia driver on testing amd64 on my GTX 750 card. Perhaps if you follow the steps listed below you will be able to build your own set of 334.21 debs as well (output from some of the commands is indented):
> 
> // install required tools, etc
> root at debian-taz:~# aptitude install build-essential devscripts
> root at debian-taz:~# aptitude install linux-headers-amd64
> root at debian-taz:~# apt-get build-dep nvidia-graphics-driver
> 
> // check which packages would be installed for the nvidia driver
> root at debian-taz:~# aptitude -s install nvidia-kernel-dkms
> The following NEW packages will be installed:
> glx-alternative-mesa{a} glx-alternative-nvidia{a} glx-diversions{a}
> libgl1-nvidia-glx{a} libnvidia-ml1{a} nvidia-alternative{a} 
> nvidia-driver{a} nvidia-installer-cleanup{a} nvidia-kernel-common{a}
> nvidia-kernel-dkms nvidia-support{a} nvidia-vdpau-driver{a} 
> xserver-xorg-video-nvidia{a} 
> 0 packages upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
> Need to get 15.2 MB of archives. After unpacking 80.4 MB will be used.
> Do you want to continue? [Y/n/?] y
> Would download/install/remove packages.
> 
> // create a directory to build the debs in
> // download source packages
> russ at debian-taz:~/Debian/nvidia/temp_334.21$ apt-get source nvidia-graphics-drivers
> Reading package lists... Done
> Building dependency tree 
> Reading state information... Done
> NOTICE: 'nvidia-graphics-drivers' packaging is maintained in the 'Svn' version control system at:
> svn://anonscm.debian.org/pkg-nvidia/packages/nvidia-graphics-drivers/trunk
> Need to get 119 MB of source archives.
> Get:1 http://ftp.us.debian.org/debian/ [3] testing/non-free nvidia-graphics-drivers 331.49-1 (dsc) [3,817 B]
> Get:2 http://ftp.us.debian.org/debian/ [3] testing/non-free nvidia-graphics-drivers 331.49-1 (tar) [119 MB]
> Get:3 http://ftp.us.debian.org/debian/ [3] testing/non-free nvidia-graphics-drivers 331.49-1 (diff) [101 kB] 
> Fetched 119 MB in 36s (3,242 kB/s) 
> dpkg-source: info: extracting nvidia-graphics-drivers in nvidia-graphics-drivers-331.49
> dpkg-source: info: unpacking nvidia-graphics-drivers_331.49.orig.tar.gz
> dpkg-source: info: unpacking nvidia-graphics-drivers_331.49-1.debian.tar.xz
> 
> // rename the nvidia-graphics-drivers-331.49 directory to 334.21
> russ at debian-taz:~/Debian/nvidia/temp_334.21$mv nvidia-graphics-drivers-331.49/ nvidia-graphics-drivers-334.21
> 
> // download the 334.21 run files from Nvidia, and create the gzipped tar file
> russ at debian-taz:~/Debian/nvidia/temp_334.21$ tar czvf nvidia-graphics-drivers_334.21.orig.tar.gz nvidia-graphics-drivers-334.21/*.run
> nvidia-graphics-drivers-334.21/NVIDIA-Linux-armv7l-gnueabihf-334.21.run
> nvidia-graphics-drivers-334.21/NVIDIA-Linux-x86-334.21.run
> nvidia-graphics-drivers-334.21/NVIDIA-Linux-x86_64-334.21.run
> 
> // cd to the 334.21 directory and remove the 331.49 run files
> russ at debian-taz:~/Debian/nvidia/temp_334.21$ cd nvidia-graphics-drivers-334.21/
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21$ rm -fv NVID*331.49.run
> removed 'NVIDIA-Linux-armv7l-gnueabihf-331.49.run'
> removed 'NVIDIA-Linux-x86-331.49.run'
> removed 'NVIDIA-Linux-x86_64-331.49.run'
> 
> // update the changelog
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21$ debchange --distribution UNRELEASED --newversion 334.21-1
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21$ head debian/changelog 
> nvidia-graphics-drivers (334.21-1) UNRELEASED; urgency=medium
> 
> * New upstream short lived branch release 334.21 (2014-03-03).
> - Added support for the folloowing GPUs: GeForce GTX 750 Ti,
> GeForce GTX 750, GeForce GTX 745, GeForce GTX Titan Black
> * Update nv-readme.ids.
> 
> -- russ <russ at debian-taz> Mon, 31 Mar 2014 20:34:41 -0700
> 
> nvidia-graphics-drivers (331.49-1) unstable; urgency=medium
> 
> // update the WATCH_VERSION in rules.defs
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21$ cd debian/
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21/debian$ nano rules.defs
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21/debian$ head rules.defs
> # If needed, set to the major part of the upstream version number.
> #NVIDIA_LEGACY =
> WATCH_VERSION = 334
> NVIDIA_SETTINGS = nvidia-settings (>= $(version_major))
> 
> XORG_ABI_LIST = 15 14 13 12 11 10 8 6.0
> XORG_BOUND = (<< 2:1.15.99)
> 
> ARCH_LIST = i386 amd64 armhf
> NVIDIA_DIRNAME_X86 = NVIDIA-Linux-x86-${NVIDIA_RELEASE}
> 
> // update nv-readme.ids
> // DEV_100C "NVIDIA GeForce GTX TITAN Black"
> // DEV_1380 "NVIDIA GeForce GTX 750 Ti"
> // DEV_1381 "NVIDIA GeForce GTX 750"
> // DEV_1382 "NVIDIA GeForce GTX 745"
> // (device ids were found in the ListDevices.txt file in nvidia windows driver package) 
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21/debian$ nano nv-readme.ids 
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21/debian$ diff nv-readme.ids ../../../temp_331.49/nvidia-graphics-drivers-331.49/debian/nv-readme.ids 
> 337d336
> < 10DE100C
> 458,460d456
> < 10DE1380
> < 10DE1381
> < 10DE1382
> 
> // build the 334.21 debs
> russ at debian-taz:~/Debian/nvidia/temp_334.21/nvidia-graphics-drivers-334.21$ debuild -us -uc
> dpkg-buildpackage -rfakeroot -D -us -uc
> dpkg-buildpackage: source package nvidia-graphics-drivers
> dpkg-buildpackage: source version 334.21-1
> dpkg-buildpackage: source distribution UNRELEASED
> dpkg-buildpackage: source changed by russ <russ at debian-taz>
> dpkg-source --before-build nvidia-graphics-drivers-334.21
> dpkg-buildpackage: host architecture amd64
> fakeroot debian/rules clean
> dh clean --with dkms
> ... (additional output clipped)
> E: xserver-xorg-video-nvidia: debian-changelog-file-contains-invalid-email-address russ at debian-taz
> E: nvidia-vdpau-driver: debian-changelog-file-contains-invalid-email-address russ at debian-taz
> N: 81 tags overridden (6 errors, 40 warnings, 35 info)
> Finished running lintian.
> 
> // first install official 331.49 packages
> root at debian-taz:~# aptitude install nvidia-kernel-dkms nvidia-detect nvidia-settings nvidia-xconfig
> The following NEW packages will be installed:
> glx-alternative-mesa{a} glx-alternative-nvidia{a} glx-diversions{a} libgl1-nvidia-glx{a} 
> libnvidia-ml1{a} libxnvctrl0{a} nvidia-alternative{a} nvidia-detect nvidia-driver{a} 
> nvidia-installer-cleanup{a} nvidia-kernel-common{a} nvidia-kernel-dkms nvidia-settings 
> nvidia-support{a} nvidia-vdpau-driver{a} nvidia-xconfig pkg-config{a} 
> xserver-xorg-video-nvidia{a} 
> 0 packages upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
> Need to get 992 kB/16.2 MB of archives. After unpacking 82.8 MB will be used.
> Do you want to continue? [Y/n/?] y
> ... (additional output clipped)
> DKMS: install completed.
> Setting up nvidia-driver (331.49-1) ...
> Processing triggers for libc-bin (2.18-4) ...
> Processing triggers for initramfs-tools (0.115) ...
> update-initramfs: Generating /boot/initrd.img-3.13-1-amd64
> Processing triggers for menu (2.1.46) ...
> 
> // next update with the 334.21 debs
> root at debian-taz:/home/russ/Debian/nvidia/temp_334.21# dpkg -i libgl1-nvidia-glx_334.21-1_amd64.deb libnvidia-ml1_334.21-1_amd64.deb nvidia-alternative_334.21-1_amd64.deb nvidia-driver_334.21-1_amd64.deb nvidia-kernel-dkms_334.21-1_amd64.deb nvidia-vdpau-driver_334.21-1_amd64.deb xserver-xorg-video-nvidia_334.21-1_amd64.deb nvidia-detect_334.21-1_amd64.deb 
> (Reading database ... 188282 files and directories currently installed.)
> Preparing to unpack libgl1-nvidia-glx_334.21-1_amd64.deb ...
> Unpacking libgl1-nvidia-glx:amd64 (334.21-1) over (331.49-1) ...
> Preparing to unpack libnvidia-ml1_334.21-1_amd64.deb ...
> Unpacking libnvidia-ml1:amd64 (334.21-1) over (331.49-1) ...
> Preparing to unpack nvidia-alternative_334.21-1_amd64.deb ...
> Unpacking nvidia-alternative (334.21-1) over (331.49-1) ...
> Preparing to unpack nvidia-driver_334.21-1_amd64.deb ...
> Unpacking nvidia-driver (334.21-1) over (331.49-1) ...
> Preparing to unpack nvidia-kernel-dkms_334.21-1_amd64.deb ...
> 
> -------- Uninstall Beginning --------
> Module: nvidia-current
> Version: 331.49
> Kernel: 3.13-1-amd64 (x86_64)
> -------------------------------------
> 
> Status: Before uninstall, this module version was ACTIVE on this kernel.
> 
> nvidia-current.ko:
> - Uninstallation
> - Deleting from: /lib/modules/3.13-1-amd64/updates/dkms/
> - Original module
> - No original module was found for this module on this kernel.
> - Use the dkms install command to reinstall any previous module version.
> 
> depmod....
> 
> DKMS: uninstall completed.
> 
> ------------------------------
> Deleting module version: 331.49
> completely from the DKMS tree.
> ------------------------------
> Done.
> Unpacking nvidia-kernel-dkms (334.21-1) over (331.49-1) ...
> Preparing to unpack nvidia-vdpau-driver_334.21-1_amd64.deb ...
> Unpacking nvidia-vdpau-driver:amd64 (334.21-1) over (331.49-1) ...
> Preparing to unpack xserver-xorg-video-nvidia_334.21-1_amd64.deb ...
> Unpacking xserver-xorg-video-nvidia (334.21-1) over (331.49-1) ...
> Preparing to unpack nvidia-detect_334.21-1_amd64.deb ...
> Unpacking nvidia-detect (334.21-1) over (331.49-1) ...
> Setting up libnvidia-ml1:amd64 (334.21-1) ...
> Setting up nvidia-alternative (334.21-1) ...
> Setting up nvidia-vdpau-driver:amd64 (334.21-1) ...
> Setting up nvidia-detect (334.21-1) ...
> Processing triggers for desktop-file-utils (0.22-1) ...
> Processing triggers for nvidia-alternative (334.21-1) ...
> Processing triggers for glx-alternative-nvidia (0.4.1) ...
> update-initramfs: deferring update (trigger activated)
> Setting up nvidia-kernel-dkms (334.21-1) ...
> Loading new nvidia-current-334.21 DKMS files...
> Building only for 3.13-1-amd64
> Building initial module for 3.13-1-amd64
> Done.
> 
> nvidia-current:
> Running module version sanity check.
> - Original module
> - No original module exists within this kernel
> - Installation
> - Installing to /lib/modules/3.13-1-amd64/updates/dkms/
> 
> depmod....
> 
> DKMS: install completed.
> Setting up libgl1-nvidia-glx:amd64 (334.21-1) ...
> Setting up xserver-xorg-video-nvidia (334.21-1) ...
> Setting up nvidia-driver (334.21-1) ...
> Processing triggers for mime-support (3.54) ...
> Processing triggers for man-db (2.6.6-1) ...
> Processing triggers for libc-bin (2.18-4) ...
> Processing triggers for initramfs-tools (0.115) ...
> update-initramfs: Generating /boot/initrd.img-3.13-1-amd64
> 
> // check for nvidia GPU
> // see https://wiki.debian.org/NvidiaGraphicsDrivers [4]
> russ at debian-taz:~/Debian/nvidia/temp_334.21$ lspci -nn | grep VGA
> 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750] [10de:1381] (rev a2)
> russ at debian-taz:~/Debian/nvidia/temp_334.21$ nvidia-detect
> Detected NVIDIA GPUs:
> 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750] [10de:1381] (rev a2)
> Your card is supported by the default drivers.
> It is recommended to install the
> nvidia-driver
> package.
> 
> // configure xorg
> // see https://wiki.debian.org/NvidiaGraphicsDrivers#configure [5]
> // see https://wiki.debian.org/NvidiaGraphicsDrivers/Configuration [6]
> root at debian-taz:/home/russ/Debian/nvidia/temp_334.21# mkdir /etc/X11/xorg.conf.d
> root at debian-taz:/home/russ/Debian/nvidia/temp_334.21# echo -e 'Section "Device"ntIdentifier "My GPU"ntDriver "nvidia"nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf
> root at debian-taz:/home/russ/Debian/nvidia/temp_334.21# cat /etc/X11/xorg.conf.d/20-nvidia.conf 
> Section "Device"
> Identifier "My GPU"
> Driver "nvidia"
> EndSection
> 
> // The moment of truth, reboot --> success
> 
> // I'm a KDE user using the Desktop Effects
> // Go into System Settings, Desktop Effects, Advanced tab
> // change Compositing type: from XRender to OpenGL (both 2.0 & 3.1 seem to work)
> 
> russ at debian-taz:~$ apt-show-versions | grep -v testing | grep nvidia 
> libgl1-nvidia-glx:amd64 334.21-1 newer than version in archive 
> libnvidia-ml1:amd64 334.21-1 newer than version in archive 
> nvidia-alternative:amd64 334.21-1 newer than version in archive 
> nvidia-detect:amd64 334.21-1 newer than version in archive
> nvidia-driver:amd64 334.21-1 newer than version in archive
> nvidia-kernel-dkms:amd64 334.21-1 newer than version in archive
> nvidia-vdpau-driver:amd64 334.21-1 newer than version in archive
> xserver-xorg-video-nvidia:amd64 334.21-1 newer than version in archive
> 
> -------------------------
> FROM: "Benjamin Schieder" <benjamin at anderdonau.de>
> TO: pkg-nvidia-devel at lists.alioth.debian.org
> SENT: Sunday, March 30, 2014 2:13:50 AM
> SUBJECT: Installation of 334.21 to support GeForce GTX 750 Ti
> 
> Hello list.
> 
> I'm running Debian Sid on my laptop.
> 
> I have recently bought a GeForce GTX 750 Ti which is unsupported by the 
> 331.49 drivers.
> Trying to install the 334.21 version of the official nvidia .run file 
> obviously results in the message that this conflicts with the debian 
> package.
> 
> Now, I could just apt-get remove nvidia-installer-cleanup and install 
> the official .run file, but:
> I am using the card on a eGPU setup on a laptop, I still need to be able 
> to switch betwee the nvidia module and the mesa module.
> Currently I do this with this egpu initscript: http://sprunge.us/MIBg
> The script tries to find an nvidia card, and calls update-alternatives 
> then either for nvidia or mesa and also updates the Xorg config file 
> accordingly.
> 
> When I remove the nvidia-installer-cleanup package, I also lose the 
> diversion for mesa and nvidia. Yet, I can't install the diversion 
> without the nvidia driver packages.
> 
> Now the question is: Are you already working on the 334 driver version?
> I have tried to update the packages myself, but not being a debian 
> developer or package maintainer, I simply don't know where to start.
> Or do you have another idea how I could solve this?
> 
> Kind regards,
> Benjamin Schieder
> -- 
> Jabber: blindcoder at jabber.ccc.de
> Twitter: blind_coder
> Web: http://www.crash-override.net/
> 
> _______________________________________________
> pkg-nvidia-devel mailing list
> pkg-nvidia-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-nvidia-devel

-- 
Jabber: blindcoder at jabber.ccc.de
Twitter: blind_coder
Web: http://www.crash-override.net/
 

Links:
------
[1] http://www.nvidia.com/object/unix.html
[2]
https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf
[3] http://ftp.us.debian.org/debian/
[4] https://wiki.debian.org/NvidiaGraphicsDrivers
[5] https://wiki.debian.org/NvidiaGraphicsDrivers#configure
[6] https://wiki.debian.org/NvidiaGraphicsDrivers/Configuration
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20140401/ce863bfc/attachment-0001.html>


More information about the pkg-nvidia-devel mailing list