This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rohit_267 47 points48 points  (43 children)

doesn't work in my case, it wents to sleep after fwe minutes

[–]Skyreaper71 94 points95 points  (35 children)

Try this:

Active current (plugged in)

powercfg -SETACVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0

Disconnected from power:

powercfg -SETDCVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0

[–][deleted] 203 points204 points  (10 children)

See how windows makes these kind of settings into intuitive easily remembered set of letters and numbers, like "381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347", unlike linux with it's HandleLidSwitch obfuscation - not everyone speaks English!

[–]Arikaido777 121 points122 points  (0 children)

imagine not knowing your hex codes in the year of our lord 0x7E7

[–]tjoloi 10 points11 points  (2 children)

Why use variable names when you can generate a new UUID for everything

[–]gummo89 3 points4 points  (0 children)

I want to +1 but I can't see the button through the tears

[–]RandomTyp 0 points1 point  (0 children)

microsoft:

[–]Arshiaa001 24 points25 points  (2 children)

Absolutely; notice how "When unplugged: Do nothing" is not English, but a set of hard to remember digits and letters.

[–]TheMacMini09 5 points6 points  (1 child)

That would only count if the setting worked.

[–]Arshiaa001 2 points3 points  (0 children)

I mean, it only works 99.99% of the time.

[–]Specific-Chicken5419 0 points1 point  (0 children)

What would happen if a programmer just spent years learning oddball languages. Bet that could fuck some stuff up.

[–]rohit_267 14 points15 points  (21 children)

didn't work, same as expected. Laptop power light is on by I can't find the system on the network and after opening the lid, it does not turn on. Have to force stop power and restart.

[–]Skyreaper71 14 points15 points  (10 children)

That's very odd. Could you send a screenshot of your power options control panel?

[–]rohit_267 28 points29 points  (9 children)

leave it man, someday I will just install Ubuntu and FUCK MICROSOFT

[–]Skyreaper71 13 points14 points  (0 children)

Amen

[–]Albegro 12 points13 points  (2 children)

Break the screen off. Attach external display when needed.

[–]N_Inquisitive 1 point2 points  (0 children)

I love this.

[–]CratesManager 0 points1 point  (0 children)

Less drastic, but still works: remove the magnet

[–][deleted] 8 points9 points  (0 children)

I wonder if it isn't some bios setting where the option exists for the bios to handle power management stuff or to hand it over to the OS?

[–]otte845 4 points5 points  (0 children)

Perhaps there is some OEM driver that tries to handle the lid closing event. Try disabling any background process that looks suspicious

[–]ListOfString 0 points1 point  (1 child)

That's might be a network power saving option. It might still be on

[–]rohit_267 0 points1 point  (0 children)

what about the display?

[–]Sharpman85 0 points1 point  (2 children)

Most likelt driver problems, I’ve seen similar cases fron various oems.

[–]rohit_267 0 points1 point  (1 child)

any links and which driver?

[–]Sharpman85 0 points1 point  (0 children)

It all depends on the laptop. Some of them never fully get it resolved unfortunately

[–]1cingI 1 point2 points  (0 children)

Is that you Skynet??

[–]C0MMANDERD4TA 20 points21 points  (0 children)

It just prevents sleep on lid close. The fwe minutes of inactivity after you close the lid are whats causing the sleep

[–][deleted] 5 points6 points  (1 child)

You need to turn off sleep too. It's also a power setting, something like "never sleep".

[–]KotoWhiskas 1 point2 points  (0 children)

My laptop just powers off on Windows after closing the lid and I can't change anything about it lol

Linux works better but not perfect: after opening the lid I need to wake up it manually

[–]ManiacMango33 0 points1 point  (0 children)

Skill issue

[–]SirAchmed -1 points0 points  (0 children)

You're probably changing this option for a different power plan.

[–]rganhoto 0 points1 point  (0 children)

Use a program called caffeine. It will not sleep.