
Hello, I have installed Debian/stretch on a MacBook Pro, and it all seems OK, except suspend/resume is now suspend/crash instead. Sometimes I get a black screen, most times the screen gets restored and then it crashes. Furthermore, I was accidentally pressing the power button and shutting down the system, so changed this action to suspend. Now instead of a clean shutdown, I get a dirty crash whenever I accidentally press the power button :-| Maybe should change that to ignore for now... How do I go about debugging suspend/resume problems? Online reports seem to indicate that there should be no problems with suspend/resume and a recent kernel. Regards

On 2018-01-15 14:28, Brian May via luv-main wrote:
most times the screen gets restored and then it crashes.
Through the process of trial and error, I have found that if when it "crashes" I disconnect the thunderbolt ethernet adapter, the system unfreezes and comes good. I can then plug it back it, although the network manager doesn't seem to notice ethernet is back again. Furthermore, if the ethernet adapter isn't plugged in, it doesn't freeze in the first place. Weird. At least now I have a good workaround... Fingers crossed.

On 15 January 2018 at 15:18, Brian May via luv-main <luv-main@luv.asn.au> wrote:
On 2018-01-15 14:28, Brian May via luv-main wrote:
most times the screen gets restored and then it crashes.
Through the process of trial and error, I have found that if when it "crashes" I disconnect the thunderbolt ethernet adapter, the system unfreezes and comes good. I can then plug it back it, although the network manager doesn't seem to notice ethernet is back again.
Furthermore, if the ethernet adapter isn't plugged in, it doesn't freeze in the first place.
Weird.
At least now I have a good workaround... Fingers crossed.
Glad to hear that you have been able to get hibernate/resume to work on a MacBook Pro under stretch. If you needed any special tweaking I would appreciate any pointers. I haven't been able to make suspend/resume work on my MacBookPro10,1 since the jessie 3.16 kernel. I guess you are having better luck than me as it crashes on the resume - just when it switches to the resume'd kernel. I logged this bug on it https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844788 I have been too scared to try my lightening ethernet adaptor with resume :-). I heard it always has to be present on boot up to be activated... Anyway for what it is worth you might be interested in this problem I found- I had to patch grub to "enable PCI bus mastering" on the graphics card to avoid a black screen. Still can't make resume work with Debian stretch kernel (I can run stretch on the old kernel fine though :-) As per NOTE: on top of https://wiki.debian.org/NvidiaGraphicsDrivers "...NOTE: For Apple systems, follow these steps first to prevent a black screen after installing the drivers: http://askubuntu.com/a/613573/134848" * My notes are: Create grub script fragment file /etc/grub.d/01_enable_vga.conf containing literally cat << EOF setpci -s "00:01.0" 3e.b=8 setpci -s "01:00.0" 04.b=7 EOF Make it executable and install it into grub: sudo chmod 755 /etc/grub.d/01_enable_vga.conf sudo update-grub Reboot and check the values were set: setpci -s 00:01.0 3e.b setpci -s 01:00.0 04.b ______________________________________________

Andrew Worsley via luv-main <luv-main@luv.asn.au> writes:
I have been too scared to try my lightening ethernet adaptor with resume :-). I heard it always has to be present on boot up to be activated...
Have a look at: https://www.jethrocarr.com/2014/06/16/thunderbolt-and-other-macbook-hardware... Seems to include some tips on getting suspend/resume working with thunderbolt (untested). It also recommends that thunderbolt should be unplugged on boot... (also untested) Note it is from 2014 however.
Anyway for what it is worth you might be interested in this problem I found- I had to patch grub to "enable PCI bus mastering" on the graphics card to avoid a black screen. Still can't make resume work with Debian stretch kernel (I can run stretch on the old kernel fine though :-)
I had no problems with grub.
As per NOTE: on top of https://wiki.debian.org/NvidiaGraphicsDrivers "...NOTE: For Apple systems, follow these steps first to prevent a black screen after installing the drivers: http://askubuntu.com/a/613573/134848"
This system seems to have intel based chipset. Also note I am using the kernel with stretch backports, due to problems with the intel graphics mentioned in another email here. -- Brian May <brian@linuxpenguins.xyz> https://linuxpenguins.xyz/brian/

On 16 January 2018 at 17:22, Brian May <brian@linuxpenguins.xyz> wrote:
Andrew Worsley via luv-main <luv-main@luv.asn.au> writes:
I have been too scared to try my lightening ethernet adaptor with resume :-). I heard it always has to be present on boot up to be activated...
Have a look at: https://www.jethrocarr.com/2014/06/16/thunderbolt-and-other-macbook-hardware...
That 2014 and recommends a 3.15 kernel - the jessie one I am using successfully is 3.16 so yep that does work... ...
I had no problems with grub.
Interesting - I wonder if I am doing something weird because no kernel after then seems to work for me. Always crashing the same spot in the resume? It's really tedious to test because you have to install, boot the new kernel, suspend and the boot again to resume, then crash/
As per NOTE: on top of https://wiki.debian.org/NvidiaGraphicsDrivers "...NOTE: For Apple systems, follow these steps first to prevent a black screen after installing the drivers: http://askubuntu.com/a/613573/134848"
This system seems to have intel based chipset.
Not sure what you mean by intel chipset, almost all the chips are Intel, unless you mean the accelerated graphics or networking?
Also note I am using the kernel with stretch backports, due to problems with the intel graphics mentioned in another email here. I couldn't see the mentioned problem with the Intel graphics
So you are running a Stretch kernel or a backport-stretch kernel? Andrew

Andrew Worsley <amworsley@gmail.com> writes:
Interesting - I wonder if I am doing something weird because no kernel after then seems to work for me. Always crashing the same spot in the resume?
It's really tedious to test because you have to install, boot the new kernel, suspend and the boot again to resume, then crash/
I have the 4.14.0 kernel. Yes, agreed, the process is tedious. Make sure you have no external devices connected. For me, everything worked find without the Thunderbolt Ethernet connected.
Not sure what you mean by intel chipset, almost all the chips are Intel, unless you mean the accelerated graphics or networking?
Intel graphics chipset. As opposed ot nvidia.
So you are running a Stretch kernel or a backport-stretch kernel?
backport-stretch. -- Brian May <brian@linuxpenguins.xyz> https://linuxpenguins.xyz/brian/
participants (2)
-
Andrew Worsley
-
Brian May