This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Logout from KDE and redirect to linux prompt

Tags: None
(comma "," separated)
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
Dear all,
I start KDE from Linux Slackware prompt by executing startx. I have a problem exiting from KDE though, instead of bringing me Linux prompt, it halts the machine (or so I suspect) making the screen goes blank without shutting down the PC power (which I don't know what state the machine is at this point).

Some people suggest me to to CTRL ALT F1(or F2) to exit and go to Linux prompt, but it gives me a blank screen without doing anything; and I still figuring it out what is going on there.

Please let me know what is a graceful method to shut KDE down and save its configuration without exiting Linux prompt.

Also I need to know a method how to shut down the machine directly from KDE (like what windows shutdown does).

Best regards,
ethereal1m
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
Some people suggest me to to CTRL ALT F1(or F2) to exit and go to Linux prompt...


The fact that you cannot access tty1-6 is odd. You'd better ask in the slackware forums about that. Likely a funky xorg.conf file but it could be anything really.

I suggest you install a login manager such as kdm. Please refer to the slackware wiki how to do that. On Arch I've got to install it and put the kdm daemon in my rc.conf file while others distros do the latter automagically.

Once you have done that everything should work fine including logging out and shutting down.


Debian testing
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
I have KDE installed, but I don't know how to go back to Linux prompt from login shell.

One more thing on xinit directory, I cannot find .Xresources file(this is a file right?). Can this cause a problem?
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
As stated, the fact that you cannot get into a virtual console (tty1-6) is odd - likely down to your xorg.conf but it could be anything. Also, we have no idea how exactly you invoke X and KDE.

Unless some slackers can shed some light on this I suggest you ask in the slackware forum as this kind of stuff is distro specific...


Debian testing
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
When running X, can you switch with Ctrl-Alt-(F1, F2, ... F7 (graphical))?
Which version of Slackware and KDE SC do you use?
Finally, it would be helpful if you could post the content of /etc/inittab here.

If I remember correctly, I usually set the runlevel to 4 or 5 (it varies between distros; not sure which Slackware uses, check the comments in inittab) in /etc/inittab when I used Slackware. This will start a login manager (KDM), and you'll be able to shutdown from a KDE desktop.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
toad wrote:As stated, the fact that you cannot get into a virtual console (tty1-6) is odd - likely down to your xorg.conf but it could be anything. Also, we have no idea how exactly you invoke X and KDE.

Unless some slackers can shed some light on this I suggest you ask in the slackware forum as this kind of stuff is distro specific...



Sorry, I mistyped,
I have KDE installed, but I don't know how to go back to Linux prompt from login shell.


should've said: "I have KDM installed". And even though using login manager, I got the same symptom.

I started KED earlier using "startx" command.

Also when I'm running KDE, if I do "CTRL ALT F(1-12, except 7)", I got blank screen; CTRL ALT F7 gets me back to KDE session. Weird, where the last section went?

I'm using Slackware 13.0.0.0 64 bit , KDE 4.2.4

the following is the content of my inittab:
Code: Select all
#
# inittab   This file describes how the INIT process should set up
#      the system in a certain run-level.
#
# Version:   @(#)inittab      2.04   17/05/93   MvS
#                                       2.10    02/10/95        PV
#                                       3.00    02/06/1999      PV
#                                       4.00    04/10/2002      PV
#
# Author:   Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by:   Patrick J. Volkerding, <volkerdi@slackware.com>
#

# These are the default runlevels in Slackware:
#   0 = halt
#   1 = single user mode
#   2 = unused (but configured the same as runlevel 3)
#   3 = multiuser mode (default Slackware runlevel)
#   4 = X11 with KDM/GDM/XDM (session managers)
#   5 = unused (but configured the same as runlevel 3)
#   6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S

# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K

# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6

# What to do when power fails.
pf::powerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg::powerokwait:/sbin/genpowerfail stop

# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

# Local serial lines:
#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100

# Dialup lines:
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:respawn:/etc/rc.d/rc.4

# End of /etc/inittab

User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
Ok, I fix this by loading a proprietary graphic card driver....


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]