Juno - I also had trouble sleeping, and was up every 3 to 4 hrs for the 1st 3 weeks. I would take a pain pill to get thru it, go for a walk to loosen up my stiff leg, would sleep laying down, or with 2 pillows under my upper back or on a recliner, and basically do whatever I could to get some sleep. I dd find that sleeping on my sofa 1/2 the night did help, as it is not as firm and that made my leg more comfortable. Around 3 to 4 weeks out things got better, was able to sleep on non-operated side or stomach for a bit longer. Still got up about every 4 to 5 hrs now. 2 days from now I will be at 5 weeks, and am sleeping at 5 to 6 hrs, and only take a pain pills at bedtime. For me I noticed a lot of progress between week 4 and 5. Can't wait till 6 weeks when I am cleared for full weight bearing and no crutches.
Hang in there, it WILL get better.
Bob