LCDoff - Software Screen Killswitch

Work/comment area for scripts and utilities like TP Fan, 2-finger scrolling, etc
Post Reply
Message
Author
kev009
Sophomore Member
Posts: 127
Joined: Tue Feb 01, 2005 10:12 pm
Location: Tempe, AZ
Contact:

LCDoff - Software Screen Killswitch

#1 Post by kev009 » Sat Dec 12, 2009 5:30 pm

Hi,

I wrote this utility when I upgraded my trusty T42 to Windows 7. The LCD kill function key combo no longer works.

http://www.kev009.com/wp/projects/lcdoff/

I wrote this little utility in assembler so it is 7.5kb small. It ought to work on even pretty ancient Windows versions unlike some of the .net ones you see out there. I also posted my Assembly code so you can hack it in to your own programs or confirm my utility isn't doing nefarious things.

If you pin it to your task bar, it is very convenient to use when you are going to step away from your computer, go to bed, etc but like to leave your machine running.
http://www.kev009.com/ - Blog
http://ps-2.kev009.com:8081/ - IBM Retro Archive

IBM ThinkPad T42, vintage 730TE, RS/6000 7006-42T, 7011-250, 7012-397, 7012-G40 (upgraded to 4x 200MHz PPC), xSeries rack servers, NetVista 2800
Sun Oracle Ultra 27 Xeon (i7) Quad Core 3.20GHz
SGI Fuel

yak
ThinkPadder
ThinkPadder
Posts: 1256
Joined: Thu Dec 06, 2007 3:17 pm
Location: NRW, Germany

Re: LCDoff - Software Screen Killswitch

#2 Post by yak » Tue Dec 29, 2009 8:07 am

I wrote something similar recently and posted it here:
http://forum.thinkpads.com/viewtopic.php?f=27&t=80052

I use the ThinkVantage button of my T60 to trigger it since the Productivity Center it used to start is no longer supported on Windows 7.

My version also turns the ThinkLight off, just like the Fn+F3 does.

BTW, Fn+F3 still works for me on Windows 7 but since now I'm able to turn the monitor off with a single keypress, I use the Fn+F3 to switch power schemes.
ThinkPad™ X201 / AFFS-120
i5-560M 2.67Ghz, 8GB RAM, Samsung 840 Pro 256GB SSD, Win 8 Pro 64-bit, UltraBase X200, ThinkPad Compact USB Keyboard,
Dell U2713HM (2560x1440, IPS), ExpressCard USB 3.0 (2 ports, flush), Nexus 7+10

Marin85
Senior ThinkPadder
Senior ThinkPadder
Posts: 2975
Joined: Sat May 12, 2007 10:54 am
Location: Munich, Germany

Re: LCDoff - Software Screen Killswitch

#3 Post by Marin85 » Tue Mar 16, 2010 7:53 pm

Is there any way to make Fn+F3 switch off the monitor, provided one does not have Lenovo Power Manager installed? I have my ThinkVantage key assigned to control panel, and given the state of my battery, Lenovo Power Manager has just become obsolete for me, not to mention that most profiles under Power Manager are not very effective (unlike Windows 7 native power management or many earlier versions of Power Manager)...

Thanks,

Marin
IBM Lenovo Z61p | 15.4'' WUXGA | Intel Core 2 Duo T7400 2x 2.16GHz | 4 GB Kingston HyperX | Hitachi 7K500 500 GB + WD 1TB (USB) | ATI Mobility FireGL V5200 | ThinkPad Atheros a/b/g | Analog Devices AD1981HD | Win 7 x86 + ArchLinux 2009.08 x64 (number crunching)

yak
ThinkPadder
ThinkPadder
Posts: 1256
Joined: Thu Dec 06, 2007 3:17 pm
Location: NRW, Germany

Re: LCDoff - Software Screen Killswitch

#4 Post by yak » Tue Mar 16, 2010 10:06 pm

Marin85 wrote:Is there any way to make Fn+F3 switch off the monitor, provided one does not have Lenovo Power Manager installed?
Hi Marin,

