You are not logged in.

#1 2009-11-10 14:47:37

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Issue with Slim and OpenBox

Hi to everyone:

I've installed Slim + OpenBox in one machine PIII-450 MHz., 256 MB RAM, HD 8.5 GB. smile

I've one issue now: when the system is starting, I can see the login prompt at the console, after one black screen by 20 seconds and appears the screen login from Slim. yikes

Someone else with the same problem ... anyone knows how to fix it? neutral

Offline

#2 2009-11-10 15:52:04

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Issue with Slim and OpenBox

How are you starting slim? What are you expecting it to show while X/Slim is loading?


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2009-11-10 17:03:50

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: Issue with Slim and OpenBox

pyther wrote:

How are you starting slim? What are you expecting it to show while X/Slim is loading?

This is the /etc/inittab file:

#                                           
# /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 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 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

# End of file

This the /home/user/.xinitrc file:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
exec openbox-session
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

If I compare KDM + KDE vs Slim + OpenBox, this last mix is slowest.

Could be fastest or I need another Login Manager for OpenBox? hmm

Offline

#4 2009-11-11 01:03:39

sw2wolf
Member
From: China
Registered: 2009-06-08
Posts: 99
Website

Re: Issue with Slim and OpenBox

1. comment "x:5:respawn:/usr/bin/slim >& /dev/null" in your inittab. And modify /etc/rc.conf as below:

%cat /etc/rc.conf|grep -i slim
DAEMONS=(syslog-ng network netfs crond alsa hal slim)

2. add sessions in /etc/slim.conf

%cat /etc/slim.conf|grep openbox
sessions            xmonad,openbox

3. modiy the ~/.xinitrc to meet your need. The following is mine:

%cat ~/.xinitrc
#!/bin/sh

LOCALE="zh_CN.UTF-8"
export XIM_PROGRAM=/usr/bin/fcitx
export XIM=fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

xset -dpms
xsetroot -cursor_name left_ptr
xsetroot -solid black
numlockx &

case $1 in
    openbox)
      exec openbox-session
      ;;
    *)
      exec xmonad
      ;;
esac


e^(π⋅i) + 1 = 0

Offline

#5 2009-11-12 16:50:52

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: Issue with Slim and OpenBox

sw2wolf wrote:

1. comment "x:5:respawn:/usr/bin/slim >& /dev/null" in your inittab. And modify /etc/rc.conf as below:

%cat /etc/rc.conf|grep -i slim
DAEMONS=(syslog-ng network netfs crond alsa hal slim)

2. add sessions in /etc/slim.conf

%cat /etc/slim.conf|grep openbox
sessions            xmonad,openbox

3. modiy the ~/.xinitrc to meet your need. The following is mine:

%cat ~/.xinitrc
#!/bin/sh

LOCALE="zh_CN.UTF-8"
export XIM_PROGRAM=/usr/bin/fcitx
export XIM=fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

xset -dpms
xsetroot -cursor_name left_ptr
xsetroot -solid black
numlockx &

case $1 in
    openbox)
      exec openbox-session
      ;;
    *)
      exec xmonad
      ;;
esac

I did the settings you told me, but nothing changed: 20 seconds is taking longer. sad

Offline

#6 2009-11-12 18:13:57

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Issue with Slim and OpenBox

Using slim as a service instead of launching it from within inittab is an alternative. Not necessarily an improvement. Slim takes a few secs here too; I think that is the time it takes to launch the X server. You should try GDM and see if it shows the same behaviour.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB