logind.conf change automatically to default values The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Kernel suspends too quickly, upon resume continues suspend tasksLock + suspend behavior on laptop lid closeSuspend on lid close doesn't work 16.04Closing lid problemWhat controls lid switch settings in GNOME?Laptop won't get in sleep if I close the lidLaptop won't sleep when closing lid since upgrading to 18.04Automatic logout when resuming from suspend on Xubuntu 18.04Laptop automatically suspending after lid closed and reopenedUbuntu 18.04 & Dell XPS 13 9350 Suspend issues when lid closed

How to test the equality of two Pearson correlation coefficients computed from the same sample?

Why can't devices on different VLANs, but on the same subnet, communicate?

Can a novice safely splice in wire to lengthen 5V charging cable?

What are these Gizmos at Izaña Atmospheric Research Center in Spain?

Keeping a retro style to sci-fi spaceships?

Did God make two great lights or did He make the great light two?

Typeface like Times New Roman but with "tied" percent sign

What LEGO pieces have "real-world" functionality?

Didn't get enough time to take a Coding Test - what to do now?

First use of “packing” as in carrying a gun

Why can't wing-mounted spoilers be used to steepen approaches?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Make it rain characters

How is simplicity better than precision and clarity in prose?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

How should I replace vector<uint8_t>::const_iterator in an API?

Program that generates brainfuck code that outputs given text

How to colour the US map with Yellow, Green, Red and Blue to minimize the number of states with the colour of Green

How did passengers keep warm on sail ships?

Python - Fishing Simulator

Hiding Certain Lines on Table

What force causes entropy to increase?

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

Can smartphones with the same camera sensor have different image quality?



logind.conf change automatically to default values



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Kernel suspends too quickly, upon resume continues suspend tasksLock + suspend behavior on laptop lid closeSuspend on lid close doesn't work 16.04Closing lid problemWhat controls lid switch settings in GNOME?Laptop won't get in sleep if I close the lidLaptop won't sleep when closing lid since upgrading to 18.04Automatic logout when resuming from suspend on Xubuntu 18.04Laptop automatically suspending after lid closed and reopenedUbuntu 18.04 & Dell XPS 13 9350 Suspend issues when lid closed



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















My laptop recently did not go to sleep mode when I close the lid. So I looked /etc/systemd/logind.conf file and configuration was #HandleLidSwitch=ignore. Then I uncommented it and change the value to HandleLidSwitch=suspend. After restarting the logind service It works fine. But after some time It reverts back to HandleLidSwitch=ignore this and I have to edit that again and again. What is the reason for that and is there any other workaround to resolve that?










share|improve this question
























  • Can any one answer this?

    – ultimatex
    Aug 27 '18 at 10:59











  • did you find the reason?

    – Sudhanshu
    Apr 10 at 20:02












  • Not actually, I reinstalled the ubuntu :|

    – ultimatex
    Apr 10 at 21:03

















1















My laptop recently did not go to sleep mode when I close the lid. So I looked /etc/systemd/logind.conf file and configuration was #HandleLidSwitch=ignore. Then I uncommented it and change the value to HandleLidSwitch=suspend. After restarting the logind service It works fine. But after some time It reverts back to HandleLidSwitch=ignore this and I have to edit that again and again. What is the reason for that and is there any other workaround to resolve that?










share|improve this question
























  • Can any one answer this?

    – ultimatex
    Aug 27 '18 at 10:59











  • did you find the reason?

    – Sudhanshu
    Apr 10 at 20:02












  • Not actually, I reinstalled the ubuntu :|

    – ultimatex
    Apr 10 at 21:03













1












1








1








My laptop recently did not go to sleep mode when I close the lid. So I looked /etc/systemd/logind.conf file and configuration was #HandleLidSwitch=ignore. Then I uncommented it and change the value to HandleLidSwitch=suspend. After restarting the logind service It works fine. But after some time It reverts back to HandleLidSwitch=ignore this and I have to edit that again and again. What is the reason for that and is there any other workaround to resolve that?










share|improve this question
















My laptop recently did not go to sleep mode when I close the lid. So I looked /etc/systemd/logind.conf file and configuration was #HandleLidSwitch=ignore. Then I uncommented it and change the value to HandleLidSwitch=suspend. After restarting the logind service It works fine. But after some time It reverts back to HandleLidSwitch=ignore this and I have to edit that again and again. What is the reason for that and is there any other workaround to resolve that?







18.04 lid systemd-logind






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 10 at 21:04







ultimatex

















asked Aug 24 '18 at 17:59









ultimatexultimatex

395121




395121












  • Can any one answer this?

    – ultimatex
    Aug 27 '18 at 10:59











  • did you find the reason?

    – Sudhanshu
    Apr 10 at 20:02












  • Not actually, I reinstalled the ubuntu :|

    – ultimatex
    Apr 10 at 21:03

















  • Can any one answer this?

    – ultimatex
    Aug 27 '18 at 10:59











  • did you find the reason?

    – Sudhanshu
    Apr 10 at 20:02












  • Not actually, I reinstalled the ubuntu :|

    – ultimatex
    Apr 10 at 21:03
















Can any one answer this?

– ultimatex
Aug 27 '18 at 10:59





Can any one answer this?

– ultimatex
Aug 27 '18 at 10:59













did you find the reason?

– Sudhanshu
Apr 10 at 20:02






did you find the reason?

– Sudhanshu
Apr 10 at 20:02














Not actually, I reinstalled the ubuntu :|

– ultimatex
Apr 10 at 21:03





Not actually, I reinstalled the ubuntu :|

– ultimatex
Apr 10 at 21:03










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1068637%2flogind-conf-change-automatically-to-default-values%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1068637%2flogind-conf-change-automatically-to-default-values%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?