Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with light-locker
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kuipumu
n00b
n00b


Joined: 22 Aug 2019
Posts: 2

PostPosted: Thu Aug 22, 2019 4:47 am    Post subject: problems with light-locker Reply with quote

Hello all of you out there on the forum,
I'm having and issue with light-locker on my Gentoo build,
When I try to execute it I get these messages:

Code:
(light-locker:5020): dbind-WARNING **: 00:44:02.970: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

** (light-locker:5020): ERROR **: 00:44:02.970: session_id is not set, is /proc mounted with hidepid>0?
Trace/breakpoint trap


I tried mounting proc with a diferent hidepid setting but it doesn't seems to work,
I didn't setup any different USE flag on lightdm or light-locker, and the --debug option throws me the same.
What can it be?.
Thank you very much y'all.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2434
Location: Frankfurt, Germany

PostPosted: Fri Aug 23, 2019 8:12 pm    Post subject: Reply with quote

Hi kuipumu,

welcome to the Gentoo forums!

  1. Please post the output of
    Code:
    emerge --info

  2. Please post the output of
    Code:
    mount | grep proc

Mike
Back to top
View user's profile Send private message
kuipumu
n00b
n00b


Joined: 22 Aug 2019
Posts: 2

PostPosted: Mon Aug 26, 2019 5:00 pm    Post subject: Reply with quote

mike155 wrote:
Hi kuipumu,

welcome to the Gentoo forums!

  1. Please post the output of
    Code:
    emerge --info

  2. Please post the output of
    Code:
    mount | grep proc

Mike


Hi Mike,

Here they are:
Code:

