I think I have cracked it.
I can't sleep for a whole night in a bed at the moment. The hip complains and prods me awake. I've tried toughing it out, but for the last couple of months I have spent the early hours, through the dawn to 6 or 7am, in the recliner in the front room. It's more comfortable there, and I don't keep disturbing my husband's sleep.
I have watched a good deal of nocturnal Olympic TV, most of it with my eyes shut - I missed Mo Farah's fall, but was awake for the interview after he'd won. I have discovered that BBC 2 broadcasts snippets of documentaries and many versions of its between-programmes signature, and that my favourite is the furry 2 that squeaks and does a somersault. I've also been permanently dopey during the daytime and prone to falling asleep while I work at the computer.
However, I think I've found the right balance.
Go to bed at my usual time with the usual bedtime painkillers.
Expect to wake around 2am unable to find a position that doesn't hurt.
Go down to the kitchen, make a hot drink, take another dose of painkillers and set up camp in the recliner with specific cushions and a pillow, and the furry throw which I bought cheap at Poundland and seems to have an extraordinary ability to induce sleep.
Sleep till, usually, 5am.
Go back to bed and sleep till 7.30am.
On this regime I have been awake and normal (well, as normal as I ever get) for a whole two days now.
Still - roll on the pre-op assessment, and a date to have the hip replaced.