What gives me comfort is acknowledging the limits of technology in general. Even though technology has profound material affects on human life, it ultimately is a system with its own motives that are totally alien to human interests. I thought "Technopoly" by Neil Postman did a pretty good job summarizing this.
Humankind has always been and always will be codependent with technology, but ultimately, human culture is a distinct thing with distinct values from technology. To find meaning we need to take seriously philosophy, tradition, and religion. Taking the thoughts of people who lived before the major technological shifts as seriously (if not more) than of people today made all the difference in my mindset.
I admit, I'm still pessimistic about our technological future -- uniquely worried about some profound harm coming down the pipeline. But that's not the same as despair. I still feel like I can have a meaningful (even if very small) part to play in the story of humankind, separate from the story of technology.