View previous topic :: View next topic |
Author |
Message |
HansHelm n00b
Joined: 25 Feb 2021 Posts: 15
|
Posted: Wed Mar 03, 2021 6:51 pm Post subject: xorg does not start dwm: Cannot open virtual console 7... |
|
|
Hello there,
I'm playing around with some desktop environments at the moment.
After installing dwm, I was not able to start Xorg server via .
It doesn't matter if I'm emerging the gentoo package of dwm or compiling it directly from the suckless sources.
My .xinitrc in my home-directory only contains
Code: | exec dwm > .dwm.log |
It shows the error
Code: |
...
[ 4498.051] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 4498.051] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 4498.065] (--) PCI:*(0@0:2:0) 8086:1616:103c:80c1 rev 9, Mem @ 0xc3000000/16777216, 0xb0000000/268435456, I/O @ 0x00006000/64, BIOS @ 0x????????/131072
[ 4498.065] (II) LoadModule: "glx"
[ 4498.065] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 4498.066] (II) Module glx: vendor="X.Org Foundation"
[ 4498.066] compiled for 1.20.10, module version = 1.0.0
[ 4498.066] ABI class: X.Org Server Extension, version 10.0
[ 4498.066] (II) LoadModule: "intel"
[ 4498.066] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[ 4498.066] (II) Module intel: vendor="X.Org Foundation"
[ 4498.066] compiled for 1.20.10, module version = 2.99.917
[ 4498.066] Module class: X.Org Video Driver
[ 4498.066] ABI class: X.Org Video Driver, version 24.1
[ 4498.066] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 4498.067] (II) intel: Driver for Intel(R) HD Graphics
[ 4498.067] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 4498.067] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 4498.067] (EE)
Fatal server error:
[ 4498.072] (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)
[ 4498.074] (EE)
[ 4498.076] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 4498.081] (EE) Please also check the log file at "/home/rowe/.local/share/xorg/Xorg.0.log" for additional information.
[ 4498.083] (EE)
[ 4498.084] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 4498.084] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 4498.084] (EE) Server terminated with error (1). Closing log file.
|
Starting X with root privileges works, but I think that's not the appropriate way of handling this problem.
tty7 has 620 privileges, same as every other terminal. My user is part of video, input, users, and tty group.
No display manager like lightdm is running as a service.
xorg-server is compiled with elogind, xorg, ipv6 and udev flag.
I hope someone has an idea...
Thanks in advance! _________________ You can play Sudoku only with root privileges! |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22649
|
Posted: Wed Mar 03, 2021 11:21 pm Post subject: |
|
|
This looks like the usual problems with elogind. Your Xorg server needs elogind to help it get control of the terminal, and for some reason, that is not happening. What is the output of rc-update show | grep elogind ; loginctl list-sessions, when logged in at the text console as your user (not root)? |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6147 Location: Dallas area
|
Posted: Wed Mar 03, 2021 11:31 pm Post subject: |
|
|
for tty7 to work for groups the permissions would need to be 660 and for all users 666 (6 because the terminal needs to be written to)
Or alternatively you could do startx -- vt1 (assuming you're on console 1) _________________ UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
HansHelm n00b
Joined: 25 Feb 2021 Posts: 15
|
Posted: Thu Mar 04, 2021 6:30 pm Post subject: |
|
|
Hu wrote: | This looks like the usual problems with elogind. Your Xorg server needs elogind to help it get control of the terminal, and for some reason, that is not happening. What is the output of rc-update show | grep elogind ; loginctl list-sessions, when logged in at the text console as your user (not root)? |
Code: |
elogind | boot
SESSION UID USER SEAT TTY
4 1000 <username> seat0
1 sessions listed.
|
_________________ You can play Sudoku only with root privileges! |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22649
|
Posted: Thu Mar 04, 2021 7:05 pm Post subject: |
|
|
That is the good output, and seems to show that elogind is working correctly. My guess was incorrect. I have no further advice at this time. Hopefully, someone else can help you solve this. |
|
Back to top |
|
|
HansHelm n00b
Joined: 25 Feb 2021 Posts: 15
|
Posted: Thu Mar 04, 2021 8:02 pm Post subject: |
|
|
Hu wrote: | That is the good output, and seems to show that elogind is working correctly. My guess was incorrect. I have no further advice at this time. Hopefully, someone else can help you solve this. |
Thanks anyway.
I figured it out myself... or at least partially.
I followd the post of Anon-E-moose wrote: | startx -- vt1 | to start X via another terminal, this works just fine.
Anyway I figured out that when I switch to tty7 there is no login screen, just a black screen with a blinking cursor. It seems that some service or something else is using this terminal...
Thank you both! _________________ You can play Sudoku only with root privileges! |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1729 Location: Germany
|
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1699 Location: South America
|
Posted: Fri Mar 05, 2021 1:18 pm Post subject: |
|
|
HansHelm wrote: | Code: | [ 4498.051] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration |
| If elogind is set up correctly, when you log in on a tty, the environment should automatically have variable XDG_VTNR set to the tty number. If you are using Gentoo's /etc/X11/xinit/xserverrc file, it should be passing a -keeptty option and a correct vtn argument to Xorg if XDG_VTNR is set and not empty, without you having to specify any arguments in the startx invocation. Somehow this is not happening here.
HansHelm wrote: | I followd the post of Anon-E-moose wrote: | startx -- vt1 | to start X via another terminal, this works just fine. | Yes. because you worked around the problem by passing the vtn argument yourself.
HansHelm wrote: | Anyway I figured out that when I switch to tty7 there is no login screen, just a black screen with a blinking cursor. It seems that some service or something else is using this terminal... | Yes, because Xorg has taken tty1. Nothing is using tty7. Xorg takes an unused tty only when running as root. |
|
Back to top |
|
|
HansHelm n00b
Joined: 25 Feb 2021 Posts: 15
|
Posted: Mon Mar 08, 2021 6:48 pm Post subject: |
|
|
Banana wrote: | Does ps ef show more info what is going on?
Is rc_tty_number in /etc/rc.conf modified to a lower number then 7? |
No, it's set to 12. _________________ You can play Sudoku only with root privileges! |
|
Back to top |
|
|
HansHelm n00b
Joined: 25 Feb 2021 Posts: 15
|
Posted: Mon Mar 08, 2021 6:52 pm Post subject: |
|
|
GDH-gentoo wrote: | HansHelm wrote: | Code: | [ 4498.051] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration |
| If elogind is set up correctly, when you log in on a tty, the environment should automatically have variable XDG_VTNR set to the tty number. If you are using Gentoo's /etc/X11/xinit/xserverrc file, it should be passing a -keeptty option and a correct vtn argument to Xorg if XDG_VTNR is set and not empty, without you having to specify any arguments in the startx invocation. Somehow this is not happening here.
|
I think I get your point. XDG_VTNR is not set in my system, so it's using vt1 as an argument. How can I fix this behavior?
Your said "correctly configured elogind" - what is the correct setup? _________________ You can play Sudoku only with root privileges! |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1699 Location: South America
|
Posted: Tue Mar 09, 2021 1:37 am Post subject: |
|
|
HansHelm wrote: | XDG_VTNR is not set in my system, [...] |
It isn't? Can you post the output of loginctl show-session <session identifier> and env | grep XDG_? <session identifier> is the identifier that loginctl with no arguments shows for the tty you used to log in, i.e. "4" in your previous output (it can change each time you log in):
HansHelm wrote: | Code: | SESSION UID USER SEAT TTY
4 1000 <username> seat0
1 sessions listed. |
| (I just noticed that the "TTY" column was empty, is that a typo?)
For example, on my computer:
Code: | $ loginctl
SESSION UID USER SEAT TTY
c1 1000 <my username> seat0 tty1
1 sessions listed.
$ loginctl show-session c1
Id=c1
User=1000
Name=<my username>
Timestamp=Mon 2021-03-08 22:15:33 -03
TimestampMonotonic=21782878
VTNr=1
Seat=seat0
TTY=tty1
Remote=no
Service=login
Leader=500
Audit=4294967295
Type=tty
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=1615252728693999
IdleSinceHintMonotonic=217003261
LockedHint=no
$ env | grep XDG_
XDG_SEAT=seat0
XDG_SESSION_TYPE=tty
XDG_SESSION_CLASS=user
XDG_VTNR=1
XDG_SESSION_ID=c1
XDG_RUNTIME_DIR=/run/user/1000 |
As you can see, XDG_VTNR is there. |
|
Back to top |
|
|
fspnet n00b
Joined: 07 Jul 2017 Posts: 14
|
Posted: Thu Aug 15, 2024 6:37 pm Post subject: |
|
|
it seems like this issue is a plague more than an issue it starts off as experiencing issues to actually experiencing the actual
issue such as watching the movie final destination theres everyone with an answer but startx was clearly working<- before
we all just one day woke up and started typing startx and it wasnt working |
|
Back to top |
|
|
|
|
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
|
|