Power Management issue when I open the lid from "Suspend" mode on MacBookPro6,2

Dear Manjaro Support Team,

I installed the newest Community maintained Manjaro with cinnamon Desktop yesterday to my 15" Macbook Pro, mid-2010, using this .iso file: (https://download.manjaro.org/cinnamon/21.3.7/manjaro-cinnamon-21.3.7-220826-linux515.iso)

Everything seems to be running well except when the lid of the MacBook Pro is closed to suspend and reopen it. Nothing happens until I press the power button shortly. Then I hear a short sound (some beep sound), then my desktop’s background image appears frozen, and that’s it. I have to reboot by pressing the power button for more than 3 seconds.

It is interesting when I set the β€œWhen the power button is pressed == Suspend” on the Power Management panel, the system suspends and wakes up for another button press without any issues.

I checked a read all posts on this subject (Search results for 'macbook pro suspend' - Manjaro Linux Forum), but I couldn’t solve the issue.

If anyone of you could help me out I would very much appreciate it. Manjaro is my superb experience with Linux, and I like it much better than EndeavourOS.

System Information:

[b...s@mbp ~]$ neofetch
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   b...s@mbp 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   ---------- 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   OS: Manjaro Linux x86_64 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Host: MacBookPro6,2 1.0 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Kernel: 5.15.81-1-MANJARO 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Uptime: 1 hour, 3 mins 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Packages: 1115 (pacman) 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Shell: bash 5.1.16 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Resolution: 1440x900, 1440x900 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   DE: Cinnamon 5.6.4 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   WM: Mutter (Muffin) 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   WM Theme: Mint-Y-Dark-Teal (Mint-Y) 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Theme: Mint-Y-Dark-Teal [GTK2/3] 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Icons: Papirus-Adapta-Nokto-Maia [GTK2/3] 
                               Terminal: gnome-terminal 
                               CPU: Intel i7 M 620 (4) @ 2.661GHz 
                               GPU: NVIDIA GeForce GT 330M 
                               GPU: Intel Core Processor 
                               Memory: 1556MiB / 7874MiB                                                        

I am not using a SWAP partition as I have 8GB RAM installed.

β€” in detailed:

[b...s@mbp ~]$ inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.15.81-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=193c9617-ea40-45b6-a493-c4e8551626aa rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: Cinnamon v: 5.6.4 tk: GTK v: 3.24.35 vt: 7 dm: LightDM v: 1.32.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Apple product: MacBookPro6,2 v: 1.0
    serial: <superuser required> Chassis: type: 10 v: Mac-F22586C8
    serial: <superuser required>
  Mobo: Apple model: Mac-F22586C8 v: MacBookPro6,2
    serial: <superuser required> UEFI: Apple v: 99.0.0.0.0 date: 06/13/2019
Battery:
  ID-1: BAT0 charge: 76.3 Wh (100.0%) condition: 76.3/76.3 Wh (100.0%)
    volts: 12.5 min: 10.9 model: SMP bq20z451 type: Li-ion serial: N/A
    status: full cycles: 3
