Package Details: nvidia-mainline 375.26-1

Git Clone URL: (read-only)
Package Base: nvidia-mainline
Description: NVIDIA drivers for linux-mainline
Upstream URL:
Keywords: mainline nvidia
Licenses: custom
Submitter: miffe
Maintainer: None
Last Packager: FadeMind
Votes: 17
Popularity: 0.005104
First Submitted: 2010-10-08 00:27
Last Updated: 2017-01-23 13:37

Latest Comments

r3ddr4gOn commented on 2015-10-12 14:49

Thanks i merged it.
FadeMind do you want to take over the maintenance of this package? I am planing to go back to the official linux package and therefore it would be difficult to test this package.

FadeMind commented on 2015-10-12 13:21

Updated to 355.11 and working with 4.3rc release:

r3ddr4gOn commented on 2015-08-02 22:29

-updated to nvidia driver 352.30

FadeMind commented on 2015-07-16 13:15

This patch is directly for kernel not for drivers, Should be applied during kernel compillation like others patches are... BEFORE compilling NVIDIA kernel module OFC.

r3ddr4gOn commented on 2015-07-16 12:59

-added nvidia-4.2.patch (changes module license to GPL again as a temporary workaround)

FadeMind commented on 2015-07-16 06:31

Unable to build nvidia's module under 4.2:

FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'flush_workqueue'


r3ddr4gOn commented on 2015-07-16 03:38

-updated for linux-mainline-4.2

r3ddr4gOn commented on 2015-06-17 20:04

-updated to nvidia driver 352.21

r3ddr4gOn commented on 2015-05-22 00:10

-updated to nvidia driver 352.09
-removed the nvidia-4.1.patch

r3ddr4gOn commented on 2015-05-04 03:56

-updated for linux-mainline-4.1
-added nvidia-4.1.patch (changes module license to GPL again as a temporary workaround)

r3ddr4gOn commented on 2015-05-04 03:55

-updated for linux-mainline-4.1
-added nvidia-4.1.patch (changes module license to GPL again as a temporary workaround)

r3ddr4gOn commented on 2015-04-24 18:15

... ok I was on that site a few hours ago and the short lived branch was at 343.xx. Maybe a cache problem -.-. Thanks

FadeMind commented on 2015-04-24 18:13

r3ddr4gOn 349.16 is stable but Short Lived Branch. See:

r3ddr4gOn commented on 2015-04-24 16:37

-updated to nvidia beta driver 349.16
(I don´t really understand why the official arch package is using a beta driver)

r3ddr4gOn commented on 2015-04-09 01:21

-updated to nvidia driver 346.59
-removed the 4.0 patch as it is already included in 346.59

r3ddr4gOn commented on 2015-02-27 15:24

-updated to nvidia driver 346.47
-removed the 3.18 patch as it is no longer needed (although it is still in the official arch nvidia package)

FadeMind commented on 2015-02-26 14:38

r3ddr4gOn sometimes go to:

and find out what's new ;)

r3ddr4gOn commented on 2015-02-26 14:23

right I didn´t know it´s not needed anymore. removed in r5.

FadeMind commented on 2015-02-26 14:09

For Linux 4.0RC1 patch is needed for proper build:

Is needed only patch from 3.18 with .set_busid = drm_pci_set_busid

Patch 3.19 is not needed now.

smirky commented on 2015-02-26 13:15

Can you share some info about the files:

I don't see a 3.19 patch in the [testing] nvidia package. Why and from where did you gather them?

r3ddr4gOn commented on 2015-02-26 11:47

- updated to support linux-4.0rc1 (new patch added)
- there is a new nvidia driver version (346.47) but the nvidia-libgl and nvidia-utils packages have not been updated yet

r3ddr4gOn commented on 2015-02-26 11:45

- updated to support linux-4.0rc1 (new patch added)
- there is a new nvidia driver version (346.47) but the nvidia-libgl package has not been updated yet

r3ddr4gOn commented on 2015-01-30 02:10

removed the licence workaround because it is no longer needed with linux 3.19-rc6

r3ddr4gOn commented on 2015-01-20 04:18

