Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Going mad with XFCE + SLIM + shutdown does not work
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

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


Joined: 14 Mar 2007
Posts: 31

PostPosted: Sat Oct 22, 2011 12:07 am    Post subject: [SOLVED] Going mad with XFCE + SLIM + shutdown does not work Reply with quote

Hi,

I am struggling with xfce + proper shutdown for days now but I still got no working solution. As described in different other posts before, the shutdown and reboot buttons remain grey in the logout popup.

Regretfully non of the previous posts solved my problem. I already:

- upgraded the xfdesktop version from 4.8.2 to 4.8.3
- added my user to the power group
- allowed my user with the help of sudo to acces xfms-shutdown-helper without pw
- adapted my .xinitrc file to use ck-launch-session and so on

Nevertheless I still don't have a working gui shutdown.

I would be very glad if someone could push me in to the right direction.

Thansk in advance,
wolfclaw


Last edited by wolfclaw on Mon Oct 24, 2011 9:42 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Oct 22, 2011 1:25 am    Post subject: Reply with quote

The one thing I know of that causes this is not having PAM installed - consolekit and everything that uses it will just silently break if that's the case.
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1887
Location: 127.0.0.1

PostPosted: Sat Oct 22, 2011 8:00 am    Post subject: Reply with quote

Latest slim warning :
Quote:

$ grep ewarn /portage/trees/gentoo/x11-misc/slim/slim-1.3.2-r6.ebuild
ewarn "Please note that the slim session start script now supports consolekit"
ewarn "directly, via xinitrc.d scripts. Please remove any existing work-arounds to"
ewarn "avoid multiple calls to ck-launch-session."
ewarn
ewarn "You should also remove the 'nox11' flag from the pam_ck_connector.so module "
ewarn "in /etc/pam.d/system-login if you have not already done so."
ewarn "(this is safe, it will be default in the next version of pambase)"

Did you pay attention to this warning ?
If ck-launch-session is called multiple times during startup, shutdown, reboot and others buttons will be disabled in the logout popup.
Please post the output of ck-list-sessions.
Back to top
View user's profile Send private message
wolfclaw
n00b
n00b


Joined: 14 Mar 2007
Posts: 31

PostPosted: Sat Oct 22, 2011 10:01 am    Post subject: Reply with quote

Hi,

thanks for your answers so far. Didn't find the nox11 flag in the file you stated.

Code:
shakuras ~ # ck-list-sessions
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-10-22T11:55:51.021559Z'
   login-session-id = ''


wolfclaw
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1887
Location: 127.0.0.1

PostPosted: Sat Oct 22, 2011 10:49 am    Post subject: Reply with quote

Please post the outputs of :
Code:

$ emerge --info
$ zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
$ emerge -pv xfce4-session slim
# rc-update show
$ cat /etc/X11/Sessions/Xfce4
$ grep login_cmd /etc/slim.conf
Back to top
View user's profile Send private message
wolfclaw
n00b
n00b


Joined: 14 Mar 2007
Posts: 31

PostPosted: Sat Oct 22, 2011 11:26 am    Post subject: Reply with quote

Code:

shakuras ~ # emerge --info
Portage 2.1.10.20 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.0.1-gentoo x86_64)
=================================================================
System uname: Linux-3.0.1-gentoo-x86_64-AMD_Athlon-tm-_II_Neo_K325_Dual-Core_Processor-with-gentoo-2.0.3
Timestamp of tree: Wed, 05 Oct 2011 17:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.4.6, 4.5.3
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 java jpeg lcms ldap libnotify lock mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd python qt3support readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeon" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Code:

zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
CONFIG_PM_RUNTIME=y
# CONFIG_USB_SUSPEND is not set



Code:

shakuras ~ # emerge -pv xfce4-session slim

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] xfce-base/xfce4-session-4.8.2 [4.8.1] USE="consolekit policykit udev -debug -gnome -gnome-keyring" XFCE_PLUGINS="logout" 1,571 kB
[ebuild     U  ] x11-misc/slim-1.3.2-r6 [1.3.2-r3] USE="branding pam" 0 kB

Total: 2 packages (2 upgrades), Size of downloads: 1,571 kB



Code:

shakuras ~ # rc-update show
             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                         
               sysctl | boot                         
            syslog-ng |      default                 
         termencoding | boot                         
                 udev |                       sysinit
       udev-postmount |      default                 
              urandom | boot                         
           vixie-cron |      default                 
                 wicd | boot                         
                  xdm |      default           


Code:

shakuras ~ # cat /etc/X11/Sessions/Xfce4
startxfce4


Code:

shakuras ~ # grep login_cmd /etc/slim.conf
# login_cmd           exec /bin/sh - ~/.xinitrc %session
# login_cmd           exec /bin/bash -login ~/.xinitrc %session
login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session
# The current chosen session name is replaced in the login_cmd

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


Joined: 03 Mar 2005
Posts: 1887
Location: 127.0.0.1

PostPosted: Sat Oct 22, 2011 11:37 am    Post subject: Reply with quote

wolfclaw wrote:

Code:

zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
CONFIG_PM_RUNTIME=y
# CONFIG_USB_SUSPEND is not set


See this thread. You should rebuild your kernel with CONFIG_AUDITSYSCALL=y and CONFIG_USB_SUSPEND=y.
Please rebuild it and try again.
Back to top
View user's profile Send private message
wolfclaw
n00b
n00b


Joined: 14 Mar 2007
Posts: 31

PostPosted: Sat Oct 22, 2011 12:31 pm    Post subject: Reply with quote

Hi again,

I re-configured the kernel but regretfully the buttons are still not usable

Code:

shakuras u6f6o # zgrep  -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
CONFIG_AUDITSYSCALL=y
CONFIG_PM_RUNTIME=y
CONFIG_USB_SUSPEND=y


wolfclaw
Back to top
View user's profile Send private message
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Sat Oct 22, 2011 2:36 pm    Post subject: Reply with quote

What to say now?
Code:
# ck-list-sessions
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1887
Location: 127.0.0.1

PostPosted: Sat Oct 22, 2011 7:00 pm    Post subject: Reply with quote

wolfclaw wrote:
Code:

Timestamp of tree: Wed, 05 Oct 2011 17:15:01 +0000

Code:

shakuras ~ # emerge -pv xfce4-session slim

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] xfce-base/xfce4-session-4.8.2 [4.8.1] USE="consolekit policykit udev -debug -gnome -gnome-keyring" XFCE_PLUGINS="logout" 1,571 kB
[ebuild     U  ] x11-misc/slim-1.3.2-r6 [1.3.2-r3] USE="branding pam" 0 kB

Total: 2 packages (2 upgrades), Size of downloads: 1,571 kB




I did not noticed this before, but .... your system is NOT up-to-date. Please update it.
Latest slim (1.3.2-r6) has builtin consolekit support through its startup scripts. See my first answer on this thread :

Quote:

Latest slim warning :
Quote:

$ grep ewarn /portage/trees/gentoo/x11-misc/slim/slim-1.3.2-r6.ebuild

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


Joined: 14 Mar 2007
Posts: 31

PostPosted: Mon Oct 24, 2011 8:44 am    Post subject: Reply with quote

Sorry guys for answering so late but the world update made my xserver crash, have to fix this before I can continue with the logout problem
Back to top
View user's profile Send private message
wolfclaw
n00b
n00b


Joined: 14 Mar 2007
Posts: 31

PostPosted: Mon Oct 24, 2011 9:41 am    Post subject: Reply with quote

Hurrayyyy!!!!! The problem is solved after the world update!

MANY THANKS!!!!!
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