View previous topic :: View next topic |
Author |
Message |
royalts n00b
Joined: 06 Jan 2015 Posts: 39
|
Posted: Sun Sep 13, 2015 8:26 pm Post subject: shutdown,reboot,hibernate greyed out after update + no sound |
|
|
Hey!
I just updated my gentoo (3.6.11 Kernel)
and now I can't shut down, ... my laptop by using the icons of xfce4. if I prompt :
Code: |
$ xfce4-session-logout --suspend
|
I have to enter my root pw and then it will work.
My
Code: | $ ck-list-sessions
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2015-09-13T15:48:47.722867Z'
login-session-id = '2'
|
looks pretty stange (active = FALSE, is-local = FALSE).
In addition I have no sound and pavucontrol show me as output device just the "dummy adapter". So I think I have a permission problem.
I followed the instructions in
https://wiki.gentoo.org/wiki/D-Bus
https://wiki.gentoo.org/wiki/ConsoleKit
my .xinitrc:
Code: |
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -n "`/etc/X11/chooser.sh`" ]; then
command="`/etc/X11/chooser.sh`"
else
failsafe="yes"
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?* ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
if [ -n "$failsafe" ]; then
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
else
exec $command
fi
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4
|
and I'm using slim as login manager
Code: |
cat /etc/slim.conf
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp -br -deferglyphs 16 vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# 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
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd some command
# sessionstop_cmd some command
sessionstart_cmd /usr/bin/sessreg -a -l :0.0 %user
sessionstop_cmd /usr/bin/sessreg -d -l :0.0 %user
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
daemon yes
# Available sessions:
# The current chosen session name replaces %session in the login_cmd
# above, so your login command can handle different sessions.
# If no session is chosen (via F1), %session will be an empty string.
# see the xinitrc.sample file shipped with slim sources
#sessions xfce4,icewm-session,wmaker,blackbox
# Alternatively, read available sessions from a directory of scripts:
#sessiondir /etc/X11/Sessions
# Or, read available sessions from the xsessions desktop files --
# note that this may provide a full path to the session executable!
sessiondir /usr/share/xsessions
# Executed when pressing F11 (requires media-gfx/imagemagick for import)
# Alternative is media-gfx/scrot. See Gentoo bug 252241 for more info.
screenshot_cmd import -window root /slim.png
#screenshot_cmd scrot /root/slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user simone
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password no
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login no
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme default
# Lock file, /etc/init.d/xdm expects slim.pid
lockfile /run/slim.pid
# Log file
logfile /var/log/slim.log
|
I'm in the groups:
Code: |
cat /etc/group | grep royalts
lp:x:7:lp,royalts
wheel:x:10:root,royalts,default
uucp:x:14:uucp,royalts
cdrom:x:19:default,royalts
video:x:27:root,royalts,default
cdrw:x:80:royalts
usb:x:85:royalts
users:x:100:royalts,default
royalts:x:1000:
games:x:35:royalts
plugdev:x:996:royalts,default
apache:x:81:royalts,ftp
wireshark:x:992:royalts
vboxusers:x:986:royalts
android:x:985:royalts
ftpaccounts:x:1005:royalts,ftp
bumblebee:x:982:royalts
kismet:x:981:royalts
|
I Just saw these 2 entries in rc.log:
Code: |
* Starting D-BUS system messagebus ...
* start-stop-daemon: fopen `/var/run/dbus.pid': No such file or directory
* Detaching to start `/usr/bin/dbus-daemon' ...
[ ok ]
* Starting bluetooth ...
* Detaching to start `/usr/libexec/bluetooth/bluetoothd' ...
[ ok ]
* Starting ConsoleKit daemon ...
* start-stop-daemon: fopen `/var/run/ConsoleKit/pid': No such file or directory
* Detaching to start `/usr/sbin/console-kit-daemon' ...
|
my USE flags:
Code: |
USE="-gnome -kde -libav -qt3support -qt4 aac a52 acl additions alsa acpi apache2 \
APACHE2_MODULES apm avahi bindist bluetooth cdr cli consolekit cups \
dbus dvd dhclient encode equalizer extensions ffmpeg gnutls gtk gtk2 \
hpijs ipv6 jack java jpeg keymap live lm_sensors mad midi mmx mp3 \
mp2 mysql mysqli nls nss nsplugin odk openssl pam pdf php \
png policykit ppds pulseaudio python real resolvconf scanner snmp spell \
sse sse2 ssl startup-notification thunar threads tiff udev usb \
vaapi win32codecs x264 X xorg xvid zeroconf"
|
Last edited by royalts on Mon Sep 14, 2015 3:49 pm; edited 1 time in total |
|
Back to top |
|
|
royalts n00b
Joined: 06 Jan 2015 Posts: 39
|
Posted: Mon Sep 14, 2015 11:35 am Post subject: |
|
|
does nobody have a clue? |
|
Back to top |
|
|
Section_8 l33t
Joined: 22 May 2004 Posts: 627
|
|
Back to top |
|
|
royalts n00b
Joined: 06 Jan 2015 Posts: 39
|
Posted: Mon Sep 14, 2015 3:32 pm Post subject: |
|
|
I am not directly affected, because I use consolekit-0.4.6
BUT:
If I log in using the terminal (startx) --> all is fine
If I log in using the terminal (startxfce4) --> [/b]no sound, greyed out buttons,...
If I log in using slim (display manager) --> no sound, greyed out buttons,...
So whats the different between startx and stratxfce4 ? |
|
Back to top |
|
|
sligo Tux's lil' helper
Joined: 17 Oct 2011 Posts: 93
|
Posted: Tue Sep 15, 2015 8:07 am Post subject: |
|
|
Consolekit flag was hardmasked in slim. This was due to some problem with a upcoming version of consolekit not compatible to current slim. Hardmask should be removed in stable. Just try to reemerge slim.
https://bugs.gentoo.org/show_bug.cgi?id=560088
Edit: did some research |
|
Back to top |
|
|
royalts n00b
Joined: 06 Jan 2015 Posts: 39
|
|
Back to top |
|
|
sligo Tux's lil' helper
Joined: 17 Oct 2011 Posts: 93
|
Posted: Tue Sep 15, 2015 9:23 pm Post subject: |
|
|
Yes the bug report is this is about Consolekit 1.0 but if you read the comments you'll see that the maintainer of Slim package disabled Consolekit for Slim some days ago. If you updated Slim package after that, you're having Slim without any Consolekit support no matter what version of Consolekit you have. People in the comments section of this bug report complained about this fact and the maintainer readded Consolekit to Slim.
In short: emerge --sync && emerge -1 slim and you'll probably be fine. |
|
Back to top |
|
|
royalts n00b
Joined: 06 Jan 2015 Posts: 39
|
Posted: Fri Sep 18, 2015 10:33 am Post subject: |
|
|
I cleaned my system of cosolekit, slim,..., updated my portage files, emerged it again but the problem still remains... So I actually take xdm out of rc-update and use startx manually. If any other guy has experience with this combination and has a similar problem feel free to contact me |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1896 Location: 127.0.0.1
|
Posted: Fri Sep 18, 2015 2:40 pm Post subject: Re: shutdown,reboot,hibernate greyed out after update + no s |
|
|
royalts wrote: |
Code: |
cat /etc/slim.conf
# Xauth file for server
authfile /var/run/slim.auth
# Lock file, /etc/init.d/xdm expects slim.pid
lockfile /run/slim.pid
|
I Just saw these 2 entries in rc.log:
Code: |
* Starting D-BUS system messagebus ...
* start-stop-daemon: fopen `/var/run/dbus.pid': No such file or directory
* Detaching to start `/usr/bin/dbus-daemon' ...
[ ok ]
* Starting bluetooth ...
* Detaching to start `/usr/libexec/bluetooth/bluetoothd' ...
[ ok ]
* Starting ConsoleKit daemon ...
* start-stop-daemon: fopen `/var/run/ConsoleKit/pid': No such file or directory
* Detaching to start `/usr/sbin/console-kit-daemon' ...
|
|
Please post the output of :
|
|
Back to top |
|
|
royalts n00b
Joined: 06 Jan 2015 Posts: 39
|
Posted: Sun Sep 20, 2015 3:55 pm Post subject: |
|
|
first of all: thank you 4 your effort!
Code: |
# ls -ld /var/run
lrwxrwxrwx 1 root root 4 Nov 20 2012 /var/run -> /run
|
|
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1896 Location: 127.0.0.1
|
Posted: Sun Sep 20, 2015 4:35 pm Post subject: |
|
|
Can you please check that your running kernel has tmpfs support.
mount command should display something like this :
Code: |
tmpfs on /run type tmpfs (rw,nodev,relatime,size=1641136k,mode=755)
|
See this topic. Solving your «no such file or directory» daemons warnings may help.
Last edited by netfab on Sun Sep 20, 2015 4:40 pm; edited 2 times in total |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1148 Location: /dev/koelsch
|
Posted: Sun Sep 20, 2015 4:38 pm Post subject: |
|
|
Hi royalts,
long time ago I've had a similar problem with my Xfce installation after upgrading it.
It was hard for me to find the connection between the symptoms and the solution.
The solution was to rebuilt sys-auth/polkit, so eventually you should try this too, until somebody has a better idea.
Much success,
Andy. _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
royalts n00b
Joined: 06 Jan 2015 Posts: 39
|
Posted: Sun Sep 20, 2015 4:57 pm Post subject: |
|
|
I got the following line by typing in the mount command:
Code: |
tmpfs on /run type tmpfs (rw,nodev,relatime,size=802944k,mode=755)
|
|
|
Back to top |
|
|
|