Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: stop/start KDE from the command line (Terminal)

  1. #11
    Join Date
    Mar 2009
    Location
    sri mayapur, west bengal, india
    Posts
    958

    Default Re: stop/start KDE from the command line (Terminal)

    On Mon, 11 Jul 2011 13:36:02 +0530, hcvv <hcvv@no-mx.forums.opensuse.org>
    wrote:

    >
    > May I take the freedom to addd something to tthis?
    >
    > Please next time when you want to ask something take the time to
    > explain extensive what you want to do and why, what your situation is
    > and what you tried and did not work. Illustrated with computer output
    > like error messages, etc. Never assume that what you do is a logical
    > thing to do that others do all the time and thus that those others will
    > understand your problem with a scanty description.
    >
    > And a little warning. I do not know why you want to stop the Display
    > Manager (and with it a posibly running X session) so abruptly, but most
    > people here never ever got the idea to do this. It is something you do
    > only in very exceptional circumstances. Thus it might be usefull for you
    > to explain why you have the need to do this. It may leed to advising you
    > a more normal solution for your real problem.
    >


    i also don't understand why, in what situation, the OP wants to stop his
    KDE session via the command line. communication problem, most likely.

    i was in that situation a few times, when i was logged into a KDE session
    remotely via SSH and wanted to restart the affected processes after an
    update that included many KDE libraries. i neither wanted to reboot the
    machine, nor take the trouble to restart all affected processes manually,
    and looked for a command line solution. i found the same that martin helm
    already stated in this thread:

    Code:
    qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 0 0
    which works fine. another solution, also provided by martin helm here, may
    do things more abruptly, but works as well:

    Code:
    sudo /usr/sbin/rckdm stop
    sudo /usr/sbin/rckdm start
    so me thinks this problem is solved, whatever reasons the OP may have to
    want this solution instead of simply logging out of his graphical
    session...


    --
    phani.

  2. #12
    Join Date
    Mar 2009
    Location
    sri mayapur, west bengal, india
    Posts
    958

    Default Re: stop/start KDE from the command line (Terminal)

    On Mon, 11 Jul 2011 14:25:39 +0530, phanisvara <listmail@phanisvara.com>
    wrote:

    >
    >
    Code:
    > qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 0
    > 0
    >
    >


    by the way, a handy utility to find such qdbus commands, which wasn't
    known to me at the time, is

    qdbusviewer

    it allows to browse the properties & functions qdbus makes available to
    the command line. specially interesting since these seem to change with
    every (?) KDE release.


    --
    phani.

  3. #13

    Default Re: stop/start KDE from the command line (Terminal)

    Quote Originally Posted by hcvv View Post
    May I take the freedom to addd something to tthis?

    And a little warning. I do not know why you want to stop the Display Manager (and with it a posibly running X session) so abruptly, but most people here never ever got the idea to do this. It is something you do only in very exceptional circumstances. Thus it might be usefull for you to explain why you have the need to do this. It may leed to advising you a more normal solution for your real problem.
    I'd like to do this, because I need to run Xorg -configure to create xorg.conf and cannot if X windows is running.
    The solution of my problem seems to be init 3 to stop X windows.

  4. #14
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: stop/start KDE from the command line (Terminal)

    On 07/11/2011 04:36 PM, upiter wrote:
    >
    > I'd like to do this, because I need to run Xorg -configure to create
    > xorg.conf


    then your first post could have asked: How do i create xorg.conf?

    or even: maybe i need to create xorg.conf because [fill in details],
    what do you think, and how should i do it or what?

    --
    DD
    -Caveat-Hardware-Software-

  5. #15
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,892

    Default Re: stop/start KDE from the command line (Terminal)

    Quote Originally Posted by upiter View Post
    I'd like to do this, because I need to run Xorg -configure to create xorg.conf and cannot if X windows is running.
    The solution of my problem seems to be init 3 to stop X windows.
    Yes, as you now redefine youre problem you have the correct solution to it also.
    Also trying to use the correct expressions (like you want to stop X and not to log out of KDE) will help enormously in the understanding. I admit that not knowing the correct words is not unusual for a beginner, but nevertheless, try it.

    I hope you see that in being more talkative and telling more about what you realy want might have helped us in helping you.

    It could still be the case that telling why you want to make an xorg.conf will bring forward a good solution for your real problem. The more while one day or another xorg.conf might vanish.
    Henk van Velden

  6. #16

    Default Re: stop/start KDE from the command line (Terminal)

    Quote Originally Posted by hcvv View Post
    Yes, as you now redefine youre problem you have the correct solution to it also.
    Also trying to use the correct expressions (like you want to stop X and not to log out of KDE) will help enormously in the understanding.
    The main problem is, after 10 minutes I cannot correct my postings to give some more informations, ask in other way, even correct the subject.
    Maybe I don't like my first posting by my self and really would like to correct my question, try to ask in other way, that people who help can correctly understand what I want to do.
    If I every time must answer to my postings with other questions or different informations can sometimes provide some confusion.
    In my opinion the main posting should be clearly enough, so other people, I mean those not answering these questions, know what this posting mainly intended.
    Second problem, if English is not mother language and you cannot find a good forum in your language, then is sometimes difficult to find the correct words.

  7. #17
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,892

    Default Re: stop/start KDE from the command line (Terminal)

    Quote Originally Posted by upiter View Post
    The main problem is, after 10 minutes I cannot correct my postings to give some more informations, ask in other way, even correct the subject.
    Maybe I don't like my first posting by my self and really would like to correct my question, try to ask in other way, that people who help can correctly understand what I want to do.
    If I every time must answer to my postings with other questions or different informations can sometimes provide some confusion.
    In my opinion the main posting should be clearly enough, so other people, I mean those not answering these questions, know what this posting mainly intended.
    Second problem, if English is not mother language and you cannot find a good forum in your language, then is sometimes difficult to find the correct words.
    I understand your frustration, but think of it another way.
    You can edit your post for about five minutes after you posted. That should be enough for correcting some typos you did not see while making the post.
    When you use the advanced editor, you can allways let show you a preview of what you did and thus, with some effort, correct your post until it fits you.

    You should anyhow think before you start a thread about what your problem is and how to describe it to others who do not know you, nor your knowledge level, nor your system. That starts with choosing the most fitting forum. Then comes a good descriptive title that will draw the attention of the correct people. Then comes the problem description, which normaly should contain three things:
    1 ) what did you do;
    2) what did you expect to happen;
    3) what happened in reality.
    This should be accompanied by real computer text, idealy the complete CLI session of what you did. Make only short comments and let the computer speak for the facts. GUI problems are more difficult, bu there are possibilities to post links to screen capture images. In short provide information, do not jump to conclusions, but let the others come to conclusions.

    This almost never can only cover one and a half line as you started this one. English may not be your first langauge (it isn't mine also), do not be afraid of making errors. Make short but usefull sentences and again: let the computer speak for itself.

    I often first compose my text with an editor localy, reading it again and again, trying to understand how somebody not in the least involved in my environment would read and understand it. After I am satisfied, I will post and enter the text with copy/past.

    Once you have started a thread, a discussion starts. Such a discussion may be read in a year time by somebody searching the forums for the same or a similar problem. I hope it is clear to you that changing say your post #1 will make the whole sequence of postings unintelligable by any newcomer to the thread. This is the main reason that the forums do not allow changes.

    Now when you think you want to reformulate a new problem (how much it may be related to this one), do so. Do not stick to this one because you need a new, fitting title to draw different people to look in to your new problem.

    I hope this helps in your understanding of how these forums work.
    Henk van Velden

  8. #18
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: stop/start KDE from the command line (Terminal)

    On 07/13/2011 01:36 PM, upiter wrote:

    > The main problem is, after 10 minutes I cannot correct my postings to
    > give some more informations, ask in other way, even correct the subject.
    > Maybe I don't like my first posting by my self and really would like
    > to correct my question, try to ask in other way, that people who help
    > can correctly understand what I want to do.


    no, the problem is not that you can't edit more than 10 minutes _after_
    you post! the problem is that you don't edit _before_ you post..

    use LibreOffice (or KWrite, or whatever you want) to write, edit,
    rewrite, reedit, think, translate, spell check, rethink and rewrite some
    more and THEN open a forum reply window and copy in and paste the edited
    message..

    fini, no need to edit even one minute after posting.

    --
    DD
    Caveat-Hardware-Software

    openSUSE®, the BMW® of operating systems!


  9. #19

    Default Re: stop/start KDE from the command line (Terminal)

    I try my best, but If the first posting is not clear enough, perhaps forgotten or missing some explaination, or you didn't understand my question, next time pls do not wonder, just go ahead and write what's not clear.
    Even if the posting subject is not clear enough, the forum admin should correct it.
    Sometimes, something clear for me couldn't be clear for someone who reads a posting...

  10. #20
    Join Date
    Aug 2012
    Location
    Austin, TX
    Posts
    77

    Default Re: stop/start KDE from the command line (Terminal)

    Quote Originally Posted by DenverD View Post
    On 07/10/2011 03:06 PM, upiter wrote:

    ok, try this:

    -use Ctrl+Alt+F1

    -in the resulting terminal log in as root

    Code:
    init 3
    -then again use Ctrl+Alt+F7 and confirm that KDE is dead..

    -then, go back with Ctrl+Alt+F1 to root's command line and type in and
    enter this code to start KDE again

    Code:
    init 5
    KDE will open up in front of your eyes and you can then use Ctrl+Alt+F1
    to go back and see your root command line (and, if it were me i'd type
    "exit" and enter just to close it) and Ctrl+Alt+F7 to get back to KDE..
    Thank you so much for this. I have been looking for how to do this as well. In my case, with certain settings in ~/.kde4/share/config/kwinrc which I have not been able to identify exactly, KDE just freezes upon login. I have to go to ctrl+alt+f1 and delete ~/.kde4/share/config/kwinrc and logout/login, and since KDE is unresponsive I could not log out, and I have been rebooting, which is a pain. $ init 3 -> $ init 5 worked like a charm!

    -Joon

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •