Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
there are 2 tty's with gui and more than 7 in total
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Apr 02, 2021 3:18 pm    Post subject: there are 2 tty's with gui and more than 7 in total Reply with quote

hi everyone, how are you doing, i need some help, please help me.
when i run my computer where gentoo is installed i find that i have 8 tty's (those consoles that are run by default and can be viewed by typing ctrl +alt+F1 or F2 etc) and the tty no7 and 8 are gui's
i wanna have mostly 7 tty's like most linux distributions as i gues and i want only 1 tty to have gui. thank you
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Mon Apr 05, 2021 9:09 am    Post subject: Reply with quote

What's your init program?
  • systemd
  • sysvinit
  • OpenRC-init
?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Wed Apr 07, 2021 5:38 am    Post subject: Reply with quote

it's openrc
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
halcon
l33t
l33t


Joined: 15 Dec 2019
Posts: 629

PostPosted: Thu Apr 08, 2021 1:44 am    Post subject: Reply with quote

As far as understand, tty's are configured with initrc in /etc/inittab, here:

Code:
# TERMINALS
c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux

_________________
A wife asks her husband, a programmer:
- Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6?
He comes back with 6 cartons of milk.
- Why did you buy 6 cartons of milk?
- They had eggs.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Thu Apr 08, 2021 9:24 am    Post subject: Reply with quote

Yes. But if OP uses openrc-init with openrc, then: https://wiki.gentoo.org/wiki/OpenRC/openrc-init

@abdus: so you want to remove login prompt from tty8?
The tty where gui is opened is another thing. If I remember correctly with X it's set via xinit conf...
With wayland I have no clue. Mine always opens on top of whats on tty1. I've never really cared.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Apr 08, 2021 5:13 pm    Post subject: Reply with quote

halcon wrote:
As far as understand, tty's are configured with initrc in /etc/inittab, here:

Code:
# TERMINALS
c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux

for the lines you mentioned they are almost exactly the same as mine
here is my inittab file https://dpaste.com/2789D2J5S
_________________
i would like to thank everyone that contributed to the gentoo project in any means


Last edited by abdus on Thu Apr 08, 2021 5:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Apr 08, 2021 5:14 pm    Post subject: Reply with quote

Zucca wrote:
Yes. But if OP uses openrc-init with openrc, then: https://wiki.gentoo.org/wiki/OpenRC/openrc-init

@abdus: so you want to remove login prompt from tty8?
The tty where gui is opened is another thing. If I remember correctly with X it's set via xinit conf...
With wayland I have no clue. Mine always opens on top of whats on tty1. I've never really cared.

i am worried if the extra tty with gui causes more hardware resources consumption
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Thu Apr 08, 2021 6:16 pm    Post subject: Reply with quote

abdus wrote:
i am worried if the extra tty with gui causes more hardware resources consumption
So you have gui running on two ttys?
Your inittab looks fine. You're probably running sysvinit then.
Just in case; please run
Code:
ps 1
and paste the output here.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1530
Location: South America

PostPosted: Thu Apr 08, 2021 6:22 pm    Post subject: Reply with quote

I'd say, rather show us what's grabbing /dev/tty[78]:
Code:
ps ax -o tty,args | grep tty[78]
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Apr 08, 2021 6:47 pm    Post subject: Reply with quote

Zucca wrote:
abdus wrote:
i am worried if the extra tty with gui causes more hardware resources consumption
So you have gui running on two ttys?
Your inittab looks fine. You're probably running sysvinit then.
Just in case; please run
Code:
ps 1
and paste the output here.

here is the ouput for that command https://dpaste.com/8FG7ZVWDR
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Apr 08, 2021 6:48 pm    Post subject: Reply with quote

GDH-gentoo wrote:
I'd say, rather show us what's grabbing /dev/tty[78]:
Code:
ps ax -o tty,args | grep tty[78]

for that command https://dpaste.com/2ATUJP9JC
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Apr 08, 2021 6:50 pm    Post subject: Reply with quote

Zucca wrote:
abdus wrote:
i am worried if the extra tty with gui causes more hardware resources consumption
So you have gui running on two ttys?
Your inittab looks fine. You're probably running sysvinit then.
Just in case; please run
Code:
ps 1
and paste the output here.

for the answer to your question yes i have 2 tty with gui
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Thu Apr 08, 2021 7:03 pm    Post subject: Reply with quote

abdus wrote:
GDH-gentoo wrote:
I'd say, rather show us what's grabbing /dev/tty[78]:
Code:
ps ax -o tty,args | grep tty[78]

for that command https://dpaste.com/2ATUJP9JC
It looks like you have gui only on tty8.
If you switch to tty7 what do you see? A gnome session?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Apr 08, 2021 7:09 pm    Post subject: Reply with quote

Zucca wrote:
abdus wrote:
GDH-gentoo wrote:
I'd say, rather show us what's grabbing /dev/tty[78]:
Code:
ps ax -o tty,args | grep tty[78]

