Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681212 - net-im/skypeforlinux-8.34.0.78 - add USE=-elogind for a conditional dependency on sys-auth/elogind
Summary: net-im/skypeforlinux-8.34.0.78 - add USE=-elogind for a conditional dependenc...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gino McCarty
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-21 23:05 UTC by Ciprian Ciubotariu
Modified: 2019-03-25 16:23 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ciprian Ciubotariu 2019-03-21 23:05:45 UTC
I have noticed that my notebook no longer hibernates when I close the lid, but instead suspends, runs out of battery, even when configured to do so in Plasma's settings and/or laptop-mode-tools. Finally I have found that the culprit is elogind, a thing that was silently pulled onto my system, which manages to be the first to take action when the lid gets closed.

Mar 17 20:12:20 jethro kernel: elogind-daemon[3252]: Lid closed.
Mar 17 20:12:20 jethro kernel: elogind-daemon[3252]: Suspending...
Mar 17 20:12:20 jethro kernel: elogind-daemon[3252]: Suspending system...

For now the workaround is to uninstall skypeforlinux, but I'd rather have skype lose some functionality than the entire system to misbehave:

cipi@jethro ~ $ equery d elogind
 * These packages depend on elogind:
net-im/skypeforlinux-8.34.0.78 (sys-auth/elogind)
net-misc/networkmanager-1.14.6 (elogind ? >=sys-auth/elogind-219)
sys-apps/accountsservice-0.6.50-r1 (elogind ? >=sys-auth/elogind-229.4)
sys-apps/dbus-1.12.12-r1 (elogind ? sys-auth/elogind)
sys-auth/pambase-20150213-r2 (elogind ? sys-auth/elogind[pam])
sys-auth/polkit-0.115-r2 (elogind ? sys-auth/elogind)
sys-fs/udisks-2.8.1 (elogind ? >=sys-auth/elogind-219)
sys-process/procps-3.3.15-r1 (elogind ? sys-auth/elogind)
x11-misc/sddm-0.18.0 (elogind ? sys-auth/elogind)

Please make the USE flag act consistently across the package tree. Thank you!
Comment 1 Ciprian Ciubotariu 2019-03-21 23:12:08 UTC
This actually may solve the hibernation problem also on my desktop, where I was surprised to see the system cannot resume from hibernate. The system has two swap partitions, but only one configured with the kernel's resume= parameter. Running hibernate from hibernate-script works, but hibernating from Plasma caused the problem.

Now I'm finding that elogind is taking over on that system as well, but it decides to dump the memory onto the other swap partition, the one not specified in the resume kernel parameter.

I might add that my configuration is using PARTUUID, as in

Command line: BOOT_IMAGE=/boot/kernel-x86_64-gentoo-4.19.27-r1 root=/dev/sdb1 ro resume=PARTUUID=f3bef388-b561-46df-9abb-2400e51ff10d
Comment 2 Gleb 2019-03-23 16:03:26 UTC
Skype requires either elogind, or systemd (the logind part). Wihtout it, it segfaults. Skype is a binary package, so you cannot run it wihout dependency. So it's not just some functionality, it's all functionality of Skype.

There's another tool called skype-mock-dbus, which should resolve these segfaults,  but it is not in portage.

You may be interested in these bugs:
#668752
#669538

You can adjust elogind config to disable power management, but I agree that this daemon is PITA, constantly running even when I don't need it.
Comment 3 Gino McCarty 2019-03-24 08:37:46 UTC
so.. yeah like Gleb said, you can use either systemd or elogind with this package but you must use one or the other.

if you want to go out of tree feel free to try skype-mock-dbus with a custom ebuild
Comment 4 Ciprian Ciubotariu 2019-03-25 15:25:46 UTC
Why isn't skype-mock-dbus in the tree and added as dependency instead of elogind with USE=-elogind?
Comment 5 Ciprian Ciubotariu 2019-03-25 15:32:21 UTC
It would seem #666396 also describes the same problem I have experienced with software suspend.