How to avoid Kernel Power id 41 problem

by Unbootable   from 2012/09/09

This is my heuristic solution for the kp41 in Windows 7.
After 7 months study, now I've found its mastermind.

My environment:

HW = DELL vostro 230s (Slim Tower Desktop), Intel(R) Celeron(R) CPU E3400 @ 2.60GHz [dual cpu], memory 2GB, internal hdd 250GB × 2devices
(Motherboard: made in Dell Inc. , BIOS: made in Dell Inc. , Graphics card: None)
OS = Windows 7 Professional (32 bit), SP1

My hypothesis:

The sleep and hibernate issues are the same origin as the kp41 issue.
--- Noise sensibility problem? (OS coding miss)


• Indispensable Settings:

1. - Changing Device Manager settings -

Network Adapters, Keyboard, Mice and other pointing devices,
For each device,
Click the Power Management tab,
and remove the check next to "Allow this device to wake the computer" option.
( --- includes "WOL [Wake On LAN] inhibit" )

i.e.
☑ Allow this device to wake the computer
   ⇓   force to change
☐ Allow this device to wake the computer


2. - Changing Power Option settings -

2.1 Never sleep/ stop

Control Panel, System and Security, and then click Power Options,
   |--- Open "Sleep" item, then, set the distance of time into the sleeping. (i.e. "Never sleep")

        "Sleep after" Never     (or, Set 0 [ = ∞] Minutes )

        "Hibernate after" Never     (or, Set 0 [ = ∞] Minutes )

   |--- Open "Hard disk" item, then, set "Never stop".

        "Turn off hard disk after" Never     (or, Set 0 [ = ∞] Minutes )


2.2 Untouchable battery

Desktop, please not to touch the battery options for note-PC.
Set disable all battery options by using POWERCFG DOS command.

Please execute the next 2 batch jobs q.bat and Battery.bat.
(Copy&Paste next each text image to the Notepad, and save them as "q.bat" and "Battery.bat" under your temporary folder. q.bat generates the verification file named q.txt. Battery.bat also Battery.txt)

- Active Plan watching - batch job:
Rem // This is q.bat
powercfg -L > q.txt
echo ================== >>q.txt
powercfg -q >> q.txt
pause

- Active Plan, Battery part changing - batch job:
(--- Set, Action = "Do Nothing", threshold level = "0%"   [ here, 0% intends that anytime is in safety-level.] )
Rem // This is Battery.bat

powercfg -q SCHEME_CURRENT SUB_BATTERY >Battery.txt
rem before image
echo ------------ >>Battery.txt

POWERCFG -SetAcValueIndex SCHEME_CURRENT SUB_BATTERY BATACTIONCRIT 0
POWERCFG -SetDcValueIndex SCHEME_CURRENT SUB_BATTERY BATACTIONCRIT 0
rem in critcal, DC Do nothing
POWERCFG -SetAcValueIndex SCHEME_CURRENT SUB_BATTERY BATLEVELLOW 0
POWERCFG -SetDcValueIndex SCHEME_CURRENT SUB_BATTERY BATLEVELLOW 0
POWERCFG -SetAcValueIndex SCHEME_CURRENT SUB_BATTERY BATLEVELCRIT 0
POWERCFG -SetDcValueIndex SCHEME_CURRENT SUB_BATTERY BATLEVELCRIT 0
POWERCFG -SetAcValueIndex SCHEME_CURRENT SUB_BATTERY bcded951-187b-4d05-bccc-f7e51960c258 0
POWERCFG -SetDcValueIndex SCHEME_CURRENT SUB_BATTERY bcded951-187b-4d05-bccc-f7e51960c258 0
POWERCFG -SetAcValueIndex SCHEME_CURRENT SUB_BATTERY BATACTIONLOW 0
POWERCFG -SetDcValueIndex SCHEME_CURRENT SUB_BATTERY BATACTIONLOW 0
POWERCFG -SetAcValueIndex SCHEME_CURRENT SUB_BATTERY f3c5027d-cd16-4930-aa6b-90db844a8f00 0
POWERCFG -SetDcValueIndex SCHEME_CURRENT SUB_BATTERY f3c5027d-cd16-4930-aa6b-90db844a8f00 0

powercfg -q SCHEME_CURRENT SUB_BATTERY >>Battery.txt
rem after image
pause

Story: Win7 Desktop logic sometimes checks the Battery Level status, and falls in a shutdown maze.
---- Is it true? (--- Windows 7's behavior is very odd.)



【 Here, Effectivity percentage: 1 = 45%, 2.1 = 5%, 2.2 = 50% (Not Evaluated)
  or
May be "2.2 = 100%" --- please evaluate! 】

Precise evaluation result: 1 and 2.2 are needed. And, 2.1 is no need.



Comment related 2.2 :

- When the threshold level = "100%" were specified, kp41 happened easily.
Repeatability --- Yes.
My PC is Desktop (i.e. not Notebook, No battery. ).

What means this fact?
My answer: (I hate to say) There are bugs in Battery management. The distinguish of Desktop and Notebook is confused.

--- It looks as if Desktop runs on the coding part for Notebook.




cf. Parent page1, Parent page2 (written in Japanese. If you are polyglot, please read.)
cf. Resolving Problems with Sleep and Hibernate Modes (Windows 7) (© HP Customer Care )
cf. Windows 7 - Power Plan Settings - Change (© Windows 7 Forums)
cf. Powercfg Command-Line Options
powercfg -setacvalueindex Scheme_GUID Sub_GUID Setting_GUID SettingIndex

[ Sets a value associated with a specified power setting while the computer is powered by AC power.]
[ -setdcvalueindex ---- for DC power]



Link free.      (C) 2012, Unbootable. All Rights Reserved.            [This is a child page.]