One solution is to make the government participate in the greed.
If the government starts charging a lot for each patent granted something like a million $ per patent all the trivial idea patents will fall out of the system and only ideas that took a lot of investment and research will become patentable.
Ideas that you can get just by thinking for an afternoon, those trivial ideas will not be worth filing a patent for.
Ideas are a dime a dozen ie 0.10 for 12. So an idea is worth exactly $0.008.