You are not logged in.

#26 2012-05-08 19:05:29

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,601
Website

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

tr0nic wrote:

I also have two sessions.
My .xinitrc has already had a simple "exec startxfce4", there was no ck-launch-session in it before, so I cannot apply your fix unfortunately.
My slim.conf "login_cmd":  exec ck-launch-session /bin/bash -login ~/.xinitrc %session

Perhaps remove "ck-launch-session" while leaving everything else in your slim.conf login_cmd?

Last edited by headkase (2012-05-08 19:06:04)


We all make choices, but in the end, our choices make us.

Offline

#27 2012-05-08 19:16:38

tr0nic
Member
From: Europe
Registered: 2005-05-02
Posts: 15

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

Thank you, that worked.
Silly me...

Does your login_cmd look the same?

Offline

#28 2012-05-08 19:21:15

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,601
Website

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

You're welcome.  Nope this is my login_cmd line in slim.conf:

login_cmd           exec /bin/bash -login ~/.xinitrc %session

smile


We all make choices, but in the end, our choices make us.

Offline

#29 2012-05-08 19:36:09

Thomas_Do
Member
Registered: 2011-08-12
Posts: 53

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

Thanks a lot! Worked for me to :-).

Last edited by Thomas_Do (2012-05-08 19:36:31)

Offline

#30 2012-05-08 19:52:03

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,601
Website

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

Updated:
SLiM Wiki

and

Xfce Wiki

Both as a note about SLiM's new support for console kit.


We all make choices, but in the end, our choices make us.

Offline

#31 2012-05-08 21:24:07

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 816

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

Great!
Thanks again!

Offline

#32 2012-05-08 21:29:37

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,601
Website

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

wink You're welcome again! smile  We had better stop thanking and welcoming now - or this thread will grow into hundreds of pages!! big_smile wink


We all make choices, but in the end, our choices make us.

Offline

#33 2012-05-09 01:53:02

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 675
Website

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

The new version of slim seems to work much better with the default .xinitrc.

What I have and works:

#!/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

I didn't need to make further changes to slim.conf or any other file. smile

Offline

#34 2012-05-09 02:03:27

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,601
Website

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

dbus is the only addition I have to my exec line:

exec dbus-launch --exit-with-session startxfce4

And I have it because I explicitly want dbus to exit with the session.  I don't know if it is "cleaner" or not but it appears to work perfectly fine for myself.  From the Xfce Wiki:

There is still no need to start dbus-launch explicitly since startxfce4 takes care of doing that anyway.

So, explicitly starting dbus, as I do, like you say is probably superfluous.

However: dbus still needs to be in your DAEMONS array in /etc/rc.conf or "bad things will happen"™ wink

Edit: removed "dbus-launch --exit-with-session" from my launch line, it is now just "exec startxfce4" like yours.  Nothing changed, it all still works, so, simpler is better.

Last edited by headkase (2012-05-09 02:19:50)


We all make choices, but in the end, our choices make us.

Offline

#35 2012-05-09 22:11:41

achilleas.k
Member
From: Sol 3
Registered: 2011-10-30
Posts: 115

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

Just to chime in here, removing ck-launch-session from ~/.xinitrc solved the problem for me too. Using SLiM with KDE.

Offline

#36 2012-05-10 04:33:07

tangato
Member
Registered: 2010-11-02
Posts: 4

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

xfce4 with slim. Solved here changing .xinitrc to

exec dbus-launch --exit-with-session startxfce4

thanks.

Last edited by tangato (2012-05-10 04:33:37)

Offline

#37 2012-05-11 08:16:46

amatriain
Member
Registered: 2011-06-02
Posts: 49

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

@headkase thanks man, this was bugging me. I hope pacman would have warned me after updating slim.

Offline

#38 2012-05-11 19:01:22

adduu
Member
From: India
Registered: 2011-10-14
Posts: 14

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

Worked right after I edited the .xinitrc as instructed. Thanks a heap mate! wink

Offline

#39 2012-05-11 23:10:35

jacek2v
Member
Registered: 2010-06-08
Posts: 6

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

Well done.
Thanks a lot!!!

Offline

#40 2012-05-17 07:52:23

dusan
Member
From: Bratislava, Slovakia
Registered: 2011-08-05
Posts: 12
Website

Re: [SOLVED] New slim, can't shutdown|reboot|suspend anymore

I had the same problem, found two steps necessary:

1. fix ~/.xinitrc as mentioned above, e.g.:

exec startxfce4

2.

# rm /etc/slim.conf
# mv /etc/slim.conf.pacnew /etc/slim.conf

Hope this helps anyone struggling with .xinitrc, dbus-launch, sudoers etc.

Offline

Board footer

Powered by FluxBB