Hello! After a recent upgrade to x11-misc/slim-1.3.2-r7 I got the "Shutdown" and "Reboot" buttons greyed out in Xfce. The only way I can halt or reboot my system is to log out and type "halt" or "reboot" in Slim's username field. Also I get a "Not Authorized" error message when trying to mount a USB flash drive in my file manager. These issues seem to be related to some common underlying problem. Reproducible: Always
1) Please post your `emerge --info x11-misc-slim' output in a comment. 2) Please attach your /etc/conf.d/xdm. 3) Please attach your /etc/slim.conf. 4) Could you see if it is in fact not the slim upgrade but a xorg-server or xdm that caused this? You can probably do that by downgrading one package after another to see if that fixes the issue. In the case of slim, disable USE=consolekit.
Hello! Here is my emerge --info output: Portage 2.2.0_alpha81 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r1, 3.1.5-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.1.5-gentoo-x86_64-Mobile_AMD_Sempron-tm-_Processor_3800+-with-gentoo-2.1 Timestamp of tree: Tue, 20 Dec 2011 10:30:01 +0000 distcc[5721] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distccd.log: Permission denied [enabled] app-shells/bash: 4.2_p20 dev-lang/python: 2.7.2-r3::sage-on-gentoo, 3.2.2 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.7 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.11.1-r1 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r1 Repositories: gentoo sage-on-gentoo betagarden x-overlays Installed sets: ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86" ACCEPT_LICENSE="* -@EULA PUEL skype-eula" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/home/Install/GNU-Linux/distfiles/" FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="" GENTOO_MIRRORS="http://portage.org.ua/ ftp://portage.org.ua/ http://gentoo.iteam.net.ua/ ftp://gentoo.kiev.ua/ http://gentoo.kiev.ua/ftp/" LANG="uk_UA.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ru uk" MAKEOPTS="-j2" PKGDIR="/home/Install/GNU-Linux/binpkg/" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sage-on-gentoo /var/lib/layman/betagarden /usr/local/overlays" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 64bit 7zip X a52 aac aalib acpi alsa amd64 amrnb amrwb apm ass bash-completion bzip2 cairo cli consolekit cracklib crypt ctype curl cxx dbus dga djvu dri dts dvd encode exif expat faad fbcon fbcondecor festival ffmpeg fftw flac freetds fuse gd gdbm geoip gif git glut gmp gnuplot gnutls gsl gstreamer gtk hddtemp iconv idn imagemagick imlib irc jabber jack jbig jpeg lame laptop latex libcaca libnotify libsamplerate lm_sensors lua lzo mad matroska mmap mmx mmxext mng modplug modules mudflap multilib nas ncurses nforce2 nls nptl nptlonly nvidia ogg openal opencore-amr opengl openmp pam pdf plotutils pmu png policykit pppd profile python qt3support qt4 readline rtc samba sasl sdl session shorten skins slang sndfile sockets speex spell sse sse2 ssl startup-notification svg sysfs syslog systray taglib tcl tcpd theora threads timidity truetype udev unicode usb vorbis wavpack webkit wmf x264 xattr xcb xcomposite xinerama xml xorg xosd xpm xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru uk" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= x11-misc/slim-1.3.2-r7 was built with the following: USE="branding (multilib) pam -consolekit"
Created attachment 296525 [details] /etc/slim.conf The content of my "/etc/conf.d/xdm" is only this: CHECKVT=7 DISPLAYMANAGER="slim"
I re-emerged slim with the "-consolekit" USE-flag and now it seems to work correctly. At least, I can mount the flash drive without any problem and the "Shutdown"/"Reboot" buttons are not greyed. Thank you, Vladimir
I guess that consolekit patch needs more work, then, or the xdm script or slim itself should make sure that consolekit is running?
Could you post the content of your ~/.xinitrc ? Since you are not using the Xsession script installed by slim, this is probably the issue. IE, if your ~/.xinitrc did not include a source'ing of /etc/X11/xinit/xinitrc.d/* or at minimum the inclusion of "dbus-launch --exit-with-session" prepended to your session command, then consolekit won't work. Alternatively, please update your slim.conf so that it matches the default (i.e., using etc-update or dispatch-conf)
This slim.conf is actually very old (circa 1.3.2-r3 or earlier); there could be multiple issues within this file. Please update and try again.
(In reply to comment #6) > Could you post the content of your ~/.xinitrc ? Since you are not using the > Xsession script installed by slim, this is probably the issue. > These are the contents of my ~/.xinitrc file: DEFAULT_SESSION="ck-launch-session startxfce4" case $1 in xfce4) exec startxfce4 ;; kde) exec startkde ;; awesome) lilyterm --tab 5 --user_profile /home/vova/.config/lilyterm.conf & exec awesome ;; *) exec $DEFAULT_SESSION ;; esac > IE, if your ~/.xinitrc did not include a source'ing of > /etc/X11/xinit/xinitrc.d/* or at minimum the inclusion of "dbus-launch > --exit-with-session" prepended to your session command, then consolekit won't > work. > I used this recommendations when configuring it: http://en.gentoo-wiki.com/wiki/SLiM#Variant_A and it worked fine with x11-misc/slim-1.3.2-r6
The wiki is very out of date. With the settings you were/are using, if you had checked the output of ck-list-session at the time, you would have actually noticed that the current ck-session was actually invalid, however the pass-throughs would still work (at least with xfce -- iirc they didn't work so well in gnome). It was a case of two wrongs making something that worked. The current default and entirely built-in support, which is described in the elog / post-install message, has 'correct' consolekit support (that is, IS_LOCAL=TRUE and ACTIVE=TRUE in ck-list-session) and also should work out of the box.
(In reply to comment #9) > The wiki is very out of date. > > The current default and entirely built-in support, which is described in the > elog / post-install message, has 'correct' consolekit support (that is, > IS_LOCAL=TRUE and ACTIVE=TRUE in ck-list-session) and also should work out of > the box. That Wiki says that it is written for the version 1.3.2-r6. It does not seem to be very old version, or is it? Anyway, I (of course) read the post-installation message for slim and the example xinitrc file as well. My setup seems to match the one described there. Or am I missing something? Thanks. Vladimir
There is no example xinitrc in the post-install message, so I'm not sure what it was you were reading. The Wiki, however, was out of date. It was partially updated to mention the newer SLiM version, but the setup described did not match that version's capabilities. I have updated that page to better reflect how things work with the newer versions. It should be noted, though, that any version of gentoo-wiki is not official documentation and although it can be a good reference, if there are issues resulting from following the instructions on the wiki this isn't actually a bug. So in summary, update config files using dispatch-conf or etc-update, and set your default session using the standard Gentoo / Xorg ways (via ~/.xsession or the XSESSION environment variable), and you'll be good to go.
(In reply to comment #11) > So in summary, update config files using dispatch-conf or etc-update, and set > your default session using the standard Gentoo / Xorg ways (via ~/.xsession or > the XSESSION environment variable), and you'll be good to go. Alternatively, you can re-enable USE="consolekit" , remove the ck-launch-session stuff from your ~/.xinitrc , and experiment with it until you get dbus launching and your ck-list-session shows just one session with both IS_LOCAL=TRUE and ACTIVE=TRUE.
(In reply to comment #12) > Alternatively, you can re-enable USE="consolekit" , remove the > ck-launch-session stuff from your ~/.xinitrc , and experiment with it until you > get dbus launching and your ck-list-session shows just one session with both > IS_LOCAL=TRUE and ACTIVE=TRUE. Wait a minute. So should I enable the "consolekit" USE-flag or disable it? What is the normal case?
The normal case is: 1- if you want to use consolekit (and you have that USE flag enabled globally), to have USE="consolekit" for slim. 2- using the default slim.conf 3- specifying your default session through the ~/.xsession file or through the XSESSION global variable, as per gentoo / Xorg standards.
All right. Here's what caused the problem: I had a DEFAULT_SESSION="ck-launch-session startxfce4" line in my ~/.xinitrc file and did not realize that if I didn't state the DE I want Slim to launch explicitly (i.e. by pressing F1), it uses this variable. So now I have the following ~/.xinitrc file contents: DEFAULT_SESSION="startxfce4" case $1 in Xfce4) exec startxfce4 ;; awesome) lilyterm --tab 5 --user_profile /home/vova/.config/lilyterm.conf & exec awesome ;; *) exec $DEFAULT_SESSION ;; esac And everything works fine with "consolekit" USE-flag enabled so far. Thanks again! Vladimir