Hello,
Thanks for using healthcaremagic.
I think
atenolol may cause sleep disturbance, particularly when taken before time.
Losartan is not going to cause such complaint. One another reason is your joint pain problem.
Insomnia are of two types.
primary insomnia is without any reason and only problem of sleep disturbance is there.
Secondary insomnia is due to some physical or psychological problem in which specific treatment of that problem is necessary.
In both types benzodiazepines group of medicines can be useful with doctor's advice.
Some measures called "Sleep Hygiene" is useful, which you can search on internet.
So with above information keeping in mind consult your doctor and find the solution.
Hope I have answered your query.late me know if still any info needed.
Regards, Dr. Chintan Solanki