Standby problem and solution

X2/X3/X4x series specific matters only
Post Reply
Message
Author
fixup
Freshman Member
Posts: 51
Joined: Thu Jun 19, 2008 11:11 pm
Location: Corvallis OR

Standby problem and solution

#1 Post by fixup » Sun Jul 27, 2008 1:14 pm

I love my X20 in all aspects except one thing: often, it won't go into standby mode. After spending lots of time on this issue, I found mouse drifting is one of the causes, beside the old BIOS and video driver, and so far the only solution is this AutoIt (V2) script:

Code: Select all

SetTitleMatchMode, 2
Start:
Sleep, 6000
MouseGetPos, x1, y1
Sleep, 600000
Gosub, CheckMouseMove
MouseGetPos, x1, y1
SplashTextOn, 300, 100, Are you there?, Move mouse to continue.
Sleep, 2000
SplashTextOff
Gosub, CheckMouseMove
RunWait, tscon.exe 0 /dest:console
Run, taskmgr
WinWaitActive, Windows Task Manager
Send, !ub
WinActivate, Windows Task Manager
WinWaitActive, Windows Task Manager
Send, !fx
Goto, Start
Exit

CheckMouseMove:
Sleep, 6000
MouseGetPos, x2, y2
EnvSub, x2, %x1%
EnvSub, y2, %y1%
EnvMult, x2, %x2%
EnvMult, y2, %y2%
EnvAdd, x2, %y2%
IfGreater, x2, 10000, Goto, Start
Return
The script is very easy to understand and uses no CPU time and memory. It sleeps for 10 minutes and then check mouse movement. If no significant mouse move during the 10 minutes, it'll post an alert "Are you there? Move your mouse to continue". If still no significant mouse move, it'll open Windows Task Manager to put the XP into standby mode. If the PC is in Remote Desktop mode, it'll switch to console first.

Now my X20 is guaranteed to sleep after 10-20 minutes. Perfect.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad X2/X3/X4x Series incl. X41 Tablet”

Who is online

Users browsing this forum: No registered users and 4 guests