Suspend problem on MacBook 7.1 Mint 20.2

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
flavioserpa
Level 1
Level 1
Posts: 5
Joined: Sat Jul 31, 2021 9:32 am

Suspend problem on MacBook 7.1 Mint 20.2

Post by flavioserpa »

Hello, I am having suspension problems on my MacBook and searched all the internet for a solution, to no avail.

I just installed Linux Mint 20.2 Xfce on my wife's old mid-2010 white MacBook (model 7,1), which has a Nvidia 320M graphics card. However, when I close the lid and the MacBook goes into suspension (blinking white light on the side), I reopen the lid and the screen remains black. Any key that I press do nothing to wake the computer and the white light goes off (as if the computer is awake, but the screen is off). If I close the lid again, the white light starts to blink like before (back to suspension). The only resource is to hold the power button down to shutdown the MacBook and turn it on again.

At first, I was using the Nouveau driver because switching to Nvidia driver would give a black screen on startup. Then I followed the instructions on the link provided by buffalovulgaris and successfully installed the Nvidia driver 340.108 (recommended by the system driver manager). However, the suspension problem continues, no matter the driver used.

Can you guys help me to solve the problem or just show a way to disable suspension when the lid is closed (just turn off screen, if possible)? I'm just new to Linux (mainly Windows user) and have none to little experience using command line, but can follow instructions (if you need some diagnostics, just tell me what to type on terminal). And I'm sorry for the bad English, I'm brazilian. Thanks!


UPDATE: just tried to suspend the computer using the power menu (where it shows the buttons to power off, suspend, etc), instead of closing the lid, and it doesn't come back from suspension either. So it's a problem related to suspension in general. Tried to change the behaviour of the lid in the energy option, but it was to no avail. Even if I choose to turn off screen or lock screen instead of supend, the MacBook goes into suspension when I close the lid. When I open the lid after closing it or suspend using the system menu, no key will wake up the computer. If I quickly press the power button (not a normal long press used to shut down the MacBook), the computer also immediately shuts down.

Here's the system information:

Code: Select all

System:    Kernel: 5.4.0-80-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Xfce 4.16.0 
           tk: Gtk 3.24.20 wm: xfwm4 dm: LightDM Distro: Linux Mint 20.2 Uma 
           base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Apple product: MacBook7,1 v: 1.0 serial: <filter> Chassis: 
           type: 10 v: Mac-F22C89C8 serial: <filter> 
           Mobo: Apple model: Mac-F22C89C8 serial: <filter> UEFI: Apple v: 68.0.0.0.0 
           date: 06/14/2019 
Battery:   ID-1: BAT0 charge: 57.9 Wh condition: 57.9/56.2 Wh (103%) volts: 12.5/10.8 
           model: SMP A1331 serial: N/A status: Full 
CPU:       Topology: Dual Core model: Intel Core2 Duo P8600 bits: 64 type: MCP arch: Penryn rev: A 
           L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 9556 
           Speed: 2228 MHz min/max: 798/2394 MHz Core speeds (MHz): 1: 2389 2: 2389 
Graphics:  Device-1: NVIDIA MCP89 [GeForce 320M] vendor: Apple driver: nvidia v: 340.108 
           bus ID: 02:00.0 chip ID: 10de:08a0 
           Display: x11 server: X.Org 1.20.9 driver: nvidia 
           unloaded: fbdev,modesetting,nouveau,vesa resolution: 1280x800~61Hz 
           OpenGL: renderer: GeForce 320M/integrated/SSE2 v: 3.3.0 NVIDIA 340.108 
           direct render: Yes 
Audio:     Device-1: NVIDIA MCP89 High Definition Audio driver: snd_hda_intel v: kernel 
           bus ID: 00:08.0 chip ID: 10de:0d94 
           Sound Server: ALSA v: k5.4.0-80-generic 
