Can I make a Shortcut that changes lid closing function?

T4x series specific matters only
Post Reply
Message
Author
Uncletoad
Freshman Member
Posts: 96
Joined: Wed Sep 22, 2004 7:27 pm
Location: Columbus, Ohio
Contact:

Can I make a Shortcut that changes lid closing function?

#1 Post by Uncletoad » Wed Dec 01, 2004 8:49 am

My workshop is quite dusty and a known computer killer. As such I like to close the lid on my T42 when I'm at work but leave it running Outlook so I can get my email and apointment notices when they occur. So I set it for "do nothing" when closing the lid at the shop.

When I'm elsewhere I'd prefer it was in standby when I open and close the lid. So I change that setting when I leave.

Any quicky shortcut configuration ideas so I could change that back and forth on the fly?
Salutations from the Land of Cows
Phil Maneri

T42p 2373KXU 15” UXGA
T42 2373K9U 14.1 XGA x2
T42 2373B21 14.1 XGA

Looking for a T42p 2373Q1U UXGA

Starmanx
Posts: 15
Joined: Wed Dec 01, 2004 8:50 am
Location: Greenock ( UK )
Contact:

#2 Post by Starmanx » Wed Dec 01, 2004 10:28 am

you can make a .reg file that imports the settings in your registry ....
actually you make 2 option1.reg and option2.reg

option1.reg=settings for do nothing
option2.reg settings for standby

thenyou save to your desktop, one click, confirm and you have your settings...
xSeries eServers TTL L2 DMS

lfeagan
Junior Member
Junior Member
Posts: 445
Joined: Tue Oct 19, 2004 11:04 pm
Location: Leawood, KS
Contact:

#3 Post by lfeagan » Wed Dec 01, 2004 10:40 am

This might get you started. Basically you are going to need to send a command line call to the program, here is one that does suspend:

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState

http://www.fixup.net/tips/suspend/suspend.htm
Image
T61p (6459CTO)|T9500|15.4" WUXGA-4GB|200GB FDE|256MB nVidia FX570M|Atheros|Cingular WWAN|openSuSE 11.0
T42p (2373GVU)|PentiumM 1.8GHz|2GB|100GB|ATI FireGL T2|Atheros|openSuSE 10.3
WaterField Designs Cargo + Sleeve

Uncletoad
Freshman Member
Posts: 96
Joined: Wed Sep 22, 2004 7:27 pm
Location: Columbus, Ohio
Contact:

#4 Post by Uncletoad » Wed Dec 01, 2004 3:41 pm

Excellent. The reg file sounds like the thing. I'm not entirely sure how to do that being a guitar player and all but I'll figure it out. Thanks for the tips.
Salutations from the Land of Cows
Phil Maneri

T42p 2373KXU 15” UXGA
T42 2373K9U 14.1 XGA x2
T42 2373B21 14.1 XGA

Looking for a T42p 2373Q1U UXGA

egibbs
Senior Member
Senior Member
Posts: 896
Joined: Tue Apr 27, 2004 6:05 am
Location: New Jersey

#5 Post by egibbs » Thu Dec 02, 2004 7:09 am

Hmmm...

This opens up some interesting possibilities. :twisted:

Old Triumphs (the car) used to have a failure mode where a blocking diode in the dashboard would short. When that happened putting on the parking brake would cause the brake light to illuminate, which would then energize the starting circuit through the shorted diode, which would cause the motor to start. Very clever, those Lucas engineers.

How about a hack that plays the "You've got mail!" wav file every time the lid is closed... :lol:

Ed Gibbs

Uncletoad
Freshman Member
Posts: 96
Joined: Wed Sep 22, 2004 7:27 pm
Location: Columbus, Ohio
Contact:

#6 Post by Uncletoad » Thu Dec 02, 2004 8:12 am

Are registry imports only available to the Administrator user or can any identity use them? I can't seem to make those take and I suspect it's because I've been running as a "user".
Salutations from the Land of Cows
Phil Maneri

T42p 2373KXU 15” UXGA
T42 2373K9U 14.1 XGA x2
T42 2373B21 14.1 XGA

Looking for a T42p 2373Q1U UXGA

skanky
Senior Member
Senior Member
Posts: 517
Joined: Fri Oct 15, 2004 11:25 am
Location: London, UK

#7 Post by skanky » Thu Dec 02, 2004 8:21 am

most likely have to be a local admin, or power user but not sure about that.

lfeagan
Junior Member
Junior Member
Posts: 445
Joined: Tue Oct 19, 2004 11:04 pm
Location: Leawood, KS
Contact:

#8 Post by lfeagan » Thu Dec 02, 2004 8:50 am

Power Users should be able to do it too, as they can install software which implies access to the registry. (in essence it does these days, unfortunately) Anyone who can install should be able to mess with registry.

Quick overview of perms I found:
http://www.wellesley.edu/Computing/WinXP/wxpgroups.html
Image
T61p (6459CTO)|T9500|15.4" WUXGA-4GB|200GB FDE|256MB nVidia FX570M|Atheros|Cingular WWAN|openSuSE 11.0
T42p (2373GVU)|PentiumM 1.8GHz|2GB|100GB|ATI FireGL T2|Atheros|openSuSE 10.3
WaterField Designs Cargo + Sleeve

benz
Moderator1
Moderator1
Posts: 357
Joined: Thu Apr 15, 2004 8:30 am
Location: North Carolina, USA
Contact:

#9 Post by benz » Thu Dec 02, 2004 9:29 am

How about making it lock the computer (same as Winkey + L) when the lid is closed?
IBM ThinkPad T42p (2373GVU)

NEW!
Lenovo ThinkPad T60 (2007MS2)

Uncletoad
Freshman Member
Posts: 96
Joined: Wed Sep 22, 2004 7:27 pm
Location: Columbus, Ohio
Contact:

#10 Post by Uncletoad » Thu Dec 02, 2004 10:37 am

As far as I can tell on XP version I'm using there are Computer Administrators, Limited Users and Guests.

I've been using an account I created that is a Computer Administrator account ("Uncletoad") so it should have all the permissions of the one called "Administrator". But "Adminstrator" seems to be in some higher spot than "Uncletoad" because Administrator can delete Uncletoad but Uncletoad cannot delete administrator.

I know this is stupid stuff.

Should I just start using "Adminstrator" and migrate all my stuff over?

Or just go back to fixing guitars....
Salutations from the Land of Cows
Phil Maneri

T42p 2373KXU 15” UXGA
T42 2373K9U 14.1 XGA x2
T42 2373B21 14.1 XGA

Looking for a T42p 2373Q1U UXGA

ZPrime
Sophomore Member
Posts: 199
Joined: Tue Jul 06, 2004 10:57 pm
Location: Cleveland, OH

#11 Post by ZPrime » Thu Dec 02, 2004 12:03 pm

You can't delete the Administrator account. Rename it yes, but not delete it.

IMHO, best practice is to rename Administrator to something else, give it a nasty password, and then don't use it at all. If you need Admin, make your own account and use a good password there too. Really though, you should use a normal user account and only become admin for admin tasks. You can make shortcuts that use "runas" to run a program with different credentials - let you launch regedit as administrator, even though your account is a normal user, for instance. This way you can do admin tasks without having to logout and back in. It's a pain in the [censored] to set it all up that way though, which is why I'm lazy and I just make my own account an Administrator and leave it at that. :P

If you're trying to figure out what registry key you need to change, go get a tool called "regmon", start it up, and then make the change, and then look at regmon's output. You should be able to find the section in the registry you need to modify to change the lid action...
New Biz: 4062-27U - W500 C2D T9600, 15.4" 1920x1200 (FireGL V5700), 160G 7200rpm, 4G PC3-8500, DVDRW, Intel 5100, BT, TurboMem, T60p KBD :)
Old Biz: 2613-CTO - T60p Core 2 T7200, 14" 1400x1050 (FireGL V5250), 100G 7200rpm, 3G PC2 5300, DVDRW, Intel a/g , BT

JHEM
Admin Emeritus
Admin Emeritus
Posts: 5571
Joined: Thu Apr 15, 2004 8:03 am
Location: Medford, NJ USA
Contact:

#12 Post by JHEM » Thu Dec 02, 2004 12:50 pm

egibbs wrote:Very clever, those Lucas engineers.
Lucas, otherwise known as the Prince of Darkness to all of us Triumph and Jag owners.

Regards,

James
James at thinkpads dot com
5.5K+ posts and all I've got to show for it are some feathers.... AND a Bird wearing a Crown

egibbs
Senior Member
Senior Member
Posts: 896
Joined: Tue Apr 27, 2004 6:05 am
Location: New Jersey

#13 Post by egibbs » Thu Dec 02, 2004 2:24 pm

And of course there's the old riddle: "Why do the British drink warm beer?"

Answer: "Lucas Refrigerators."

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad T4x Series”

Who is online

Users browsing this forum: No registered users and 38 guests