Portage 2.3.69 (python 3.6.5-final-0, default/linux/amd64/17.1/desktop, gcc-8.3.0, glibc-2.29-r2, 4.19.66-gentoo x86_64)
=================================================================
System uname: Linux-4.19.66-gentoo-x86_64-Intel-R-_Core-TM-_i3-6100_CPU_@_3.70GHz-with-gentoo-2.6
KiB Mem:     8105696 total,    128584 free
KiB Swap:   16777212 total,  16398588 free
Timestamp of repository gentoo: Sat, 17 Aug 2019 19:00:01 +0000
Head commit of repository gentoo: 787579c7170fc9614ae9c7c41cccc95d34247d3d
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.2 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.1 [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.7.1::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @FREE-SOFTWARE @FREE-DOCUMENTS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=skylake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -pipe"
GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bzip2 cairo canna cjk cli compat consolekit crypt cxx dbus dri encode exif fam ffmpeg firmware flac fuse gdbm gif glamor gles2 gnome gnome-keyring gpm gstreamer gtk gtk3 hwaccel iconv icu initramfs iscsi jit jpeg lcms libnotify libtirpc mad matroska mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp optimisememory pam pango parted pcre pdf png policykit ppds pulseaudio qt5 rdp readline samba sdl seccomp session smp spell spice split-usr ssh ssl startup-notification svg symlink tcpd threads tiff truetype udev udisks unicode upnp upower usb vnc vorbis wxwidgets x264 x265 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


And the mount log.

Code:

proc on /proc type proc (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)


Thank you very much.
Back to top
View user's profile Send private message
robbenklopper
n00b
n00b


Joined: 27 Aug 2019
Posts: 5

PostPosted: Tue Aug 27, 2019 5:57 pm    Post subject: Reply with quote

Hi kuipumu,

if you are using consolekit and light-locker-1.9, then downgrade to version 1.8 and everything should be fine.
The dev removed support for consolekit in version 1.9.
Back to top
View user's profile Send private message
sgdavis
n00b
n00b


Joined: 21 Aug 2019
Posts: 9

PostPosted: Tue Sep 03, 2019 4:49 pm    Post subject: Reply with quote

robbenklopper wrote:
Hi kuipumu,

if you are using consolekit and light-locker-1.9, then downgrade to version 1.8 and everything should be fine.
The dev removed support for consolekit in version 1.9.


Is this the only solution? Just asking because if so I will mask version 1.9.0 (I like light locker) but I'd imagine that cannot work forever. I somehow got version 1.9 to work on a couple of my workstations but now it seems to be having problems on several others.

Are you sure it doesn't have something to do with the first warning? Is this a `dbus` warning?
Back to top
View user's profile Send private message
robbenklopper
n00b
n00b


Joined: 27 Aug 2019
Posts: 5

PostPosted: Tue Sep 03, 2019 8:04 pm    Post subject: Reply with quote

Hi sgdavis,

I had the same problem some time ago and spent a whole day figuring out what went wrong. With elogind everything OK, but with consolekit i got the same messages as kuipumu. The only solution was a downgrade.
I also like light-locker, but without support for consolekit, i will switch to xfce-screensaver and its built-in lockscreen.

I am not really sure, but i think the first warning means that light-locker (1.9) cant connect to dbus.

The changelog can be found here:

https://github.com/the-cavalry/light-locker/blob/master/NEWS
Back to top
View user's profile Send private message
sgdavis
n00b
n00b


Joined: 21 Aug 2019
Posts: 9

PostPosted: Tue Sep 03, 2019 9:11 pm    Post subject: Reply with quote

Posted on an Issue thread. Looks like this has already come up over there but maybe we can get some insight from the devs about why they made this decision...

https://github.com/the-cavalry/light-locker/issues/141
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1873
Location: United Kingdom

PostPosted: Wed Sep 04, 2019 1:18 pm    Post subject: Reply with quote

sgdavis wrote:
Posted on an Issue thread. Looks like this has already come up over there but maybe we can get some insight from the devs about why they made this decision...

https://github.com/the-cavalry/light-locker/issues/141

They probably took that decision because the original ConsoleKit code has not be touched since July 2013:

https://cgit.freedesktop.org/ConsoleKit/commit/

freedesktop.org wrote:
NOTE: ConsoleKit is no longer actively maintained and this will most
likely be the final release. You are advised to switch to logind:

http://www.freedesktop.org/software/systemd/man/systemd-logind.service.html

and ConsoleKit2, the fork that is used in Gentoo, has not been touched since December 2017:

https://github.com/ConsoleKit2/ConsoleKit2

Basically, ConsoleKit is obsolete. Gentoo also provides the actively-maintained elogind as an alternative to ConsoleKit. I didn't have to make many adjustments when I migrated from ConsoleKit to elogind a year ago on both my Gentoo installations (one is amd64, the other ~amd64):

https://forums.gentoo.org/viewtopic-p-8267346.html#8267346

https://forums.gentoo.org/viewtopic-p-8320844.html#8320844
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
sgdavis
n00b
n00b


Joined: 21 Aug 2019
Posts: 9

PostPosted: Wed Sep 04, 2019 1:52 pm    Post subject: Reply with quote

Fitzcarraldo wrote:

Basically, ConsoleKit is obsolete.


Yup I got them to confirm that over on the github page. However, in my digging around I am not actually convinced that consolekit is the problem. It looks like they are still using "dbus-glib" also deprecated and needs to be replaced with GDBus.
https://developer.gnome.org/dbus-glib/unstable/

It is weird though because it almost looks like they half ported the code already. The `light-locker-command.c` code looks to use GDBus where as `gs-dbus.c` seems to use both dbus-glib and even older dbus code. SO, I think that is what needs to be changed. Weird that they removed one deprecated system but not the other...


Fitzcarraldo wrote:
Gentoo also provides the actively-maintained elogind as an alternative to ConsoleKit. I didn't have to make many adjustments when I migrated from ConsoleKit to elogind a year ago on both my Gentoo installations (one is amd64, the other ~amd64):

https://forums.gentoo.org/viewtopic-p-8267346.html#8267346

https://forums.gentoo.org/viewtopic-p-8320844.html#8320844


So do you think this might work? I'm not using systemd yet and I am not sure I am ready for that switch, can I still switch over to elogind?
Back to top
View user's profile Send private message
robbenklopper
n00b
n00b


Joined: 27 Aug 2019
Posts: 5

PostPosted: Wed Sep 04, 2019 2:29 pm    Post subject: Reply with quote

Fitzcarraldo wrote:

Basically, ConsoleKit is obsolete.

you're right, but not everyone wants systemd or parts of it on his machines.
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1873
Location: United Kingdom

PostPosted: Wed Sep 04, 2019 3:59 pm    Post subject: Reply with quote

robbenklopper wrote:
Fitzcarraldo wrote:

Basically, ConsoleKit is obsolete.

you're right, but not everyone wants systemd or parts of it on his machines.

https://cgit.freedesktop.org/ConsoleKit/

Ummm, notice anyone familiar? ;-)