I don´t think it does, they just added a #define for the inode parts but the code behind it is still the same. Strangely enough they added the #ifndef from the 3.18 patch but the .set_busid is still missing ...
Patches updated accordingly.

r3ddr4gOn commented on 2015-01-19 23:37

I can´t confirm that, it´s still complaining about the GPL only symbol here
I updated the patches for the new version and will upload it soon after some testing.

lachesis commented on 2015-01-19 00:15

There's a new nvidia driver, 346.35. This removes the need for the non-license-changing parts of the 3.19 patch.

r3ddr4gOn commented on 2014-12-23 14:57

Added patch for linux-mainline-3.19rc1 in r3! It changes the Module Licence to GPL to work around the changed licence of a kernel symbol and is therefore a temporary hack till a new version of the nvidia driver is released.

Thanks to FadeMind who did most of the packaging work.

FadeMind commented on 2014-12-21 13:51

On 3.19RC1 unable build nvidia module:

Repeated warnings:

include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)

./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
./arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))

r3ddr4gOn commented on 2014-12-18 11:37

You´re right sorry. readded the patch in r2!

FadeMind commented on 2014-12-18 08:53

Without patch I have warnings in dmesg after running optirun/primusrun:

[ 199.489170] WARNING: CPU: 0 PID: 1656 at drivers/gpu/drm/drm_ioctl.c:143 drm_setversion+0x17e/0x190 [drm]()
[ 199.489236] No drm_driver.set_busid() implementation provided by nvidia_frontend_exit_module [nvidia]. Use drm_dev_set_unique() to set the unique name explicitly.
[ 199.489238] Modules linked in:
[ 199.489242] nvidia(PO) fuse ecb bnep uvcvideo videobuf2_vmalloc videobuf2_memops ath3k videobuf2_core btusb v4l2_common videodev bluetooth media joydev mousedev bbswitch(O) nvram arc4 ath9k ath9k_common asus_nb_wmi snd_hda_codec_hdmi asus_wmi ath9k_hw sparse_keymap mxm_wmi intel_rapl iTCO_wdt ath gpio_ich iTCO_vendor_support x86_pkg_temp_thermal led_class ip6t_REJECT intel_powerclamp snd_hda_codec_realtek nf_reject_ipv6 kvm_intel mac80211 snd_hda_codec_generic kvm xt_hl snd_hda_intel crct10dif_pclmul crc32_pclmul snd_hda_controller ip6t_rt crc32c_intel snd_hda_codec ghash_clmulni_intel cfg80211 aesni_intel snd_hwdep aes_x86_64 lrw gf128mul snd_pcm glue_helper psmouse ablk_helper cryptd nf_conntrack_ipv6 serio_raw pcspkr i2c_i801 nf_defrag_ipv6 rtsx_pci_ms rfkill snd_timer r8169 snd memstick lpc_ich
[ 199.489296] soundcore mii wmi battery ac ipt_REJECT thermal nf_reject_ipv4 xt_multiport evdev mac_hid mei_me mei shpchp xt_limit processor xt_tcpudp xt_addrtype nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack iptable_filter ip_tables x_tables sch_fq_codel coretemp hwmon msr ext4 crc16 mbcache jbd2 sr_mod sd_mod cdrom rtsx_pci_sdmmc mmc_core atkbd libps2 ahci libahci xhci_pci ehci_pci xhci_hcd libata ehci_hcd scsi_mod usbcore rtsx_pci usb_common i8042 serio i915 button intel_gtt i2c_algo_bit video drm_kms_helper drm i2c_core lz4 lz4_compress
[ 199.489351] CPU: 0 PID: 1656 Comm: Xorg.bin Tainted: P U W O 3.18.1-1-ck #1
[ 199.489354] Hardware name: ASUSTeK COMPUTER INC. K55VM/K55VM, BIOS K55VM.211 09/11/2012
[ 199.489355] 0000000000000000 000000008d26fa00 ffff88002b95fc98 ffffffff8152abe8
[ 199.489360] 0000000000000000 ffff88002b95fcf0 ffff88002b95fcd8 ffffffff81071721
[ 199.489364] ffff88002b95ff1c ffff88002b95fdf0 ffff88014200b800 ffff8802071ec900
[ 199.489368] Call Trace:
[ 199.489373] [<ffffffff8152abe8>] dump_stack+0x4e/0x71
[ 199.489379] [<ffffffff81071721>] warn_slowpath_common+0x81/0xa0
[ 199.489384] [<ffffffff81071795>] warn_slowpath_fmt+0x55/0x70
[ 199.489401] [<ffffffffa002833e>] drm_setversion+0x17e/0x190 [drm]
[ 199.489407] [<ffffffff811b7dd2>] ? path_openat+0xc2/0x6e0
[ 199.489425] [<ffffffffa0027dcc>] drm_ioctl+0x2cc/0x680 [drm]
[ 199.489431] [<ffffffff811b934e>] ? user_path_at_empty+0x6e/0xd0
[ 199.489448] [<ffffffffa00281c0>] ? drm_noop+0x40/0x40 [drm]
[ 199.489453] [<ffffffff811b9479>] ? do_filp_open+0x49/0xd0
[ 199.489457] [<ffffffff811bbb10>] do_vfs_ioctl+0x2d0/0x4b0
[ 199.489462] [<ffffffff811b88b6>] ? final_putname+0x26/0x50
[ 199.489466] [<ffffffff811bbd71>] SyS_ioctl+0x81/0xa0
[ 199.489470] [<ffffffff81530d69>] system_call_fastpath+0x12/0x17
[ 199.489473] ---[ end trace 671ff3d682a546c9 ]---