Memory:
  RAM: total: 7.69 GiB used: 2.97 GiB (38.6%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7 M 620 bits: 64 type: MT MCP arch: Westmere
    gen: core 1 level: v2 built: 2010-11 process: Intel 32nm family: 6
    model-id: 0x25 (37) stepping: 5 microcode: 0x7
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1415 high: 1463 min/max: 1197/2661 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1463 2: 1309
    3: 1463 4: 1428 bogomips: 21289
  Flags: acpi aes aperfmperf apic arat arch_perfmon bts clflush cmov
    constant_tsc cpuid cx16 cx8 de ds_cpl dtes64 dtherm dts ept est
    flexpriority flush_l1d fpu fxsr ht ibpb ibrs ida lahf_lm lm mca mce mmx
    monitor msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pebs
    pge pni popcnt pse pse36 pti rdtscp sep smx ssbd sse sse2 sse4_1 sse4_2
    ssse3 stibp syscall tm tm2 tpr_shadow tsc vme vmx vnmi vpid xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
    SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Core Processor Integrated Graphics driver: i915 v: kernel
    arch: Gen-5.75 process: Intel 45nm built: 2010 ports: active: LVDS-1
    empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0046
    class-ID: 0300
  Device-2: NVIDIA GT216M [GeForce GT 330M] vendor: Apple driver: nouveau
    v: kernel non-free: series: 340.xx status: legacy (EOL) last:
    release: 340.108 kernel: 5.4 xorg: 1.20 arch: Tesla process: 40-80nm
    built: 2006-13 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports: active: LVDS-2
    empty: DP-2 bus-ID: 01:00.0 chip-ID: 10de:0a29 class-ID: 0300 temp: 56.0 C
  Device-3: Apple Built-in iSight type: USB driver: uvcvideo bus-ID: 2-1.1:3
    chip-ID: 05ac:8507 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: modesetting
    alternate: fbdev,vesa dri: nouveau,crocus gpu: i915,nouveau display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2880x900 s-dpi: 96 s-size: 762x238mm (30.00x9.37")
    s-diag: 798mm (31.43")
  Monitor-1: LVDS-1 mapped: LVDS-1-1 pos: right model: Apple Color LCD
    built: 2009 res: 1440x900 hz: 60 dpi: 111 gamma: 1.2
    size: 331x207mm (13.03x8.15") diag: 390mm (15.4") ratio: 16:10
    modes: 1440x900
  Monitor-2: LVDS-2 pos: primary,left model: Apple Color LCD built: 2009
    res: 1440x900 hz: 60 dpi: 111 gamma: 1.2 size: 331x207mm (13.03x8.15")
    diag: 390mm (15.4") ratio: 16:10 modes: max: 1440x900 min: 640x350
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel 5 Series/3400 Series High Definition Audio
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:3b56
    class-ID: 0403
  Device-2: NVIDIA GT216 HDMI Audio driver: snd_hda_intel v: kernel pcie:
    gen: 1 speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0be2
    class-ID: 0403
  Sound API: ALSA v: k5.15.81-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.61 running: yes
Network:
  Device-1: Broadcom NetXtreme BCM5764M Gigabit Ethernet PCIe driver: tg3
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 02:00.0
    chip-ID: 14e4:1684 class-ID: 0200
  IF: enp2s0 state: down mac: <filter>
  Device-2: Broadcom BCM43224 802.11a/b/g/n vendor: Apple AirPort Extreme
    driver: bcma-pci-bridge v: N/A modules: bcma pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 03:00.0 chip-ID: 14e4:4353 class-ID: 0280
  IF-ID-1: wlp3s0b1 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Apple Bluetooth Host Controller type: USB driver: btusb v: 0.8
    bus-ID: 1-1.1.3:8 chip-ID: 05ac:8218 class-ID: fe01
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 715.41 GiB used: 10.47 GiB (1.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Verbatim model: Vi550 S3
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: SSD serial: <filter> rev: 916a scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: MZ7TY256HDHP-000L7
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: SSD serial: <filter> rev: 4L6Q scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%) used: 10.47 GiB (2.2%)
    fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 193c9617-ea40-45b6-a493-c4e8551626aa
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: NO_LABEL
    uuid: F7BE-F9F5
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sdb1 maj-min: 8:17 size: 238.47 GiB fs: ext4 label: Data
    uuid: 05e1ec54-7f40-4d8e-b874-9b2957d4444d
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 6 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Microchip (formerly SMSC) USB 2.0 Hub ports: 4 rev: 2.0
    speed: 480 Mb/s power: 2mA chip-ID: 0424:2514 class-ID: 0900
  Hub-3: 1-1.1:3 info: Broadcom BCM2046B1 USB 2.0 Hub (part of BCM2046
    Bluetooth) ports: 3 rev: 2.0 speed: 12 Mb/s power: 94mA chip-ID: 0a5c:4500
    class-ID: 0900
  Device-1: 1-1.1.3:8 info: Apple Bluetooth Host Controller type: Bluetooth
    driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s chip-ID: 05ac:8218
    class-ID: fe01
  Device-2: 1-1.2:4 info: Apple Internal Keyboard/Trackpad (ISO)
    type: Keyboard,HID,Mouse driver: apple,bcm5974,usbhid interfaces: 3 rev: 2.0
    speed: 12 Mb/s power: 40mA chip-ID: 05ac:0237 class-ID: 0301
  Device-3: 1-1.3:5 info: Apple Internal Memory Card Reader
    type: Mass Storage driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 05ac:8403 class-ID: 0806 serial: <filter>
  Hub-4: 2-0:1 info: Full speed or root hub ports: 8 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-5: 2-1:2 info: Microchip (formerly SMSC) USB 2.0 Hub ports: 3 rev: 2.0
    speed: 480 Mb/s power: 2mA chip-ID: 0424:2514 class-ID: 0900
  Device-1: 2-1.1:3 info: Apple Built-in iSight type: Video driver: uvcvideo
    interfaces: 3 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 05ac:8507
    class-ID: 0e02 serial: <filter>
  Device-2: 2-1.2:4 info: Apple Built-in IR Receiver type: HID
    driver: appleir,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s power: 100mA
    chip-ID: 05ac:8242 class-ID: 0300
Sensors:
  System Temperatures: cpu: 62.0 C mobo: N/A gpu: nouveau temp: 56.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 218 Uptime: 7h 36m wakeups: 20 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6
  Packages: pm: pacman pkgs: 1115 libs: 299 tools: pamac,yay pm: flatpak
  pkgs: 0 Shell: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.23

Hi @esalbeht, and welcome!

Macs are notorious for their problems and since everything it uses is proprietary, getting them working is very hard too hit-and-miss.

That said, have a look at

https://wiki.archlinux.org/title/Laptop/Apple#Model_list

It would seem there is a known problem with it regarding the suspending, as well as a fix/workaround/whateveryouwannacallit:

Suspension and hibernation are dysfunctional (see Debian Wiki) when using the open source nouveau driver: the solution is to use the init_on_alloc=0 kernel parameter.

Thank you so much for the prompt reply, @Mirdarthos. I have never edited the kernel parameters. Could you please share where I can edit/add this parameter to the kernel? I really appreciate any help you can provide.

The kernel parameters can be edited in the GRUB startup file. I think elsewhere too, but don’t know how/where.

To add the parameters, open /etc/default/grub with sudo:

sudo nano /etc/default/grub

Edit the line starting with GRUB_CMDLINE_LINUX_DEFAULT=. Add the following between the quotes:

init_on_alloc=0

Do not remove anything, just ad that to the end of the line, with a space before it. For example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3 init_on_alloc=0"

Save, Ctrl+O, and exit the editor, Ctrl+X β†’ Y.

Then you need to update grub:

sudo update-grub

In theory, AFAIK, you should be able to safely reboot.

If it worked, feel free to heap on the praise. If, however, it didn’t, well then, I’m innocent and luckily halfway around the world. At least for most people.

2 Likes

It works; thank you so much, @Mirdarthos; I am testing it. :grinning: :grinning: :grinning:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.