![]() |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
I got information that ATI uses special I2C
Delphi-Quellcode:
i2c-radeon.c - Part of lm_sensors, Linux kernel modules for hardware
monitoring Copyright (C) 1998-2004 The LM Sensors Team Based on i2c-savage4.c. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <linux/module.h> #include <linux/pci.h> #include <linux/i2c.h> #include <linux/i2c-algo-bit.h> #include <linux/init.h> #include <asm/io.h> #include <asm/param.h> /* for HZ */ #include "version.h" /* Radeon defines */ #define RADEON_GPIO_VGA_DDC 0x0060 #define RADEON_GPIO_DVI_DDC 0x0064 /* bit locations in the registers */ #define I2C_SDA_IN (1 << 8) #define I2C_SCL_IN (1 << 9) #define I2C_SCL_OUT (1 << 17) /* inverted */ #define I2C_SDA_OUT (1 << 16) /* inverted */ /* delays */ #define CYCLE_DELAY 10 #define TIMEOUT (HZ / 2) static void config_radeon(struct pci_dev *dev); static unsigned long ioaddr; static void radeon_dvi_setscl(void *data, int val) { unsigned int r; r = readl(ioaddr + RADEON_GPIO_DVI_DDC); if(val) r &= ~I2C_SCL_OUT; else r |= I2C_SCL_OUT; writel(r, ioaddr + RADEON_GPIO_DVI_DDC); readl(ioaddr + RADEON_GPIO_DVI_DDC); /* flush posted write */ } static void radeon_dvi_setsda(void *data, int val) { unsigned int r; r = readl(ioaddr + RADEON_GPIO_DVI_DDC); if(val) r &= ~I2C_SDA_OUT; else r |= I2C_SDA_OUT; writel(r, ioaddr + RADEON_GPIO_DVI_DDC); readl(ioaddr + RADEON_GPIO_DVI_DDC); /* flush posted write */ } static int radeon_dvi_getscl(void *data) { return (0 != (readl(ioaddr + RADEON_GPIO_DVI_DDC) & I2C_SCL_IN)); } static int radeon_dvi_getsda(void *data) { return (0 != (readl(ioaddr + RADEON_GPIO_DVI_DDC) & I2C_SDA_IN)); } static void radeon_vga_setscl(void *data, int val) { unsigned int r; r = readl(ioaddr + RADEON_GPIO_VGA_DDC); if(val) r &= ~I2C_SCL_OUT; else r |= I2C_SCL_OUT; writel(r, ioaddr + RADEON_GPIO_VGA_DDC); readl(ioaddr + RADEON_GPIO_VGA_DDC); /* flush posted write */ } static void radeon_vga_setsda(void *data, int val) { unsigned int r; r = readl(ioaddr + RADEON_GPIO_VGA_DDC); if(val) r &= ~I2C_SDA_OUT; else r |= I2C_SDA_OUT; writel(r, ioaddr + RADEON_GPIO_VGA_DDC); readl(ioaddr + RADEON_GPIO_VGA_DDC); /* flush posted write */ } static int radeon_vga_getscl(void *data) { return (0 != (readl(ioaddr + RADEON_GPIO_VGA_DDC) & I2C_SCL_IN)); } static int radeon_vga_getsda(void *data) { return (0 != (readl(ioaddr + RADEON_GPIO_VGA_DDC) & I2C_SDA_IN)); } /* Configures the chip */ void config_radeon(struct pci_dev *dev) { unsigned int cadr; /* map memory */ cadr = dev->resource[0].start; cadr &= PCI_BASE_ADDRESS_MEM_MASK; ioaddr = (unsigned long)ioremap_nocache(cadr, 0x0001000); if(ioaddr) { // writel(0x8160, ioaddr + RADEON_GPIO_DVI_DDC2); // writel(0x00000020, ioaddr + RADEON_GPIO_DVI_DDC); radeon_dvi_setscl(NULL, 1); radeon_dvi_setsda(NULL, 1); radeon_vga_setscl(NULL, 1); radeon_vga_setsda(NULL, 1); printk(KERN_INFO "i2c-radeon.o: Using Radeon at 0x%lx\n", ioaddr); } } static struct i2c_algo_bit_data radeon_dvi_bit_data = { .setsda = radeon_dvi_setsda, .setscl = radeon_dvi_setscl, .getsda = radeon_dvi_getsda, .getscl = radeon_dvi_getscl, .udelay = CYCLE_DELAY, .mdelay = CYCLE_DELAY, .timeout = TIMEOUT }; static struct i2c_algo_bit_data radeon_vga_bit_data = { .setsda = radeon_vga_setsda, .setscl = radeon_vga_setscl, .getsda = radeon_vga_getsda, .getscl = radeon_vga_getscl, .udelay = CYCLE_DELAY, .mdelay = CYCLE_DELAY, .timeout = TIMEOUT }; static struct i2c_adapter radeon_i2c_adapter = { .owner = THIS_MODULE, .name = "ATI Radeon", .id = I2C_HW_B_SAVG, /* FIXME */ .algo_data = &radeon_vga_bit_data, }; static struct pci_device_id radeon_ids[] __devinitdata = { { .vendor = 0x1002, .device = 0x4C59, .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, }, { 0 } }; static int __devinit radeon_probe(struct pci_dev *dev, const struct pci_device_id *id) { config_radeon(dev); return i2c_bit_add_bus(&radeon_i2c_adapter); } static void __devexit radeon_remove(struct pci_dev *dev) { i2c_bit_del_bus(&radeon_i2c_adapter); } static int __init i2c_radeon_init(void) { struct pci_dev *dev; const struct pci_device_id *id; printk(KERN_DEBUG "i2c-radeon.o init\n"); pci_for_each_dev(dev) { id = pci_match_device(radeon_ids, dev); if(id && radeon_probe(dev, id) >= 0) return 0; } return -ENODEV; } static void __exit i2c_radeon_exit(void) { radeon_remove(NULL); iounmap((void *)ioaddr); } MODULE_AUTHOR("Jean Delvare <khali@xxxxxxxxxxxx>"); MODULE_DESCRIPTION("ATI Radeon I2C bus driver"); MODULE_LICENSE("GPL"); module_init(i2c_radeon_init); module_exit(i2c_radeon_exit); |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Zitat:
Btw: you see, that this code (as many parts posted by you before) is under the GPL. So I hope you will publish your sources... |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
I will post it becouse i want other to know as well and learn becouse this isnt the usual topic and it is in the opensource topic.If you help it will be published soon if you need any info i can ask rivatuner or atitool author.
Hilfe!! :oops: |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Zitat:
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
You disapointed me Muetze how can you write code for other users how!I mean please...but ok i understand...I am not german thats why... :x
If someone knows C++ please translate this becouse if DP wants support for ATI translate it..i cant |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Zitat:
I am not willing to build your application and I am not willing to help you, as long as you only spam to get your result, directly fitting in your sources. You have not basic skills but want the highest achievements. I respect your endurance - really! Zitat:
Zitat:
But why you always get back here? Nobody else found in the english-speaking/writing boards/sites? It is really pathetic, what you try to do here... |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
If i can learn i need an example this is my way of learning but i dont know about yours...its just weird that u write code or translate for other for me u wont.But i want to learn aswell. :?
Or you dont know how to or you are just making a fool of yourself. :P |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
You still didn't got the point, razor.
For example, pick this ATI-Problem. You are posting code which is written in C (not C++, but that is not important here). It is also some code for linux-machines. Of course this is simply impossible to port 1:1 to a windows-machine as linux and windows differ extremely in talking to hardware. Three or four times we mentioned this fact - still you're posting linux-code. What @Muetze1 and myself and all the others here want from you: You already figured out that ATI uses the I2C-mechanism to publish the data we want to see. So why the hell don't you move your ass and learn HOW TO ACCESS I2C on a windows machine ? This is what @muetze1 and we all here name "basics". There you (and finally we all) will learn a lot more from. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Ich hab ne Geforce FX 5200; die hat keinen Temperatursensor, oder???
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
An example! :)
So if i am here to learn then YOU post a code since we all want to read ATI! :cry: |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
@Larsi, nein eine FX5200 hat keinen Temp.-Sensor.
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Zitat:
Zitat:
YOU want something, so YOU are requested to do something. It is a little bit stupid to state here, that WE HAVE TO post a code! I wrote many codes relating hardware, etc and basicly programmed it according to the documentation I got. The first 10 years of development was only a translation of documentation to code. The last time this changed a little bit due the internet - BUT: I only research problems while developing and not copying code. I develop by myself - so I can be proud of the work I have done and not all the other peoply I only copied and never again mention. You know my opinion and so stop writing me in any form about code or something else. Write your own code and ask if you have problem with specific parts of your code. We will help you - that's out of question... |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Muetze why the HELL are then people asking for ati reading its not only me..
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Zitat:
Why the HELL you are not willing to implement it by yourself? You've got the most sources, information etc - more than anybody else here according to the problem. So why the HELL you are not programming the thing and all is fine? Do your thing - I will not longer argue with you. If you have questions or problems with your code, the other will help (I think). Don't ask me - and stop offending me or other because we will not post your requested sources... |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Hi,
hab Windows 2000 und ne GeForce 6800 Ultra. Beim Start kommt das. --------------------------- ShowGPUTemp.exe - Fehler in Anwendung --------------------------- Die Ausnahme "Unbekannter Softwarefehler" (0x0eedfade) ist in der Anwendung an der Stelle 0x77e9bcb1 aufgetreten. Beim klick auf OK dann das: --------------------------- Anwendungsfehler --------------------------- Exception EOSError in Modul ShowGPUTemp.exe bei 0000D345. Systemfehler. Code: 87. Falscher Parameter. :shock: |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
I NEVER said i have the nessesary sources i never really said that only i2c read but its something for smbus accually its i2c_smbus read/write byte.So muetze here is your choice help me and other dudes since you know a lot and you have been here a lot longer than me and u are 10 years older than me.So i cant understand that much its obvious.It will be opensource i never said i will use it for my own projects!!!!
I really really reallllly doubt Catbytes that someone will help you.You need to pay...as posted earlier. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Zitat:
Zitat:
Zitat:
Zitat:
Zitat:
Zitat:
Zitat:
@turboPASCAL: Da ich nun auch eine nVidia drinne habe, konnte ich dein Tool gleich mal nutzen. Es läuft auf meiner (AGP & 512 MB - fast Sonderanfertigung) nVidia 7900GS 1a. Das einzige was mir auffiel ist, dass die Intervallveränderung recht fummelig ist (oder anders: klein) - aber man kann es nutzen (und das wohl recht selten). Top Tool! :thumb: |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Zitat:
No i dont and i say it last time!I only have c++ but i dont know c++ so it dosent doo me good understand it muetze for one time i beg you.I had bad moments when we first chated via this forum.. @turboPASCAL> Why cant u make an ATI radeon reading for voltage and stuff i can provide datasheets for ati sensors i2c info voltage regulator but c++!I bet if people voted it would be yes we want it! :thumb: |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
@Catbytes, das Tool ist ab XP (jedenfalls getested ab XP). Ich kann leider einen Fehler unter Win 2000 nicht "testen". Aus diesem und anderen Gründen ist das Prg. Opensource damit ihr ggf. solche Fehler
finden oder sogar beseitigen könnt. @Muetze1, och danke. Ja die Einstellung des Timers ist sau schlecht. Mir ist aber noch nichts besseres Eingefallen. Steht aber schon lage auf der ToDo-Liste. ( Um was gehts denn bei euch beiden mit dem I²C - Bus ? Ich verstehe nur die halbe Hälfte... ) Im Moment steht eine kleine Layoutänderung an, Codename "Easy XP Glassy" ( ![]() |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
He dosent know english :lol:
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
He doesn' t know English :stupid: (this shall only be a correction, not a fact).
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Weird he spoked with me once i think its just a camoflage ROFL! :lol:
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Hallo,
Hab jetzt alles durchgelesen, aber keiner hat so richtig den Fehler bei Vista erkannt. Hat jemand ne Lösung gefunden unter Vista die GPU Temp auszulesen? Gruss Rami |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Zitat:
Es liegt einfach an den Treibern von Vista /nVidia. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Code:
..: * :..
Show GPU Temperatur Version 1.0.20 Build 98 Das Tool ist geeignet ab Windows XP 32 - Bit Features: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * animiertes Trayicon zur Anzeige des akt. Temperatur Statuses * Änderung der Anzeigeart des Trayicons durch Doppelklick * Option zum Starten das Programms als "nur Trayicon" * das speichern der Einstellungen wählbar * "Starten mit Windows" möglich * Akustische Warnung * Log.- Funktion Die Bedeutung der Farben in der Anzeige: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----- (Rot) - Showdown - Temperatur (wenn unterstützt) ----- (Grün) - Umgebungstemperatur (wenn unterstützt) -...- (Gelb bis Rot) - Temperaturverlauf der (GPU wenn unterstützt) ----- (Rot/Gelb) - max. erreichte Temp. seit Messung ----- (Blau) - Temperaturgrenze zur akustischen Warnung (einstellbar) ----- (Grau) - CPU Auslastung* (Optional) *Eine maximale Auslastung von 100 % entspricht 100 °C, dies hat aber nichts mit der CPU-Temperatur selbst zu tun. Akustische Warnung: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * anzeigen bzw. aktivieren/deaktivieren mit einem Doppelklick auf die Anzeige * einstellen mit gedrückter Controltaste ("Strg" bzw. "Ctrl" - Taste) und gleichzeitig gedrückter linker Maustaste (oder einfach rechte die Maustaste nutzen) Der Alarm ist Aktiv wenn die Anzeige "Alert by" sichtbar ist. Das Tool wurde erfolgreich auf folgenden Systemen getestet: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +===================+=============+================================= | OS: | Servicepack | Grafikkarte (oder Prozessor): +===================+=============+================================= | Windows XP | Sp1 | nVIDIA 6600 GT +-------------------+-------------+--------------------------------- | Windows XP | ? | GeForce 6700 XL (von Medion) +-------------------+-------------+--------------------------------- | Windows XP | ? | WinFast 8800 GTS (von Leadtek) +-------------------+-------------+--------------------------------- | Windows XP | Sp1 od. SP2 | Nvidia 7600 GT +-------------------+-------------+--------------------------------- | Windows XP | Sp1 od. SP2 | GeForce 7600 Go +-------------------+-------------+--------------------------------- | Windows XP | Sp1 od. SP2 | GeForce 7800 GTX +-------------------+-------------+--------------------------------- | Windows XP | Sp1 od. SP2 | GeForce 7900 GTO +-------------------+-------------+--------------------------------- | Windows XP | Sp1 od. SP2 | GeForce 8500 GT +-------------------+-------------+--------------------------------- Für Vista gibt es zurzeit keine entsprechenden Treiber der Hersteller (nVidia) die das Auslesen der Temperatur ermöglichen. Leider gilt das auch für Windows XP-64Bit. ..: * :.. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Moin,
nur beim 1. Start kommt bei mir eine Zugriffsverletzung und kurz danach dann die Meldung, dass im Ordner Anwendungsdaten die Einstellungen gespeichert werden. Wenn man den Ordner wieder löscht und dann das Programm wieder startet kommt der gleiche Fehler, hängt imho also damit zusammen. Ansonsten funktioniert es wie erwartet auch auf einer nVIDIA 6600GT. EDIT: XP SP1 |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Hi. scheint ne geile Sache zu sein. Naja, wie schon der ein oder andere gesagt hat, ein paar Kinderkrankheiten hats noch (Zugriffsverletzung).
Vllt könntest du dein Tool erweitertn, das man es so mit jeder Grafikkarte nutzen kann. Also z.b. das man beim ersten Start seine Graka wählen kann und von dieser die Temperatur auslesen kann. In sofern sie einen Sensor dafür hat. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Die AV, sollte nun beseitigt sein. Man kann nun mal auf nix malen wenn nix da ist. ;)
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Die Version funktioniert weiterhin mit der GeForce 6700 XL von Medion (ist entweder 6600 GT oder 6800 ?? ...).
Wäre nett, wenn man bestimmte Prozesse (z.B. die von BOINC) auslassen könnte ;) Weil BOINC sozusagen nur die ungenutzte Kapazität nutzt, und wieder freigibt... Naja xD Eigentlich ist es ja eine GPU Temperaturanzeige xD Übrigens hast du ein kleinen Fehler drinne: Hinweis beim Start: --------------------------- ! --------------------------- Da das Programm zum erstem mal, oder eine neurere Version gestarted wurde beachten Sie bitte, das Daten in den Ordner "C:\Dokumente und Einstellungen\xZise_2\Anwendungsdaten\tp.Software\ GPU Temperature\" geschrieben werden. MatthiasG. aka turboPASCAL, Member of ![]() --------------------------- OK --------------------------- Achso: Eine Aussagekräftige Caption wäre schon nett (z.B. "Hinweis") :) MfG xZise PS: Bei mir kam es vor, dass es sich manchmal einfach irgendwann beendet hat. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Was ist ein "BOINC" ?
"gestarted" wird zum Nächten Geändert zu "gestartedt" Zitat:
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Naja... Ich werde leider nicht darüber in Kenntnis versetzt :) Wie wäre es mit einem sehr kleinen Log? Der einfach nur sagt:
"Died: ..." Würde jedes mal eine neue Zeile angelegt wäre das perfekt! MfG xZise PS: BOINC ist eine Plattform für verteiltes Rechnen (siehe Wikipedia) und verwaltet mehrere Projekte die im Hintergrund laufen und nur die Freiräume der CPU sozusagen ausfüllen. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Log-Funktion ist doch dabei, eine Grosse und eine kleine Version.
Guch dir einfach mal die .Ini an. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
So, ich kann es auch nicht im neuen Jahr 2008 lassen... 'n Update zu finden im Post #1
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Mehr ist dir nicht aufgefallen?
Zitat:
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
hab och ma gespannt reingeguckt und es sieht eigentlich ganz toll aus, aber wo kann ich mir 'nen Sensor für meine kleine 6600er runterladen? :roll:
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Moin,
kann man sich sowas runterladen? Einige low-budget Grafikkarten haben gar keinen Sensor. Anscheinend gibt es sogar Modelle von der 6600GT wo die Temperaturanzeige im Bios deaktiviert wurde. Ganz Mutige können dann versuchen das Bios der Grafikkarte ![]() Die 6600 ist ja nun noch billiger wie die 6600GT. |
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
@Muetze1, jaja.... men dutch un me daschdadur, die passe nu gar ned uffenand ;)
Es ist ja nun mal so das man beim schreiben keine Fahler findet sondern immer erst dann wenn es fertig ist etc. |
Re: [Tool] GPU - Themperaturanzeige (fur nVidia Grafikkarten
Zitat:
Das Tool find ich recht geil, was man noch verbässern könnte wäre die Ausgabe der Zahlen. Weil des nen bissel ungenau ist. |
Re: [Tool] GPU - Themperaturanzeige (fur nVidia Grafikkarten
Zitat:
Zitat:
|
Re: [Tool] GPU - Temperaturanzeige (für nVidia Grafikkarten.
Ich schreibe jetzt nicht nicht, dass ich kein Update nicht hochgeladen hab. :stupid:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:36 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz