There used to be a utility called DoNothing that simulated a single-key input every few minutes to keep the device from going into sleep mode, but I can't find it anywhere. But SmallTweak appears to be able to disable the device timeout, as it has a check box allowing you to toggle the auto-shutoff on battery power.
(That check box is missing in the Power applet in the Control Panel, thus only allowing you to set the time of inactivity before shutoff.
)
If you want to control it directly in the registry, go to HKCU/ControlPanel/Backlight and change the value in BatteryTimeout to 0.