Network:   Device-1: NVIDIA MCP89 Ethernet vendor: Apple driver: forcedeth v: kernel port: 22a0 
           bus ID: 00:09.0 chip ID: 10de:0d7d 
           IF: enp0s9 state: down mac: <filter> 
           Device-2: Broadcom and subsidiaries BCM43224 802.11a/b/g/n 
           vendor: Apple AirPort Extreme driver: wl v: kernel port: 2280 bus ID: 01:00.0 
           chip ID: 14e4:4353 
           IF: wlp1s0 state: up mac: <filter> 
Drives:    Local Storage: total: 223.57 GiB used: 51.40 GiB (23.0%) 
           ID-1: /dev/sda vendor: Kingston model: SA400S37240G size: 223.57 GiB speed: 3.0 Gb/s 
           serial: <filter> 
Partition: ID-1: / size: 218.57 GiB used: 25.70 GiB (11.8%) fs: ext4 dev: /dev/sda2 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-6:2 info: Apple Built-in iSight type: Video driver: uvcvideo rev: 2.0 
           chip ID: 05ac:8507 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 chip ID: 1d6b:0002 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 6 rev: 1.1 chip ID: 1d6b:0001 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 6 rev: 1.1 chip ID: 1d6b:0001 
           Device-2: 4-3:2 info: Apple Internal Keyboard/Trackpad (ANSI) type: Keyboard,HID,Mouse 
           driver: apple,bcm5974,usbhid rev: 2.0 chip ID: 05ac:0236 
           Hub: 4-6:3 info: Broadcom BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth) ports: 3 
           rev: 2.0 chip ID: 0a5c:4500 
           Device-3: 4-6.3:6 info: Apple Bluetooth Host Controller type: <vendor specific> 
           driver: btusb rev: 2.0 chip ID: 05ac:8218 
Sensors:   System Temperatures: cpu: 52.0 C mobo: N/A gpu: nvidia temp: 62 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/1password.list 
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/1password-archive-keyring.gpg] https: //downloads.1password.com/linux/debian/amd64 stable main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //packages.linuxmint.com uma main upstream import backport
           2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
Info:      Processes: 163 Uptime: 29m Memory: 3.59 GiB used: 1.53 GiB (42.6%) Init: systemd v: 245 
           runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Client: Unknown python3.8 client inxi: 3.0.38 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
newlyminted7
Level 5
Level 5
Posts: 558
Joined: Sat Jan 02, 2021 4:44 pm

Re: Suspend problem on MacBook 7.1 Mint 20.2

Post by newlyminted7 »

This fixed it on my 2015 MBP:
https://wiki.archlinux.org/title/Mac#Wa ... er_Suspend
You'll have to use the Power Button to wake after suspend if this works for you, though.
flavioserpa
Level 1
Level 1
Posts: 5
Joined: Sat Jul 31, 2021 9:32 am

Re: Suspend problem on MacBook 7.1 Mint 20.2

Post by flavioserpa »

Didn't work. Screen still black after reopening the lid. Now the power button doesn't turn the computer off immediately, but doesn't wake it up also. Need a long press to shutdown and then turn it on again...
newlyminted7
Level 5
Level 5
Posts: 558
Joined: Sat Jan 02, 2021 4:44 pm

Re: Suspend problem on MacBook 7.1 Mint 20.2

Post by newlyminted7 »

This looks like it might work, but is a bit of a hack:
viewtopic.php?p=1212704#p1212704

Have you looked into using rEFInd?
https://linuxnewbieguide.org/how-to-ins ... -computer/
flavioserpa
Level 1
Level 1
Posts: 5
Joined: Sat Jul 31, 2021 9:32 am

Re: Suspend problem on MacBook 7.1 Mint 20.2

Post by flavioserpa »

newlyminted7 wrote: Sat Jul 31, 2021 12:24 pm This looks like it might work, but is a bit of a hack:
viewtopic.php?p=1212704#p1212704
The menu options provided on this link don't show here, maybe it's just for Cinnamon and I'm on Xfce?

newlyminted7 wrote: Sat Jul 31, 2021 12:24 pm Have you looked into using rEFInd?
https://linuxnewbieguide.org/how-to-ins ... -computer/
I completely removed MacOS when I installed Mint, not dualbooting. I did the default EFI installation process and grub seems to be working fine to boot directly to Mint. Should I install rEFInd? The steps on the link seem to be mostly for dualbooting.
newlyminted7
Level 5
Level 5
Posts: 558
Joined: Sat Jan 02, 2021 4:44 pm

Re: Suspend problem on MacBook 7.1 Mint 20.2

Post by newlyminted7 »

flavioserpa wrote: Sat Jul 31, 2021 5:28 pm
newlyminted7 wrote: Sat Jul 31, 2021 12:24 pm This looks like it might work, but is a bit of a hack:
viewtopic.php?p=1212704#p1212704
The menu options provided on this link don't show here, maybe it's just for Cinnamon and I'm on Xfce?
Yes, it's for Cinnamon. The point is to just bind a keyboard shortcut to Suspend. You might be able to search the web to figure out how to do that in Xfce.
flavioserpa wrote: Sat Jul 31, 2021 5:28 pm
newlyminted7 wrote: Sat Jul 31, 2021 12:24 pm Have you looked into using rEFInd?
https://linuxnewbieguide.org/how-to-ins ... -computer/
I completely removed MacOS when I installed Mint, not dualbooting. I did the default EFI installation process and grub seems to be working fine to boot directly to Mint. Should I install rEFInd? The steps on the link seem to be mostly for dualbooting.
That might be part of the problem since it might require some firmware to run the screen properly, but I have no idea about that, sorry. Try dualbooting it as a last ditch effort maybe?
flavioserpa
Level 1
Level 1
Posts: 5
Joined: Sat Jul 31, 2021 9:32 am

Re: Suspend problem on MacBook 7.1 Mint 20.2

Post by flavioserpa »

Thank you for the answers, I'll look into it later this week.

Ran some more tests yesterday and completely reinstalled Mint. Noticed that the MacBook works fine when running the LiveCD from USB, I can close the lid and it will resume properly when I reopen the lid. So I'm thinking the problem might be related to my SSD not responding after suspend.

Maybe if can change the lid behavior to hibernate instead of suspend, however it seems not to be an out-of-the-box option on Mint. I'll have to do some research about that.
flavioserpa
Level 1
Level 1
Posts: 5
Joined: Sat Jul 31, 2021 9:32 am

Re: Suspend problem on MacBook 7.1 Mint 20.2

Post by flavioserpa »

Hello! After much tinkering, I just solved the suspend problem by installing Mint 19.3. So I'm guessing it's a kernel-related problem on 20.2.
Reddog1
Level 7
Level 7
Posts: 1939
Joined: Wed Jun 01, 2011 2:12 pm

Re: Suspend problem on MacBook 7.1 Mint 20.2

Post by Reddog1 »

Hello! After much tinkering, I just solved the suspend problem by installing Mint 19.3. So I'm guessing it's a kernel-related problem on 20.2.
Yes, I've had that problem myself. Some MacBooks aren't 100% compatible with the new kernels. Beginning with 19.3, some older drivers were deprecated and even more with newer kernels. MacBooks 7.1 are eleven years old, and I've run into various problems with Linux on MacBooks released before 2012. I haven't tried 20.2 with my 'newer' Macs, but on my newer macs I've been installing VirtualBox and running Linux as VMs, for what it's worth, so I wouldn't expect any problems. The VM method seems to work really well and avoids the pitfalls of hard drive install with dual boot. Linux is a really viable method of extending the life of old Macs, which have excellent hardware. I'm a fan of Mac hardware but not a big fan of the OS.

If the solution seems to be viable, mark the header with (solved)
Locked

Return to “Software & Applications”