Plenty of luxury cars have a sensor on the front that measures distance and closure rate to the vehicle in front of them and applies the brakes when needed. We just need to adapt this to trucks and have it apply the clutch as well.
Only probably I could see is, maybe, trucker unions being against any such "deadman switches" being installed in vehicles, not to mention the time and logistics of implementing such a law, when it's hardly even 100% universal in trains.
But certainly *some* system could be devised to prevent truckers operating vehicles on 24-hours straight of no sleep.
Hell, how about this: A trucker has a dedicated key to his truck in a fleet, on this key is a fob or some-kind-of chip in the head of the key that only allows the truck to operate for whatever the maximum period of time is. After which point the chip causes the truck to broadcast a signal to headquarters, dispatch, and maybe even set-off an alarm. In short something that means the driver has to stop and shut-down the truck in order to shut-off the alarm/signal. At which point the computer won't let that particular key start the truck up for 8-10 hours. (Enough time for the driver to get a rest.)
Now, yes, the driver could switch keys with someone or use something to circumvent the system (train operators at times will but a brick or something on the "deadman's pedal" to circumvent that safe guard) but doing this would be illegal and get the driver's license suspended.
Truck drivers are under a lot of pressure to make their deliveries and make their deliveries on time and there's cases all of the of drivers operating their vehicles on little to no sleep, past the point they're legally allowed to operate their vehicle. Seems to me it is well past time for something to be done or changed to ensure accidents like this don't keep happening. I had a classmate and acquaintance in junior high die when a dozy truck driver ran a light and crashed into the kid's car. And I'm sure there's road-side memorials all over this country dedicated to similar incidents.
Seems well past time for a change, we've certainly the technology to do *something.*