I have a mid 2009 iMac 27"
I installed Ubuntu 20.x
I ran into similar issues but followed these steps and now works fine:
After installation, I went into LiveCD mode (try Ubuntu). Its the only way to fix permanently (ie not during startup everytime). But it's a bit tricky when you have to fix this when running from a Live CD. Essentially the idea is to ...