Re: suspend/resume on macbooks

2016-10-18 Thread Mark Kettenis
> Date: Tue, 18 Oct 2016 21:56:13 +0200
> From: Joris Vink 
> 
> Hi,
> 
> Sending this out so others with Macbooks can test this.
> 
> This diff may fix suspend/resume problems seen on certain Macbooks where
> your display goes black but nothing else happens.
> 
> Note that this is babysteps as after resume your system is missing its
> battery, the keyboard backlight needs a kick via wsconsctl and if you
> are in X you may have to switch VT's quickly to get something to
> display.
> 
> But at least you can suspend/resume, maybe.

I think this is a bad choice.  See:

  http://mjg59.dreamwidth.org/29954.html

Does Windows susped/resume successfully on that machine?

> Index: dsdt.c
> ===
> RCS file: /cvs/src/sys/dev/acpi/dsdt.c,v
> retrieving revision 1.225
> diff -u -p -u -p -r1.225 dsdt.c
> --- dsdt.c27 Sep 2016 10:04:19 -  1.225
> +++ dsdt.c18 Oct 2016 19:37:59 -
> @@ -1493,6 +1493,7 @@ char *aml_valid_osi[] = {
>   "Windows 2012",
>   "Windows 2013",
>   "Windows 2015",
> + "Darwin",
>   NULL
>  };
>  
> 
> 



suspend/resume on macbooks

2016-10-18 Thread Joris Vink
Hi,

Sending this out so others with Macbooks can test this.

This diff may fix suspend/resume problems seen on certain Macbooks where
your display goes black but nothing else happens.

Note that this is babysteps as after resume your system is missing its
battery, the keyboard backlight needs a kick via wsconsctl and if you
are in X you may have to switch VT's quickly to get something to
display.

But at least you can suspend/resume, maybe.

.joris

Index: dsdt.c
===
RCS file: /cvs/src/sys/dev/acpi/dsdt.c,v
retrieving revision 1.225
diff -u -p -u -p -r1.225 dsdt.c
--- dsdt.c  27 Sep 2016 10:04:19 -  1.225
+++ dsdt.c  18 Oct 2016 19:37:59 -
@@ -1493,6 +1493,7 @@ char *aml_valid_osi[] = {
"Windows 2012",
"Windows 2013",
"Windows 2015",
+   "Darwin",
NULL
 };