Sorry, this is likely a bit of a naive question, but I'm having some trouble with my graphics drivers causing my system to shut off randomly (doesn't seem to be overheating but let's not worry about that right now).

I can't do much without having some detailed error logs to share, but when I cat dmseg I'm only getting information from when I boot up afterwards. Is there a way to either get older information, or to keep a log running that will be saved if the system shuts off (kind of like a black box?)