Here are 10 problems I have with Lion that might be related to this thread, and what I think might be going on:
I have this problem too. It seems like it has been happening ever since Lion came out, but I feel like it got worse around December, plus or minus a month. I'm a graphic design student and I bring my 2011 Macbook Pro with me to work and plug it in at home at night. At work I don't have an external display, but at home I have a DS-263N. I connect to it with a TB to DVI adapter. That setup seemed to work fine before Lion.
Now I have a few different issues after waking from sleep.
- Gray background. Annoying.
- Full screen applications, mainly Mail (that's the main one I use though) will sometimes lose their menu bar or otherwise show up mostly off the screen, with no way to exit full screen mode.
- Windows moved around/resized long and skinny. It seems like they retain their width, but get as short as the application allows if you tried to shrink them yourself.
- Login box. Sometimes it's gone, sometimes I can see a corner of it peeking out of the top right of my screen, sometimes it will appear and then go away and the computer will suddenly sleep again.
- After logging in for about 10-15 seconds, my computer will go back to sleep. This is usually preceded by the funky login box issues mentioned above. It is very jarring and happens unexpectedly, but not very often. Maybe once or twice a week, through dozens of sleep cycles.
- Sometimes after logging in, my menu bar will be gone at the top, as well as my dock (not hidden). If I remember correctly, it seems like sometimes my desktop icons have also disappeared along with this issue. Like the one above, it is often preceded by strange login box behavior. It happens slightly more often then the above issue as well, maybe up to 3 times a week.
- Often when I have the gray background issue, the fuzzy background behind the Launchpad often disappears, showing through the regular desktop behind it, making things far less legible.
- Somtimes when having the gray background issue, the textures on the Mission Control background disappear, and sometimes the whole thing gets somewhat distorted and things don't line up properly or overlap. This distortion doesn't seem to happen as often as the missing pattern, however.
- Occasionally the Dashboard will overlay on top of what I'm currently working on. But it's not what you're thinking. I have the Dashboard setup as it's own desktop space. But the controls for editing the Dashboard Widgets will come up over what I'm working on. This seems to be the rarest of bugs. In addition, I even had mail exit full screen and land itself inside the dashboard. I could move it around inside the Dashboard and resize it, and even arranged my Widgets around it because it was kind of nice. It only lasted until I had to reboot or killed the Dock process as something else was broken. Can't remember which.
- Lastly, I've noticed that in Photoshop my document will be using the color settings for the main Macbook Pro display. They look muted and darker on my IPS screen. I've noticed it more recently as the current website I'm designing uses vibrant colors and the reds and greens were getting absolutely slaughtered. So I did a test: I opened my lid and waited for the display to wake up. I then moved my Photoshop window over to the Macbook Pro display and watched as the colors seemed to match perfectly what I would expect. But then as I move them back to the other display, it would flick over to the correct colors. Might be a Photoshop bug (I only noticed it since running the CS6 beta), but I thought it was worth a mention as it doesn't always do this, and it seems to accompany the other bugs—I think.
Many times when these issues are happening, I will notice my internal Macbook Pro's screen lighting up through the logo. It does it one or more times. I always run it in clamshell mode up on a mesh stand that keeps it nice and cool and elevated, as having the screen closed can cause an increase in temperature since the fan intakes are mainly around and in the keyboard area from what I understand.
My theory: the computer is having trouble knowing which display it should use upon waking from sleep. It flicks back and forth between them, and in the process something gets screwed up.
Per the color profile example above (#10), I would speculate that it believes it is using the Macbook Pro display, even though it is outputting to the external. Or at least it is part-way believing that it is using that display. That could explain the gray background issue.
Let me elaborate: my Macbook Pro will remember different displays I have plugged into it and set the correct background wallpaper. But what if there is no display plugged in? Well then it would not want to load the wallpaper into memory as that would be a waste. So it halfway thinks it's using the built-in display. It senses the external, matches the resolution, but that's it. It doesn't recognize an identifier? Maybe? That would tell it ok, this external uses X color profile, X wallpaper, and X whatever else. Perhaps this causes some of the other issues. Like ok, X monitor is setup as primary but it's not plugged in (or recognized by an ID), so don't put the menu bar at the top, or since it doesn't think an external is in use, it doesn't load the blurred out version of it's wallpaper for the Launchpad, or maybe the textures for Mission Control and other things go haywire because they think they are on a smaller resolution screen? My external is 1920x1200, and my MBP is 1680x1050.
So maybe upon login, some preference file is getting corrupted as it has a problem making the switch between the displays. If I were an Apple engineer (hah I wish), I would focus on that area, based on my own personal observations. I use my Macbook Pro to make a living, and to do school work (though I'm graduating soon), but this issue is still very annoying and often interrupts my workflow. As a workaround, I put the killall Dock command into Automator and saved it as an app to my desktop called "Fix My Mac" that I can click on to help get rid of some of these issues. That is, until my desktop icons disappear. Maybe I should set a keybaord shortcut for Terminal, lol.
As for debugging steps, I've tried about everything listed here already. Resetting PRAM, repairing permissions, updating everything, and even uninstalling or removing a lot of the tweaks or custom system utilities that I have installed.
I'm a huge Apple fan, but I still consider it unacceptable that this issue has been around for this long and is still not resolved. Perhaps moving to a yearly release cycle for OS X has put the pressure on the team to deliver new features instead of fixing existing bugs? I sure hope that's not the case. But perhaps the team in Cupertino could try using their Macs with some under $1000 non-Cinema displays? I've yet to hear of anyone having an issue with them. Maybe I'll put some graduation money towards one, lol. But I'm kind of wanting to hold off for a Retina Cinema Display, which would be magic for design work.
Here are some screenshots of the various bugs that I've amassed. Though I think I'm missing some.
This one was while I was working on cutting up a PDF for an email blast in Photoshop CS6. It's the Dashboard bug I mentioned earlier:
Here is an older one I found in my screenshot folder:
Here is one showing the Launchpad issue:
Here is another shot from another time:
Here is the dashboard bug:
I wish I had some screenshots of the other bugs, but I can't find them if I do. I don't think I've ever tried taking a screenshot at the login box, not sure if that would even work?
So that's my exhaustive overview of my Lion problems that are likely related to the issue in this post. Hopefully an Apple engineer will see this post and it will be helpful! Feel free to contact me, Apple engineers. I'd love to help settle this issue once and for all! This has been pretty ridiculous. I'm a fairly computer literate person. I used to build my own systems and wasted so much time troubleshooting Windows crap. I've been on OS X since 10.4 and Lion seems like a Lemon to me. 10.6 was rock solid, but I love some of the features in Lion like swiping between desktops. I just wish these bugs would get patched!