microtrigger / lightpack

Automatically exported from code.google.com/p/lightpack
GNU General Public License v3.0
1 stars 0 forks source link

turn off light when system going to sleep #268

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Turn system to sleep/hibernate
2. Monitor turns off, lights still enabled

What is the expected output? What do you see instead?
Lightpack.exe should listen for some sleep/hibernate winapi message, and turn 
off lights. (As it listen for shutdown message)

What version of the product are you using? On what operating system?
5.8.6-1 at Windows 7x64 (I have +5v at USB when computer is off or sleep)

Please provide any additional information below.
For now i have to solve this by such script binded to eventlog events to 
sleep/restore:

@echo off
SetLocal EnableExtensions EnableDelayedExpansion

set pid=
for /f "tokens=2 usebackq" %%i in (`tasklist ^|find /i "lightpack"`) do (set 
pid= %%i)

if "%1"=="" (
  echo Toggle...
  if "!pid!"=="" (call:start) else (call:kill)  
) else if /i "%1"=="on" (
  @ping -n 2 -w 10000 1.1.1.1
  call:start
) else (
  call:kill
)
goto end

:start
  echo Start...
  start lightpack.exe
goto end

:kill
  echo Kill...
  RMTool.exe /p !pid! /S

Original issue reported on code.google.com by i...@sepa.spb.ru on 1 Jul 2012 at 8:04

GoogleCodeExporter commented 9 years ago
already fixed

Original comment by tim.hell...@gmail.com on 10 Aug 2012 at 8:23

GoogleCodeExporter commented 9 years ago
How can I test this? :)
In download section there is only 5.8.6-1 version dated January.
10x

Original comment by i...@sepa.spb.ru on 10 Aug 2012 at 6:21

GoogleCodeExporter commented 9 years ago
the only way to test this feature is to build software from sources, you will 
need this 
http://code.google.com/p/lightpack/source/detail?r=ba4b454d395a5b79197efa3105a18
d1df61c750b commit.

Original comment by tim.hell...@gmail.com on 11 Aug 2012 at 4:05

GoogleCodeExporter commented 9 years ago

Original comment by tim.hell...@gmail.com on 10 Dec 2012 at 12:43

GoogleCodeExporter commented 9 years ago
Fix for all platforms (firmware change) is available now: 
https://github.com/Atarity/Lightpack/blob/master/Firmware/Lightpack_hw7.hex
Feel free to try it and report whether it works as it should.

Original comment by alexey.r...@gmail.com on 5 Jun 2014 at 5:01