Skip to content

Instantly share code, notes, and snippets.

@dymx101
Created October 22, 2014 00:41
Show Gist options
  • Save dymx101/7843fce681d2f9ab79f2 to your computer and use it in GitHub Desktop.
Save dymx101/7843fce681d2f9ab79f2 to your computer and use it in GitHub Desktop.
Macbook pro A1278 blackscreen
先要排除你是否开合盖子太快了。 如果不是再确定一下是否每次都这样? 如果每次都这样,那么可能情况: 1、安全睡眠的文件出问题了。 2、可能是你的睡眠模式设置为休眠了(即每次都要点开机)。 解决办法: 1、打开 终端(Terminal),输入pmset -g; 查看如下 Active Profiles: Battery Power -1 AC Power -1* Currently in use: standbydelay 4200 standby 0 womp 1 halfdim 1 panicrestart 157680000 hibernatefile /var/vm/sleepimage sms 1 networkoversleep 0 disksleep 10 sleep 90 hibernatemode 1 ttyskeepawake 1 displaysleep 6 acwake 0 lidwake 1 hibernatefile是你的睡眠文件的全路径,确保是/var/vm/sleepimage. 如果不是,请修输入命令改为 sudo pmset -a hibernatefile /var/vm/sleepimage hibernatemode 是你的睡眠模式 0表示普通睡眠模式:内存数据不会写到hibernatefile文件,电力供应内存,一打开盖子就能马上工作。有一定的危险性,掉电内存中的数据就丢失了。 1表示休眠模式:即一合上盖子,所有数据都会写入hibernatefile文件中,并关闭电源,下次打开盖子是黑屏的,需要重新按电源键开机。 3默认方式安全睡眠模式: 一合上盖子,所有数据都会写入硬盘hibernatefile文件中,并同时不断电,电力一直供应内存,一打开盖子就可以马上工作。 算是 0和1的混合模式,即(安全睡眠) 修改为安全睡眠模式命令为: sudo pmset -a hibernatemode 3 2、重新启动,然后再尝试合盖子进入睡眠,问题应该解决了。
@dymx101
Copy link
Author

dymx101 commented Oct 22, 2014

macbook pro turns on but screen stays black — my solution
Saturday, June 5, 2010 - 1:26 pm
By Colin
The Apple Macbook Pro would turn on, but the screen would not. The screen would stay black. I could tell the computer was on because when I hit the “caps lock” key, the green light on the key would turn on and off.

I fixed this the following way (this is basically resetting the Power Management Unit — PMU):

I disconnected the computer from the power cord, and from all other cables.

I held down the power button for several seconds to turn off the computer.

I let it sit 5 minutes.

I restarted the laptop while holding down the Shift key. This restarted the computer in Safe Mode, with the screen visible again.

After I logged in (in Safe Mode) to make sure everything was ok, I simply restarted the computer the normal way, and the screen behaved normally again.

If that doesn’t work for you, you could try these steps, documented at apple.com:

Holding down Command, Option, P, and R to reset your PRAM and NVRAM

Resetting PowerBook and iBook Power Management Unit (PMU)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment