Bug#375179: sensors-applet: NVidia support

2006-10-23 Thread Sam Morris
I've played around with libXNVCtrl a bit and it seems that it just
doesn't work on my card. Could you please try the attached program and
see if you get the same failure that I do (XNVCTRLQueryAttribute
assertion failed)?

-- 
Sam Morris
http://robots.org.uk/

PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078
LDFLAGS := -lX11 -lXext -lXNVCtrl

all: nvtest

nvtest: nvtest.o
	gcc -o $@ $^ $(LDFLAGS)
#include assert.h
#include stdio.h

#include X11/Xlib.h
#include NVCtrl/NVCtrl.h
#include NVCtrl/NVCtrlLib.h


int main (int argc, char *argv[]) {
	Display *dpy;
	dpy = XOpenDisplay(NULL);
	assert (dpy);

	int event_base, error_base;
	int core, amb;
	assert (XNVCTRLQueryExtension (dpy, event_base, error_base));
	assert (XNVCTRLQueryAttribute (dpy, 0, 0, NV_CTRL_GPU_CORE_TEMPERATURE, core));
	assert (XNVCTRLQueryAttribute (dpy, 0, 0, NV_CTRL_AMBIENT_TEMPERATURE, amb));

	printf (core: %d\nambient: %d\n, core, amb);

	return 0;
}


signature.asc
Description: This is a digitally signed message part


Bug#375179: sensors-applet: NVidia support

2006-10-23 Thread CruX
On Mon, 2006-10-23 at 13:16 +0100, Sam Morris wrote:
 I've played around with libXNVCtrl a bit and it seems that it just
 doesn't work on my card. Could you please try the attached program and
 see if you get the same failure that I do (XNVCTRLQueryAttribute
 assertion failed)?

[EMAIL PROTECTED]:~/Cosas/nv]$ ./nvtest
nvtest: nvtest.c:17: main: Assertion `XNVCTRLQueryAttribute (dpy, 0, 0,
60, core)' failed.
Aborted

Same result here, hope you get some news from upstream about this.

-- 
   ,´¯`.
  - CruX -: (` ;   Debian
   Sebastián Cruz `. `´   GNU/Linux
`·
Jabber: crux @ lugmen . org . ar
GPG FP: 6612 409C BFC9 43F8 51E5 8420 0C06 CF38 402A F32B



signature.asc
Description: This is a digitally signed message part


Bug#375179: sensors-applet: NVidia support

2006-10-23 Thread Sam Morris
clone 375179 -1
retitle -1 sensors-applet: libXNVCtrl can't read sensors of certain graphics 
cards
reassign -1 nvidia-settings
found -1 1.0+20060516-3
tag -1 +upstream
block 375179 by -1
retitle 375179 sensors-applet: nvidia sensors for certain graphics cards are 
not available
thanks

So, it seems that libXNVCtrl can't read the sensors on our cards. I'm
not sure about how best to contact upstream (NVIDIA) about this.

What is your card's make and model, BTW? Mine is a Gigabyte GV-N68128DH
(Geforce 6600).

Assuming the code to read sensors from nvclock is reasonably clean, it
should be possible to replace sensors-applet's nvidia-sensors module
with one that uses the nvclock code, but that is a task for another
day. :)


-- 
Sam Morris
http://robots.org.uk/

PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078


signature.asc
Description: This is a digitally signed message part


Bug#375179: sensors-applet: NVidia support

2006-10-23 Thread CruX
On Tue, 2006-10-24 at 01:56 +0100, Sam Morris wrote:
 clone 375179 -1
 retitle -1 sensors-applet: libXNVCtrl can't read sensors of certain graphics 
 cards
 reassign -1 nvidia-settings
 found -1 1.0+20060516-3
 tag -1 +upstream
 block 375179 by -1
 retitle 375179 sensors-applet: nvidia sensors for certain graphics cards are 
 not available
 thanks
 
 So, it seems that libXNVCtrl can't read the sensors on our cards. I'm
 not sure about how best to contact upstream (NVIDIA) about this.
 
 What is your card's make and model, BTW? Mine is a Gigabyte GV-N68128DH
 (Geforce 6600).

