[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Suspend on old MacBook with fresh Bullseye installation



Hi,

I've got some MacBook from 2008 to install Debian on it and hand it over
to some user who needs a decent office machine.  I've installed Bullseye
RC1 which worked nicely (except that I had to manually add WLAN driver
broadcom-sta-dkms later).

The only real flaw is that neither suspend nor hibernate are working.  I
think the problem is independent from the desktop choice (I've installed
lxde) since I can reproduce the issue also at command line:
 
    sudo systemctl suspend

I also used hibernate as well as the LXDE controls or closing the lid -
the result is always the same:
 
  1. Black screen
  2. Network disabled (ssh session freezes, no ping from other host)
  3. Fan keeps on moving silently
  4. Can't wake up to normal operation neither by
      - opening the lid
      - pressing any key
      - pressing power button 

So I had to press power button for some seconds to power down the hard
way.  I checked /var/log/syslog which has something like: 
 
 May  6 07:38:57 noel systemd[1]: Reached target Sleep.
 May  6 07:38:57 noel systemd[1]: Starting Hibernate...
 May  6 07:38:58 noel systemd-sleep[6542]: Suspending system...
 May  6 08:00:47 noel kernel: [    0.000000] microcode: microcode updated early to revision 0xa0b, date = 2010-09-28
 May  6 08:00:47 noel kernel: [    0.000000] Linux version 5.10.0-6-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.3 5.2) #1 SMP Debian 5.10.28-1 (2021-04-09)
 --
 May  6 08:34:20 noel systemd[1]: Reached target Sleep.
 May  6 08:34:20 noel systemd[1]: Starting Suspend...
 May  6 08:34:20 noel systemd-sleep[2478]: Suspending system...
 May  6 08:34:20 noel kernel: [ 2020.808214] PM: suspend entry (deep)
 May  6 08:36:00 noel kernel: [    0.000000] microcode: microcode updated early to revision 0xa0b, date = 2010-09-28
 May  6 08:36:00 noel kernel: [    0.000000] Linux version 5.10.0-6-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.3 5.2) #1 SMP Debian 5.10.28-1 (2021-04-09)
 
I did some research and found a hint to ArchLinux Wiki gefunden[1].
In the first place /proc/acpi/wakeup was just empty.  I followed the
recommendation and created /etc/systemd/system/suspend-fix.service
and so I got:
 
 $ cat /proc/acpi/wakeup
 Device  S-state   Status   Sysfs node
 ADP1      S3    *disabled  platform:ACPI0003:00
 LID0      S3    *enabled   platform:PNP0C0D:00
 EC        S3    *disabled  platform:PNP0C09:00
 OHC1      S3    *enabled   pci:0000:00:04.0
 EHC1      S3    *enabled   pci:0000:00:04.1
 OHC2      S3    *enabled   pci:0000:00:06.0
 EHC2      S3    *enabled   pci:0000:00:06.1
 GIGE      S5    *disabled  pci:0000:00:0a.0

Unfortunately this does not change anything.
 

I was wondering about the black screen and suspected that the video
driver might be responsible for the problem.  Despite I'm perfectly fine
with the nuoveau driver I simply tried nvidia-legacy-340xx-driver (only
in unstable) hoping that this might solve the suspend problem.  I was
able to install the driver but it had really strange colors.  For
instance the Bluetooth symbol was brown and the desktop icon for power
off was blue (instead of red).

Besides the strange colors there is also no change in the broken suspend
process so I switched back to nuoveau driver.

Is there any idea how to get suspend working reliably on this otherwise
pretty decent machine? 

Kind regards

    Andreas.

PS: I'd be happy if you could CC me but I can read the web archive of
    this mailing list.

[1] https://wiki.archlinux.org/title/Mac#Wake_Up_After_Suspend

-- 
http://fam-tille.de


Reply to: