This is how patent system could have been done without violence: a group of tech companies willing to protect their IP come together and agree on a single protocol which will register their inventions. They will list what kinds of inventions are patentable and not patentable. If something in this protocol remains vague to anyone it won't be signed. Then, they agree to regularly elect a group of experts who would inspect all incoming submissions and decide which non-patented inventions are violating or not the existing patents. Every participant would have to follow the decision of the experts, or would have to appeal to other participants (in order to re-elect the experts, reexamine the protocol, or reexamine this particular decision).
If participant does not follow the decision of the experts, he is publicly defamed and economically ostracised, just like any other non-participant who violates existing patents. If any participant does not punish violators via ostracism (whether participants or not), he himself is ostracised by others.
If a large enough group of tech companies really values patents over costs of ostracism, they can do just that. (Like they agree not to hiring specialists from each other.) If they don't find the way to agree on patents, then they do not deserve them. And nobody should go to prison because of that. My gut feeling is that neither Google, nor Apple, nor Microsoft likes patents. They could agree about hiring top people, about very specific trademarks like logos, but they would never spend time fighting over rounded corners if they were not given a poisonous weapon which is a tax-funded patent office, police and prisons.
Resume: You do not need violent intervention with guns and prisons to protect yourself. Example: Apple's customers do not like working conditions of its partners' factories, so they can ostracise Apple. Apple in response asks factories to improve conditions, or Apple will ostracise them. There is no violence, but only negotiation.