It's an ASUS N6600 (Geforce 6600 too)
lspci output (just in case):
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce
6600/GeForce 6600 GT] (rev a2) (prog-if 00 [VGA])
Subsystem: ASUSTeK Computer Inc. Unknown device 81b1

 Assuming the code to read sensors from nvclock is reasonably clean, it
 should be possible to replace sensors-applet's nvidia-sensors module
 with one that uses the nvclock code, but that is a task for another
 day. :)

That'd be great.

-- 
   ,´¯`.
  - CruX -: (` ;   Debian
   Sebastián Cruz `. `´   GNU/Linux
`·
Jabber: crux @ lugmen . org . ar
GPG FP: 6612 409C BFC9 43F8 51E5 8420 0C06 CF38 402A F32B



signature.asc
Description: This is a digitally signed message part


Bug#375179: sensors-applet: NVidia support

2006-10-20 Thread Sebastián Cruz
Package: sensors-applet
Version: 1.7.8+dfsg-1
Followup-For: Bug #375179

Hi! As of Mon, 16 Oct 2006 nvidia-settings is shipping libXNVCtrl and it's
include files.
I've been able to compile sensors-applet from source adding
--with-nvidia to debian/rules successfully; though I haven't been able
to find the sensor in the applet. I can see the temp and fan readings
with nvclock -i (extract below).

-- Sensor info --
Sensor: Fintek F75375S
Board temperature: 43C
GPU temperature: 37C
Fanspeed: 3131 RPM
PWM duty cycle: 7.4%

Please include the README.Debian instructions and a configuration tip
if possible. Thanks!

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable'), (100, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-crux
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages sensors-applet depends on:
ii  libc62.3.6.ds1-6 GNU C Library: Shared libraries
ii  libcairo21.2.4-3.1   The Cairo 2D vector graphics libra
ii  libgconf2-4  2.16.0-2GNOME configuration database syste
ii  libglib2.0-0 2.12.4-1The GLib library of C routines
ii  libgnome2-0  2.16.0-2The GNOME 2 library - runtime file
ii  libgnomeui-0 2.14.1-2The GNOME 2 libraries (User Interf
ii  libgtk2.0-0  2.8.20-3The GTK+ graphical user interface 
ii  libnotify1   0.4.2-1+b1  sends desktop notifications to a n
ii  libpanel-applet2-0   2.14.3-2library for GNOME 2 panel applets
ii  libsensors3  1:2.10.1-2  library to read temperature/voltag
ii  libx11-6 2:1.0.3-2   X11 client-side library
ii  libxext6 1:1.0.1-2   X11 miscellaneous extension librar

sensors-applet recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#375179: sensors-applet: NVidia support

2006-10-20 Thread Sam Morris
On Fri, 2006-10-20 at 20:03 -0300, Sebastián Cruz wrote:
 I've been able to compile sensors-applet from source adding
 --with-nvidia to debian/rules successfully; though I haven't been able
 to find the sensor in the applet. I can see the temp and fan readings
 with nvclock -i (extract below).
 
 -- Sensor info --
 Sensor: Fintek F75375S
 Board temperature: 43C
 GPU temperature: 37C
 Fanspeed: 3131 RPM
 PWM duty cycle: 7.4%
 
 Please include the README.Debian instructions and a configuration tip
 if possible. Thanks!

Already done, I'm just waiting for the package to be uploaded. :)

WRT configuration, I think I am in the same boat as you. nvclock is able
to read my sensors:

-- Sensor info --
Sensor: Winbond W83L785R
Board temperature: 78C
GPU temperature: 60C
Fanspeed: 0 RPM
PWM duty cycle: 0.0%

But neither nvidia-settings nor sensors-applet are able to read the
sensors. I'm forwarding this to upstream in case anyone else has
reported this... I'll take a closer look myself when I have some spare
time. :)

-- 
Sam Morris
http://robots.org.uk/

PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078


signature.asc
Description: This is a digitally signed message part


Bug#375179: sensors-applet: NVidia support

2006-06-24 Thread Jack Malmostoso
Package: sensors-applet
Version: 1.6.2-1
Severity: wishlist


Hello there,

I'd like to ask how likely is it to have NVidia support on future versions of
sensors-applet.
I have tried to compile it myself starting from debianized sources and
adding the --with-nvidia flag to debian/rules, but compilation stopped
complaining about missing nvidia libraries (that should be provided with
package nvidia-settings, which I have installed).
So I downloaded the latest available nvidia-settings package from
nvidia.com, compiled libXNVCtrl myself, put the headers in
/usr/include/NVCtrl but I guess version is not correct since compilation
stops with an error about (I guess) a function in the header file.
libXNVCtrl includes are properly recognized.

It is probably a problem that should be fixed in nvidia-settings, prior to
sensors-applet (for which the fix is trivial, i.e. adding --with-nvidia
flag).

Thanks for your help!

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-amd64-k8-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages sensors-applet depends on:
ii  libart-2.0-2   2.3.17-1  Library of functions for 2D graphi
ii  libatk1.0-01.11.4-2  The ATK accessibility toolkit
ii  libbonobo2-0   2.14.0-1  Bonobo CORBA interfaces library
ii  libbonoboui2-0 2.14.0-3  The Bonobo UI library
ii  libc6  2.3.6-15  GNU C Library: Shared libraries
ii  libcairo2  1.0.4-2   The Cairo 2D vector graphics libra
ii  libfontconfig1 2.3.2-7   generic font configuration library
ii  libgconf2-42.14.0-1  GNOME configuration database syste
ii  libglib2.0-0   2.10.3-1  The GLib library of C routines
ii  libgnome-keyring0  0.4.9-1   GNOME keyring services library
ii  libgnome2-02.14.1-2  The GNOME 2 library - runtime file
ii  libgnomecanvas2-0  2.14.0-2  A powerful object-oriented display
ii  libgnomeui-0   2.14.1-2  The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0 2.14.2-1  GNOME virtual file-system (runtime
ii  libgtk2.0-02.8.18-1  The GTK+ graphical user interface 
ii  libice61:1.0.0-3 X11 Inter-Client Exchange library
ii  liborbit2  1:2.14.0-1.1  libraries for ORBit2 - a CORBA ORB
ii  libpanel-applet2-0 2.14.1-1+b2   library for GNOME 2 panel applets
ii  libpango1.0-0  1.12.3-1  Layout and rendering of internatio
ii  libpopt0   1.10-2lib for parsing cmdline parameters
ii  libsensors31:2.10.0-7library to read temperature/voltag
ii  libsm6 1:1.0.0-4 X11 Session Management library
ii  libx11-6   2:1.0.0-6 X11 client-side library
ii  libxcursor11.1.5.2-5 X cursor management library
ii  libxext6   1:1.0.0-4 X11 miscellaneous extension librar
ii  libxfixes3 1:3.0.1.2-4   X11 miscellaneous 'fixes' extensio
ii  libxi6 1:1.0.0-5 X11 Input extension library
ii  libxinerama1   1:1.0.1-4 X11 Xinerama extension library
ii  libxml22.6.26.dfsg-1 GNOME XML library
ii  libxrandr2 2:1.1.0.2-4   X11 RandR extension library
ii  libxrender11:0.9.0.2-4   X Rendering Extension client libra
ii  zlib1g 1:1.2.3-12compression library - runtime

sensors-applet recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#375179: sensors-applet: NVidia support

2006-06-24 Thread Sam Morris
The two problems with NVidia support are:

 1. The nvidia-settings package does not ship the libXNVCtrl library
 2. nvidia-settings is in contrib; depending on it would mean
sensors-applet would have to go to contrib as well

Once libXNVCtrl is shipped by nvidia-setting, I intend to provide simple
instructions in the README.Debian on how to recompile the sensors-applet
package to enable NVidia support.

-- 
Sam Morris
http://robots.org.uk/

PGP key id 5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]