Lennart Poettering was the maintainer of the original ConsoleKit:

https://mail.gnome.org/archives/distributor-list/2012-January/msg00008.html

Lennart Poettering wrote:
The deprecation of CK was decided by its former maintainer and its
current maintainer, i.e. Jon and me.

ConsoleKit is no rose.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1873
Location: United Kingdom

PostPosted: Wed Sep 04, 2019 4:17 pm    Post subject: Reply with quote

sgdavis wrote:
I'm not using systemd yet and I am not sure I am ready for that switch, can I still switch over to elogind?

Yes you can. That's what I did in both my Gentoo installations (one Stable, the other Testing).

elogind is an independently-maintained fork of (only) the logind component of systemd. Both my Gentoo installations use OpenRC+elogind. I converted both my Gentoo installations from OpenRC+ConsoleKit to OpenRC+elogind a year ago. The impetus in my case to finally make the switch was that Microsoft made Skype for Linux dependent on logind :roll: . Since I don't have systemd in my Gentoo installations (USE="-systemd" in /etc/portage/make.conf) and have no intention of installing it either, I migrated to elogind so that Skype for Linux will work in Gentoo on my laptops. Other than a couple of minor changes mentioned in my previous links, I have not noticed any difference since migrating. And with elogind Wayland works in KDE on my main laptop (albeit I have no particular need or wish to use Wayland).

Gentoo Wiki wrote:
elogind is the systemd project's logind, extracted to a standalone package. It's designed for users who prefer a non-systemd init system, but still want to use popular software such as KDE/Wayland or GNOME that otherwise hard-depends on systemd.

_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
sgdavis
n00b
n00b


Joined: 21 Aug 2019
Posts: 9

PostPosted: Wed Sep 04, 2019 5:20 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
sgdavis wrote:
I'm not using systemd yet and I am not sure I am ready for that switch, can I still switch over to elogind?

Yes you can. That's what I did in both my Gentoo installations (one Stable, the other Testing).


Ok for anyone reading along -- this is the perfect solution. ~20 packages recompiled with the new USE settings (-systemd -consolekit elogind) and then just shutdown xdm, restart dbus, and startup elogind+X, and BOOM. light-locker is working again!

Thanks for all the help. It is nice to clean up that abandoned project from our systems too (emerge --depclean consolekit). I didn't even have any blips with the switch. It just worked. Gotta love it when that happens.
Back to top
View user's profile Send private message
robbenklopper
n00b
n00b


Joined: 27 Aug 2019
Posts: 5

PostPosted: Wed Sep 04, 2019 6:31 pm    Post subject: Reply with quote

Fitzcarraldo wrote:

Ummm, notice anyone familiar? ;-)

Lennart Poettering was the maintainer of the original ConsoleKit:

I know that.
I don't care about Lennart Poettering, I also use pulseaudio, but I don't want to have systemd nor parts of it on my PCs.

Fitzcarraldo wrote:

The impetus in my case to finally make the switch was that Microsoft made Skype for Linux dependent on logind :roll: .

That's what I mean and it's getting worse. Systemd everywhere, except BSD.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum