steveschow / gfxCardStatus

This is a fork of gfxCardStatus, this fork will handle integrated-only mode a little better
Other
565 stars 42 forks source link

BigSur small issue #40

Open matmal opened 3 years ago

matmal commented 3 years ago

Hi, maybe you could easily fix the annoying offset icon in the menu bar, please?!

redlikeblood1 commented 3 years ago

+1 pls.

PlasmaSoftUK commented 3 years ago

+1 Please. :)

Macusercom commented 3 years ago

There is already a fix for it in the original repo by codykrieger: https://github.com/codykrieger/gfxCardStatus/commit/2656fba28f18ed0282256b5cd4644cf7ab712e21

Not sure if @steveschow can take a look and merge it :)

steveschow commented 3 years ago

sorry, I have not been using this software anymore for some years and don't have an easy way to test it out.

Macusercom commented 3 years ago

Thanks @steveschow for your reply! :)

@matmal @redlikeblood1 @PlasmaSoftUK (and any other who comes across this issue report): I've tried to build it with the fix but the issue is that the 32 bit binary isn't supported anymore and using an old Xcode on Big Sur doesn't work. I tried to build it 64 bit only but ran into some issue with the pods described here: https://github.com/codykrieger/gfxCardStatus/issues/229

I ultimately couldn't get the Pods project compiled and gave up. Also other stuff like Growl.framework is deprecated now and I felt like I'm stripping the project apart and cover up missing pieces to get it compiled anyway. I'm not an experienced programmer so this was beyond my expertise.

The original gfxCardStatus project (v2.5b4) gets stuck at the dGPU when quitting dGPU dependant apps so it wasn't an option for me. Even Cody Krieger himself said gfxCardStatus is more like a debugging tool now than an actual GPU switcher.

I ultimately switched to gSwitch by Cody Schrank (https://github.com/CodySchrank/gSwitch) which has been working fine for me despite indicating the GPU with the dot in the middle instead of an "i" or "d". It still switched to the dGPU for 3 seconds when quitting dGPU apps and sometimes too when opening them. But it never gets stuck at the dGPU which would defeat its purpose.

I'm using a MacBook Pro 15" (Mid 2015) with an AMD Radeon M370X. gSwitch works fine with it :)

RoadToDream commented 3 years ago

If anyone experienced this issue, please try modifying

NSDictionary *attributes = [[NSDictionary alloc] initWithObjectsAndKeys:
                                boldItalic, NSFontAttributeName, 
                                [NSNumber numberWithDouble:2.0], NSBaselineOffsetAttributeName, nil];

to

NSDictionary *attributes = [[NSDictionary alloc] initWithObjectsAndKeys:
                                boldItalic, NSFontAttributeName, 
                                [NSNumber numberWithDouble:-1.3], NSBaselineOffsetAttributeName, nil];