Hi,
I've upgraded my K10D to newest 1.31 firmware, loosing ability to fix focus issues with my lenses. Debug mode is reachable using
PK Tether under Microsoft Windows operating system though. Sadly, since I am die-hard gnu/linux user and free software (some call it open source) fan, using PK Tether is not an option for me, so I reverse engineered the protocol used by PK Tether and created a patch for
pkTriggerCord, an open source program that do tethering with Pentax cameras under Windows/Linux/Android.
pkTriggerCord can also be used on android phones, so entering and leaving Debug mode is possible when shooting outside without the need of a computer. All necessary patched code can be found at my github repository
https://github.com/samop/pktriggercord.
As for now only pktriggercord-cli is adapted to this hack (use it as pktriggercord-cli --debug-mode=1 to enable camera debug mode and pktriggercord-cli --debug-mode=0 from the command line). When applied, the camera lcd flashes a bit and then disconnects from the program. It was also tested on rooted android phone with superuser access and it works perfectly. With a little knowledge of programming you can write gui yourself.
If you try the code I am interested to know whether it works for you or not. Please specify camera model and firmware version with your report
Note: pktriggercord was not created by me so original credits for this extraordinary tool applies.
Note 2: when using the code, you are using it strictly on your account. I am not liable to any damage to your camera, data on your sd card or if your life starts spiraling downwards because of this code.
Samo.