GithubHelp home page GithubHelp logo

Comments (11)

kensington avatar kensington commented on September 25, 2024

I ran into this too, no idea of solution though.

from elogind.

CameronNemo avatar CameronNemo commented on September 25, 2024

@kensington are you also running arch linux?

from elogind.

kensington avatar kensington commented on September 25, 2024

@kensington are you also running arch linux?

@CameronNemo no, Gentoo

from elogind.

udeved avatar udeved commented on September 25, 2024

@CameronNemo

Do you eventually use this build?

If so, the pkgbuild is just playground, nothing to use on a productive system, and the elogind version produces some troubles.

from elogind.

jcjordyn130 avatar jcjordyn130 commented on September 25, 2024

@udevd I use this package https://aur.archlinux.org/packages/elogind-git/

from elogind.

Yamakuzure avatar Yamakuzure commented on September 25, 2024

elogind takes over suspension. If you have another tool to do that, like powerdevil, laptop-mode-tools, acpitools, whatever-tools, they get in each other ways.
Just tell elogind to ignore suspend commands in /etc/elogind/logind.conf

from elogind.

jcjordyn130 avatar jcjordyn130 commented on September 25, 2024

I don't have any other tools to manage suspend

from elogind.

Yamakuzure avatar Yamakuzure commented on September 25, 2024

@jcjordyn130 Then what kind of system are you using? Which init system? Which DE/WM?

from elogind.

jcjordyn130 avatar jcjordyn130 commented on September 25, 2024

system? as in? I'm using minirc and plasma 5 with elogind of course

from elogind.

Yamakuzure avatar Yamakuzure commented on September 25, 2024

@jcjordyn130 I am asking, because your details so far where limited at best.
However, lets try to get to the bottom of this.

The main reason for a suspend loop is two "systems" thrashing into each others legs.

Example:
When I first installed elogind on my system (Gentoo/openrc/Plasma 5) I got a suspend loop, because the default installation uses ConsoleKit2 as session tracker.
PowerDevil, fully aware that Plasma was started through ck-launch-session, caught the suspend signal, and asked CK whether this was in order.
In the meantime elogind had already decided that suspension would be fine and put my laptop to sleep.
After resuming, the woken up processes around PowerDevil simply continued their work on putting my laptop into suspension.

The first fix for me was to change the file /etc/elogind/logind.conf

From:

#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend

To:

HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore

After I got rid of ConsoleKit2, I switched back to the defaults and everything is working fine now.

So if you change said file to make elogind ignore these events, restart your system, and find that you can suspend normally again, you have something getting into elogind's way. Get rid of it and you can have elogind do its job.

Important: Having more than one session tracker at the same time is a very bad idea.
So use either "ConsoleKit2" OR "systemd-logind" OR "elogind".

from elogind.

Yamakuzure avatar Yamakuzure commented on September 25, 2024

This issue is fixed in the v226.4 release at elogind/elogind, so this issue can be closed.

from elogind.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.