Machines and surgery are doctor-recommended methods of getting rid from sleep apnea particularly those severe types but there are ways on how we can get relief from this medical condition. http://www.heall.com/sleep-disorder/
Prevent Windows sleep when your PC is in use. Streaming video, running extensive calculations, copying large amount of files, etc. Inputs might be idle, but sleep should not be triggered as the PC's resources are in use.
BackToSleep protects your laptop in a sleep (standby) mode. If your laptop unpredictably awakes from sleep mode, it may be permanently damaged due to overheating. BackToSleep monitors unwanted awakenings and returns the laptop back to sleep mode.
Windows utility that keeps your computer asleep when it's not busy; a timeline shows when your computer was asleep or awake over the last several days. Define wake timers and tasks. Windows 7, 8.1 or 10. More info at www.molliesoft.com/winsleep.
A free Windows software to prevent your computer from going into idle or sleep mode. Awake comes in handy when you have a a task which requires long time to execute.