Re: Bug#208205: Stopping kdm does not cleanly logout active kde sessions
Hi,
autologout on X-server shutdown is IMHO a great feature but
as you see below it freezes my laptop. Anyone an idea what's
going on?
Achim
On Tuesday 02 September 2003 14:10, Dave Cinege wrote:
> On Tuesday 02 September 2003 06:08, Achim Bohnet wrote:
>
> > as root from the command line and my laptop shutdown completely.
>
> DOH!!! Yes I noticed the same when I did this 2 weeks ago...intended to fix it
> before mailing you.....then forgot. : P
>
> After a good 1.5 hours of searching I finally dug up the needed info from the
> KDE site. See:
> http://devel-home.kde.org/~danimo/apidocs/kdecore/html/classKApplication.html
>
> The 3 init args to logout are:
> ShutdownConfirm, ShutdownType, ShutdownMode
>
> I had type = 2, which is halt. It should be 0. (None)
>
> > If you find how to just logout all users (there can be several
> > session on :0 :1 ...) it's a great feature IMHO to should go
> > into kdms init.d script.
Thinking more about it the right place for such a peace of code
is not kdm init.d script. One can log into gnome with kdm or
with gdm into kde. So it should be a standalone script in kdelibs,
e.g.,
/etc/X11/x-session-logout.d/kde3 # gnome, ...
So any x session manager can logout the user regardless what
desktop the user prefers. That all scripts get executed
should be the duty of /usr/X11R6/bin/X.
Nevertheless such changes take time so until it's implemented
a good temporory home is /etc/init.d/kdm ;)
>
> Maybe this:
> dcop --all-users --all-sessions ksmserver ksmserver logout 0 0 0
>
> ????
Well, actually worser for me. I looks like that it does the right
thing but after that my system had freeze :( Power off/on was the
only solotion. I had two session running:
allee[0] ~ # dcop --list-sessions --all-users
Active sessions for user /home/ach :
.DCOPserver_allee__0
Active sessions for user /home/ttt :
.DCOPserver_allee__1
allee[0] ~ # dcop --all-users --all-sessions ksmserver ksmserver logout 0 0 0
DCOPClient::attachInternal. Attach failed Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
DCOPClient::attachInternal. Attach failed Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
ERROR: Couldn't attach to DCOP server!
allee[1] ~ #
I tried again with the usual std session on :0 I hear the logout sound
screen turn black and #$%$^& hard lock again :(
I really think the 'auto logout before shutting down X server' is a very
good idea but as you can see it could cause trouble and needs further
testing and investigation.
Let me suggest to move the discusson to debian-kde@lists.debian.org
Achim
>
> Dave
--
To me vi is Zen. To use vi is to practice zen. Every command is
a koan. Profound to the user, unintelligible to the uninitiated.
You discover truth everytime you use it.
-- reddy@lion.austin.ibm.com
Reply to: