Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: trulyspinach/SMCAMDProcessor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.6.4
Choose a base ref
...
head repository: trulyspinach/SMCAMDProcessor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jun 3, 2020

  1. Update README.md

    trulyspinach authored Jun 3, 2020
    Copy the full SHA
    81b501a View commit details

Commits on Jul 2, 2020

  1. Copy the full SHA
    9c5de0b View commit details

Commits on Jul 22, 2020

  1. Merge pull request #92 from ankurpandeyvns/patch-1

    Fixed the project URL
    trulyspinach authored Jul 22, 2020
    Copy the full SHA
    5aa7136 View commit details

Commits on Sep 3, 2020

  1. Copy the full SHA
    f32a371 View commit details
  2. r0.6.5

    trulyspinach committed Sep 3, 2020
    Copy the full SHA
    b79d724 View commit details

Commits on Sep 18, 2020

  1. Update README.md

    trulyspinach authored Sep 18, 2020
    Copy the full SHA
    a07fc9f View commit details

Commits on Oct 6, 2020

  1. Update README.md

    trulyspinach authored Oct 6, 2020
    Copy the full SHA
    31bb136 View commit details
  2. [CodeFactor] Apply fixes

    code-factor committed Oct 6, 2020
    Copy the full SHA
    1998e51 View commit details
  3. Merge pull request #103 from trulyspinach/master-cf-autofix

    Apply fixes from CodeFactor
    trulyspinach authored Oct 6, 2020
    Copy the full SHA
    912ade0 View commit details

Commits on Oct 7, 2020

  1. Copy the full SHA
    666d73a View commit details

Commits on Oct 8, 2020

  1. Merge pull request #107 from dmb1107/master

    Replaced count <= 0 with isEmpty
    trulyspinach authored Oct 8, 2020
    Copy the full SHA
    181ee45 View commit details

Commits on Nov 19, 2020

  1. Zen 3 check bypass

    trulyspinach committed Nov 19, 2020
    Copy the full SHA
    84d6bac View commit details
  2. Copy the full SHA
    a686d73 View commit details
  3. Create FUNDING.yml

    trulyspinach authored Nov 19, 2020
    Copy the full SHA
    b54b2cf View commit details
  4. Update FUNDING.yml

    trulyspinach authored Nov 19, 2020
    Copy the full SHA
    63f373d View commit details
  5. Update README.md

    trulyspinach authored Nov 19, 2020
    Copy the full SHA
    34e285a View commit details

Commits on Nov 20, 2020

  1. r0.6.6

    trulyspinach committed Nov 20, 2020
    Copy the full SHA
    d97b924 View commit details
  2. Copy the full SHA
    f609116 View commit details

Commits on Dec 11, 2020

  1. Update README.md

    trulyspinach authored Dec 11, 2020
    Copy the full SHA
    6d38c9d View commit details

Commits on Mar 8, 2021

  1. Copy the full SHA
    e08e391 View commit details

Commits on Mar 9, 2021

  1. Merge pull request #128 from MrMage/crisp-rendering

    Improve the crispness of text and line rendering, especially on Retina displays.
    trulyspinach authored Mar 9, 2021
    Copy the full SHA
    4fd1b4a View commit details

Commits on Jul 1, 2021

  1. fix some text

    trulyspinach committed Jul 1, 2021
    Copy the full SHA
    d85dfdb View commit details

Commits on Jul 29, 2021

  1. Update Main.storyboard

    fix some text
    trulyspinach committed Jul 29, 2021
    Copy the full SHA
    82415ee View commit details
  2. Update Main.storyboard

    fix more text
    trulyspinach committed Jul 29, 2021
    Copy the full SHA
    f9fb3c3 View commit details
  3. Update Main.storyboard

    fix even more texts
    trulyspinach committed Jul 29, 2021
    Copy the full SHA
    e199c97 View commit details
  4. fix layout

    trulyspinach committed Jul 29, 2021
    Copy the full SHA
    7ecdfe7 View commit details
  5. basic statusbar display

    trulyspinach committed Jul 29, 2021
    Copy the full SHA
    e83007f View commit details
  6. hidable statusbar

    trulyspinach committed Jul 29, 2021
    Copy the full SHA
    4c50453 View commit details
  7. Update README.md

    trulyspinach committed Jul 29, 2021
    Copy the full SHA
    bfcfb17 View commit details

Commits on Jul 30, 2021

  1. more text fixes

    trulyspinach committed Jul 30, 2021
    Copy the full SHA
    c5996be View commit details
  2. smooth temp curve

    trulyspinach committed Jul 30, 2021
    Copy the full SHA
    aece378 View commit details
  3. login helper

    trulyspinach committed Jul 30, 2021
    Copy the full SHA
    c55f0e0 View commit details

