Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608690 - x11-misc/sddm-0.14.0-r2 breaks logout and USB mount
Summary: x11-misc/sddm-0.14.0-r2 breaks logout and USB mount
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LxQt maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-09 06:43 UTC by MickKi
Modified: 2018-09-05 08:54 UTC (History)
1 user (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 MickKi 2017-02-09 06:43:07 UTC
x11-misc/sddm-0.14.0-r2 relaunches the desktop once when I try to log out.  The second time it logs out properly.  No problems with shut down.  Also I can no longer mount USB drives using the GUI - user not authorised.  With udisksctl on a terminal I am asked for root passwd.  Reverting to sddm-0.13.0-r3 fixes these problems.

Reproducible: Always

Steps to Reproduce:
1. Log out from the desktop session.
2. Session relaunches the first time.
3. Log out again.
4. Desktop logs out.


Expected Results:  
Previous sddm version 0.13.0-r3 works as expected both when logging out and when trying to mount a USB stick.

The above problems are present when running a desktop session (tried Plasma and Enlightenment) launched using /etc/init.d/xdm and ~,xsession, with and without consolekit.

All users are members of plugdev and usb groups.  Some users are members of wheel group.

/etc/ssdm.conf is set to 'Relogin=false'

Two different PCs running OpenRC have this problem and on both the symptoms are reversed when I downgraded them to sddm-0.13.0-r3.

A third PC using systemd, Gnome, gdm and no consolekit, does not have any such problems.

emerge --info for one of the PCs shown below:
============================
$ emerge --info x11-misc/sddm
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.4, glibc-2.23-r3, 4.9.6-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.3
KiB Mem:     4033092 total,   1349440 free
KiB Swap:    4200960 total,   4200960 free
Timestamp of repository gentoo: Sun, 05 Feb 2017 08:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://10.10.10.2/gentoo-portage
    priority: -1000

enlightenment
    location: /var/lib/layman/enlightenment
    masters: gentoo
    priority: 0

psix-overlay
    location: /var/lib/layman/psix-overlay
    masters: gentoo
    priority: 1

local
    location: /usr/local/portage
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://10.10.10.2:1024/ http://mirror.qubenet.net/mirror/gentoo/ rsync://rsync.mirrorservice.org/distfiles.gentoo.org/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.mirrorservice.org/sites/distfiles.gentoo.org/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l12.8"
PKGDIR="/usr/portage/packages"
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 aacplus acl acpi alsa amd64 amr apng avx berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr chroot cli consolekit cracklib crypt css cups cxx dbus declarative dell dri dts dvd dvdr emboss encode exif faac fam ffmpeg firefox flac fortran fts3 gdbm gif glamor gpm hddtemp hpijs iconv imagemagick ipv6 irda jpeg kde kipi lcms ldap libnotify libv4l2 live lm_sensors logrotate mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses network-cron new-hpcups nls nodrm nptl nsplugin obex ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit popcnt ppds pulseaudio qml qt3support qt4 qt5 quicktime rdesktop readline redland rtmp sdl seccomp semantic-desktop session shout smime spell sqlite sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l2 vaapi vdpau vnc vorbis vpx widgets win32codecs wps wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zip 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext 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="synaptics evdev" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

x11-misc/sddm-0.13.0-r3::gentoo was built with the following:
USE="consolekit pam -systemd" ABI_X86="64"

============================

Please let me know if you need addtional info.
-- 
Regards,
Mick
Comment 1 MickKi 2017-03-14 18:45:07 UTC
Is there any additional information needed to help resolve this bug?  I noticed the previous stable version I am still using on 3 different systems was removed from portage:


 The following unavailable installed packages were found
             x11-misc/sddm-0.13.0-r3
Comment 2 Andreas Sturmlechner gentoo-dev 2017-10-21 19:55:12 UTC
Please test with current stable 0.15.0.
Comment 3 Andreas Sturmlechner gentoo-dev 2017-10-22 11:23:52 UTC
...and if that does not fix it either, please test 0.16.0-r2 and report back here.
Comment 4 MickKi 2017-10-22 12:45:16 UTC
(In reply to Andreas Sturmlechner from comment #2)
> Please test with current stable 0.15.0.

Just tested it on two different systems, with Plasma and Enlightenment.  Same symptoms remain on Enlightenment.  On Plasma I can log out on first attempt, but I still cannot mount USB sticks.

PS. This problem does not exist on lightdm.
PPS.  I'll test with 0.16.0-r1 next.
Comment 5 Andreas Sturmlechner gentoo-dev 2017-10-22 12:46:14 UTC
(In reply to MickKi from comment #4)
> PPS.  I'll test with 0.16.0-r1 next.
No, not -r1. -r2 please.
Comment 6 Andreas Sturmlechner gentoo-dev 2017-10-22 13:03:39 UTC
(In reply to MickKi from comment #4)
> but I still cannot mount USB sticks.
This is likely a different issue. Speaking of the Device Notifier widget, When using consolekit, for some reason before you can directly open the USB stick with dolphin, you have to click the 'mount' icon to the right.
Comment 7 MickKi 2017-10-22 14:11:56 UTC
Thank you Andreas.  I just tested 0.16.0-r2.  Same symptoms.  Logout has to be actioned twice and USB sticks will not mount.  I have tried with Enlightenment and Plasma on two different PCs (amd64 arch).

On Plasma in the Device Notifier which pops up when I plug in a USB stick, there is an icon on the right of the pop up window used to mount/unmount the device.  Hovering over shows a tooltip:

"Click to access this device from other applications."

Clicking either on the icon to mount the device, or on the Dolphin option below it "Open with File Manager" fails on both occasions.  The Device Manager subsequently shows:

"You are not authorized to mount this device."

On enlightenment the error is slightly different:

"Can't mount device /dev/sdb
Unable to mount the volume within specified time out."

Metalog shows:
=============================
Oct 22 14:57:23 [sddm-helper] pam_unix(sddm:session): session opened for user michael by (uid=0)
Oct 22 14:57:23 [sddm-helper] pam_ck_connector(sddm:session): nox11 mode, ignoring PAM_TTY :0
Oct 22 14:57:23 [sddm-helper] pam_unix(sddm-greeter:session): session closed for user sddm
Oct 22 14:57:23 [acpid] client connected from 4638[1000:1000]
Oct 22 14:57:23 [acpid] 1 client rule loaded
Oct 22 14:57:28 [kernel] [  995.671738] usb 1-4: new high-speed USB device number 4 using ehci-pci
Oct 22 14:57:29 [kernel] [  996.877152] usb 1-4: New USB device found, idVendor=05dc, idProduct=a740
Oct 22 14:57:29 [kernel] [  996.877160] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 22 14:57:29 [kernel] [  996.877165] usb 1-4: Product: Gizmo!
Oct 22 14:57:29 [kernel] [  996.877169] usb 1-4: Manufacturer: Crucial
Oct 22 14:57:29 [kernel] [  996.877173] usb 1-4: SerialNumber: AA04005100000359
Oct 22 14:57:29 [kernel] [  996.878215] usb-storage 1-4:1.0: USB Mass Storage device detected
Oct 22 14:57:29 [kernel] [  996.882225] scsi host6: usb-storage 1-4:1.0
Oct 22 14:57:30 [kernel] [  997.922066] scsi 6:0:0:0: Direct-Access   Crucial  Gizmo!  1100 PQ: 0 ANSI: 0 CCS
Oct 22 14:57:30 [kernel] [  997.929481] sd 6:0:0:0: Attached scsi generic sg2 type 0
Oct 22 14:57:30 [kernel] [  997.932169] sd 6:0:0:0: [sdb] 15663104 512-byte logical blocks: (8.02 GB/7.47 GiB)
Oct 22 14:57:30 [kernel] [  997.933294] sd 6:0:0:0: [sdb] Write Protect is off
Oct 22 14:57:30 [kernel] [  997.934540] sd 6:0:0:0: [sdb] No Caching mode page found
Oct 22 14:57:30 [kernel] [  997.934546] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Oct 22 14:57:30 [kernel] [  997.941058]  sdb:
Oct 22 14:57:30 [kernel] [  997.943798] sd 6:0:0:0: [sdb] Attached SCSI removable disk
=============================

Such problems do not exist with version =<0.13.0-r3, or lightdm.  I'm running consolekit 1.1.2 in case this makes any odds, but these problems started with updating sddm from what I recall, hence opening this bug report back then.
-- 
Regards,
Mick
Comment 8 Andreas Sturmlechner gentoo-dev 2017-10-22 14:18:30 UTC
This is almost certainly a config issue. dbus and consolekit are started in default runlevel?
Comment 9 MickKi 2017-10-22 14:45:16 UTC
(In reply to Andreas Sturmlechner from comment #8)
> This is almost certainly a config issue. dbus and consolekit are started in
> default runlevel?

Yes:

$ eselect rc list | egrep dbus\|consolekit
  consolekit                default
  dbus                      default

I do not recall having configured either consolekit or dbus from whatever settings they ship with ... what should I look into?

Alternatively, what may have changed >0.13.0-r3 to cause these problems?

PS. I do not have elogind installed because it has not been pulled in as a dependency.  I don't know if this would make any difference.  :-/
Comment 10 MickKi 2018-09-05 08:54:42 UTC
I have checked again this problem and it was caused by a rogue ~/.xsession file starting the desktop, essentially fighting against sddm.  Therefore it was after all a configuration problem, not a bug with sddm.  Sorry for the noise.
-- 
Kind regards,
Mick