LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-25-2020, 07:09 PM   #1
NeverOddOrEven
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
manually started X in tty1 crashes on logout from console session in tty2


Hi all -

I run debian stretch without automatically starting X. Startup leaves me at tty1. If I need to, I use startx to run fluxbox manually, usually from tty1. I can switch ttys without problems.

However, if I have X running in tty1 and a console session in tty2, logging out of the console session in tty2, to change user for instance, causes the X session in tty1 to eventually crash with errors about missing devices. What happens is this: I execute logout in tty2 and, instead of seeing a new login prompt in tty2, as I would have expected, the X session from tty1 appears on the screen. If I now press ctl alt F2, nothing happens, the X session from tty1 stays on the screen. If I press ctl alt F3, same thing. But if I press ctl alt F1, the X session crashes and I am back at a console session in tty1. At this point I can switch between ttys again.

Someone suggested I should try a different window manager, so I installed lxde. This modified my systemd services such that X now starts automatically in tty7. If I now go to tty1 and start another X session with lxde and then go to tty2 and login and logout from a console session, the X session in tty1 crashes as before, but the X session in tty7 stays unaffected.

Generally I don't want to start X automatically, mainly because I want to experiment with different window managers under X and with Wayland, and I don't want those things running simultaneously (at least in the beginning) in different ttys.

Is there something I can do to prevent my manually started X sessions from crashing when I logout from console sessions in other ttys?

Any suggestions, pointers to documentation, etc, greatly appreciated.
 
Old 03-26-2020, 03:56 PM   #2
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,303

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Your experience is or was common. It is (or, was in older releases?) a bug, because tty1 is special. Use any of 2-6 instead to start X instead of 1. I never start X on tty1 except by mistake.
 
  


Reply

Tags
logout, startx, tty, x11


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I start a program from tty1 console to be executed in tty2 console? jtag Linux - Software 6 09-10-2010 07:13 PM
[SOLVED] When change default runlevel to 4, tty1 got stuck and tty2-5 don't work ethereal1m Linux - Newbie 5 04-29-2010 01:34 AM
[SOLVED] Cannot switch between tty1,tty2,etc voyciz Slackware 11 01-01-2010 03:36 AM
How do i switch from tty1 to tty2? alex1986 Linux - Newbie 4 07-27-2006 06:01 AM
shortcut way to logout from tty1 or tty2....... hitesh_linux Linux - General 2 03-25-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:54 AM.

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