Commits on Jul 7, 2022

  1. Fix wrong KC segment name, thanks @mhaeuser and @PMheart

    `__PRELINK_TEXT` was a deprecated marker segment that broke with macOS 13 b3; `__TEXT_EXEC` is the actual inner kernel segment
    
    Commit derived from acidanthera/Lilu@37e93c6
    ExtremeXT authored Jul 7, 2022
    Copy the full SHA
    b90684f View commit details

Commits on Jul 8, 2022

  1. Merge pull request #149 from extremegrief1/master

    Add support for macOS Ventura beta 3+
    trulyspinach authored Jul 8, 2022
    Copy the full SHA
    b650a35 View commit details

Commits on Jul 12, 2022

  1. r0.7.1

    trulyspinach committed Jul 12, 2022
    Copy the full SHA
    d6b1c35 View commit details

Commits on Sep 19, 2022

  1. Fixed typo in Main.storyboard

    Fix typo optimze -> optimize in description of Automatic Speed Adjustment config option.
    gajdosech2 authored Sep 19, 2022
    Copy the full SHA
    46a16ea View commit details

Commits on Oct 22, 2022

  1. Merge pull request #157 from gajdosech2/patch-1

    Fixed typo in Main.storyboard
    trulyspinach authored Oct 22, 2022
    Copy the full SHA
    8ca5022 View commit details

Commits on May 14, 2023

  1. Add CHIP 6799D

    Massimiliano Barbierato committed May 14, 2023
    Copy the full SHA
    e342598 View commit details
  2. refactor

    Massimiliano Barbierato committed May 14, 2023
    Copy the full SHA
    29a53f4 View commit details
  3. Copy the full SHA
    a994aec View commit details
  4. Copy the full SHA
    defec8c View commit details

Commits on Jul 22, 2023

  1. fix #issues 163: Not Publishing CPU Temperature Readings in the versi…

    …on after 0.6.4
    Chengyong Lin committed Jul 22, 2023
    Copy the full SHA
    079cf0c View commit details

Commits on Sep 15, 2023

  1. Merge pull request #166 from Lorys89/master

    added AM5 chipset fan reading support (NCT6799D)
    trulyspinach authored Sep 15, 2023
    Copy the full SHA
    673ba36 View commit details

Commits on Sep 26, 2023

  1. clean up

    annoying copyright comments in Xcode file templates.
    trulyspinach committed Sep 26, 2023
    Copy the full SHA
    36dc08b View commit details
  2. another clean up

    of annoying copyright comments in Xcode file templates.
    trulyspinach committed Sep 26, 2023
    Copy the full SHA
    79fb978 View commit details
  3. Setup cd (#171)

    trulyspinach authored Sep 26, 2023
    Copy the full SHA
    d26cf8c View commit details
  4. Update README.md

    trulyspinach authored Sep 26, 2023
    Copy the full SHA
    f09e6d9 View commit details

Commits on Sep 28, 2023

  1. Update README.md

    trulyspinach authored Sep 28, 2023
    Copy the full SHA
    100ad30 View commit details
  2. Update README.md

    trulyspinach authored Sep 28, 2023
    Copy the full SHA
    d4fac21 View commit details

Commits on Sep 29, 2023

  1. continued fix #issues 163: Not Publishing CPU Temperature. Avoid pote…

    …ntial additional effects
    Chengyong Lin committed Sep 29, 2023
    Copy the full SHA
    44475e5 View commit details
Showing with 3,022 additions and 405 deletions.
  1. +3 −0 .github/FUNDING.yml
  2. +49 −0 .github/workflows/main.yml
  3. +5 −1 .gitignore
  4. +3 −0 .gitmodules
  5. +97 −4 AMD Power Gadget/AppDelegate.swift
  6. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_128x128.png
  7. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png
  8. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_16x16.png
  9. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_16x16@2x.png
  10. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_256x256.png
  11. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png
  12. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_32x32.png
  13. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png
  14. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_512x512.png
  15. BIN AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png
  16. +65 −56 AMD Power Gadget/Base.lproj/Main.storyboard
  17. +14 −13 AMD Power Gadget/GraphView/GraphView.swift
  18. +5 −6 AMD Power Gadget/GraphView/GraphViewGridLineLayer.swift
  19. +7 −8 AMD Power Gadget/GraphView/GraphViewLineLayer.swift
  20. +1 −2 AMD Power Gadget/Power Tool/CPUBarLayer.swift
  21. +15 −16 AMD Power Gadget/Power Tool/CPUPowerStepView.swift
  22. +3 −4 AMD Power Gadget/Power Tool/CPUSpeedShiftView.swift
  23. +5 −6 AMD Power Gadget/Power Tool/PStateEditorViewController.swift
  24. +15 −6 AMD Power Gadget/Power Tool/PowerToolViewController.swift
  25. +31 −14 AMD Power Gadget/ProcessorModel.swift
  26. +198 −0 AMD Power Gadget/StatusbarController.swift
  27. +22 −5 AMD Power Gadget/System Monitor/SystemMonitorViewController.swift
  28. +9 −6 AMD Power Gadget/ViewController.swift
  29. +19 −5 AMDRyzenCPUPowerManagement/AMDRyzenCPUPMUserClient.cpp
  30. +2 −3 AMDRyzenCPUPowerManagement/AMDRyzenCPUPMUserClient.hpp
  31. +131 −97 AMDRyzenCPUPowerManagement/AMDRyzenCPUPowerManagement.cpp
  32. +34 −13 AMDRyzenCPUPowerManagement/AMDRyzenCPUPowerManagement.hpp
  33. +1,743 −0 AMDRyzenCPUPowerManagement/Headers/LegacyHeaders/LegacyIOService.h
  34. +57 −0 AMDRyzenCPUPowerManagement/Headers/LegacyHeaders/LegacyLibkernMacros.h
  35. +25 −0 AMDRyzenCPUPowerManagement/Headers/pmRyzenSymbolTable.h
  36. +1 −2 AMDRyzenCPUPowerManagement/SuperIO/ISLPCPort.h
  37. +0 −1 AMDRyzenCPUPowerManagement/SuperIO/ISSuperIOIT86XXEFamily.cpp
  38. +0 −1 AMDRyzenCPUPowerManagement/SuperIO/ISSuperIOIT86XXEFamily.hpp
  39. +1 −2 AMDRyzenCPUPowerManagement/SuperIO/ISSuperIONCT668X.cpp
  40. +1 −2 AMDRyzenCPUPowerManagement/SuperIO/ISSuperIONCT668X.hpp
  41. +19 −4 AMDRyzenCPUPowerManagement/SuperIO/ISSuperIONCT67XXFamily.cpp
  42. +2 −2 AMDRyzenCPUPowerManagement/SuperIO/ISSuperIONCT67XXFamily.hpp
  43. +1 −2 AMDRyzenCPUPowerManagement/SuperIO/ISSuperIOSMCFamily.hpp
  44. +16 −11 AMDRyzenCPUPowerManagement/pmAMDRyzen.c
  45. +5 −4 AMDRyzenCPUPowerManagement/pmAMDRyzen.h
  46. +81 −52 AMDRyzenCPUPowerManagement/symresolver/kernel_resolver.c
  47. +13 −2 AMDRyzenCPUPowerManagement/symresolver/kernel_resolver.h
  48. +10 −0 APGLaunchHelper/APGLaunchHelper.entitlements
  49. +35 −0 APGLaunchHelper/AppDelegate.swift
  50. +32 −0 APGLaunchHelper/Info.plist
  51. +12 −0 APGLaunchHelper/main.swift
  52. +1 −0 MacKernelSDK
  53. +33 −32 README.md
  54. +188 −13 SMCAMDProcessor.xcodeproj/project.pbxproj
  55. +7 −2 SMCAMDProcessor.xcodeproj/xcuserdata/qihaoyan.xcuserdatad/xcschemes/xcschememanagement.plist
  56. +1 −1 SMCAMDProcessor/Info.plist
  57. +1 −4 SMCAMDProcessor/KeyImplementations.hpp
  58. +1 −2 SMCAMDProcessor/Keyimplementations.cpp
  59. +3 −1 SMCAMDProcessor/SMCAMDProcessor.hpp
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms
ko_fi: trulyspinach

49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CD

on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]

env:
PROJECT_TYPE: KEXT
ACID32: 1

jobs:
build:
name: Build
runs-on: macos-latest
env:
JOB_TYPE: BUILD
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"

- name: Fetch Dependencies
run: |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1
git clone https://github.com/acidanthera/VirtualSMC.git
- name: Build All Schemes
run: |
xcodebuild -scheme "AMDRyzenCPUPowerManagement" -jobs 1 -arch x86_64 -arch ACID32 -configuration Release -derivedDataPath ./build
xcodebuild -scheme "APGLaunchHelper" -jobs 1 -arch x86_64 -arch ACID32 -configuration Release -derivedDataPath ./build
xcodebuild -scheme "AMD Power Gadget" -jobs 1 -arch x86_64 -arch ACID32 -configuration Release -derivedDataPath ./build
xcodebuild -scheme "SMCAMDProcessor" -jobs 1 -arch x86_64 -arch ACID32 -configuration Release -derivedDataPath ./build
- name: Archive Artifacts
run: |
rm -rf build/Build/Products/Release/*.dSYM
rm -rf build/Build/Products/Release/*.swiftmodule
rm -rf build/Build/Products/Release/APGLaunchHelper*
zip -r build/Release.zip build/Build/Products/Release
- name: Upload to Artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/Release.zip
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

Lilu.kext/
VirtualSMC.kext/
VirtualSMC/
SMCAMDProcessor.xcodeproj/
.DS_Store
.DS_Store

cleanup.py

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "MacKernelSDK"]
path = MacKernelSDK
url = https://github.com/Acidanthera/MacKernelSDK.git
101 changes: 97 additions & 4 deletions AMD Power Gadget/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -2,20 +2,24 @@
// AppDelegate.swift
// AMD Power Gadget
//
// Created by Qi HaoYan on 2/22/20.
// Copyright © 2020 trulyspinach. All rights reserved.
// Created by trulyspinach on 2/22/20.
//

import Cocoa
import ServiceManagement

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

var mbController: StatusbarController?

@IBOutlet weak var appearanceToggle: NSMenuItem!
@IBOutlet weak var statusbarToggle: NSMenuItem!
@IBOutlet weak var startAtLoginToggle: NSMenuItem!


@IBAction func openPage(_ sender: Any) {
NSWorkspace.shared.open(URL(string: "https://github.com/trulyspinach/AMDRyzenCPUPowerManagement")!)
NSWorkspace.shared.open(URL(string: "https://github.com/trulyspinach/SMCAMDProcessor")!)
}

@IBAction func gadget(_ sender: Any) {
@@ -27,18 +31,86 @@ class AppDelegate: NSObject, NSApplicationDelegate {
PowerToolViewController.launch()
}

static func launchGadget(){
ViewController.launch()
}

static func haveActiveWindows() -> Bool {
if !UserDefaults.standard.bool(forKey: "statusbarenabled") {return true}

return ViewController.activeSelf != nil
|| PowerToolViewController.activeSelf != nil
|| SystemMonitorViewController.activeSelf != nil
}

static func updateDockIcon() {
NSApplication.shared.setActivationPolicy(haveActiveWindows() ? .regular : .accessory)
}

@IBAction func changeAppearance(_ sender: Any) {
applyAppearanceSwitch(translucency: appearanceToggle.state == .off)
}

@IBAction func toggleStatusBar(_ sender: Any) {
applyStatusBarSwitch(enabled: statusbarToggle.state == .off)
}

@IBAction func startAtLogin(_ sender: Any) {
applyStartAtLogin(enabled: startAtLoginToggle.state == .off)
}

@IBAction func sysmonitor(_ sender: Any) {
SystemMonitorViewController.launch()
}

func applicationDidFinishLaunching(_ aNotification: Notification) {

let keyDefaults = [
"usetranslucency" : false,
"statusbarenabled": true,
"startAtLogin": false,
"startAtLoginAsked": false
]

UserDefaults.standard.register(defaults: keyDefaults)

let useTran = UserDefaults.standard.bool(forKey: "usetranslucency")
let sb = UserDefaults.standard.bool(forKey: "statusbarenabled")
let sl = UserDefaults.standard.bool(forKey: "startAtLogin")

if !UserDefaults.standard.bool(forKey: "startAtLoginAsked") {
askStartup()
UserDefaults.standard.set(true, forKey: "startAtLoginAsked")
} else { applyStartAtLogin(enabled: sl) }

applyStatusBarSwitch(enabled: sb)
applyAppearanceSwitch(translucency: useTran)


if !sb {
ViewController.launch()
}

}


func askStartup() {
let alert = NSAlert()
alert.messageText = "Startup at login?"
alert.informativeText = "Do you want AMD Power Gadget to start in menu bar at login? \n\n This will only be asked once. You can change this setting later under Appearance menu."
alert.alertStyle = .critical
alert.addButton(withTitle: "Yes")
alert.addButton(withTitle: "No")
let res = alert.runModal()

if res == .alertFirstButtonReturn {
applyStartAtLogin(enabled: true)
}

if res == .alertSecondButtonReturn {
applyStartAtLogin(enabled: false)
}
}

func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
ProcessorModel.shared.closeDriver()
@@ -51,5 +123,26 @@ class AppDelegate: NSObject, NSApplicationDelegate {

UserDefaults.standard.set(translucency, forKey: "usetranslucency")
}

func applyStatusBarSwitch(enabled: Bool) {
statusbarToggle.state = enabled ? .on : .off
if enabled {
if mbController == nil {
mbController = StatusbarController()
AppDelegate.updateDockIcon()
}
} else {
mbController?.dismiss()
mbController = nil
}

UserDefaults.standard.set(enabled, forKey: "statusbarenabled")
}

func applyStartAtLogin(enabled: Bool) {
startAtLoginToggle.state = enabled ? .on : .off
UserDefaults.standard.set(enabled, forKey: "startAtLogin")
SMLoginItemSetEnabled("wtf.spinach.APGLaunchHelper" as CFString, enabled)
}
}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified AMD Power Gadget/Assets.xcassets/AppIcon.appiconset/icon_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading