Think of patents as the failure of an idea and fuel for packs of lawyers.
Think of patents as a gigantic heel grinding innovation into the dirt, then stomping on it many, many times.
When you can successfully patent a simple light switch or a simple, well-known algorithm, or an obvious arrangement of pixels, then the patent system has become worse than useless. It becomes an impediment, a retardant, an irritant, an infectious boil oozing the foulest stench imaginable, a bad thing.
Patents are for greedy sewers (suers), not for thinkers or problems solvers.
Avoid them. Keep your inventions hidden. If you sell your ideas, make sure you can one-up them first.