View previous topic :: View next topic |
Author |
Message |
ezio n00b
Joined: 20 Jan 2013 Posts: 4
|
Posted: Sun Jan 20, 2013 7:29 pm Post subject: Xfce4 + slim: can't login + poweroff button not working |
|
|
Hi @ all,
my problem is, that I can not login graphically and also I am not able to use the Xfce4 poweroff / restart GUI buttons as they remain grey, when I start a graphical session with the startx command.
I've already tried to fix my problem with several threads about similiar problems. E.g. I already read https://forums.gentoo.org/viewtopic-p-6848924.html and https://forums.gentoo.org/viewtopic-t-905296-postdays-0-postorder-asc-start-25.html
Will someone please help me?
My specs are:
Code: | $ emerge --info
Portage 2.1.11.31 (default/linux/x86/10.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Sun, 20 Jan 2013 10:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.9
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.4
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -mssse3 -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -mssse3 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi additions alsa apache2 asf audiofile berkdb build bzip2 cairo cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dv dvd dvdr eap-tls encode exif expat extra extrafilters fame fat ffmpeg fortran ftp gd gdbm glitz glx gmp gphoto gpm graphics gstreamer gtk gtk2 h323 hal iconv imagemagick imap java javascript jbig jpeg kpathsea lame latex libwww loop-aes lzo mad mine minizip mjpeg mmx modules mp3 mpeg mudflap ncurses network networkmanager nls nptl nsplugin ntfs nuv offensive ogg opengl openmp pam pcmia pcre pdflib perl php png policykit postgres pppd pythn qt3 qt4 quicktime readline science sdl session sip skins soap spell sse sse2 ssl startup-notification svg svga tcpd theora threads thunar tiff tk truetype udev unicode usb v4l v4l2 vim-syntax vorbis wav wifi win32codecs wmf wxwindows x264 x86 xfce xml xml2 xorg xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel loopback virmidi" 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="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" 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="evdev keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON |
Code: | $ zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
CONFIG_AUDITSYSCALL=y
CONFIG_PM_RUNTIME=y
CONFIG_USB_SUSPEND=y |
Code: | $ emerge -pv xfce4-session slim
[ebuild R ] xfce-base/xfce4-session-4.10.0 USE="consolekit policykit udev xscreensaver -debug -gnome-keyring" 0 kB
[ebuild R ] x11-misc/slim-1.3.2-r7 USE="consolekit pam -branding" 0 kB |
Code: | $ rc-update show
acpid | default
alsasound | default
bootmisc | boot
consolekit | default
dbus | default
devfs | sysinit
dmesg | sysinit
fsck | boot
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
local | default
localmount | boot
modules | boot
mount-ro | shutdown
mtab | boot
net.lo | boot
netmount | default
procfs | boot
root | boot
savecache | shutdown
swap | boot
swapfiles | boot
sysctl | boot
sysfs | sysinit
termencoding | boot
tmpfiles.setup | boot
udev | sysinit
udev-mount | sysinit
urandom | boot
wicd | default
xdm | default |
Code: | $ cat /etc/X11/Sessions/Xfce4
startxfce4 |
Code: | $ grep login_cmd /etc/slim.conf
# login_cmd exec /bin/sh - ~/.xinitrc %session
#login_cmd exec /bin/bash -login ~/.xinitrc %session
#login_cmd exec ck-launch-session startxfce4
login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session |
Code: | $ ck-list-sessions
Session8:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty2'
remote-host-name = ''
is-local = TRUE
on-since = '2013-01-20T19:02:58.905986Z'
login-session-id = '5'
idle-since-hint = '2013-01-20T19:06:11.041288Z' |
|
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
ezio n00b
Joined: 20 Jan 2013 Posts: 4
|
Posted: Sun Jan 20, 2013 7:50 pm Post subject: |
|
|
audiodef wrote: | Try either
Code: |
login_cmd exec ck-launch-session startxfce4
|
|
Thanks alot! That one fixed the login problem
But unfurtunately I still can not use the graphical poweroff / reboot buttons. The only button I can use is the logout button. Can I somehow provide more useful information on this? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
ezio n00b
Joined: 20 Jan 2013 Posts: 4
|
Posted: Mon Mar 25, 2013 9:32 am Post subject: |
|
|
Bump! Still no solution. |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Mon Mar 25, 2013 10:27 am Post subject: |
|
|
If x11-misc/slim is compiled with USE="consolekit" it means the ConsoleKit session is started by the Display Manager (SLIM) itself, thus, logically, if you add another ck-launch-session there, it will cause it to run double (2) sessions. That will cause applications to get confused, and things like communication using DBUS between things like xfce4-session, upower, consolekit, and polkit will be broken.
First post of this thread is mostly still accurate: https://forums.gentoo.org/viewtopic-t-858965-start-0.html
And it mentions SLIM to be one of these Display Managers with internal ConsoleKit support
In fact, we don't have any Display Managers in portage left that don't have this support. Thus, logically, ck-launch-session should only be used when running from console, using eg. startx |
|
Back to top |
|
|
kingcrabmeat n00b
Joined: 16 Sep 2006 Posts: 17
|
Posted: Sun Apr 07, 2013 9:46 pm Post subject: |
|
|
I had the same issue as ezio. Until I was able to get some form of error report, thanks to trying lightdm after slim and lxdm failed me, I couldn't find a solution. I finally solved the issue by issuing the following command as root:
Code: | emerge -1 dbus dbus-glib |
When I first read the post linked by ssuominen, I only tried to emerge dbus-glib, which apparently wasn't good enough. The solution was buried in such a long thread, I hope this helps in case somebody missed it. |
|
Back to top |
|
|
Krotos n00b
Joined: 14 Oct 2006 Posts: 27
|
Posted: Mon Jul 15, 2013 12:13 am Post subject: |
|
|
I had this problem too. Turned out I hadn't compiled x11-misc/slim with the "consolekit" USE flag. When I recompiled with that flag and restarted, I had the shutdown etc. options available. |
|
Back to top |
|
|
|