no nvidia support

Bug #59945 reported by socket
28
Affects Status Importance Assigned to Milestone
Debian
New
Unknown
sensors-applet (Ubuntu)
Fix Released
Medium
StefanPotyra

Bug Description

Nvidia support does not seem to be included in your build. I think including the support would benefit a large chunck of users.

Revision history for this message
Andrew Ash (ash211) wrote :

Thanks for your bug report. Could you please provide which version you are using, and more of what you mean by Nvidia support? Thank you.

Changed in sensors-applet:
assignee: nobody → motu
status: Unconfirmed → Needs Info
Revision history for this message
socket (anton-mark) wrote :

According to sensors-applet.sourceforge.net:

"To enable support for NVIDIA GPUs GNOME Sensors Applet requires the standard X11 headers as well as libNVCtrl (supplied by nvidia-settings), and needs to be compiled with support for NVIDIA GPUs as:

./configure --with-nvidia"

From what I can see your build for Edgy doesn't seem to have this support. That or I'm having some issues on my side and jumped the gun on this request.

Revision history for this message
AdrianvV (adrianvv) wrote :

Same feature request is lying in the Debian bug tracker:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375179

To quote 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."

Revision history for this message
AdrianvV (adrianvv) wrote :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375191

So upstream nvidia-settings now includes the required libXNVCtrl library. Once that hits Ubuntu, all that's required should be to build sensors-applet with nvidia support.

If there is to be only a README and not a version of sensors-applet with nvidia support, what are the chances of a -devel like version that does include it?

Revision history for this message
Fredrik (fredrk) wrote :

What is the problem with compiling the sensor-applet with this support?

Ubuntu is all about usability so you shouldn't be forced to compile things.

I hops this is solved to next release.

Revision history for this message
Sam Morris (yrro) wrote :

Well, nvidia-settings in Ubuntu does not ship the necessary C include files and static library files, so first, that must be fixed.

Secondly, enabling NVIDIA support would be an Ubuntu-specific change to the package, so the Ubuntu packager would have to make it.

Thirdly, NVIDIA support barely works anyway. libXNVCtrl fails to read the sensors on my graphics card--see the Debian bug report for more info.

Changed in sensors-applet:
status: Needs Info → Rejected
Revision history for this message
Jason Fergus (leech-sisna) wrote :

I got it to work here. Here's what I did. Since Ubuntu's package maintainers have screwed up and included nvidia-settings within the nvidia-glx package, the nvidia-settings package conflicts with it.

Also the nvidia-settings program itself is much newer in the nvidia-glx package, and supports more features.

So step one was to download the nvidia-settings_1.0+20060516-3ubuntu1_i386.deb package and extract it with 'dpkg -x nvidia-settings_1.0+20060516-3ubuntu1_i386.deb nvidia' This extracts the package into the 'nvidia' folder. Then just 'cd nvidia/usr' and 'sudo cp -r include /usr' then 'sudo cp -r lib /usr/'

Step Two. Run 'sudo apt-get build-dep sensors-applet'. This will fetch MOST of the packages needed to build this. The last thing missing is the nvidia-glx-dev package. If you don't install this, the build will fail.

Create a directory, or go into /usr/src where I always put my source packages, and then do 'sudo apt-get source sensors-applet'. This will grab the source packages. We aren't building it yet, we have to change a file first. So go into the directory sensors-applet-1.7.10+dfsg and then 'sudo nano debian/rules' (If you prefer Gedit, use that instead of Nano.) Then simply add at the end of the file, '--with-nvidia' and save it (control+X in Nano)

Next step is to finally build the package. You should still be in the sensors-applet directory, just run 'sudo dpkg-buildpackage' and it'll run it's course and create a .deb file. Just 'sudo dpkg -i sensors-applet_1.7.10+dfsg-1_i386.deb'

Then magically you should have your sensors working! Well assuming you've used the lm-sensors script 'sensor-detect' and set up the sensors.

I'll attach the deb package, but I don't think it'll work without the libraries from the nvidia-settings package, though I could be wrong.

Leech

Revision history for this message
Fredrik (fredrk) wrote :

Your attached package worked fin for me with an standard Feisty installation. It shows my GPU temp (for my 7950 card) with no problem.

This should really be included default.

Revision history for this message
AdrianvV (adrianvv) wrote :

Jason: Your package works perfectly with the NVIDIA Quadro 120M in my laptop.

As simple as downloading and running dpkg -i against it, _nothing_ else required.

Thanks!

Revision history for this message
Ketil Wendelbo Aanensen (ketilwaa-deactivatedaccount) wrote :

Works here too, but now, if I run Synaptic, and choose to upgrade it all, sensors-applet gets replaced. Nvidia-support must be included by default for Gutsy, and should be backported as well.

- Ketil

Revision history for this message
Fredrik (fredrk) wrote :

Any progress on this?

When do we get an nvidia-enable sensors-applet?

Changed in sensors-applet:
status: Invalid → Confirmed
Revision history for this message
IanW (launchpad-washuu) wrote :

