PDA

View Full Version : NVIDIA i2c


MaegRil
17th May 2006, 11:05 PM
Hiya.

I'm in the process of creating my own Superkaramba theme, which seems to be going quite well.
It's all pretty much done, just fine tuning things, look & layout .... etc etc

Anyways ... to get the GPU temperature value for the nvidia graphics cards I have:
nvidia-settings -q gpucoretemp | grep -e Attribute | awk '{print $4}' | tr -d '[:punct:],[:blank:]'

while that works just fine and does the job, it does use more system resources than I'd like a monitor to be using.
I've recently become aware of the new i2c feature in the latest nvidia drivers and I was wondering, how do I retrive the info from that?
Gkrellm is running with both the nvidia GPU & ambient temperatures which proves that the nviidia i2c is working.

It'd be nice to access the i2c output, as not only the reduction in system resources are beneficial but on the whole it's a much tidier way to go about it.

TIA :)

MaegRil
18th May 2006, 03:06 PM
I forgot to say that both i2cdetect & i2cdump return the following:

i2c-4 unknown NVIDIA I2C Device Algorithm unavailable
i2c-3 unknown NVIDIA I2C Device Algorithm unavailable
i2c-2 unknown NVIDIA I2C Device Algorithm unavailable
i2c-1 unknown SMBus nForce2 adapter at 0700 Algorithm unavailable
i2c-0 unknown SMBus nForce2 adapter at 0600 Algorithm unavailable


And dmesg reports this:

i2c_adapter i2c-0: nForce2 SMBus adapter at 0x600
i2c_adapter i2c-1: nForce2 SMBus adapter at 0x700
i2c_adapter i2c-2: SMBus Quick command not supported, can't probe for chips
i2c_adapter i2c-3: SMBus Quick command not supported, can't probe for chips
i2c_adapter i2c-4: SMBus Quick command not supported, can't probe for chips


sensors-detect - it actaully finds a driver for the first NVIDIA I2C Device, Dallas Semiconductor DS1621.
And when sensors-detect is finished it says to put this is in /etc/modprobe.conf;

# I2C module options
alias char-major-89 i2c-dev

And to put this in a /etc/rc. file:

# I2C adapter drivers
# modprobe unknown adapter NVIDIA I2C Device
# modprobe unknown adapter NVIDIA I2C Device
# modprobe unknown adapter NVIDIA I2C Device
modprobe i2c-isa
# I2C chip drivers
modprobe ds1621
modprobe it87
# sleep 2 # optional
/usr/bin/sensors -s # recommended


sensors knows there's something there, but doesn't know what it is.
Yet, gkrellm manages to get the info from somewhere. I don't know. Anyone else know?

MaegRil
18th May 2006, 10:45 PM
I was just looking in the my "sensor-config" for gkrellm - it looks like this:

sensor sensor_config_version 1
sensor sensor_float_factor 10000
sensor gkrellm_float_factor 1000
sensor "CPU" "it8712-9191-0d00/temp1" 10000 0 1 0
sensor "System" "it8712-9191-0d00/temp2" 10000 0 1 0
sensor "temp3" "it8712-9191-0d00/temp3" 10000 0 0 0
sensor "GPU" "nVidia GPU Core" 10000 0 1 0
sensor "Ambient" "nVidia GPU Ambient" 10000 0 1 0
sensor "CPU" "it8712-9191-0d00/fan1" 10000 0 1 0
sensor "Exhaust" "it8712-9191-0d00/fan2" 10000 0 1 0
sensor "PSU" "it8712-9191-0d00/fan3" 10000 0 1 0
sensor "Vcore" "it8712-9191-0d00/in0" 10000 0 1 0
sensor "Vcor2" "it8712-9191-0d00/in1" 10000 0 0 0
sensor "+3.3V" "it8712-9191-0d00/in2" 20000 0 0 0
sensor "+5V" "it8712-9191-0d00/in3" 16800 0 0 0
sensor "+12V" "it8712-9191-0d00/in4" 40000 0 0 0
sensor "-12V" "it8712-9191-0d00/in5" 76700 -273600 0 0
sensor "-5V" "it8712-9191-0d00/in6" 43300 -136400 0 0
sensor "Stby" "it8712-9191-0d00/in7" 16800 0 0 0
sensor "Vbat" "it8712-9191-0d00/in8" 10000 0 0 0
sensor units_fahrenheit 0
sensor volt_display_mode 0


Where does gkrellm read the sensor data from?

MaegRil
20th May 2006, 09:06 PM
I've now found out where gkrellm gets the nvidia data from.
I had posted about this on www.nvnews.net (http://www.nvnews.net/vbulletin/) and somebody pointed out the the gkrellm changelog.
Nvidia senors in gkrellm have been about for over a year now. Opps, I never realised that. I never had any nvidia sensors until FC5 and the latest drivers. :(

Turns out gkellm only uses nvidia-settings to get the temperatures.
Ah well, there goes that plan.

Dailekh Photos on Instagram - Stephenville Travel Photos - Cypress Photos on Instagram