Package Details: nvidia-bl-dkms 18.11.0-2

Git Clone URL: https://aur.archlinux.org/nvidia-bl-dkms.git (read-only, click to copy)
Package Base: nvidia-bl-dkms
Description: Driver to adjust display backlight on legacy mobile NVidia graphics adapters - DKMS edition.
Upstream URL: None
Licenses: GPL
Conflicts: nvidia-bl
Submitter: kiffmet
Maintainer: kiffmet
Last Packager: kiffmet
Votes: 5
Popularity: 0.000027
First Submitted: 2018-11-22 23:26 (UTC)
Last Updated: 2018-11-26 20:17 (UTC)

Latest Comments

hias commented on 2022-01-07 22:10 (UTC)

The patch @rg209834 posted works all so for me on 5.15.12-arch1-1 (MacBookPro7,1)

xirxes commented on 2021-11-04 02:09 (UTC)

The patch @rg209834 posted still works for me on 5.14.16-arch1-1. I'm sure if this patch was integrated into the main pkgbuild we could drop the out of date flag here.

rg209834 commented on 2021-08-28 13:21 (UTC) (edited on 2021-08-28 13:57 (UTC) by rg209834)

Although flagged as out of date (with comment "package is for an old version of the kernel and does not work anymore") it worked for me with 5.10.60 kernel on old macbook (13" mid 2009 model) with legacy nvidia driver (nvidia-340xx-dkms - 340.108-22). This required the changes mentioned by @sapphire.

Here's a git diff -U1 of the changes that can be applied with patch:

diff --git a/Makefile b/Makefile
index 4c16ce1..1121cf6 100644
--- a/Makefile
+++ b/Makefile
@@ -11,5 +11,5 @@ PWD    := $(shell pwd)
 default:
-   $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+   $(MAKE) -C $(KDIR) M=$(PWD) SUBDIRS=$(PWD) modules

 clean:
-   $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
+   $(MAKE) -C $(KDIR) M=$(PWD) SUBDIRS=$(PWD) clean
diff --git a/PKGBUILD b/PKGBUILD
index 2ffb049..a462ba0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,4 +22,4 @@ source=('nvidia_bl.c'
         'dkms.conf')
-md5sums=('52131bc4de928fbc13c00a44a3538486'
-         'e6a6a05f27e49c53783243e278ad6551'
+md5sums=('27fa292bd130799f84fbdbf9839b7c56'
+         'ab33e47171098009a47d11574bbc6ebd'
          '897ee78c30e6b498d0e3ce07c06dabc5'
diff --git a/nvidia_bl.c b/nvidia_bl.c
index c1d3593..ab110d7 100644
--- a/nvidia_bl.c
+++ b/nvidia_bl.c
@@ -927,3 +927,3 @@ static int nvidia_bl_map_smartdimmer(struct driver_data *dd)
    /* Now really map (The address need not be page-aligned.) */
-   dd->smartdimmer = ioremap_nocache(reg_addr, dd->reg_size);
+   dd->smartdimmer = ioremap_cache(reg_addr, dd->reg_size);
    if (!dd->smartdimmer)

After makepkg -sif, I get /sys/class/backlight/nvidia_backlight.

Finally, I had to add the following to the X11 config file /etc/X11/xorg.conf.d/20-nvidia.conf under Section "Device" to get the screen backlight buttons to work:

Option "Backlight" "nvidia_backlight"

sapphire commented on 2020-12-22 17:17 (UTC)

To make it compile/build/work the following changes are needed:

In Makefile: default: $(MAKE) -C $(KDIR) M=$(PWD) SUBDIRS=$(PWD) modules

clean: $(MAKE) -C $(KDIR) M=$(PWD) SUBDIRS=$(PWD) clean

In nvidia_bl.c at line 928 change the name of the function ioremap_nocache to ioremap_cache e.g.
dd->smartdimmer = ioremap_cache(reg_addr, dd->reg_size);

friday13 commented on 2020-07-11 03:11 (UTC)

Creating symlink /var/lib/dkms/nvidia-bl/18.11.0/source ->
                 /usr/src/nvidia-bl-18.11.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...(bad exit status: 2)
make -j8 KERNELRELEASE=5.7.7-arch1-1 KVER=5.7.7-arch1-1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.7.7-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia-bl/18.11.0/build/make.log for more information.
error: command failed to execute correctly

cat /var/lib/dkms/nvidia-bl/18.11.0/build/make.log

DKMS make.log for nvidia-bl-18.11.0 for kernel 5.7.7-arch1-1 (x86_64)
Sat 11 Jul 2020 06:09:36 AM +03
make -C /usr/lib/modules/5.7.7-arch1-1/build SUBDIRS=/var/lib/dkms/nvidia-bl/18.11.0/build modules
make[1]: Entering directory '/usr/lib/modules/5.7.7-arch1-1/build'
make[2]: Nothing to be done for 'objtool'.
scripts/Makefile.build:44: arch/x86/entry/syscalls/Makefile: No such file or directory
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/Makefile'.  Stop.
make[1]: *** [arch/x86/Makefile:217: archheaders] Error 2
make[1]: *** Waiting for unfinished jobs....
scripts/Makefile.build:44: arch/x86/tools/Makefile: No such file or directory
make[2]: *** No rule to make target 'arch/x86/tools/Makefile'.  Stop.
make[1]: *** [arch/x86/Makefile:211: archscripts] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.7.7-arch1-1/build'
make: *** [Makefile:12: default] Error 2

pok0 commented on 2020-03-14 01:09 (UTC)

For drivers supporting setting backlight via backlight property of xrandr, you can instead use xorg-xbacklight package. This is the case for nvidia-340xx-dkms.

bboogie commented on 2020-02-15 20:41 (UTC)

The module does not build on my system against de 5.x kernel.

Hope you can fix this. It is really helpful.