It’s possible that a donation based-society might work. However, I’m not sure how that can be achieved in parallel to a profit-based society (the on we majorly have to take part in).
IMO one way is to force the issue by making certain methods of profit impossible or not worth it in the long run. Something like “don’t use it? you lose it” in terms of patents or proprietary solutions. For example if a company stops producing and supporting something, then it has to release the designs, code, and intellectual property to the public.