LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2015, 05:56 PM   #1
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
How to cleanly close a graphic display manager started through startx?


I just installed Gnome on Arch, and launched it with startx.

I wasn't able to figure out how to cleanly close the Gnome session even after searching for an answer online.

Ctrl Alt Backspace didn't work since it's usually disabled by default.

I had to log into another text terminal (Ctrl Alt F2) and issue sudo killall Xorg.

How can I cleanly close the graphic session and get back to my terminal?
 
Old 03-28-2015, 05:58 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,093

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
you can always run " telinit 3"

but i would rather set GDM to start gnome and not have to manually start the display manager
 
Old 03-28-2015, 06:02 PM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
@OP: Please post the content of ~/.xinitrc

@John VV -- Arch uses systemd & has .targets rather than run levels

However, I think you're right -- the OP should probably just install GDM and use that instead.
Code:
# pacman -Syu gdm
# systemctl enable gdm
EDIT: https://wiki.archlinux.org/index.php...lt.2BBackspace

Last edited by Head_on_a_Stick; 03-28-2015 at 06:05 PM.
 
1 members found this post helpful.
Old 03-28-2015, 06:18 PM   #4
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
This is my .xinitrc

Code:
exec gnome-session
Please note that I do not want to start the display manager by default. I just need a clean way to exit it. From my understanding through wikipedia, it's providing me with a way to login and some other stuff. I just need to know how to log out.

Is Ctrl Alt Bksp a clean way to log out? I managed to get it to work using the Gnome Tweak Tool.

Thank you very much!

Last edited by gregorian; 03-28-2015 at 06:26 PM.
 
Old 03-28-2015, 06:59 PM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by gregorian View Post
This is my .xinitrc

Code:
exec gnome-session
I think you need to start the dbus session; add this block at the start of .xinitrc
Code:
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/?*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
You should then be able to use the "Log Out" dialog from the panel.

Last edited by Head_on_a_Stick; 03-28-2015 at 07:01 PM. Reason: clarification
 
Old 03-28-2015, 07:13 PM   #6
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Actually I just realized that the logout button is present when I click on my user name in the panel. It is not present in the power button dialog as I had expected it. Thank you for your help anyway!
 
Old 03-28-2015, 07:16 PM   #7
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
You're welcome -- glad you got it sorted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to close "any" application cleanly from command line pponnath Red Hat 5 06-23-2011 06:18 PM
[SOLVED] No sound in KDE when started by startx while working fine when started by kdm/gdm arj1singh Ubuntu 2 12-14-2010 11:55 AM
why is GUI not getting started with startx marifh Linux - Newbie 2 06-15-2008 06:42 AM
problem with nvidia driver: unable to close graphic enviroment for a console login Valkyrie_of_valhalla Linux - Hardware 2 11-25-2006 02:10 PM
Konsole cannot display characters cleanly on DELL LCD monitor shigerusz3 SUSE / openSUSE 3 09-16-2006 10:35 PM


All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration