Opened 19 years ago
Closed 19 years ago
#26 closed defect (fixed)
video2 works as perfect shutdown-tool if 'Use APM' is enabled in settings
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | WVGUI-Core | Version: | 1.0 |
Severity: | normal | Keywords: | APM |
Cc: |
Description
If 'Use APM' is checked video2 shuts down my laptop (T23).
Just starting video2 is enough. version: 10rc2
STDOUT log (complete):
set APM state 0 returns 4
cycles: 2
t: 0.062538, t1: 0.031254
CPU Freq: 23262518 Hz
Current codepage: 850 (IBM-850)
pipe [\PIPE\WV] open error: 3
pipe 3 opened
CD popup thread started
Built: 14 Feb 2006
OS/2 minor revision: 45
SSaver support inited
Attachments (3)
Change History (14)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
"Use APM" should be selected if you want to turn _off_ APM while using Warpvision (so as to have better performance) so processAPMOffRequest() is correct.
comment:3 by , 19 years ago
Ok, if processAPMOffRequest() is the right funktion, then the used parameter SUBID_DISABLE_POWER_MANAGEMENT or SUBID_ENABLE_POWER_MANAGEMENT are not valid parameters for this funktion.
comment:4 by , 19 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
well, patches are welcome Since I dont have any APM pc/notebook
by , 19 years ago
Attachment: | apmoff.zip added |
---|
sorry no patch but at at least example-functions that work for me
comment:5 by , 19 years ago
I hope the example is all you need for implementing.
But if you insist I could try to patch the sources myself, hoping not to break something else ;-) but I'm soon on holidays for 3 weeks and offline, so it might take some time.
by , 19 years ago
Attachment: | apmdiffs.zip added |
---|
ok, here are diffs that work here, I hope it doesn't break something else, but it's a start
comment:6 by , 19 years ago
ok, I tried to write a patch, see the attachement from the last entry.
Hope it works. (At least it compiles and works for me)
Franz
by , 19 years ago
Attachment: | apmdiffs-v2.zip added |
---|
Updated diffs for APM. Should be save now. At least I hope so ;-)
comment:7 by , 19 years ago
Hi Vlad,
I hope you like the diffs and they make it into the trunk.
Franz
comment:8 by , 19 years ago
Is it necessary to write 3rd reincarnation od DosOpen/DosIoctl/DosClose? :) Regards, Vlad
comment:9 by , 19 years ago
Not shure, but your version of open returned int where it should return HFILE which is not int.
I´m not shure, if this is a problem or not, so I thought it is save to rewrite.
Franz
comment:11 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Looking into the sources: seems that calling processAPMOffRequest() is the wrong function for _enabeling_ Power-Management.