guillaumezin / nvidiabl

/!\ Please note that I don't maintain this repository anymore, please have a look at forked projects. /!\
82 stars 82 forks source link

Does nvidiabl Work On Non Debian Based Distros? #82

Open ghost opened 10 years ago

ghost commented 10 years ago

Hi,

I use Slackware 14.0 x64, will nvidiabl work on a Non Debian based distro and if so how can I install and use it?

Thanks...

guillaumezin commented 10 years ago

Yes, you can follow the "Installation from nvidiabl-x.xx-source-only.dkms.tar.gz" from the readme file (download the tar.gz file from "install/tarball").

ILMostro commented 10 years ago

Not to undermine the efforts of the developer of this program, but what worked for me and my ThinkPad W520 running Fedora19 to finally enable the backlight feature while using the "kmod-nvidia" drivers was to append the following line to the /etc/X11/xorg.conf file as per this post on ThinkWiki:

Option "RegistryDwords" "EnableBrightnessControl=1"
ghost commented 10 years ago

Thanks guillaumezin, actually there's nothing in the README on how to install from source... :(

Well there's only a Makefile, so I'm assuming 'make' is all that's needed to compile on Slackware as example?

Will the Makefile work with this cmd? ---> make install DESTDIR=$PKG

Also if I untar; nvidiabl-0.85.tar.gz I have these files & paths in the top directory;

ls; Makefile dkms.conf nvidiabl-gpu.h nvidiabl-laptops.h nvidiabl-models.h nvidiabl-types.h README install nvidiabl-ignore.h nvidiabl-models.c nvidiabl-module.c scripts

Can I just compile in that top directory or do I need to untar the source tar from this path? /nvidiabl-0.85/install/tarball;

nvidiabl-0.81-source-only.dkms.tar.gz nvidiabl-0.83-source-only.dkms.tar.gz nvidiabl-0.85-source-only.dkms.tar.gz nvidiabl-0.82-source-only.dkms.tar.gz nvidiabl-0.84-source-only.dkms.tar.gz

Thanks

guillaumezin commented 10 years ago

If you really want to install the driver without DKMS, you can do a "make install", it should be enough.

ghost commented 10 years ago

Hi,

Ok all I'm doing is make make install DESTDIR=$PKG

This should be enough? If it should be enough, then why would I need the DKMS for?

Here's my slackware build script in case any Slackers want it, or can make some changes if needed, like having the DKMS?

http://pastebin.ca/2682008

By the way I tried compiling 0.86 and it failed;

make -C /lib/modules/3.10.34/build M=/tmp/sar/nvidiabl-0.86 modules make[1]: Entering directory `/usr/src/linux-3.10.34' CC [M] /tmp/sar/nvidiabl-0.86/nvidiabl-module.o /tmp/sar/nvidiabl-0.86/nvidiabl-module.c:37:3: warning: #warning USE_BACKLIGHT_SUSPEND [-Wcpp]

warning USE_BACKLIGHT_SUSPEND

^ /tmp/sar/nvidiabl-0.86/nvidiabl-module.c: In function 'nvidiabl_init': /tmp/sar/nvidiabl-0.86/nvidiabl-module.c:297:49: error: 'FB_BACKLIGHT_LEVELS' undeclared (first use in this function) nvidiabl_device->props.max_brightness = FB_BACKLIGHT_LEVELS - 1; ^ /tmp/sar/nvidiabl-0.86/nvidiabl-module.c:297:49: note: each undeclared identifier is reported only once for each function it appears in make[2]: [/tmp/sar/nvidiabl-0.86/nvidiabl-module.o] Error 1 make[1]: [module/tmp/sar/nvidiabl-0.86] Error 2 make[1]: Leaving directory`/usr/src/linux-3.10.34' make: *\ [modules] Error 2

thanks

ghost commented 10 years ago

I went back and commented out make in the slackbuild script so it only ran;

make install DESTDIR=$PKG

But this time it gave me this;

make: *\ No rule to make target nvidiabl.ko', needed byinstall'. Stop.

thanks

ghost commented 10 years ago

I made a reply to Issue #87