Hi,

Awesome!
You saved my eyes!

I confirmed operation by Nevada b104 on MacBook Late 2008 (NVidia Geforce 
9400M).
However, a little correction was necessary.

It is not though configure needs 'pkg-config --libs xext'.
/usr/lib/pkgconfig/xextproto.pc had been found, it decided to substitute it.
and, -lXext was added to LIBS in nvclocl/src/Makefile.

thanks,
Kazuyuki Sato

--
$ ./nvclock -i
-- General info --
Card:           nVidia Geforce 9400M
Architecture:   GAC B1
PCI id:         0x863
GPU clock:      108.000 MHz
Bustype:        PCI

-- Shader info --
Clock: 1728.000 MHz
Stream units: 16 (1b)
ROP units: 4 (1b)
-- Memory info --
Amount:         256 MB
Type:           128 bit DDR2
Clock:          -8589934.592 MHz

-- Smartdimmer info --
Backlight level: 50%

-- Sensor info --
Sensor: GPU Internal Sensor
GPU temperature: 66C

-- VideoBios information --
Version: 62.79.40.00.01
Signon message: MCP79 Apple M97 VBIOS
Performance level 0: gpu 350MHz/shader 800MHz/memory 0MHz/0.90V/100%
Performance level 1: gpu 450MHz/shader 1100MHz/memory 0MHz/1.01V/100%
VID mask: 7
Voltage level 0: 0.85V, VID: 4
Voltage level 1: 0.90V, VID: 3
Voltage level 2: 0.95V, VID: 2
Voltage level 3: 1.01V, VID: 1
--

Correction example:
--
$ gdiff -cNr nvclock/configure nvclock_sol/configure
*** nvclock/configure   2009-01-06 22:15:12.000000000 +0900
--- nvclock_sol/configure       2009-01-07 06:58:41.433936859 +0900
***************
*** 5074,5093 ****
           { echo "$as_me:$LINENO: checking for xext" >&5
   echo $ECHO_N "checking for xext... $ECHO_C" >&6; }
   
!         if $PKG_CONFIG --exists "xext" ; then
               { echo "$as_me:$LINENO: result: yes" >&5
   echo "${ECHO_T}yes" >&6; }
               succeeded=yes
   
               { echo "$as_me:$LINENO: checking XEXT_CFLAGS" >&5
   echo $ECHO_N "checking XEXT_CFLAGS... $ECHO_C" >&6; }
!             XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext"`
               { echo "$as_me:$LINENO: result: $XEXT_CFLAGS" >&5
   echo "${ECHO_T}$XEXT_CFLAGS" >&6; }
   
               { echo "$as_me:$LINENO: checking XEXT_LIBS" >&5
   echo $ECHO_N "checking XEXT_LIBS... $ECHO_C" >&6; }
!             XEXT_LIBS=`$PKG_CONFIG --libs "xext"`
               { echo "$as_me:$LINENO: result: $XEXT_LIBS" >&5
   echo "${ECHO_T}$XEXT_LIBS" >&6; }
           else
--- 5074,5093 ----
           { echo "$as_me:$LINENO: checking for xext" >&5
   echo $ECHO_N "checking for xext... $ECHO_C" >&6; }
   
!         if $PKG_CONFIG --exists "xextproto" ; then
               { echo "$as_me:$LINENO: result: yes" >&5
   echo "${ECHO_T}yes" >&6; }
               succeeded=yes
   
               { echo "$as_me:$LINENO: checking XEXT_CFLAGS" >&5
   echo $ECHO_N "checking XEXT_CFLAGS... $ECHO_C" >&6; }
!             XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto"`
               { echo "$as_me:$LINENO: result: $XEXT_CFLAGS" >&5
   echo "${ECHO_T}$XEXT_CFLAGS" >&6; }
   
               { echo "$as_me:$LINENO: checking XEXT_LIBS" >&5
   echo $ECHO_N "checking XEXT_LIBS... $ECHO_C" >&6; }
!             XEXT_LIBS=`$PKG_CONFIG --libs "xextproto"`
               { echo "$as_me:$LINENO: result: $XEXT_LIBS" >&5
   echo "${ECHO_T}$XEXT_LIBS" >&6; }
           else
***************
*** 5095,5101 ****
               XEXT_LIBS=""
               ## If we have a custom action on failure, don't print errors, but
               ## do set a variable so people can do so.
!             XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors 
"xext"`
   
           fi
   
--- 5095,5101 ----
               XEXT_LIBS=""
               ## If we have a custom action on failure, don't print errors, but
               ## do set a variable so people can do so.
!             XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors 
"xextproto"`
   
           fi
--




Bernd Markgraf wrote:
> Hi,
>
> as I hinted in another post there is a program called NVClock to tweak some 
> settings on NVidia graphics cards. This also has an option to control the 
> backlight brightness on a number of notebooks with NVidia graphics cards.
> I added an (Open)Solaris backend to have brightness control on my Sony Vaio 
> AW11Z.
> The patch is on the way to the author of NVClock.
> For now I also have the source at 
> http://149.203.91.65/~markgraf/nvclock_0.8b4_opensolaris.tar.gz
> So I invite all interested folks to try it out and give me some feedback on 
> the stuff I wrote.
> NVClock/smartdimmer need to be run as privilegded user to access the PCI 
> stuff. I guess there is room for improvement here ;-)
>
> Though I haven't found a way to use this with the "special keys" on the 
> notebook yet, the cli is much better than no dimming. (battery runtime went 
> up by ~1h when dimmed down to 15%)
>
> Could one talk NVidia into adding support for backlight control into their 
> drivers?
>
>   Bernd

Reply via email to