You are not logged in.

#1 2011-09-12 04:32:15

yangtsesu
Member
Registered: 2011-08-20
Posts: 34

My gdm runs on tty2

I found my GNOME runs on tty2,not tty7.
what is the matter?

Now I use Gnome 3.1.91,and systemd 35-1

Offline

#2 2011-09-12 04:39:12

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: My gdm runs on tty2

Are you starting GDM though inittab or as a daemon?

Offline

#3 2011-09-12 04:47:09

yangtsesu
Member
Registered: 2011-08-20
Posts: 34

Re: My gdm runs on tty2

No,I use systemd instead of init.

$ ls -l /lib/systemd/system/default.target 
lrwxrwxrwx 1 root root 16  9月  1 08:43 /lib/systemd/system/default.target -> graphical.target
systemctl enable gdm.service

Offline

#4 2011-09-12 04:58:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: My gdm runs on tty2

I just assumed that was the behavior of systemd.  I get consoles on one through 11, and a have syslog-ng send a stream of consciousness to tty12.
When I open a session on a tty and launch an X session, it appears on the console (no login manager)

I would not expect the SysV behavior defined by /etc/inittab to applicable to systemd


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-09-12 05:01:40

yangtsesu
Member
Registered: 2011-08-20
Posts: 34

Re: My gdm runs on tty2

I think I get some information from the WIKI

Note: As of systemd 30, only 1 getty will be launched by default. If you switch to another tty, a getty will be launched there (socket-activation style). You can still force additional agetty processes to start using the above methods.

https://wiki.archlinux.org/index.php/Systemd

Offline

#6 2011-09-12 10:16:13

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: My gdm runs on tty2

Working as intended. You can probably force gdm to run on tty7 by overriding the service, as follows:

/etc/systemd/systemd/gdm.service wrote:
.include /lib/systemd/system/gdm.service

[Service]
ExecStart=/usr/sbin/gdm -nodaemon tty7

Save it, send a HUP to pid 1, disable/enable/restart gdm.

Last edited by falconindy (2011-09-12 12:34:29)

Offline

Board footer

Powered by FluxBB