I've read many reports that the SDM autofocus motor in some Pentax lenses may stop working after several months or years of use. Why does this happen, and is there anything I can do to prevent failure or restore a lens with a failed SDM (aside from sending it in for repair)?
When 2 of mine failed, the solution was the same: Send it back to the manufacturer. Once it was under warranty, the other time it was not. Pentax is notoriously slow at servicing parts and, sadly, it took between 2 and 4 months to get the lenses back.
These were some of their earliest lenses which had more problems. This has not happened with any of my newer lenses. Not sure if there was anything to do other than not use autofocus. It seems like a wear-and-tear issue because before mine failed, the AF was getting slower and slower on one lens and on the other it stopped working for certain distances. Eventually it stopped completely. Now since this was in the K20D times, maybe I would have just used MF for the out-of-warranty one, it is easy to focus faster than a K20D by hand :)
My first lesson learned here was that if you have a backup camera body, a lens eventually fails. Since then, I have both backup bodies and backup lenses.
Four years later, those same two lenses, now both over 8 years started to have intermittent issues. As they are still optically perfect and I cannot part with them for a while, I decided to hack the firmware of a lens and do it to the other, if it worked. The good news is that it worked flawlessly and now these two lenses focus again quickly but not as quietly. None of the newer lenses ever had issues, so it must be a first-generation thing. This video explains it perfectly.
An answer that might help you is what I did when one of my lenses failed. I still use the K10D body and so I reverted to an earlier version of the firmware (1.2). This forced the camera to use all SDM lenses as screwmount. If you have a K10D body that hasn't been updated to 1.31 firmware, you can revert via a hex hack.
This is the only way that I know to still use AF with the SDM lenses when they fail.
I would say you can convert the lenses into screwdrive and you will have auto-focus again. I did that with a Pentax DA* 50-135mm f2.8 with a dead SDM and it auto-focuses now with the screwdrive.
The solution is known in case you decide to try it by yourself.
It is quite easy to do. You just need to follow the steps, be patient. It should take around 15 to 20 minutes of your time and you will have again a fully AF lens.
In my case it made an SDM lens that previously would not auto-focus work again without any issues.