In general terms, an uncomfortable place. A dusty, awkward corner. Usually the gap sometimes created between a single bed when moved slightly away from the wall.
"What's up with you? Did you get out of the wrong side of bed this morning?"
"Certainly did. I woke up to find myself halfway down the gratey!"