GithubHelp home page GithubHelp logo

rundir-219.12 about elogind HOT 14 OPEN

udeved avatar udeved commented on September 25, 2024
rundir-219.12

from elogind.

Comments (14)

udeved avatar udeved commented on September 25, 2024 1

@kensington

I am not sure I am hitting the same problem with unlock.
But if I suspend or hibernate the system, it wakes up, and auto sleeps again after 5 seconds.
As if the system rejects some credentials or so.

Jun 24 18:47:36 laptop kernel: elogind[2012]: Suspending system...
Jun 24 18:48:26 laptop kernel: elogind[2012]: System resumed.
Jun 24 18:48:26 laptop kernel: elogind[2012]: Suspending system...
Jun 24 18:49:15 laptop kernel: elogind[2012]: System resumed.
Jun 24 18:49:15 laptop kernel: elogind[2012]: Suspending system...
Jun 24 18:50:16 laptop kernel: elogind[2012]: System resumed.
Jun 24 18:50:16 laptop kernel: elogind[2012]: Suspending system...

from elogind.

kensington avatar kensington commented on September 25, 2024

I saw the same issue.

from elogind.

kensington avatar kensington commented on September 25, 2024

@udeved it looks like on guix this is created by the system, so maybe this is a distro integration problem instead: http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/file-systems.scm#n210

from elogind.

udeved avatar udeved commented on September 25, 2024

@kensington

Thx, I'll have a look.

I did simply put the run_dir creation in dbus openrc-run script.
Gentoo basically serves as upstream to provide alternative on arch based systems.
Out of curiosity, did you manage to start a wayland session on gentoo with elogind?
It doesn't work for me both on gentoo and manjaro.

from elogind.

kensington avatar kensington commented on September 25, 2024

@udeved yep, although it's still a work-in-progress upstream I was able to launch KDE Plasma / Wayland session in the past with the help of elogind.

from elogind.

udeved avatar udeved commented on September 25, 2024

Perhaps the important question, did you use libinput instead of evdev for xorg input drivers?

from elogind.

kensington avatar kensington commented on September 25, 2024

libinput is installed but xf86-input-libinput is not. xorg itself wasn't given any special config one way or the other.

from elogind.

udeved avatar udeved commented on September 25, 2024

Thanks, I may try again after removing xf86-input-libinput,I thought the trouble was input drivers from the logs.

from elogind.

udeved avatar udeved commented on September 25, 2024

@kensington

How do you approach the missing /run/systemd on gentoo?

I think its best to try run a /bin/sh check for the run_dir and if necessarey create it before elogind call in the Exec line of the dbus service?

Exec = /bin/bash -c "[[ ! -d /run/systemd ]] && mkdir /run/systemd";libpath/to/elogind

Another way would be openrc service, but I find it ugly.

from elogind.

udeved avatar udeved commented on September 25, 2024

@kensington

This one works for me.

Exec=/bin/bash -c "[[ ! -d /run/systemd ]] && mkdir /run/systemd;/usr/lib/elogind/elogind"

Should work on gentoo with:

Exec=/bin/bash -c "[[ ! -d /run/systemd ]] && mkdir /run/systemd;/usr/libexec/elogind/elogind"

from elogind.

kensington avatar kensington commented on September 25, 2024

@udeved

How do you approach the missing /run/systemd on gentoo?

It's still in an experimental state (for us) so I didn't implement any fix tor that (just been creating it manually during testing).

Did you have any luck with loginctl lock-session or unlock-session working?

from elogind.

udeved avatar udeved commented on September 25, 2024

I haven't tested the unlock thingy yet.
Since we are binary, I was about to decide if ck or elogind, so this will be next to test.
I have included your pull patch already.

from elogind.

udeved avatar udeved commented on September 25, 2024

@kensington

I have tested locking/unlocking screen in plasma5 with 219.12+dbus-conf-pk.patch.
Seems to work fine, test was on real hardware.

My configuration:

/etc/pam.d/system-login
-session    optional    pam_elogind.so

/etc/pam.d/sddm-greeter
session    optional    pam_elogind.so

I have also patched the login1 dbus service Exec line to create /run/systemd before it starts if necessary.

from elogind.

Yamakuzure avatar Yamakuzure commented on September 25, 2024

The new release v226.4 at elogind/elogind creates the /run/systemd directory if it is not present, so this issue is fixed there.

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.