Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

Soplos Linux

  1. Home
  2. English forums
  3. Kernels
  4. Subject: Bug Report: Kernel Regression on MacBook Pro 11,5 (Mid 2015) – applesmc Fan Control Broken & GPU Thermal Hangs

Subject: Bug Report: Kernel Regression on MacBook Pro 11,5 (Mid 2015) – applesmc Fan Control Broken & GPU Thermal Hangs

Scheduled Pinned Locked Moved Kernels
11 Posts 2 Posters 160 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Dan669D Offline
    Dan669D Offline
    Dan669
    wrote last edited by
    #1

    Hi Sergi,
    I am running Soplos Linux (Debian Forky/Testing branch) on a MacBook Pro 15-inch Mid 2015 (MacBookPro11,5) with an Intel Haswell CPU and AMD Radeon R9 M370X dGPU (amdgpu).
    After upgrading to your latest kernel build, the system started overheating significantly, leading to two black-screen video crashes (GPU hangs with keyboard backlights still on). The thermal paste on the machine is fresh (replaced 1.5 years ago).

    The Issues:

    1. Broken Fan Modulation (PWM): The kernel loses the ability to dynamically control fan speeds via PWM. Fans get permanently stuck at absolute hardware maximums (~6100 / 5700 RPM) even when the system is idle.
    2. Kernel Lockdown / Write Protection: Attempting to force the fans back into automatic mode by writing to sysfs registers results in a Permission denied error, even under root privileges, suggesting a strict Kernel Lockdown restriction on the applesmc module platform paths.

    Technical Logs & Outputs:

    1. sensors Output (System at idle, fans stuck at max, pwm unavailable):

    applesmc-isa-0300
    Adapter: ISA adapter
    Left side : 6157 RPM (min = 2160 RPM, max = 6156 RPM)
    Right side : 5696 RPM (min = 2000 RPM, max = 5700 RPM)
    TC0E: +75.2°C
    TG0D: +71.8°C
    pwm1: N/A
    pwm2: N/A

    amdgpu-pci-0100
    Adapter: PCI adapter
    edge: +79.0°C (crit = +120.0°C, hyst = +90.0°C)
    sclk: 300 MHz
    mclk: 1 GHz

    coretemp-isa-0000
    Adapter: ISA adapter
    Package id 0: +75.0°C (high = +84.0°C, crit = +100.0°C)

    1. Daemon (mbpfan.service) failing due to missing fan detection:

    mbpfan[3588]: mbpfan 2.4.0 starting up
    mbpfan[3588]: mbpfan could not detect any fan. Please contact the developer.
    systemd[1]: mbpfan.service: Main process exited, code=exited, status=1/FAILURE

    (Note: /sys/devices/platform/applesmc.768 does exist in the system, but the daemon cannot communicate with it properly under this kernel).
    3. Write lock on applesmc sysfs attributes (even with sudo):

    $ sudo sh -c 'echo 0 > /sys/devices/platform/applesmc.768/fan1_manual'
    sh: 1: cannot create /sys/devices/platform/applesmc.768/fan1_manual: Permission denied

    Downgrading to your previous kernel build immediately restores quiet, smooth, and dynamic fan control, keeping idle temperatures comfortably between 64°C – 75°C.
    Thank you for your amazing work on these kernels! Let me know if you need any further logs.
    Best regards,
    Dan

    1 Reply Last reply
    0
    • subdesS Offline
      subdesS Offline
      subdes
      wrote last edited by
      #2

      Hi Dan,

      Thanks for the very detailed report. To see what changed between the two kernels, we need a few details. With the new kernel booted, please paste the output of:

      uname -r
      cat /sys/kernel/security/lockdown
      lsmod | grep applesmc
      ls -l /sys/devices/platform/applesmc.768/ | grep fan
      sudo dmesg | grep -iE "applesmc|lockdown|smc"
      

      And the output of uname -r with the previous kernel, so we can compare versions. One note: pwm1 and pwm2 showing N/A is normal for applesmc, which doesn't expose those attributes and uses fanX_output and fanX_manual instead. What matters is why writing to them is not possible now.

      Best regards

      🐧 Sergi Perich — Creator of Soplos Linux


      soplos.org · YouTube

      1 Reply Last reply
      0
      • Dan669D Offline
        Dan669D Offline
        Dan669
        wrote last edited by
        #3

        Hi Sergi,
        Here are the outputs from the commands you requested. As you can see, under this new kernel, the behavior has changed significantly. Lockdown is no longer active, but we have run into a completely different issue directly inside the applesmc driver itself.
        Here are the full details:

        1. Running Kernel Version

        bash
        $ uname -r
        7.3.0-soplos-v1

        1. Kernel Lockdown State

        bash
        $ cat /sys/kernel/security/lockdown
        [none] integrity confidentiality

        (This is fine now. Lockdown is disabled [none], so in theory, nothing should be blocking sysfs writes anymore).

        1. Checking the applesmc Module

        bash
        $ lsmod | grep applesmc
        applesmc 32768 0

        (The module is successfully loaded into memory).

        1. Listing sysfs Attributes for Fans

        bash
        $ ls -l /sys/devices/platform/applesmc.768/ | grep fan
        $

        (This command returned absolutely nothing. The /sys/devices/platform/applesmc.768/ directory exists, but under this new kernel, attributes like fanX_manual or fanX_output were not created at all. This explains why mbpfan fails to detect any fans).

        1. dmesg Logs

        bash
        $ sudo dmesg | grep -iE "applesmc|lockdown|smc"
        [ 0.012539] ACPI: SSDT 0x0000000078D7D000 000024 (v01 APPLE SmcDppt 00001000 INTL 20140424)
        [ 9.516864] applesmc: unknown parameter 'legacy_format' ignored
        [ 9.650262] applesmc: key=758 fan=2 temp=52 index=47 acc=0 lux=2 kbd=1

        Key Finding:

        Notice this specific line in the log:
        [ 9.516864] applesmc: unknown parameter 'legacy_format' ignored
        It looks like in the new upstream 7.x kernel series, some module parameters have been renamed or completely removed, or there was a heavy refactor in applesmc.c. While the module successfully probes the hardware and recognizes there are 2 fans (fan=2), it fails to expose the sysfs interfaces because of the unrecognized/ignored module parameter or a structural change in the driver initialization.
        Do you have the legacy_format parameter hardcoded in the new kernel config or inside /etc/modprobe.d/? It seems the new applesmc code no longer recognizes it, which leaves userspace fan management completely broken.
        Let me know what we should try next!
        Best regards,
        Dan
        Should I try removing the legacy_format parameter from the modprobe configuration files in /etc/modprobe.d/ (if present) and reload the module, or would you prefer to inspect the 7.3.0 kernel source code to see what changed with this driver?

        1 Reply Last reply
        0
        • Dan669D Offline
          Dan669D Offline
          Dan669
          wrote last edited by
          #4

          Hi Sergi,
          I have some deeper insights after testing both the initial install kernel (7.2.10) and the latest 7.3.0-soplos-v1.
          The constant maximum fan speeds (~6150 / 5700 RPM) are actually a hardware-level SMC failsafe trigger, not a generic lock. The laptop is physically boiling immediately after boot, with both the CPU and dGPU sitting at 79°C – 81°C in absolute idle. The chassis and the aluminum hinge area are burning to the touch, and the exhaust air is very hot, so the fans are doing their job, but they can't keep up with the heat source.
          Here is the smoking gun from sensors under idle:
          bash
          amdgpu-pci-0100
          Adapter: PCI adapter
          edge: +81.0°C
          sclk: 300 MHz
          mclk: 1 GHz

          The Core Issue:
          Even when forcing the performance level to low via sysfs, the memory clock (mclk) remains permanently stuck at 1 GHz (maximum state) while the system is idle. Only the sclk drops to 300 MHz. This creates a massive thermal load (the battery interface reports an idle drain of 1.18 A @ 11.04 V ≈ ~13W just for the board package).
          Additionally, trying to pass "battery" to power_dpm_force_performance_level now rejects the input with an Invalid argument error, confirming that the power profiles have changed or broken in the upstream 7.x transitions.
          It looks like the 7.x kernel series introduced a severe power management regression for the AMD Radeon R9 M370X (amdgpu/Cape Verde family), preventing the dGPU from entering proper low-power states. The SMC simply steps in to prevent thermal meltdown, running the fans at 100% hard limits because the sysfs fan attributes are missing/refactored.
          Let me know if you want me to boot with specific amdgpu boot parameters (like amdgpu.dpm=0 or forced power states) to debug further!
          Best regards,
          Dan

          1 Reply Last reply
          0
          • Dan669D Offline
            Dan669D Offline
            Dan669
            wrote last edited by
            #5

            Hi Sergi,
            I did a clean boot using the Apple native boot picker (holding Alt/Option), completely bypassing the OpenCore loader to ensure the 7.x kernel reads unmodified ACPI tables.
            The issue persists, but the timeline reveals the exact breakdown:

            1. Immediately after boot (System Idle - OK):
              • Fans: Modulating correctly at medium speeds (~3900 / 3600 RPM).
              • dGPU: sclk: 400 MHz / mclk: 1 GHz. Temperatures around 74°C–78°C.
              • Battery: Charging lock releases (0.00 A current, 11.40 V).
            2. After a few minutes in idle (The Breakdown):
              • dGPU PM Fails: The amdgpu driver fails to keep the card down. The core clock suddenly spikes and gets stuck at sclk: 800 MHz / mclk: 1 GHz.
              • Thermal Soak: Internal board/chassis temperatures (TM0P, TPCD) immediately jump by ~7°C as the dGPU dumps massive heat.
              • SMC Failsafe: As soon as the heat spreads, the hardware SMC chip takes over and locks the fans back to absolute maximums (6156 / 5701 RPM) to prevent a meltdown.
              Conclusion:
              OpenCore is not the culprit. The 7.x kernel has a severe idle power management regression with the AMD Radeon R9 M370X. After a few minutes of uptime, amdgpu loses power control, the card starts cooking the chassis, and the hardware SMC steps in with a 100% fan emergency override because the kernel lacks the sysfs fan modulation attributes to handle it gracefully.
              Best regards,
              Dan
            1 Reply Last reply
            0
            • Dan669D Offline
              Dan669D Offline
              Dan669
              wrote last edited by
              #6

              Hi Sergi,
              You can close this report and please don't waste any time on it.
              I'm so sorry!
              I managed to boot the machine into macOS Sequoia and the results are identical—the CPU immediately spikes to 97°C and the fans max out at 5000+ RPM under zero load.
              The missing sysfs attributes in kernel 7.3 simply caused mbpfan to fail, which allowed the hardware SMC chip to take full emergency control and run the fans at 100% to protect the dying hardware. The underlying issue is a physical thermal failure inside the laptop (most likely a ruptured heatpipe or zero mounting pressure), not a regression in your kernel config.
              Thanks again for your time and your awesome work on Soplos Linux!
              Best regards,
              Dan

              1 Reply Last reply
              0
              • subdesS Offline
                subdesS Offline
                subdes
                wrote last edited by
                #7

                Hi Dan!

                No need to apologize at all, quite the opposite. The diagnostic work you did was absolutely brilliant. You ruled out layer after layer (OpenCore, kernel parameters, GPU power management) until you got to the root of the problem.

                It's a shame it's a physical failure in the laptop (the heatpipe/mounting pressure theory makes perfect sense with those 97°C in macOS), but on the other hand, it's a huge relief to know it's not a regression in Soplos or the 7.x kernel. The fact that the SMC is forcing the fans to maximum is literally the system trying to save the machine.

                I'll consider this report closed and don't worry about it anymore. Thank you so much for the amazing investigation you did and for the care you put into the project. Best regards, and I hope you can get that MacBook repaired!

                🐧 Sergi Perich — Creator of Soplos Linux


                soplos.org · YouTube

                1 Reply Last reply
                0
                • Dan669D Offline
                  Dan669D Offline
                  Dan669
                  wrote last edited by
                  #8

                  Thanks for the kind reply.
                  It's no drama. Fortunately heattthing is one of the cheapest parts. And I'll check if the mbp was really treated with new thermal paste. Fortunately, in the time I've been digging around in mbp's I've accumulated 5.5, 9.2, 10.1 and the heating 11.5. So there's something to work on.

                  1 Reply Last reply
                  0
                  • subdesS Offline
                    subdesS Offline
                    subdes
                    wrote last edited by
                    #9

                    Hi Dan!

                    Glad to see you're taking it philosophically. You're absolutely right, cooling parts are usually one of the cheapest things to replace, and if you already have a good stash of spares from the 5.5, 9.2, 10.1 and 11.5 models, you've got some fun work ahead. Hopefully it's just the thermal paste and you can bring it back to life without much drama.

                    As a fun fact, I'm actually on the lookout for a 2012 MBP precisely so I can recover and test the very first Soplos Linux ISOs I made back in 2013. So I totally get the affection for these machines!

                    Best regards, and let us know how the surgery goes!

                    🐧 Sergi Perich — Creator of Soplos Linux


                    soplos.org · YouTube

                    1 Reply Last reply
                    0
                    • Dan669D Offline
                      Dan669D Offline
                      Dan669
                      wrote last edited by
                      #10

                      Hi Sergi,
                      I haven't gotten around to the repair yet—we had a holiday, so the whole week was thrown off. If it's just thermal paste on the 11.5-inch MBP, I'll try replacing it with Grizzly thermal tape this time. In the meantime, I installed Soplos Linux Tyson on MacBook Pro 9,2 (8+8 GB Hynix RAM and P210 SSD), and it runs like a charm. I haven’t run into any issues so far. The only minor thing is creating a web app using your application—it only allows you to use Firefox. I use Brave, Origin, and Zen, so I handled it the old-fashioned way.
                      Thanks again for the great work. As usual, the installation and fine-tuning went by in a flash and without any issues.
                      Soplos is a lifesaver for older Intel MBP's. Aside from the typically tedious process of installing vanilla Debian, I don’t know of a better option for this hardware yet.

                      1 Reply Last reply
                      0
                      • subdesS Offline
                        subdesS Offline
                        subdes
                        wrote last edited by
                        #11

                        Hi Dan,

                        Thanks for sharing it! We're really glad Tyson runs so well on the MacBook Pro 9,2 and that you see it as a good option for older Intel MBPs. Good luck with the repair on the other machine.

                        About web app creation, thanks for pointing out that it only allows Firefox, we've noted it.

                        Best regards

                        🐧 Sergi Perich — Creator of Soplos Linux


                        soplos.org · YouTube

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups