Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native smooth scaling does not work properly for Intel macs #1041

Closed
coolaj86 opened this issue Oct 3, 2022 · 7 comments
Closed

Native smooth scaling does not work properly for Intel macs #1041

coolaj86 opened this issue Oct 3, 2022 · 7 comments
Assignees
Labels
bug Something isn't working done All tasks are completed Intel Related to Macs with Intel architecture released Released
Milestone

Comments

@coolaj86
Copy link

coolaj86 commented Oct 3, 2022

I have two 2015 MacBook Pros that fault and reboot every other time or so that they go into sleep mode - but only when BetterDisplay is active.

  • one is a dual-graphics with macOS 12.5
  • the other is integrated graphics with macOS 12.6

I just reinstalled the second one fresh today and the only things I have installed are:

  • BetterDisplay
  • BetterTouchTool
  • Karabiner Elements
  • Brave
  • iTerm2, fish, gpg, and other developer tools

The problem seems to only occur when BetterDisplay is active - if I unplug my external monitors, going to sleep doesn't cause a faulty reboot.

When BetterDisplay is in use connected to two Apple Thunderbolt Displays (Thunderbolt 1), which are each set up to mirror and be optimized for their corresponding dummy display, the laptops will panic and reboot most times when they go into sleep.

This has been happening for several months (I believe it started after BetterDummy was renamed), but I waited until I was able to test on a fresh system to report it (I had some other display-related tools on the other system).

I'm not sure how to get proper system report that will help with debugging.

@waydabber
Copy link
Owner

Hi @coolaj86,

  • does the sleep issue arise when there is no dummy connected?
  • if not, then the issue might be that generally a mirrored dummy does this to macOS or a sleep workaround employed by the app causes this. To test the latter, you can try disabling all of these options:

Screenshot 2022-10-04 at 9 32 44

If the issue still persists, then we'll have a core macOS issue I am afraid which will be difficult to address. However if you want flexible HiDPI scaling, it might be better to use native smooth scaling. Now this latter feature was tested on Apple Silicon and will probably not work with the 2015 MBP - but not because it is impossible to make it work but because I simply did not have the Mac to properly test and tune the feature. If you are willing to help me test it with your 2015 MBPs (both with integrated and discrete graphics), we could make it work.

A related discussion: #1035 (reply in thread)

@waydabber waydabber changed the title BetterDisplay causes kernel panic & reboot on sleep on 2015 MBPs Kernel panic & reboot on sleep on 2015 MBPs when dummy mirroring is used Oct 4, 2022
@waydabber waydabber added investigating Investigating issue awaiting response from issue reporter Needs further info labels Oct 4, 2022
@waydabber waydabber changed the title Kernel panic & reboot on sleep on 2015 MBPs when dummy mirroring is used Better support for native smooth scaling for Intel macs Oct 5, 2022
@waydabber
Copy link
Owner

waydabber commented Oct 5, 2022

Hi @coolaj86 - there is an interim built you could test to see if native smooth scaling works with your Intel macs (it would be great if you could test both the discrete and integrated GPU versions).

(download removed)

This way you don't have to use dummies which probably causes the issue with those models. Enable it here (with dummies disconnected/discarded):

Screenshot 2022-10-05 at 10 03 06

@waydabber waydabber added enhancement New feature or request done All tasks are completed internal pre-release Enable internal pre-releases under Settings/Applications/Updates and removed investigating Investigating issue labels Oct 5, 2022
@waydabber waydabber self-assigned this Oct 5, 2022
@waydabber waydabber added this to the v1.3.2 milestone Oct 5, 2022
@coolaj86
Copy link
Author

coolaj86 commented Oct 5, 2022

Dual-Graphics 2015 Intel MBP

It took a few reboots, disconnecting the dummies, and switching the resolutions back and forth, but it did eventually work.

🥳

Screen Shot 2022-10-05 at 11 12 43 AM

Screen Shot 2022-10-05 at 11 32 59 AM

Screen Shot 2022-10-05 at 11 18 49 AM

Screen Shot 2022-10-05 at 11 29 57 AM

Screen Shot 2022-10-05 at 11 30 01 AM

Screen Shot 2022-10-05 at 11 30 17 AM

Screen Shot 2022-10-05 at 11 28 26 AM

Crisp fonts again at last!

@coolaj86
Copy link
Author

coolaj86 commented Oct 5, 2022

Integrated Graphics 2015 Intel MBP

Even doing it the second time the order of operations to transition was a little confusing, but it works!

🥳

Screen Shot 2022-10-05 at 11 38 35 AM

Screen Shot 2022-10-05 at 11 36 12 AM

Screen Shot 2022-10-05 at 11 43 09 AM

Many thanks! Pro is worth every penny!

@waydabber
Copy link
Owner

Great, thanks for the testing and the confirmation! :)

@coolaj86
Copy link
Author

coolaj86 commented Oct 6, 2022

Unfortunately, it still crashes on sleep.

Maybe it's just the fact that no one at Apple is still using Thunderbolt Displays and Thunderbolt 1 just isn't supported anymore.

I will just disable sleep. 🤷‍♂️

panic(cpu 0 caller 0xffffff8000ac3a1a): Wake transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOThunderboltFamily. Thread 0x14e454.
Failure code:: 0x00000004 00000027

Backtracing specified thread
Panicked task 0xffffff8b68f1d670: 229 threads: pid 0: kernel_task
Backtrace (CPU 0), panicked thread: 0xffffff9032eeb540, Frame : Return Address
0xfffffff2a8aab770 : 0xffffff80003c952b 
0xfffffff2a79cbc00 : 0xffffff80002aa642 
0xfffffff2a79cbc70 : 0xffffff80002a83d7 
0xfffffff2a79cbcc0 : 0xffffff8000294aae 
0xfffffff2a79cbcf0 : 0xffffff8000a434db 
0xfffffff2a79cbd30 : 0xffffff8000a44a9c 
0xfffffff2a79cbd60 : 0xffffff8002fd08ed 
0xfffffff2a79cbd80 : 0xffffff8002fcd639 
0xfffffff2a79cbdb0 : 0xffffff8002fccd7c 
0xfffffff2a79cbde0 : 0xffffff8000a2831f 
0xfffffff2a79cbe50 : 0xffffff8000a280ca 
0xfffffff2a79cbe70 : 0xffffff80002d2655 
0xfffffff2a79cbee0 : 0xffffff80002d3722 
0xfffffff2a79cbfa0 : 0xffffff800021f19e 
      Kernel Extensions in backtrace:
         com.apple.iokit.IOThunderboltFamily(9.3.3)[9AB070CC-D78B-30F5-9E6B-E74709EDA06B]@0xffffff8002fc9000->0xffffff80030affff
            dependency: com.apple.driver.AppleSMC(3.1.9)[795F0AA3-9CF8-3F06-BBC1-8EA86EB09FEA]@0xffffff8001a6f000->0xffffff8001a87fff

Process name corresponding to current thread (0xffffff9032eeb540): kernel_task

Mac OS version:
21G83

Kernel version:
Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64
Kernel UUID: D0DC2052-71F4-3DCB-B189-BEE5A59B3B42
KernelCache slide: 0x0000000000000000
KernelCache base:  0xffffff8000200000
Kernel slide:      0x0000000000010000
Kernel text base:  0xffffff8000210000
__HIB  text base: 0xffffff8000100000
System model name: MacBookPro11,5 (Mac-06F11F11946D27C5)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 97516888138176
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x000058b0eb7a2502
  Sleep   : 0x0000586a9cc44dc1 0x00000000766053e6 0x000051786431ec4f
  Wake    : 0x0000586abae2a27e 0x00000000767f8bcc 0x0000586ab2cdafc4
Compressor Info: 6% of compressed pages limit (OK) and 11% of segments limit (OK) with 1 swapfiles and OK swap space
Zone info:
  Zone map: 0xffffff803479d000 - 0xffffffa03479d000
  . PGZ   : 0xffffff803479d000 - 0xffffff803679e000
  . VM    : 0xffffff803679e000 - 0xffffff8502f9d000
  . RO    : 0xffffff8502f9d000 - 0xffffff869c79d000
  . GEN0  : 0xffffff869c79d000 - 0xffffff8b68f9d000
  . GEN1  : 0xffffff8b68f9d000 - 0xffffff903579d000
  . GEN2  : 0xffffff903579d000 - 0xffffff9501f9d000
  . GEN3  : 0xffffff9501f9d000 - 0xffffff99ce79d000
  . DATA  : 0xffffff99ce79d000 - 0xffffffa03479d000
  Metadata: 0xffffffb0749ed000 - 0xffffffb0949ed000
  Bitmaps : 0xffffffb0949ed000 - 0xffffffb09a9ed000

last started kext at 1157495379205: @UVCService	1 (addr 0xffffff7f994f9000, size 4096)
last stopped kext at 1403120501733: @UVCService	1 (addr 0xffffff7f994f9000, size 4096)
loaded kexts:
>!AFWOHCI	5.7.5
@filesystems.smbfs	4.0
>AudioAUUC	1.70
>!APlatformEnabler	2.7.0d0
>AGPM	129
>X86PlatformShim	1.0.0
@kext.AMDFramebuffer	4.0.8
>!AUpstreamUserClient	3.6.9
@filesystems.autofs	3.0
>!AHDA	340.2
@kext.AMDRadeonX4000	4.0.8
@kext.AMDRadeonServiceManager	4.0.8
>eficheck	1
>!A!IHD5000Graphics	18.0.8
>!AGraphicsDevicePolicy	6.5.7
>AGDCBacklightControl	6.5.7
>!AMuxControl	6.5.7
@AGDCPluginDisplayMetrics	6.5.7
>!ACameraInterface	7.9.1
>pmtelemetry	1
|IOUserEthernet	1.0.1
>usb.!UUserHCI	1
>!AHV	1
>!ADiskImages2	126.141.2
>!AMCCSControl	1.16
>!A!IFramebufferAzul	18.0.8
>!ALPC	3.1
@kext.AMD7000!C	4.0.8
>!A!ISlowAdaptiveClocking	4.0.0
>!ASMCLMU	212
>!AThunderboltIP	4.0.3
>!UDisplays	380
>!ATopCaseHIDEventDriver	5450.8
>!UTopCaseDriver	5450.8
|SCSITaskUserClient	456.140.3
>!UCardReader	533.120.2
|!ABCM5701Ethernet	11.0.0
>!AAHCIPort	351.100.4
>AirPort.BrcmNIC	1400.1.1
>!AFileSystemDriver	3.0.1
@filesystems.tmpfs	1
@filesystems.lifs	1
@filesystems.apfs	1934.141.2
@filesystems.hfs.kext	583.100.10
@BootCache	40
@!AFSCompression.!AFSCompressionTypeZlib	1.0.0
@!AFSCompression.!AFSCompressionTypeDataless	1.0.0d1
@private.KextAudit	1.0
>!ASmartBatteryManager	161.0.0
>!ARTC	2.0.1
>!AACPIButtons	6.1
>!AHPET	1.8
>!ASMBIOS	2.1
>!AACPIEC	6.1
>!AAPIC	1.7
@!ASystemPolicy	2.0.0
@nke.applicationfirewall	402
|IOKitRegistryCompatibility	1
|EndpointSecurity	1
@Dont_Steal_Mac_OS_X	7.0.0
@kec.!AEncryptedArchive	1
|IOFireWire!F	4.8.3
>!UAudio	416.2
>driverkit.serial	6.0.0
|IOSerial!F	11
@kext.triggers	1.0
@kext.AMDRadeonX4030HWLibs	1.0
>DspFuncLib	340.2
@kext.OSvKernDSPLib	529
@kext.AMDRadeonX4000HWServices	4.0.8
>!AGraphicsControl	6.5.7
>!ABacklightExpert	1.1.0
|IO!BSerialManager	9.0.0
|IO!BPacketLogger	9.0.0
|IO!BHost!CUSBTransport	9.0.0
|IO!BHost!CUARTTransport	9.0.0
|IO!BHost!CTransport	9.0.0
>IO!BHost!CPCIeTransport	9.0.0
|IOAVB!F	1040.6
@plugin.IOgPTPPlugin	1040.3
|IOEthernetAVB!C	1.1.0
|CSR!BHost!CUSBTransport	9.0.0
|Broadcom!BHost!CUSBTransport	9.0.0
|Broadcom!B20703USBTransport	9.0.0
>!AIPAppender	1.0
>!ASMBus!C	1.0.18d1
>!AHDA!C	340.2
|IOHDA!F	340.2
|IONDRVSupport	597
|IOAccelerator!F2	462.8
@kext.AMDSupport	4.0.8
@!AGPUWrangler	6.5.7
@!AGraphicsDeviceControl	6.5.7
|IOSlowAdaptiveClocking!F	1.0.0
|IOAudio!F	340.2
@vecLib.kext	1.2.0
>!AAudioClockLibs	140.1
>X86PlatformPlugin	1.0.0
>IOPlatformPlugin!F	6.0.0d8
|IOGraphics!F	597
>!AThunderboltDPInAdapter	8.5.1
>!AThunderboltDPOutAdapter	8.5.1
>!AThunderboltDPAdapter!F	8.5.1
>!AThunderboltPCIUpAdapter	4.1.1
>!AThunderboltPCIDownAdapter	4.1.1
>!UComposite	900.4.2
>!AActuatorDriver	5460.1
>!AHS!BDriver	5450.8
>IO!BHIDDriver	9.0.0
>!AMultitouchDriver	5460.1
>!AInputDeviceSupport	5460.1
>!AHIDKeyboard	228.2
>usb.IOUSBHostHIDDevice	1.2
>usb.!UHub	1.2
>usb.cdc	5.0.0
>usb.networking	5.0.0
>usb.!UHostCompositeDevice	1.2
>!AXsanScheme	3
|IOAHCIBlock!S	333.140.2
>usb.!UEHCIPCI	1.2
>usb.!UEHCI	1.2
>!AThunderboltNHI	7.2.81
|IOThunderbolt!F	9.3.3
|IOAHCI!F	297
|IO80211!FLegacy	1200.12.2b1
|IOSkywalk!F	1.0
>mDNSOffloadUserClient	1.0.1b8
>corecapture	1.0.4
>!A!ILpssGspi	3.0.60
>usb.!UXHCIPCI	1.2
>usb.!UXHCI	1.2
>!ABSDKextStarter	3
|IOSurface	302.14
@filesystems.hfs.encodings.kext	1
>usb.!UHostPacketFilter	1.0
|IOUSB!F	900.4.2
>!AEFINVRAM	2.1
>!AEFIRuntime	2.1
|IOSMBus!F	1.1
|IOHID!F	2.0.0
|IOTimeSync!F	1040.3
|IONetworking!F	3.4
>DiskImages	493.0.0
|IO!B!F	9.0.0
|IOReport!F	47
$quarantine	4
$sandbox	300.0
@kext.!AMatch	1.0.0d1
|CoreAnalytics!F	1
>!ASSE	1.0
>!AKeyStore	2
>!UTDM	533.120.2
|IOUSBMass!SDriver	210.120.3
|IOSCSIBlockCommandsDevice	456.140.3
|IO!S!F	2.1
|IOSCSIArchitectureModel!F	456.140.3
>!AMobileFileIntegrity	1.0.5
$!AImage4	4.2.0
@kext.CoreTrust	1
>!AFDEKeyStore	28.30
>!AEffaceable!S	1.0
>!ACredentialManager	1.0
>KernelRelayHost	1
|IOUSBHost!F	1.2
>!UHostMergeProperties	1.2
>usb.!UCommon	1.0
>!ABusPower!C	1.0
>!ASEPManager	1.0.1
>IOSlaveProcessor	1
>!AACPIPlatform	6.1
>!ASMC	3.1.9
|IOPCI!F	2.9
|IOACPI!F	1.4
>watchdog	1
@kec.pthread	1
@kec.Libm	1
@kec.corecrypto	12.0

@waydabber
Copy link
Owner

Well, based on this crash log, it is not in fact a BetterDisplay related issue it seems. Seems to be a Thunderbolt problem and as AppleSMC also seems to be involved, it has something to do with low-level housekeeping stuff on Intel macs (SMC handles machine specific stuff and also coordinates what happens on sleep and wake).

@waydabber waydabber changed the title Better support for native smooth scaling for Intel macs Native smooth scaling does not work properly for Intel macs Oct 7, 2022
@waydabber waydabber added bug Something isn't working pre-release available Released as beta version and removed enhancement New feature or request internal pre-release Enable internal pre-releases under Settings/Applications/Updates labels Oct 7, 2022
@waydabber waydabber added released Released and removed pre-release available Released as beta version labels Oct 16, 2022
@waydabber waydabber added the Intel Related to Macs with Intel architecture label Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working done All tasks are completed Intel Related to Macs with Intel architecture released Released
Projects
None yet
Development

No branches or pull requests

2 participants