How do I add this data to the registry?

t4akawolf

Distinguished
Feb 12, 2013
96
0
18,660
This is a question I've already asked, and I thought I'd gotten the solution, but I was mistaken. So, can someone please help me?

------

While hunting around for a solution to the "Do nothing" power option for when the laptop lid is closed being absent, I came across this:

By adding the registry keys:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\PowerSettings\4f971e89-eebd-4455-a8de-9e59040e7347\5ca83367-6e45-459f-a27b-476b1d01c936\3] "Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\ 00,2c,00,2d,00,35,00,30,00,2c,00,54,00,61,00,6b,00,65,00,20,00,6e,00,6f,00,\ 20,00,61,00,63,00,74,00,69,00,6f,00,6e,00,00,00 "FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\ 00,2c,00,2d,00,35,00,31,00,2c,00,54,00,61,00,6b,00,65,00,20,00,6e,00,6f,00,\ 20,00,61,00,63,00,74,00,69,00,6f,00,6e,00,00,00

"SettingValue"=dword:00000000

the missing 'no action' option was available again (no reboot required)!!!

The value for 'Description' is: @%SystemRoot%\system32\powrprof.dll,-50,Take no action

The value for 'FriendlyName' is: @%SystemRoot%\system32\powrprof.dll,-51,Take no action

But I have no idea how to do this. I have done some minor registry tweaking before, but they were for existing registry keys; this is adding new data, and I'm lost.

Can someone help, please?

- Nick

------
 
Solution
You have the answer, it is really easy.

All you need do is COPY the suggested TEXT into a file called xxxxxx.REG where xxxxxx is any name you wish to use, say NEW_POWER_SETTING, and then DOUBLE CLICK on it in Explorer. That will ADD that data to your registry.

The lines you NEED to COPY and PASTE are:

=============
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\PowerSettings\4f971e89-eebd-4455-a8de-9e59040e7347\5ca83367-6e45-459f-a27b-476b1d01c936\3] "Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\...

IrvSp

Distinguished
Aug 17, 2013
92
0
18,660
You have the answer, it is really easy.

All you need do is COPY the suggested TEXT into a file called xxxxxx.REG where xxxxxx is any name you wish to use, say NEW_POWER_SETTING, and then DOUBLE CLICK on it in Explorer. That will ADD that data to your registry.

The lines you NEED to COPY and PASTE are:

=============
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\PowerSettings\4f971e89-eebd-4455-a8de-9e59040e7347\5ca83367-6e45-459f-a27b-476b1d01c936\3] "Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\ 00,2c,00,2d,00,35,00,30,00,2c,00,54,00,61,00,6b,00,65,00,20,00,6e,00,6f,00,\ 20,00,61,00,63,00,74,00,69,00,6f,00,6e,00,00,00 "FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\ 00,2c,00,2d,00,35,00,31,00,2c,00,54,00,61,00,6b,00,65,00,20,00,6e,00,6f,00,\ 20,00,61,00,63,00,74,00,69,00,6f,00,6e,00,00,00

"SettingValue"=dword:00000000
===================

That is all you need to do, copy the above lines into a new file with the extension of .REG, save it, and double click on it and allow it to be added to the registry.

ALTERNATIVELY, you can use REGEDIT to do it manually. Drill down to HKEY_LOCAL_MACHINE -> SYSTEM -> ControlSet001 -> Control -> Power -> PowerSettings -> 4f971e89-eebd-4455-a8de-9e59040e7347 -> 5ca83367-6e45-459f-a27b-476b1d01c936 -> 3 and enter this data (or replace data already there):

===========
'Description' is: @%SystemRoot%\system32\powrprof.dll,-50,Take no action

'FriendlyName' is: @%SystemRoot%\system32\powrprof.dll,-51,Take no action
===========

If NOT there you need to RMB on the left side '3' and select NEW -> EXPANDABLE STRING VALUE and then enter the above info for each one using the 'NAME' in quotes above.

Best and easiest though is to create the .REG file, but I suggest you first use REGEDIT to look at the present values if there. If they ARE, on the '3' RMB and do an EXPORT to save them just in case the above doesn't give you the proper results. In that case you can double click on the saved .REG you just created and restore the prior settting, or just back-up the whole registry and restore it if you should have a problem.

NOTE:, do something wrong in the registry and you could have a system that might not even boot or need to be re-installed. Messing with the registry is not for novices, so be careful what you change.

I'll assume you saw the answer here, http://superuser.com/questions/609194/close-lid-option-do-nothing-absent, but if not, read it all anyway. There was a mention of overheating in the 3rd answer that has the above solution. Can't determine where that was referenced though?
 
Solution

t4akawolf

Distinguished
Feb 12, 2013
96
0
18,660


It worked! Thank you so much, IrvSp!

I have to say, though, as I started reading your answer at first, I was getting more and more annoyed; it was like you were trying to make me feel like a five year old. A mentally challenged five year old xD I mean, the all caps words were a BIT much, don't you think?

Oh well, I probably am a mentally challenged five year old at this when compared to you :p

Nonetheless, I followed your instructions, and it worked like a charm.

I found it noteworthy that it was the manual method that worked for me. Saving it as a *.reg file added the values, for some reason, to "4f971e89-eebd-4455-a8de-9e59040e7347" instead of "3". Any idea what went wonky where?

- Nick

P.S.: Oh, by the way, yes, I know of the overheating problem; I have a sort of fix for it.
 

IrvSp

Distinguished
Aug 17, 2013
92
0
18,660
Sorry, I used the caps to highlight what you had to look for, not to seem like I was yelling at you. I feel it makes it a lot easier to see and be able to recognized the important parts, like where to go and what to do if capitalized.

"Saving it as a *.reg file added the values, for some reason, to "4f971e89-eebd-4455-a8de-9e59040e7347" instead of "3". Any idea what went wonky where?"

Hmm, I suspect there was a posting problem on my part, the part "\5ca83367-6e45-459f-a27b-476b1d01c936\3]" should have been on the SAME line as the first part, which is where it went. I guess the "]" character is assumed if not there? Luckily it ended at a point where you were able to see it otherwise you'd have been really confused.


Yeah, I pasted it in here again to check,

------------
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\PowerSettings\4f971e89-eebd-4455-a8de-9e59040e7347\5ca83367-6e45-459f-a27b-476b1d01c936\3]
-------------

But on my export the actual end is like this:

=======
HKEY...........\5ca83367-6e45-459f-a27b-
476b1d01c936\3]
=======

I see the original posting had a "-" on it, sorry, I didn't check and compare or I would have added the dash. That is what is required in a .REG file for a continuation, I didn't look to verify as there were other dashes there. The forum s/w altered what I had posted I guess to fit the screen.

You can delete the entries made by the .REG file if you wish, or leave it, doesn't matter.
 

t4akawolf

Distinguished
Feb 12, 2013
96
0
18,660


It's fine, lol, not a big deal. You did end up fixing my problem anyway ^_^
Once again, thank you for that.

- Nick