for that command https://dpaste.com/2ATUJP9JC
It looks like you have gui only on tty8.
If you switch to tty7 what do you see? A gnome session?

yes it immediately goes to a login page of gdm
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1530
Location: South America

PostPosted: Thu Apr 08, 2021 7:15 pm    Post subject: Reply with quote

Can you post the output of the following command?
Code:
ps ax -o tty,args | grep gdm
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Thu Apr 08, 2021 7:19 pm    Post subject: Reply with quote

silly question but what does ls -l /dev/tty[6-9] show
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Apr 08, 2021 7:21 pm    Post subject: Reply with quote

Anon-E-moose wrote:
silly question but what does ls -l /dev/tty[6-9] show

this https://dpaste.com/APCE2ALW8
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1530
Location: South America

PostPosted: Thu Apr 08, 2021 8:26 pm    Post subject: Reply with quote

GDH-gentoo wrote:
Can you post the output of the following command?
Code:
ps ax -o tty,args | grep gdm

In case this was missed...
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Apr 09, 2021 2:42 am    Post subject: Reply with quote

GDH-gentoo wrote:
GDH-gentoo wrote:
Can you post the output of the following command?
Code:
ps ax -o tty,args | grep gdm

In case this was missed...

i'm sorry i didn't mean it, here's the output for that command https://dpaste.com/25Q7RJBRQ
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Apr 09, 2021 3:34 pm    Post subject: Reply with quote

Zucca wrote:
abdus wrote:
i am worried if the extra tty with gui causes more hardware resources consumption
So you have gui running on two ttys?
Your inittab looks fine. You're probably running sysvinit then.
Just in case; please run
Code:
ps 1
and paste the output here.

i thought my sys init is openrc, how can i make it openrc only, i know sysvinit is based on openrc but i prefer openrc only
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Sat Apr 10, 2021 8:26 am    Post subject: Reply with quote

abdus wrote:
i thought my sys init is openrc, how can i make it openrc only, i know sysvinit is based on openrc but i prefer openrc only
openrc-init is not the same as openrc in this context.
Most common OpenRC setup is where you have sysvinit as init (PID 1) and openrc handling which services/daemons start at which runlevel.

If you choose to switch to openrc-init from sysvinit, then you need to make sure that you enable some *tty services at certain runlevel.
Please see: https://wiki.gentoo.org/wiki/OpenRC/openrc-init for more.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Sun Apr 11, 2021 3:15 pm    Post subject: Reply with quote

what is the default init for gentoo openrc or openrc init? i thought i have chosen the default one (i didn't know there are 2 heeehehehe)
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1530
Location: South America

PostPosted: Sun Apr 11, 2021 4:16 pm    Post subject: Reply with quote

The default is sysvinit + OpenRC. 'Pure OpenRC' (openrc-init) is experimental. But even if you use that setup, you'll normally have agetty processes opening /dev/tty1 to /dev/tty6. I don't think it is relevant for your GUI question.

Judging by the previous outputs, you are using GNOME on Wayland, right? Having /dev/tty7 and /dev/tty8 open might the expected thing in that scenario. I hoped that the output of ps would show the process that opens /dev/tty7 (/dev/tty8 is likely opened by gdm-wayland-session). It doesn't, but I expect it to be something also related to GDM. You can try this (as root, because otherwise it will report incomplete information):

Code:
busybox lsof | grep tty7
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Sun Apr 11, 2021 5:46 pm    Post subject: Reply with quote

I remember having this same issue on some Fedora or CentOS install. If you logged in to wayland session the login manager would still stay at tty7 (because it's inside X session) and wayland session would open on tty8.

So it might be possible that you see gdm login screen on tty7. Can you interact with it? Try to type your username there and move the cursor. I wonder if something triggers and starts gdm as soon as you change your vt to tty7...
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Tue Apr 13, 2021 5:38 am    Post subject: Reply with quote

GDH-gentoo wrote:
The default is sysvinit + OpenRC. 'Pure OpenRC' (openrc-init) is experimental. But even if you use that setup, you'll normally have agetty processes opening /dev/tty1 to /dev/tty6. I don't think it is relevant for your GUI question.

Judging by the previous outputs, you are using GNOME on Wayland, right? Having /dev/tty7 and /dev/tty8 open might the expected thing in that scenario. I hoped that the output of ps would show the process that opens /dev/tty7 (/dev/tty8 is likely opened by gdm-wayland-session). It doesn't, but I expect it to be something also related to GDM. You can try this (as root, because otherwise it will report incomplete information):

Code:
busybox lsof | grep tty7

thank you for your explanation, it means that i misunderstood and thought that sysvinit was added without needing it, however it seems that it must be added for 2 things the first it is the default init and the second i am using gentoo with gui
the output for that command is here https://dpaste.com/APT72TCQ6
_________________
i would like to thank everyone that contributed to the gentoo project in any means


Last edited by abdus on Tue Apr 13, 2021 5:49 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum