{"id":20122879,"url":"https://github.com/freaky/k8temp","last_synced_at":"2026-05-23T16:46:08.279Z","repository":{"id":15676155,"uuid":"18413648","full_name":"Freaky/k8temp","owner":"Freaky","description":"A utility to read the on-die temperature sensors on AMD K8/K10 CPUs on BSD systems.","archived":false,"fork":false,"pushed_at":"2014-04-03T19:39:10.000Z","size":316,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-13T07:32:12.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freaky.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-03T18:28:42.000Z","updated_at":"2014-04-03T19:39:11.000Z","dependencies_parsed_at":"2022-08-26T18:50:56.675Z","dependency_job_id":null,"html_url":"https://github.com/Freaky/k8temp","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fk8temp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fk8temp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fk8temp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fk8temp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freaky","download_url":"https://codeload.github.com/Freaky/k8temp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241566202,"owners_count":19983263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T19:41:36.850Z","updated_at":"2026-05-23T16:46:03.252Z","avatar_url":"https://github.com/Freaky.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"k8temp - AMD K8 thermal diode reader\n====================================\n\nSynopsis\n--------\nk8temp displays readings from the on-die thermal diodes found in most\nAMD K8 processors, including Athlon 64's and Opterons.\n\nAs of 0.4.0, k8temp can also produce values from AMD K10's, including\nBarcelona and Phenom.  This support is experimental, and is unlikely to\nreport realistic values at this time.\n\n\n=======\nWARNING\n=======\nSince this pokes at PCI registers, it has the potential to make your system\ncrash, reboot, catch fire, and frame you for conspiracy to murder heads of state.\n\nk8temp has caused at least one of these things to happen during development.\n\n\nInstallation\n------------\nIf you're on FreeBSD, consider using the port at sysutils/k8temp.\n\nOtherwise, just:\n\n  make\n  make install\n\nThe Makefile should detect any flags your OS needs.\n\nIf you want to try it on a system without bsd.prog.mk:\n\n  cc -o k8temp k8temp.c k8temp_devpci.c\n\nOpenBSD users (who have USER_PCI configured kernels) may want:\n\n  cc -DWITHOUT_PCIOCGETCONF -o k8temp k8temp.c k8temp_devpci.c\n\nNetBSD users can try:\n\n  cc -DWITH_LIBPCI -o k8temp k8temp.c k8temp_libpci.c\n\nBut note this has only been build tested (on FreeBSD and NetBSD/Sparc...)\n\nDragonFlyBSD should Just Work(tm), since it has an identical /dev/pci API\nto FreeBSD.\n\nLet me know if you get it working on systems other than FreeBSD 6 or 7.\n\n\nExamples\n--------\n-% sudo k8temp\nCPU 0 Core 0 Sensor 0: 35c\nCPU 0 Core 1 Sensor 0: 36c\nCPU 1 Core 0 Sensor 0: 33c\nCPU 1 Core 1 Sensor 0: 32c\n-% sudo k8temp -n 0:0:0 1:0:0\n35\n33\n-% sudo k8temp -d\nCPUID: Vendor: AuthenticAMD, Id=0x20f12 Model=1 Family=15 Stepping=2\nAdvanced Power Management=0xf\n   Temperature sensor: Yes\n Frequency ID control: Yes\n   Voltage ID control: Yes\n    THERMTRIP support: Yes\n   HW Thermal control: No\n   SW Thermal control: No\n   100MHz multipliers: No\n   HW P-State control: No\n        TSC Invariant: No\nThermtrip=0x0d540524 (CurTmp=0x54 (35c) TjOffset=0x0d DiodeOffset=0x05 (6c))\nCPU 0 Core 0 Sensor 0: 35c\nThermtrip=0x0d560520 (CurTmp=0x56 (37c) TjOffset=0x0d DiodeOffset=0x05 (6c))\nCPU 0 Core 1 Sensor 0: 37c\nThermtrip=0x0f530224 (CurTmp=0x53 (34c) TjOffset=0x0f DiodeOffset=0x02 (9c))\nCPU 1 Core 0 Sensor 0: 34c\nThermtrip=0x0f520220 (CurTmp=0x52 (33c) TjOffset=0x0f DiodeOffset=0x02 (9c))\nCPU 1 Core 1 Sensor 0: 33c\n\nYes, some AMD64's allegedly have two sensors per core.\n\n\nReferences\n----------\nBIOS and Kernel Developer's Guide for AMD NPT Family 0fh Processors.\n Section 4.6.23, Thermtrip Status Register.\n  http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32559.pdf\n\nBIOS and Kernel Developer's Guide (BKDG) For AMD Family 10h Processors\n Section 3.6.F3xA4, Reported Temperature Control Register.\n  http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/31116.pdf\n\nAMD CPUID Specification, revision 2.26.\n  http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25481.pdf\n\nLinux kernel, drivers/hwmon/k8temp.c\n\n\nBlame\n-----\nk8temp was written by Thomas Hurst \u003ctom@hur.st\u003e\n\nWWW:  http://hur.st/k8temp/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fk8temp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaky%2Fk8temp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fk8temp/lists"}