White-screen freeze when Linux comes out of a suspend on a MacBook Pro

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Sparky101
Level 1
Level 1
Posts: 2
Joined: Fri Dec 09, 2022 1:07 pm

White-screen freeze when Linux comes out of a suspend on a MacBook Pro

Post by Sparky101 »

Hi folks

I have a problem whereby when Linux Mint is meant to start-up after being suspended it shows a patterned grey/white screen (see Pic1). This forces me to restart the machine, meaning that I cannot use the suspend feature. In the past this wasn't too bad, but now that I'm starting to use the machine a lot (developing a LAMP solution to deploy to a Raspberry Pi) it's getting to be a bigger problem for me.

It seems a possible cause might be the nVidia GPU.

My machine details:
  • MacBook Pro 15" Core i7 2.66 Mid-2010, Model A1286 (EMC 2353*)
  • This is entirely a Linux machine now. iOS has been completely removed.
  • Code: Select all

    mark@Mac-Mint:~$ inxi -Fxxxrz
    System:    Kernel: 5.4.0-135-generic x86_64 bits: 64 compiler: gcc v: 9.4.0 Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 
               dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
    Machine:   Type: Laptop System: Apple product: MacBookPro6,2 v: 1.0 serial: <filter> Chassis: type: 10 v: Mac-F22586C8 
               serial: <filter> 
               Mobo: Apple model: Mac-F22586C8 v: MacBookPro6,2 serial: <filter> UEFI: Apple v: MBP61.88Z.005D.B00.1804100943 
               date: 04/10/18 
    Battery:   ID-1: BAT0 charge: 55.6 Wh condition: 63.5/75.2 Wh (84%) volts: 11.8/10.9 model: SMP bq20z451 type: Li-ion 
               serial: N/A status: Discharging cycles: 189 
    CPU:       Topology: Dual Core model: Intel Core i7 M 620 bits: 64 type: MT MCP arch: Nehalem rev: 2 L2 cache: 4096 KiB 
               flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21283 
               Speed: 1433 MHz min/max: 1197/2661 MHz boost: enabled Core speeds (MHz): 1: 1463 2: 1463 3: 1463 4: 1463 
    Graphics:  Device-1: Intel Core Processor Integrated Graphics driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0046 
               Device-2: NVIDIA GT216M [GeForce GT 330M] vendor: Apple driver: nouveau v: kernel bus ID: 01:00.0 
               chip ID: 10de:0a29 
               Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa resolution: 1680x1050~60Hz 
               OpenGL: renderer: NVA5 v: 3.3 Mesa 21.2.6 direct render: Yes 
    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 
               Device-2: NVIDIA GT216 HDMI Audio driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0be2 
               Sound Server: ALSA v: k5.4.0-135-generic 
    Network:   Device-1: Broadcom and subsidiaries NetXtreme BCM5764M Gigabit Ethernet PCIe driver: tg3 v: 3.137 port: 2000 
               bus ID: 02:00.0 chip ID: 14e4:1684 
               IF: enp2s0 state: down mac: <filter> 
               Device-2: Broadcom and subsidiaries BCM43224 802.11a/b/g/n vendor: Apple AirPort Extreme driver: wl v: kernel 
               port: 2000 bus ID: 03:00.0 chip ID: 14e4:4353 
               IF: wlp3s0 state: up mac: <filter> 
    Drives:    Local Storage: total: 596.17 GiB used: 185.77 GiB (31.2%) 
               ID-1: /dev/sda vendor: Western Digital model: WD6400BPVT-22HXZT3 size: 596.17 GiB speed: 3.0 Gb/s 
               rotation: 5400 rpm serial: <filter> rev: 1A01 scheme: GPT 
    Partition: ID-1: / size: 437.60 GiB used: 92.88 GiB (21.2%) fs: ext4 dev: /dev/sda2 
    Sensors:   System Temperatures: cpu: 53.0 C mobo: N/A gpu: nouveau temp: 53 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/additional-repositories.list 
               1: deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
               Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
               1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
               Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
               1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
               Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
               1: deb https://www.mirrorservice.org/sites/packages.linuxmint.com/packages una main upstream import backport
               2: deb http://mirror.mythic-beasts.com/ubuntu focal main restricted universe multiverse
               3: deb http://mirror.mythic-beasts.com/ubuntu focal-updates main restricted universe multiverse
               4: deb http://mirror.mythic-beasts.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
               Active apt repos in: /etc/apt/sources.list.d/opera-stable.list 
               1: deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
               Active apt repos in: /etc/apt/sources.list.d/vscode.list 
               1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
    Info:      Processes: 242 Uptime: 3h 22m Memory: 7.70 GiB used: 1.84 GiB (23.8%) Init: systemd v: 245 runlevel: 5 Compilers: 
               gcc: 9.4.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38

I have tried the following fixes recently (and had tried some others over a year ago).

white.jpg


Fix attempt 1
I followed these articles that edit the nvidia-sleep.sh file. I tried creating a "/usr/bin/nvidia-sleep.sh" file (as it didn't exist on my system already) and adding the text provided (with "exit 0") in order to run this test. I then saved, rebooted and retested: the problem persisted though.

Fix attempt 2
I followed this guide to install the nVidia driver, but it resulted in a black screen of death on startup after installing and restarting. The black screen of death appeared after the Mint icon is displayed and before the system logon screen. I used this command to install the driver:

Code: Select all

sudo apt install nvidia-340
During the installation process there was an error (see below) although I don't know how important that was.
2.1.jpg
3.1.jpg
Also, before rebooting, I checked if the "/usr/bin/nvidia-sleep.sh" file exists now, in case I could try to fix that, but it didn't exist after the nVidia driver installation. This means I couldn't combine fix attempts 1 and 2.

After this I rolled back with TimeShift and I would really appreciate some some help please.
Last edited by LockBot on Sat Jun 10, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Sparky101
Level 1
Level 1
Posts: 2
Joined: Fri Dec 09, 2022 1:07 pm

Re: White-screen freeze when Linux comes out of a suspend on a MacBook Pro

Post by Sparky101 »

Hi folks

Just a quick update, in case this can help someone else.

As I could not seem to get the suspend feature working I decided to invest £30 on an SSD drive. I also upgraded Linux Mint from v20 to v21 (linuxmint-21-cinnamon-64bit.iso).

Outcomes
  • The boot time (till the system can actually be used) dropped from around 3:30 to 1:00. This alone was a fair workaround for the lack of a suspend feature.
  • Also, the suspend feature now works, presumably due to the v21 LM upgrade. However, the laptop lid close/open event does not trigger suspend, so I will work on this problem in future.
  • Also, there were some other niggling issues with v21 that v20 didn't have (with my Macbook Pro).
Anyhows, hope this is useful to someone.
Locked

Return to “Other topics”