You are not logged in.

#1 2013-11-20 17:54:58

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Start X in this same tty as login

I dont know how explained my problem correctly, but i try wink

What I try to do?
Automaticaly login to my user and startx as normal user in this same tty(without display manager)

I did autologin(tty1), and startx too but X starts in different tty(tty2). And it MUST run in this same tty as login(tty1). I tried several ways: change logind.conf(NAutoVTs), and startx --:1 but this not working.

Any help?

Offline

#2 2013-11-20 17:57:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Start X in this same tty as login

I use 'startx' and it starts in the same tty.

Offline

#3 2013-11-20 18:07:34

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Start X in this same tty as login

For me not, and i dont know why.
Earlier it works, it broken when i do something with my graphic drivers, but probably its not relevant.

Offline

#4 2013-11-20 18:11:33

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Start X in this same tty as login

You must make sure that .xinitrc in your homefolder has the right command according to which window manager og complete desktop enviroment you use.


Use the Source, Luke!

Offline

#5 2013-11-20 18:14:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Start X in this same tty as login

Offline

#6 2013-11-20 18:46:34

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Start X in this same tty as login

I have read, but still dont know how this may help me. This is my output(is incorect):

$ loginctl show-session $XDG_SESSION_ID 
Id=1
Timestamp=Wed 2013-11-20 19:44:33 CET
TimestampMonotonic=25714185
VTNr=1
TTY=tty1
Remote=no
Service=login
Scope=session-1.scope
Leader=1076
Audit=1
Type=tty
Class=user
Active=no
State=online
IdleHint=no
IdleSinceHint=1384973058461932
IdleSinceHintMonotonic=10556946
Name=xorgx3

Offline

#7 2013-11-20 18:48:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Start X in this same tty as login

This should contain Remote=no and Active=yes in the output.

You've got 'Active=no'.

Offline

#8 2013-11-20 18:50:36

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Start X in this same tty as login

Yes, I know but i dont know how fix this(in the wiki i didn't see how fix it).

Offline

#9 2013-11-20 18:59:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Start X in this same tty as login

Have you tried searching the forum for similar issues?
https://bbs.archlinux.org/viewtopic.php?id=157430
https://bbs.archlinux.org/viewtopic.php?id=168290

Post your logind.conf and the output of 'pgrep -c systemd-logind'.

Offline

#10 2013-11-20 20:41:57

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: Start X in this same tty as login

logind.conf

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# See logind.conf(5) for details

[Login]
NAutoVTs=1
#ReserveVT=1
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
$ pgrep -c systemd-logind
1

Yes, i read this topics, but doesnt help.

EDIT:
Ok so my workaround is use

xinit -- vt1

instead of

startx

But why now startx runs X in different tty is a very good question and i havn't answer...

Last edited by xorgx3 (2013-11-20 21:46:14)

Offline

Board footer

Powered by FluxBB