Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-19-12, 07:09 PM   #145
chenxiaolong
Registered User
 
Join Date: Jan 2012
Posts: 1
Default Re: Linux backlight driver

Quote:
Originally Posted by lonestar_italy View Post
hi

nvidia_bl v0.71 doesn't compile against kernel 3.2.0:


make -C /lib/modules/3.2.0/build M=/usr/src/nvidiabl/nvidiabl modules
make[1]: Entering directory `/usr/src/linux-3.2'
CC [M] /usr/src/nvidiabl/nvidiabl/nvidiabl-module.o
/usr/src/nvidiabl/nvidiabl/nvidiabl-module.c:37:3: warning: #warning USE_BACKLIGHT_SUSPEND
CC [M] /usr/src/nvidiabl/nvidiabl/nvidiabl-models.o
/usr/src/nvidiabl/nvidiabl/nvidiabl-models.c:214:41: error: expected ) before numeric constant
/usr/src/nvidiabl/nvidiabl/nvidiabl-models.c:215:25: error: expected ) before string constant
make[2]: *** [/usr/src/nvidiabl/nvidiabl/nvidiabl-models.o] Errore 1
make[1]: *** [_module_/usr/src/nvidiabl/nvidiabl] Errore 2
make[1]: Leaving directory `/usr/src/linux-3.2'
make: *** [modules] Errore 2

I think syntax of module_param_named and MODULE_PARM_DESC are changed, but I don't know because I'm not a programmer.
any patch available?
The syntax wan't changed, it just needs the /usr/src/linux-$(uname -r)/include/linux/moduleparam.h file to be explicitly included I've pushed a fix to my github fork of nvidiabl (https://github.com/chenxiaolong/nvidiabl). You're welcome to compile from my git repo or apply the patch to the original source.

A copy of the patch:

Code:
From ed26f84824aad1efe9616477a63fe857c7971fa1 Mon Sep 17 00:00:00 2001
From: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
Date: Thu, 19 Jan 2012 19:53:30 -0500
Subject: [PATCH] Fix build with Kernel 3.2

---
 nvidiabl-types.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/nvidiabl-types.h b/nvidiabl-types.h
index 571bd44..c63572e 100644
--- a/nvidiabl-types.h
+++ b/nvidiabl-types.h
@@ -18,6 +18,7 @@
 
 #include <linux/pci.h>
 #include <linux/fb.h>
+#include <linux/moduleparam.h>
 
 #define NVIDIABL_STR_1(s) #s
 #define NVIDIABL_STR(s) NVIDIABL_STR_1(s)
@@ -94,4 +95,4 @@ typedef struct {
         (kernel_ulong_t)&algorithm \
     }
 
-#endif
\ No newline at end of file
+#endif
-- 
1.7.8.4
chenxiaolong is offline   Reply With Quote
Old 02-04-12, 06:21 AM   #146
theone123
Registered User
 
Join Date: Oct 2010
Posts: 15
Default Re: Linux backlight driver

Hey guys!

Im using Debian testing right now. The current version of nvidiabl 0.73 works great on my System (Vaio VPCCW1S1E). Although I had to change the settings for minimum brightness, because the auto value isn't correct for me. The only Problem I have now, is that the oBacklight script doesn't change the brightness anymore. I am able to change the brightness if i use this command "echo value > /sys/class/backlight/nvidia_backlight/brightness" manually, where i enter 0-127 instead of value. The ACPI codes are set up correctly in the script. I checked it with acpi_listen, but it won't change my brightness if the script is running and i press my Brightness-UP and DOWN keys.

Any idea??
theone123 is offline   Reply With Quote
Old 04-28-12, 04:55 PM   #147
Zem
Registered User
 
Join Date: Jan 2011
Posts: 14
Default Re: Linux backlight driver

Thanks again for this driver; just installed kubuntu 12.04 and nvidiabl 0.73 works perfectly.

Only one thing: did anybody find a solution to the backlight resetting problem?
Zem is offline   Reply With Quote
Old 07-13-12, 04:01 AM   #148
muddenhed
Creator of oBacklight
 
Join Date: Apr 2010
Posts: 19
Default Re: Linux backlight driver

Quote:
Originally Posted by theone123 View Post
Hey guys!

Im using Debian testing right now. The current version of nvidiabl 0.73 works great on my System (Vaio VPCCW1S1E). Although I had to change the settings for minimum brightness, because the auto value isn't correct for me. The only Problem I have now, is that the oBacklight script doesn't change the brightness anymore. I am able to change the brightness if i use this command "echo value > /sys/class/backlight/nvidia_backlight/brightness" manually, where i enter 0-127 instead of value. The ACPI codes are set up correctly in the script. I checked it with acpi_listen, but it won't change my brightness if the script is running and i press my Brightness-UP and DOWN keys.

Any idea??
Hi theone123, if you run acpi_listen and push your brightness buttons, does it show any events occurring?

I haven't checked my script against the 0.73 release yet, but will try to do that asap.

/Marcus
muddenhed is offline   Reply With Quote
Old 12-11-12, 06:38 AM   #149
Zem
Registered User
 
Join Date: Jan 2011
Posts: 14
Default Re: Linux backlight driver

Hello

I just wanted to report that finally backlight control works without nvidiabl on my system.

Vaio VPCCW2C5E, GeForce GT 330M, nvidia proprietary driver 310.14 installed from ubuntu repositories.
Zem is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:55 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.