I feel like part of the issue is cultural. Just like Nintendo putting video games in the boys section of the toy store, Hollywood has made tech out to be a field dominated by anti-social, awkward, and frankly gross, morbidly obese, barbaric dudes that shower once a year. From Jurassic Park to NCIS, tech people are not “sexy” and are typically quite unsavory.
Some of the newer shows have done better, as have the newer toy isles… and video games and tech do seem to be rebounding, at least somewhat (anecdotally of course).