I guess if the hotkey utility is installed then you can tweak the registry. Start "regedit" and go to:
HKEY_LOCAL_MACHINE\Software\IBM\TPHOTKEY\CLASS\01\03

The "File" value in this key determines what will be started when you press Fn+F3. In my case it is:
C:\PROGRA~1\ThinkPad\UTILIT~1\PwmOSDV.exe

which shows the Power Manager's power schemes popup window (or turns the display off depending on configuration). If you put the LCDoff there, it should work. Also consider using my equivalent which doesn't cause a console window to pop up and it turns off the ThinkLight as well.

You may still need the Power Management Driver or whatever it is called. I'm not sure but it's possible the hotkey utility needs this to work.
ThinkPad™ X201 / AFFS-120
i5-560M 2.67Ghz, 8GB RAM, Samsung 840 Pro 256GB SSD, Win 8 Pro 64-bit, UltraBase X200, ThinkPad Compact USB Keyboard,
Dell U2713HM (2560x1440, IPS), ExpressCard USB 3.0 (2 ports, flush), Nexus 7+10

Marin85
Senior ThinkPadder
Senior ThinkPadder
Posts: 2975
Joined: Sat May 12, 2007 10:54 am
Location: Munich, Germany

Re: LCDoff - Software Screen Killswitch

#5 Post by Marin85 » Wed Mar 17, 2010 10:46 am

Hi yak,

thanks for your response! For some reason I could not make the Fn+F3 combination work, I tried a custom location like C:\MonitorOff\MonitorOff.exe and then the ThinkPad Utilities location (who knows :) ), but they both did not work out for me. However, it was no problem to assign the MonitorOff function to the ThinkVantage key as you describe in your post. In fact, I like it more than tha Fn+F3 because it is just one click :), not to mention I have a Control Panel link on my start menu anyway. Thanks for the great utility!

Marin
IBM Lenovo Z61p | 15.4'' WUXGA | Intel Core 2 Duo T7400 2x 2.16GHz | 4 GB Kingston HyperX | Hitachi 7K500 500 GB + WD 1TB (USB) | ATI Mobility FireGL V5200 | ThinkPad Atheros a/b/g | Analog Devices AD1981HD | Win 7 x86 + ArchLinux 2009.08 x64 (number crunching)

rcepek
Posts: 16
Joined: Wed Mar 24, 2010 3:50 pm
Location: Brooklyn, Ohio

Re: LCDoff - Software Screen Killswitch

#6 Post by rcepek » Fri Mar 26, 2010 10:34 am

http://www.grc.com/wizmo/wizmo.htm

Has anyone tried this? I use it currently with the "=monoff" switch works quit well andicon on I just place a shortcut my desktop

yak
ThinkPadder
ThinkPadder
Posts: 1256
Joined: Thu Dec 06, 2007 3:17 pm
Location: NRW, Germany

Re: LCDoff - Software Screen Killswitch

#7 Post by yak » Fri Mar 26, 2010 12:38 pm

rcepek wrote:http://www.grc.com/wizmo/wizmo.htm

Has anyone tried this? I use it currently with the "=monoff" switch works quit well andicon on I just place a shortcut my desktop
Well, my tool is still better cause it turns the ThinkLight off, hehe ;)
ThinkPad™ X201 / AFFS-120
i5-560M 2.67Ghz, 8GB RAM, Samsung 840 Pro 256GB SSD, Win 8 Pro 64-bit, UltraBase X200, ThinkPad Compact USB Keyboard,
Dell U2713HM (2560x1440, IPS), ExpressCard USB 3.0 (2 ports, flush), Nexus 7+10

jsharpe
Posts: 3
Joined: Thu Mar 31, 2005 11:46 am

Re: LCDoff - Software Screen Killswitch

#8 Post by jsharpe » Tue Apr 20, 2010 10:14 am

I just discovered that in the current Thinkpad power management utility (under the advanced settings) there is an option to select what fn+f3 does. It can either be set to launch the power utility or turn off the LCD. I believe it defaults to the power utility but I just tried setting it the other way to get the "legacy" behavior I was looking for. It worked great.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad Utility Work Area”

Who is online

Users browsing this forum: No registered users and 0 guests