Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LXDE: no shutdown / restart buttons [FIXED/emerge -e @world]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4626
Location: ~Brussels - Belgique

PostPosted: Sat Aug 18, 2012 9:07 pm    Post subject: LXDE: no shutdown / restart buttons [FIXED/emerge -e @world] Reply with quote

Hello,

I'm using LXDE with LXDM.

On my laptop, I don't have shutdown / reboot buttons at logout, but well suspend, hibernate and disconnect as user.
On my desktop, all the buttons are present.

I think both configurations are similar, but I don't find the problem.

I am using ~arch, with all the *Kit bloatware and I followed the "*Kit tips and tricks" topic, all seemed ok.

emerge --info:
Portage 2.2.0_alpha121 (default/linux/x86/10.0, gcc-4.7.1, glibc-2.15-r2, 3.5.2-gentoo i686)
=================================================================
System uname: Linux-3.5.2-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Fri, 17 Aug 2012 15:30:01 +0000
distcc 3.1 i686-gentoo-linux-gnu [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.7.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo local pd-overlay proaudio
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE freedist"
CBUILD="i686-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
CHOST="i686-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --buildpkg --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j7"
PKGDIR="/var/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="/usr/local/portage/overlay /var/lib/layman/pd-overlay /var/lib/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amr apng branding btrfs bzip2 cairo cli consolekit cracklib crypt cups cxx dbus dri dssi encode exif fat ffmpeg fftw flac gif gpm gstreamer gtk gtk3 gudev hwdb iconv id3tag imlib jack jpeg ladspa lame libkms libsamplerate lxde mmx modemmanager modules mp3 mpeg mudflap ncurses nls nptl ntfs ogg opengl openmp osc pam pcre pdf png policykit pppd qt3support qt4 readline rubberband samba sdl session smpeg sna sqlite sse sse2 ssl ssse3 svg tcpd threads tiff truetype udev udisks unicode usb vorbis wmf x264 x86 xcb xetex xvid zlib" ALSA_CARDS="hda-intel usb-audio 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="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" DVB_CARDS="usb-af9015" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be


Last edited by XavierMiller on Fri Aug 24, 2012 7:57 am; edited 1 time in total
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4626
Location: ~Brussels - Belgique

PostPosted: Sun Aug 19, 2012 7:32 pm    Post subject: Reply with quote

Hello,

More information:
Code:
$ ck-list-sessions
Session4:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2012-08-19T19:27:07.569373Z'
   login-session-id = '5'
Code:
$ groups
adm disk wheel floppy audio cdrom tape video games cdrw usb users portage plugdev vboxusers qemu realtime
Code:
$ emerge -pv polkit consolekit lxsession upower lxpolkit lxdm

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

Calculating dependencies    ... done!         
[ebuild   R    ] sys-auth/polkit-0.107  USE="gtk introspection nls pam -examples -kde (-selinux) -systemd" 0 kB
[ebuild   R    ] sys-auth/consolekit-0.4.5_p20120320-r1  USE="acl pam policykit -debug -doc (-selinux) -test" 0 kB
[ebuild   R    ] sys-power/upower-0.9.17-r1  USE="introspection -debug -doc -ios" 0 kB
[ebuild   R    ] lxde-base/lxpolkit-0.1.0-r1  0 kB
[ebuild   R    ] lxde-base/lxsession-0.4.6.1  USE="nls udev" 0 kB
[ebuild   R    ] lxde-base/lxdm-0.4.1-r5  USE="gtk3 nls pam -debug" 0 kB

Total: 6 packages (6 reinstalls), Size of downloads: 0 kB


Why is that wrong?

I will try to regenerate a fresh root and see what happens.
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Mon Aug 20, 2012 12:44 am    Post subject: Reply with quote

XavierMiller,

Do you have consolekit in the default runlevel :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4626
Location: ~Brussels - Belgique

PostPosted: Mon Aug 20, 2012 7:38 am    Post subject: Reply with quote

Hello,

It is automatically launched by other services (dbus or lxdm).
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
Odward
n00b
n00b


Joined: 21 Mar 2012
Posts: 63

PostPosted: Mon Aug 20, 2012 10:17 pm    Post subject: Reply with quote

Without using LXDM currently, I noticed a similar issue via startx

One common solution seems to be to add ck-launch-session to .xinitrc
Code:
ck-launch-session startlxde


But I still didn't have shutdown and reboot.
So from This thead I tried
Code:
grep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /usr/src/linux/.config


I was personally missing CONFIG_AUDITSYSCALL and CONFIG_USB_SUSPEND
I recompiled my kernel with those options built in, rebooted. Startx and with LXDE I now
have shutdown and reboot options present again.

*Edit - With the .xinitrc example above
I also see the Tips and Tricks post you're talking about, which covered those items. So this
may not be any aid to you :cry:
Figured I should share anyway
One last edit, if you're currently using ck-launch-session you might also try without. Perhaps
LXDM doesn't need that?
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4626
Location: ~Brussels - Belgique

PostPosted: Tue Aug 21, 2012 7:43 am    Post subject: Reply with quote

Hello,

I think ck-launch-session is called because ck-list-sessions has a good output.
But I will check the kernel configs.

For the moment, I am rebuilding a fresh configuration.
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4626
Location: ~Brussels - Belgique

PostPosted: Tue Aug 21, 2012 8:07 pm    Post subject: Reply with quote

It is worse now, with the new configuration, but I have some hints : polkit segfaults...
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4626
Location: ~Brussels - Belgique

PostPosted: Fri Aug 24, 2012 8:01 am    Post subject: Reply with quote

Hello,

I did an emerge -e @world, and all is OK now.
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
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