r3ddr4gOn commented on 2014-12-17 21:14

Well I tried without it and it compiled, so I thought it is part of the new version and removed it. Is it not working for you?

graysky commented on 2014-12-17 21:06

Confused... is that patch no longer required? I do not see it in the PKGBUILD anymore.

r3ddr4gOn commented on 2014-10-27 20:15

Thanks, patch added!

trialuser commented on 2014-10-25 22:22

Dosn't work with 3.18rc1, fix here

r3ddr4gOn commented on 2014-08-05 23:11

oops thanks i missed that :) fixed now

WorMzy commented on 2014-08-05 22:32

Interesting choice. I don't think many people will appreciate having to download both versions of the driver. But maybe that will teach them to read through the PKGBUILD beforehand.

r3ddr4gOn commented on 2014-08-05 22:28

updated to nvidia driver 340.24 for mainline linux 3.16

r3ddr4gOn commented on 2014-08-05 22:23

updated to 240.24 with mainline kernel 3.16

jim1960 commented on 2013-07-25 13:59

just find the patch for linux-mainline v3.11rc2, follow the #4 of posts (kernel_v3.10.patch.txt):

I'm using linux-mainline v3.11rc2 and nvidia-beta v325.08, just work fine.
It fixed suspend/resume issue with linux v3.10.x

jim1960 commented on 2013-07-25 12:18

just find the patch for linux-mainline v3.11rc2, follow the #4 of posts (kernel_v3.10.patch.txt):

I'm using linux-mainline v3.11rc2 and nvidia-beta v325.08, just work fine.
It fixed suspend/resume issue with linux v3.10.x

gulafaran commented on 2013-07-18 17:08

can only find patches for the new nvidia beta driver for 3.11* so we gotta wait i guess :/

Boohbah commented on 2013-07-18 02:35

Build fails with linux-mainline 3.11rc1-1

gulafaran commented on 2013-06-29 11:07

lol the timing, 319.32 landed in core so here you go, updated to 319.32

gulafaran commented on 2013-06-29 10:56

updated to 319.23-1 for 3.10*

r08 commented on 2013-06-16 05:45

Please update. The nvidia module wont build with the new linux-mainline 3.10-rc*

cian1500ww commented on 2013-01-25 21:07

Updated for 313.18

New repository available with updated binaries, more info at:

cian1500ww commented on 2013-01-14 13:08

I've added a fix for the build errors. The package still won't compile with linux-mainline as the scripts in /usr/src/linux-3.8.0-1-mainline/scripts don't have the correct execute permissions. You can manually change the permissions of the required scripts if you wish to do so.

cian1500ww commented on 2013-01-13 15:43

Yep, I'm getting the error too.

r08 commented on 2013-01-12 04:33

There is a big problem building this on Linux-3.8-rc3. Some nv error of some kind.
I'm wondering you cian1500ww encountered this while building it?? I'll post output soon.

WorMzy commented on 2013-01-07 15:29

Has anyone had any luck building this for any 3.8 release candidate?

cian1500ww commented on 2012-11-17 09:35

Updated for 310.19

cian1500ww commented on 2012-11-07 16:04

Updated for 304.64

cian1500ww commented on 2012-10-21 09:54

Updated for 304.60

cian1500ww commented on 2012-10-16 20:39

Updated for kernel 3.7-rc1

cian1500ww commented on 2012-09-25 16:42

Updated for 304.51

cian1500ww commented on 2012-08-28 11:29

Updated for 304.43

cian1500ww commented on 2012-08-15 09:47

Updated for 304.37

cian1500ww commented on 2012-08-06 21:56

Updated for 304.32

dhave commented on 2012-08-03 19:38

What service! Thanks, cian. Don't ever leave us.

dhave commented on 2012-08-03 19:38

What service! Thanks, cian.

cian1500ww commented on 2012-08-03 18:36

Updated for 3.6rc1.

Needed to apply a patch to the source of the driver from here:

dhave commented on 2012-08-03 14:44

FYI: Linux-mainline 3.6rc1 is out.

dhave commented on 2012-08-03 14:37

FYI: Linux-mainline 3.6rc1 is out.

dhave commented on 2012-07-10 23:36

Thanks, cian. Working fine now.

dhave commented on 2012-07-10 23:16

Thanks, cian. Working fine now.

cian1500ww commented on 2012-07-10 22:48

Updated to: 302.17-2

Had to change the kernel source path for compiling the nvidia kernel module.

dhave commented on 2012-07-10 20:35

Same problem as skyllex.

Anonymous comment on 2012-07-09 20:04

On the newest linux-mainline kernel rc6. This package won't install. It stops after uncompressing and flags this

*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1

I have uninstalled and reinstalled linux-mainline to check. Hopefully this gets fixed soon.

dhave commented on 2012-06-19 15:56

Thank you for the 302.17 update, Cian.

cian1500ww commented on 2012-06-18 16:17

Updated for 302.17, thanks markuznw!

Anonymous comment on 2012-06-18 15:30

Hello cian, you just need to add "us." in front of "" to get the file. That's what i did when manually modifying pkgbuild and it's working just fine :)

cian1500ww commented on 2012-06-18 13:55

I can't update the package for 302.17 because nvidia appear to have not released it on their site yet.

dhave commented on 2012-06-17 17:22

Seems like as soon as you agreed to adopt this package, the nvidia folks accelerated their production. I see that main nvidia driver package is now at v. 302.17.

(This is not a hint, by the way, just an observation.)

dhave commented on 2012-06-17 17:14

Seems like as soon as you agreed to adopt this package, the nvidia folks accelerated their production. I see that main nvidia driver package is now at v. 302.17.

(This is not a hint, by the way, just an observation.)

dhave commented on 2012-06-16 21:11

Thanks for updating to 295.59, cian. I was hesitant to ask, so I was pleasantly surprised to see you noticed the nvidia update and took the time to update nvidia-mainline.

cian1500ww commented on 2012-06-16 20:11

Updated for 295.59

dhave commented on 2012-06-14 14:37

Thank you, cian1500ww. The update is working well so far.

cian1500ww commented on 2012-06-14 14:06

Updated for NVIDIA driver version 259.53 and linux-mainline 3.5

dhave commented on 2012-06-13 20:01

Is there anybody who can update this for linux-mainline 3.5?

dhave commented on 2012-06-13 20:00

Is there anybody who can update this for linux-mainline 3.5?

cian1500ww commented on 2012-05-06 14:14

I've adopted this package and updated it for linux-mainline 3.4
Two new patches needed to be created to allow the driver to be compiled for 3.4, the sources for these were obtained from:

OttoA commented on 2012-03-23 12:54

I'm giving this up for adoption (not running linux-mainline anymore)

OttoA commented on 2012-02-17 08:17

beware - the latest version seems to crash my gnome-shell similar to this:

OttoA commented on 2012-02-15 10:02

bump to 295.20

OttoA commented on 2012-02-15 10:02

bump to 290.20

OttoA commented on 2012-02-14 11:33

For whoever flagged this out of date: the current version on the nvidia site is 290.20, the one in [testing] is 290.17.

I prefer to keep this in sync with [testing] so that the nvidia-utils package can be shared.

OttoA commented on 2012-02-14 08:55

version bump

Anonymous comment on 2012-02-07 19:38

It's just trivial, but:

OttoA commented on 2012-02-07 17:02

diff here:

OttoA commented on 2012-02-07 10:37

I patched it for linux 3.3 (but I'm not really interested in adopting)

miffe commented on 2012-01-21 16:10

Disowned this since I don't have a nvidia card anymore.

miffe commented on 2011-11-24 09:37

nvidia-mainline 290.10-1:
- New upstream release
- Binaries at

miffe commented on 2011-10-24 13:21

nvidia-mainline 285.05.09-1:
- New upstream relese
- Binaries avaiable at

miffe commented on 2011-08-07 22:33

nvidia-mainline 280.13-1:
- New upstream release

miffe commented on 2011-07-30 09:27

nvidia-mainline 275.21-1:
- New upstream release

I updated this package at the same time as linux-mainline 3.0-1, but forgot to upload it :)

bparsons commented on 2011-07-28 22:40

Updated PKGBUILD for linux-mainline and nvidia 275.21:

# Maintainer: Mikael Eriksson <>
# Original arch package by:
# Thomas Baechler <>

_kernver=$(pacman -Ql linux-mainline|grep -E /lib/modules/.|cut -d/ -f4|uniq)
_kernpkgver=$(pacman -Q linux-mainline|cut -d' ' -f 2)
pkgdesc="NVIDIA drivers for linux-mainline."
arch=('i686' 'x86_64')
depends=("linux-mainline" "nvidia-utils=${pkgver}")
conflicts=('nvidia-96xx' 'nvidia-173xx')

if [ "$CARCH" = "i686" ]; then
elif [ "$CARCH" = "x86_64" ]; then


build() {
msg "Building for kernel version $_kernver"
cd $srcdir
sh ${_pkg}.run --extract-only
cd ${_pkg}/kernel
make SYSSRC=/lib/modules/${_kernver}/build module

package() {
install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
#install -d -m755 $pkgdir/etc/modprobe.d
#echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
# gzip -9 all modules to safe 100MB of space
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
eval pkgrel="${pkgrel}_${_kernpkgver/-/_}"

miffe commented on 2011-06-14 22:07

nvidia-mainline 275.09.07-1:
- New upstream release

miffe commented on 2011-05-30 17:06

nvidia-mainline 270.41.19-1:
- New upstream release
- Added patch for linux-3.0 support

miffe commented on 2011-04-27 11:24

nvidia-mainline 270.41.06-1:
- New upstream release

miffe commented on 2011-04-12 13:07

nvidia-mainline 270.41.03-1:
- New upstream release

miffe commented on 2011-04-02 16:47

nvidia-mainline 270.30-4:
- New upstream release

miffe commented on 2011-03-10 23:37

nvidia-mainline 260.19.44-1:
- New upstream release

miffe commented on 2011-01-24 12:06

nvidia-mainline 260.19.36-1:
- New upstream release

miffe commented on 2011-01-14 14:57

Repo has been renamed, both for i686 and x86_64.

Server =$arch/

miffe commented on 2010-12-15 09:00

nvidia-mainline 260.19.29-1:
- New upstream release

miffe commented on 2010-11-12 12:35

nvidia-mainline 260.19.21-1:
- New upstream release

miffe commented on 2010-11-01 08:59

I have created a x86_64 repo.

Server =

miffe commented on 2010-10-21 10:48

i686 binaries available at:

Server =

miffe commented on 2010-10-19 02:30

nvidia-mainline 260.19.12-1:
- New upstream release

Anonymo commented on 2010-10-08 00:36

What does this package do different?

Anonymo commented on 2010-10-08 00:36

What does this package do different?

miffe commented on 2010-10-08 00:27

nvidia-mainline 256.53-1:
- Initial upload