logind.conf change automatically to default values The 2019 Stack Overflow Developer Survey Results Are InKernel 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 technical should a Scrum Master be to effectively remove impediments?

"as much details as you can remember"

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

Why can Shazam fly?

Write faster on AT24C32

What do hard-Brexiteers want with respect to the Irish border?

What is the meaning of the verb "bear" in this context?

Are children permitted to help build the Beis Hamikdash?

Origin of "cooter" meaning "vagina"

What tool would a Roman-age civilization have for the breaking of silver and other metals into dust?

Delete all lines which don't have n characters before delimiter

Did Section 31 appear in Star Trek: The Next Generation?

Identify This Plant (Flower)

What did it mean to "align" a radio?

Building a conditional check constraint

Where to refill my bottle in India?

Why is my custom API endpoint not working?

Deal with toxic manager when you can't quit

Scaling a graph of a circle and the standard parabola in TikZ

Why do UK politicians seemingly ignore opinion polls on Brexit?

The difference between dialogue marks

Is three citations per paragraph excessive for undergraduate research paper?

How can I autofill dates in Excel excluding Sunday?

Is this app Icon Browser Safe/Legit?



logind.conf change automatically to default values



The 2019 Stack Overflow Developer Survey Results Are InKernel 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
    2 hours ago












  • Not actually, I reinstalled the ubuntu :|

    – ultimatex
    1 hour ago

















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
    2 hours ago












  • Not actually, I reinstalled the ubuntu :|

    – ultimatex
    1 hour ago













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 1 hour ago







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
    2 hours ago












  • Not actually, I reinstalled the ubuntu :|

    – ultimatex
    1 hour ago

















  • Can any one answer this?

    – ultimatex
    Aug 27 '18 at 10:59











  • did you find the reason?

    – Sudhanshu
    2 hours ago












  • Not actually, I reinstalled the ubuntu :|

    – ultimatex
    1 hour ago
















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
2 hours ago






did you find the reason?

– Sudhanshu
2 hours ago














Not actually, I reinstalled the ubuntu :|

– ultimatex
1 hour ago





Not actually, I reinstalled the ubuntu :|

– ultimatex
1 hour ago










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

Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap

Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch