You are not logged in.

#1 2012-05-01 23:46:05

sinanziric
Member
Registered: 2012-05-01
Posts: 30

Issues with Shutdown, Reboot...

Hello everyone im new Archlinux user, started TODAY.

This is mysecond post smile and i have some problems.

I'm using XFCE4+slim login manager, and i can not

restart
shutdown

got no sound even if i have all gstreamer + plugins...

what is the problem?

these are my settings... can someone review them this is my first installation
i have been reading many arch wiki texts, just in case can someone review
them and point me to problems to fix them...


i'll try my best not to bother people on this forums,
i'll try to read wiki as much as i can, but now i'm stuck smile

ck-list-sessions

i get:

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 = '2012-05-01T23:22:03.602962Z'
	login-session-id = '1'

my rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# See 'man 5 rc.conf' for more details
#

# LOCALIZATION
# ------------
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Sarajevo"
KEYMAP="ba"
CONSOLEFONT=
CONSOLEMAP=
LOCALE=
DAEMON_LOCALE="yes"
USECOLOR="yes"

# HARDWARE
# --------
MODULES=()
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"

# NETWORKING
# ----------
HOSTNAME="sinanarch"

interface=eth0
address=
netmask=
broadcast=
gateway=

NETWORK_PERSIST="no"

# DAEMONS
# -------
#
DAEMONS=(syslog-ng dbus slim network crond)

xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
 exec startxfce4
# ...or the Window Manager of your choice

inittab

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)	Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

# End of file

Offline

#2 2012-05-01 23:52:46

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,682

Re: Issues with Shutdown, Reboot...

Offline

#3 2012-05-02 02:39:08

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Issues with Shutdown, Reboot...

I am also having a similar issue after an upgrade of many files.  In my case, I get all the options if I: right-click on the Log Out icon, choose Panel > Log Out.  If I just left click on the Log Out icon I can only Log Out or Cancel.  Also part of the Log Out dialog box is hidden behind the top bar.

@sinanziric
You should have the following for XFCE and SLiM.  Your ck-list-sessions should show "active = TRUE" and "is-local = TRUE"

For /etc/rc.conf remove slim from the DAEMONS line.

For /etc/X11/initab add the following: x:5:respawn:/usr/bin/slim >/dev/null 2>&1
Under: # Example lines for starting a login manager

For /etc/slim.conf I have the following:

# 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 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 "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 ck-launch-session /bin/bash -login ~/.xinitrc %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 $DISPLAY %user
sessionstop_cmd     /usr/bin/sessreg -d -l $DISPLAY %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 (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            xterm,xfce4,icewm,wmaker,blackbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window 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
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log 

I also have the following file /home/~/.bash_profile

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

export EDITOR=nano
export GREP_COLOR="1;33"

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
	startx
	logout
fi 

Offline

#4 2012-05-02 03:41:07

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Issues with Shutdown, Reboot...

David Batson wrote:

I am also having a similar issue after an upgrade of many files.  In my case, I get all the options if I: right-click on the Log Out icon, choose Panel > Log Out.  If I just left click on the Log Out icon I can only Log Out or Cancel.  Also part of the Log Out dialog box is hidden behind the top bar.

You can now choose which of the Action Buttons to display.  If you select Properties it will show you the options.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2012-05-02 13:32:16

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Issues with Shutdown, Reboot...

loafer wrote:

You can now choose which of the Action Buttons to display.  If you select Properties it will show you the options.

Thanks, that did the trick!

Oddly though, I lose the icon which is replaced by my user name or else get several buttons on the top bar, one for each action.  Also there are 2 Log Out choices in Preferences, but only one of them shows the other actions such as Shutdown and Restart.  I believe I preferred the previous behavior.

EDIT:  I see that if I choose the 2nd Log Out option in Preferences and uncheck the rest, I get the old behavior back.  One icon with 5 options.

Last edited by David Batson (2012-05-02 13:53:26)

Offline

#6 2012-05-02 19:18:55

sinanziric
Member
Registered: 2012-05-01
Posts: 30

Re: Issues with Shutdown, Reboot...

My problem is solved by reading carefully https://wiki.archlinux.org/index.php/Xf … ithin_Xfce

Offline

Board footer

Powered by FluxBB