You are not logged in.
Using standard kernel and nvidia I can use nvidia-bl from AUR to manually set the backlight of my laptop. Today I've tried kernel26-ck with the corresponding nvidia-ck and the backlight did no longer work. The nvidia_bl module is not found when using the custom kernel. Is it possible to make backlight work with kernel26-ck and if so, how?
Last edited by Larsson (2011-07-22 11:09:02)
"If the person you are talking to doesn't appear to be listening, be patient. It may simply be that he has a small piece of fluff in his ear." - A.A. Milne (Winnie-the-Pooh)
Offline
It's just a guess, but have you tried https://aur.archlinux.org/packages.php?ID=50749 ?
Offline
@karol - good call. The way the PKGBUILD for nvidiabl is written, you need to compile it while booted into kernel26-ck:
MODPATH="$pkgdir/lib/modules/$(uname -r)/kernel/drivers/video/backlight/"Alternatively, you can modify that line replacing $(uname -r) with kernel26-ck
Last edited by graysky (2011-07-22 01:00:52)
Offline
That was my first thought, but the build fails.
==> Starting build()...
make -C /lib/modules/2.6.39-ck/build M=/home/rickard/Bin/local/nvidiabl/src/dkms_source_tree modules
make: *** /lib/modules/2.6.39-ck/build: No such file or directory. Stop.
make: *** [modules] Error 2Replacing $(uname -r) with kernel26-ck does not make any difference. I think the source needs to be patched so it uses kernel26-ck instead of uname -r. Looking at the makefile in the source they have: KVER := $(shell uname -r)
Although I don't know how to create a patch for it, I will take a look at the wiki and see if I can figure it out.
Ps. Perhaps a nvidiabl-ck package would be something to add to the ck repo, since there are many that uses backlight?
Last edited by Larsson (2011-07-22 07:45:59)
"If the person you are talking to doesn't appear to be listening, be patient. It may simply be that he has a small piece of fluff in his ear." - A.A. Milne (Winnie-the-Pooh)
Offline
Edited the source directly and it still did not build. it seems that 2.6.39-ck is correct since that exist on my filesystem. But /lib/modules/2.6.39-ck/build does not.
"If the person you are talking to doesn't appear to be listening, be patient. It may simply be that he has a small piece of fluff in his ear." - A.A. Milne (Winnie-the-Pooh)
Offline
That was my first thought, but the build fails...
I just built it up on a machine that has the kernel26-ck-core2 packages from the repo with no problems. I'm guessing you don't have the corresponding kernel26-ck-xxx-headers package installed...
$ uname -r
2.6.39-ck
$ pacman -Qq | grep kernel26
kernel26-ck-core2
kernel26-ck-core2-headers
$ makepkg -src
==> Making package: nvidiabl 0.70-1 (Fri Jul 22 06:38:01 EDT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found nvidiabl-0.70-source-only.dkms.tar.gz
==> Validating source files with md5sums...
nvidiabl-0.70-source-only.dkms.tar.gz ... Passed
==> Extracting Sources...
-> Extracting nvidiabl-0.70-source-only.dkms.tar.gz with bsdtar
==> Starting build()...
make -C /lib/modules/2.6.39-ck/build M=/dev/shm/nvidiabl/src/dkms_source_tree modules
make[1]: Entering directory `/usr/src/linux-2.6.39-ck'
CC [M] /dev/shm/nvidiabl/src/dkms_source_tree/nvidiabl-module.o
CC [M] /dev/shm/nvidiabl/src/dkms_source_tree/nvidiabl-models.o
/dev/shm/nvidiabl/src/dkms_source_tree/nvidiabl-module.c:37:3: warning: #warning USE_BACKLIGHT_SUSPEND [-Wcpp]
LD [M] /dev/shm/nvidiabl/src/dkms_source_tree/nvidiabl.o
Building modules, stage 2.
MODPOST 1 modules
CC /dev/shm/nvidiabl/src/dkms_source_tree/nvidiabl.mod.o
LD [M] /dev/shm/nvidiabl/src/dkms_source_tree/nvidiabl.ko
make[1]: Leaving directory `/usr/src/linux-2.6.39-ck'
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Purging other files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Adding install file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: nvidiabl 0.70-1 (Fri Jul 22 06:38:03 EDT 2011)
==> Cleaning up...
$ ll
total 28K
-rw-r--r-- 1 facade users 5.8K Jul 22 06:38 nvidiabl-0.70-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 facade users 11K Jul 17 16:40 nvidiabl-0.70-source-only.dkms.tar.gz
-rw-r--r-- 1 facade users 424 Jul 15 17:36 nvidiabl.install
-rw-r--r-- 1 facade users 1.1K Jul 18 02:08 PKGBUILDLast edited by graysky (2011-07-22 10:42:31)
Offline
Facepalm! It works perfect now. Thanks for the help. ![]()
"If the person you are talking to doesn't appear to be listening, be patient. It may simply be that he has a small piece of fluff in his ear." - A.A. Milne (Winnie-the-Pooh)
Offline