Having recently bought a rather expensive Nvidia graphics card, I too would like to see Nvidia supported in sensors-applet.

Revision history for this message
StefanPotyra (sistpoty) wrote :

Hi,

sorry, but we have the same problems Debian has here as well: sensor-applet is in universe, which can only depend or build-depend on stuff from main or universe. However libXNVCtrl is in nvidia-settings (gutsy) being in restricted.

However from reading the copyright statement of nvidia-settings, I cannot see *why* this should be in restricted after all, since it merely states GPL-2, so I guess moving nvidia-settings to main would be the right thing to do, unless of course nvidia-settings' copyright statement is buggy.

Cheers,
    Stefan.

Revision history for this message
IanW (launchpad-washuu) wrote :

Solution?

Might it be possible to produce a "sensor-applet-nvidia" which would sit in restricted and conflict with (i.e. remove) the regular, universe version?

Revision history for this message
StefanPotyra (sistpoty) wrote :

@IanW:
this would be one possibility, however that would mean that we'd need to duplicate the source package, which should generally be avoided (fix a bug in once, need to fix it for the second source package as well).

The right fix would IMHO be to have nvidia-settings be either promoted to main or "demoted" to universe, so that we can build-depend on it.

P.S.: @Jason, is libXNVCtrl still in the nvidia-glx package? (couldn't find it in the current gutsy one, but I haven't looked really close though).

P.P.S.: sorry, but this won't make it into gutsy, however I'll try to see to get it done for hardy.

Cheers,
    Stefan.

Revision history for this message
Jason Fergus (leech-sisna) wrote : Re: [Bug 59945] Re: no nvidia support

It's in the nvidia-settings package. The file is /usr/lib/libXNVCtrl.a

Jason

On Tue, 2007-10-16 at 19:11 +0000, StefanPotyra wrote:
> @IanW:
> this would be one possibility, however that would mean that we'd need to duplicate the source package, which should generally be avoided (fix a bug in once, need to fix it for the second source package as well).
>
> The right fix would IMHO be to have nvidia-settings be either promoted
> to main or "demoted" to universe, so that we can build-depend on it.
>
> P.S.: @Jason, is libXNVCtrl still in the nvidia-glx package? (couldn't
> find it in the current gutsy one, but I haven't looked really close
> though).
>
> P.P.S.: sorry, but this won't make it into gutsy, however I'll try to
> see to get it done for hardy.
>
> Cheers,
> Stefan.
>

Revision history for this message
Ketil Wendelbo Aanensen (ketilwaa-deactivatedaccount) wrote :

Confirmed still present in Gutsy (obviously)

This is closing in on tragic. It has been a know issue for so long, and the info page on the sensors-applet package still has the nerve to list Nvidia-support.
I get Nvidia temperatures in both Gkrellm and nvclock and nvidia-settings.
This should literally take 5 minutes to fix.

Can someone please manage to make an amd64 package for Gutsy?

Revision history for this message
Andrey Vihrov (andrey.vihrov) wrote :

I was trying to do that, but I have found out that no package in gutsy has the required files NVCtrl/NVCtrl.h and NVCtrl/NVCtrlLib.h (not even nvidia-settings), thus I cannot compile the applet. Don't know what to do next. (:

Revision history for this message
Fredrik (fredrk) wrote :

It bugs me too that the package info says "nvidia support" when it is a lie.

Revision history for this message
Ketil Wendelbo Aanensen (ketilwaa-deactivatedaccount) wrote :

64 bit for Gutsy: http://ubuntuforums.org/showpost.php?p=3610836&postcount=2

And that includes sensors up the wazoo :) With the standard repo package and a sudo sensors-detect, all I got was core0 and core1 temperature i addition to hddtemp. Now I have 17 more from libsensors and Nvidia as well.

Revision history for this message
Andrey Vihrov (andrey.vihrov) wrote :

):
I wish I saw that half an hour earlier, because I've managed to build that package finally :) I took the necessary header files from feisty/nvidia-settings, and the resulting package is working fine on my PC. The one thing I don't understand is why update-manager now offers me an update from current version 1.7.12+dfsg-1ubuntu1 to version 1.7.12+dfsg-1ubuntu1 in the repositories. :)

Revision history for this message
socket (anton-mark) wrote :

I've just been installing nvidia-settings debs from vanilla Debian and hand compiling sensors-applet since opening this bug. It's kinda scary it's now been an issue for over a year. :P The package maintainers need to just get off their butts and pull in the right nvidia-settings before doing their sensors-applet compile, and then pack the deb. It's pretty easy but maybe there is a conflict with who ever maintains the nvidia-settings package??

Revision history for this message
StefanPotyra (sistpoty) wrote :

Hi,

it seems that it's possible to have package in universe build-depend on s.th. from restricted and produce another binary package for multiverse, as long as the universe binary package won't get influenced. I guess this will be the best solution, but prior to this, nvidia-settings will have to get patched to ship the necessary header file(s).

Sorry for the inconvenience,
    Stefan.

Revision history for this message
IanW (launchpad-washuu) wrote :

Following ketilwaa's post above. I snooped around that site & found an nvidia-enabled 64bit .deb of sensors-applet_1.8.2 for Gutsy at

http://download.tuxfamily.org/upure64/pool/gutsy-upure64/main-amd64/sensors-applet_1.8.2-0ubuntu1~upure64_amd64.deb

Revision history for this message
Alex Murray (alexmurray) wrote :

I just noticed Fedora package libNVCtrl separately and ship it under core as it appears to be GPL 2, so this could be easily shipped in Debian as well - will file a bug there too.

https://admin.fedoraproject.org/pkgdb/packages/name/libXNVCtrl

Revision history for this message
StefanPotyra (sistpoty) wrote :

Just a short update: nvidia-settings is now in universe, and building a separate -dev package containing the static library and the headers. Finally, an update to sensors-applet fixing this bug will be possible; expect it to happen really soon now.

Changed in sensors-applet:
assignee: motu → sistpoty
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
StefanPotyra (sistpoty) wrote :
Revision history for this message
StefanPotyra (sistpoty) wrote :

Sorry again, I just found out, that I cannot test this under KDE. Anyone who can tell me that it works/don't works from building a package with the proposed debdiff?

Revision history for this message
Pelle van der Scheer (pellesimon) wrote :

I am supplying a deb for gutsy i386 (in reply to Andrey Vihrov's 64bit version) for anyone who doesnt want to take the time to download the nvidia-glx-dev (feisty version) and copy /usr/lib and /usr/include from the archive, compile from source with nvidia etc... (p.s. to change the version I used sudo dch -i in the source dir)

Revision history for this message
StefanPotyra (sistpoty) wrote :

yay, lost update... package was synced in between, so the debdiff no longer works. Good news however, I have finally installed gnome, so if it works, I'll upload an adapted version, finally :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sensors-applet - 2.2.1-1ubuntu1

---------------
sensors-applet (2.2.1-1ubuntu1) hardy; urgency=low

  * debian/rules: enable nvidia support in configure call (LP: #59945).
  * debian/rules: disable -Wl,--as-needed LDFLAGS (static linking against
    libXNVCtrl.a won't work otherwise, at least configure won't pick it
    up).
  * debian/control: add libxnvctrl-dev to build-depends.
  * debian/control: update Maintainer value as per spec.

 -- Stefan Potyra <email address hidden> Sat, 23 Feb 2008 17:52:32 +0100

Changed in sensors-applet:
status: In Progress → Fix Released
Revision history for this message
David Roth (davidroth) wrote :

I have a question that I hope you will be able to answer. I have included the text from the description of sensors-applet:

------------------------- Start Package Description -----------------------------------------
It can gather data from the following sources:
 * ACPI thermal zones, via the Linux kernel ACPI modules
 * Linux kernel i2c modules
 * lm-sensors (libsensors)
 * Linux kernel i8k module (for Dell Inspiron Laptops)
 * Linux kernel ibm-acpi module
 * Linux kernel PowerPC modules therm_adt746x and therm_windtunnel
 * Linux kernel iMac G5 Windfarm module
 * hddtemp daemon for reading temperatures from S.M.A.R.T. equipped hard disks
 * Linux kernel Omnibook module
 ---> NVIDIA graphics cards (with separate sensors-applet-nvidia package)
 * Linux kernel sonypi module (for Sony Vaio laptops)

Alarms can be set for each sensor to notify the user once a certain high or
low value has been reached, and can be configured to execute a given command
at given repeated intervals.

------------------------- End Package Description -----------------------------------------

Where is the package: "sensors-applet-nvidia". Wouldn't this package enable Nvidia temp. readings? if so, when can we expect to see this package? Is there something I am missing? Is there something I can do? Thanks for your support!

Revision history for this message
StefanPotyra (sistpoty) wrote :

@David: I knew I forgot s.th... to update the package's description. You don't need any other package, but I assume that you must use the nvidia driver so that sensors-applet can show the temperature.

P.S.: launchpad has also the possiblity to ask questions ;).

Cheers,
      Stefan.

Revision history for this message
David Roth (davidroth) wrote :

Thanks Stefan!

P.S. When I rebooted my computer the new update took effect. I am now able to monitor my Nvidia GPU Temp. Readings. And you are right, the package description is confusing! So for the sake of anyone looking for help on this issue:

   The new "sensors-applet" is compiled with Nvidia Support (--with-nvidia=yes).
   But to use this feature, the "nvidia-settings" package must be installed to supply the necessary lib (libNVCtrl.a).

So in a nutshell, when a Ubuntu user wants to monitor his Nvidia GPU Temperature, all one has to do is install the "sensors-applet" and "nvidia-settings" package. Hopefully, if am correct, this will clear up some of the confusion with getting the Nvidia temperature applet working. Thanks again!

Revision history for this message
StefanPotyra (sistpoty) wrote :

Small correction: the nvidia-settings package is not required (libXNVCtrl.a is a static lib, so it is linked to the new sensors-applet during compile time). I'll update the description soon.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.