Lets say we have near future, which has both regular guns and energy based stun guns (What would the rules for carry and use of weapons be affected by reliable stun guns?). The government wants ways to regulate and prevent criminal use of these weapons. This need is further driven by the inability to use ballistics to trace stun gun use back to the firing weapon to link the owner of a weapon to a crime; and by the fact that the quieter and less restricted stun guns have proven a very effective way of killing by stunning someone and killing them at leisure in a less public and harder to trace manner.
Being the near future we have access to all our modern technology, and it's cheaper in the future, making installing some of it on regular guns a more viable option financially. Any technology which can reasonable be expected to be created in the next say 75 years may also be available.
I'm wondering what counter measures that are not currently used may be added to minimize illegal use of these weapons. I'm looking mostly at ideas for incorporating features within the weapons that are sold themselves, though other countermeasures which make sense I'm open to.
In particular I'm interested in not only what could exist, but what will, meaning what will the public accept. We could, for example, build in a chip that is suppose to disable a gun entirely if it receives some programmed police disable command, however, I'm not convinced that anyone would be able to pass a law mandating something like this due to gun advocates complaints about the regulation, the odds of it being used by criminals etc etc. I'm wondering what people would actually allow. In fact I feel this question is as much a cultural one then technological, I figure it's resistance from gun advocates that would prevent many options more then technical limitations.
Note, obviously anything built into a weapon could be disabled by criminals, but if you make it hard enough you can still limit the harm then the less tech savvy and harden criminals (aka 95% of criminals) can do, and thus interventions could still be useful.
One idea I had was to add a chip into stun guns, and possible regular ones as well, which recorded at minimum when exactly a gun was fired, and potentially a rough area based off of GPS. A police officer )and only officers with appropriate security keys) who has access to the gun, and perhaps a search warrant, could then download the information to see if this particular gun was fired at the time of a crime to decide if the gun owner is a suspect. I think this option is viable both technologically and unlikely to get as heavy resistance from gun advocates due to the fact that it doesn't prevent the gun use, can only be used by cops, and is less invasive then say, a cop being able to look up when you made calls on your phone, so it hardly lacks precedent. I welcome thoughts on the viability of this option, but I'm looking for other options as well.
I have a slightly higher interest in US for culture, however, I'm looking at a global perspective and not limiting myself exclusively to US. If an option may be viable in other country but would be shot down in the US due to the 2 amendment I'm still interested in it.