Showing results for 
Search instead for 
Do you mean 
Reply
802.11n
Posts: 151
Registered: ‎12-16-2008
Location: canada
Message 1 of 9 (6,275 Views)

ThinkLight - programmatic control

anyone know how to programmatically control the ThinkLight?  in other words, detect its operational state and toggle it ON/OFF, via software (preferably without having to install the bug-ridden On Screen Display utility).

a hypothetical example might look something like this:

C:\<somepath>\thinklight.exe -state

would return an %errorlevel% value of either 1 (ON) or 0 (OFF), which could then be used in conjunction with a simple batch script to enable/disable (toggle) the light.  the command to toggle the ThinkLight might be simply to run the 'thinklight.exe' utility without any parameters.  of course, the detection logic could also be incorporated into the thinklight utility itself, in which case, 'thinklight -ON' and 'thinklight -OFF' would enable & disable the light, regardless of its present state.

surely, someone out there must have coded a ThinkLight utility by now?

Posts: 9,293
Topics: 25
Kudos: 707
Solutions: 644
Registered: ‎11-27-2007
Location: SK
Message 2 of 9 (6,262 Views)

Re: ThinkLight - programmatic control

Sorry, AFAIK it's not possible. I believe it is a key combination which is controlled by BIOS.

Andy  

______________________________________


Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points

Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos

Please add your type, model number and OS to your signature, it helps to help you.

Forum Search Option

T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more.

FYI Unsolicited Personal Messages will be ignored.

  Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество

PepperonI blog 

802.11n
Posts: 151
Registered: ‎12-16-2008
Location: canada
Message 3 of 9 (6,258 Views)

Re: ThinkLight - programmatic control

@andy - thanks for the followup.  "not possible" is a tad discouraging... it must be possible, given that the OSD itself programmatically controls the ThinkLight by scanning for the Fn-PgUp keycode and then toggling the light.  whether or not the functionality of the thinklight is done via the system BIOS is irrelevant.  the question remains, is it possible to determine the operational status of the thinklight, through software, like an ON/OFF bit that can be read from some hardware register, which could then be used to programmatically control the thinklight?  in theory, this shouldn't be difficult at all... i'm just surprisesd that it hasn't been done yet.
802.11n
Posts: 151
Registered: ‎12-16-2008
Location: canada
Message 4 of 9 (6,238 Views)

Re: ThinkLight - programmatic control

[ Edited ]

apparently it can be done, controlling the ThinkLight via software, using a 'thinkpad-acpi' script... in Linux.

 

sigh... what are we lowly Windows serfs to do?  am i gonna have to code this thinklight gadget myself??

 

btw, programmatic control is already built-in to the ThinkVantage Mobility Centre, ie, the ThinkLight can be toggled ON/OFF by launching the mobility center and clicking on the ThinkLight button (the SMIIF & OSD drivers must be installed first tho)... so it shouldn't be difficult to add '-ThinkLightON/ThinkLightOFF' commandline switches to the mobility center executable, right?

 

this thinklight thing is mostly an academic exercise on my part, however, i can think of situations where software and/or event-triggered control of the ThinkLight could be useful, like automatically turning itself OFF/ON at certain times of the day/night, simply by creating an event in the Windows Task Scheduler.  or even a clickable ThinkLight applet, shortcut'd on a Desktop dock might be 'fun'

 

anyway, i can't be the only nerd out there who's thought about this... can i??

Message Edited by techcafe on 02-19-2009 02:40 PM
Guru
Posts: 2,199
Registered: ‎12-22-2008
Location: CA
Message 5 of 9 (6,237 Views)

Re: ThinkLight - programmatic control

See http://www.thinkwiki.org/wiki/ThinkLight
__________________________________________________
Cheers... Dorian Hausman • ca.gif English community
E470, Y900s, X1C2, TPT2, T430s, SL500, X61s, T60p, 5160 [R.I.P. A21p, 770, 760ED... 5150... S360/30]
802.11n
Posts: 151
Registered: ‎12-16-2008
Location: canada
Message 6 of 9 (6,235 Views)

Re: ThinkLight - programmatic control

yes, you beat me to it... i had already discovered the link you just posted, but forgot to embed it in my post.  thank you.  the article makes no mention of an actual windows utility (executable) that's available... but i'll have to take a closer look.
802.11n
Posts: 151
Registered: ‎12-16-2008
Location: canada
Message 7 of 9 (6,230 Views)

Re: ThinkLight - programmatic control

[ Edited ]

well wouldn't ya know it... in a thinkpads.com forum thread, i found a ThinkLight utility for Windows, coded by Arkadiusz Wahlig, to whom i'm about to send a nice thank you letter. it appears to be exactly what i was looking for.

 

now let's see if i can make this thing work with the Windows Scheduler

 

here's the internal help, etc for the ThinkLight.exe utility:

 

Usage:
  ThinkLight.exe <command> [args]
Commands:
  on - turns the ThinkLight ON
  off - turns the ThinkLight OFF
  toggle - toggles the current ThinkLight state
  blink <count> [speed]
        - blinks the ThinkLight <count> number of times,
        speed is number of blinks per second and defaults
        to 3

ThinkLight control utility
Version 1.01 (4.12.2008)
Copyright (c) 2008 Arkadiusz Wahlig

Note from Moderator: Removed AW's e-mail address.

Message Edited by JaneL on 02-19-2009 02:42 PM
802.11n
Posts: 151
Registered: ‎12-16-2008
Location: canada
Message 8 of 9 (6,217 Views)

Re: ThinkLight - programmatic control

ooops, sorry about that... i should've removed the author's e-mail address first... my bad? :~{
802.11n
Posts: 151
Registered: ‎12-16-2008
Location: canada
Message 9 of 9 (6,203 Views)

Re: ThinkLight - programmatic control

just a quick followup... Arkadiusz Wahlig's ThinkLight utility works GREAT in Windows XP (32bit OS), but is unsupported in Vista x64, because the thinklight executable is a 16bit app.  d'oh!  oh well, at least it works on my XP machine.  hopefully the author will compile a 64bit version of the thinklight utility in the future.
Top kudoed Authors