Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] tmux indicating issue with xinit in dwm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
vcmota
Guru
Guru


Joined: 19 Jun 2017
Posts: 367

PostPosted: Wed Apr 17, 2024 5:36 pm    Post subject: [SOLVED] tmux indicating issue with xinit in dwm Reply with quote

I haven't used tmux for a while, although a few years ago I did intensive use of it and loved it. Today, after so many years and on a different computer, I decided to come back into tmux. However, I got the following error messagens regarding xinit when I enter tmux:

Code:

_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed

X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
Current Operating System: Linux moraes 6.6.21-gentoo-gentoo-dist #3 SMP PREEMPT_DYNAMIC Fri Mar 22 01:20:20 -03 2024 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-6.6.21-gentoo-gentoo-dist root=/dev/mapper/vg0-lvol1 ro cryptdevice=UUID=9c4d9bcb-3248-4214-9bbb-851df8ff6a1f:luks root=/dev/mapper/vg0-lvol1 rootfstype=ext4 lsm=selinux intel_pstate=disable rd.luks.allow-discards

Current version of pixman: 0.43.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/vinicius/.local/share/xorg/Xorg.0.log", Time: Wed Apr 17 14:22:40 2024
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) xf86OpenConsole: Switching VT failed
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/home/vinicius/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
X connection to :0 broken (explicit kill or server shutdown).
~>


Although my primary goal was successful (entering tmux), I am now wondering why so many errors. And part of the reason is that I have been experiencing difficulties with other applications which may be related: lxd, launching any google-chrome, opera browser, etc. In fact, issues with those applications without any obvious reason are piling up in my laptop.

Below is how I start my xinit session:

Code:

~> cat .xinitrc
#!/bin/bash

barM &
setxkbmap br
feh --bg-scale mybackground/maxresdefault.jpg

exec dbus-launch dwm
~> cat .bash_profile
# /etc/skel/.bash_profile

# This file is sourced by bash for login shells.  The following line
# runs your .bashrc and is recommended by the bash info pages.
if [[ -f ~/.bashrc ]] ; then
        . ~/.bashrc
fi

xinit .xinitrc -- /etc/X11/xinit/xserverrc
~>


and this is the xorg log file:
Code:

~> cat /home/vinicius/.local/share/xorg/Xorg.0.log
[662784.429] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[662784.429]
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[662784.429] Current Operating System: Linux moraes 6.6.21-gentoo-gentoo-dist #3 SMP PREEMPT_DYNAMIC Fri Mar 22 01:20:20 -03 2024 x86_64
[662784.429] Kernel command line: BOOT_IMAGE=/vmlinuz-6.6.21-gentoo-gentoo-dist root=/dev/mapper/vg0-lvol1 ro cryptdevice=UUID=9c4d9bcb-3248-4214-9bbb-851df8ff6a1f:luks root=/dev/mapper/vg0-lvol1 rootfstype=ext4
lsm=selinux intel_pstate=disable rd.luks.allow-discards
[662784.429]
[662784.429] Current version of pixman: 0.43.4
[662784.429]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[662784.429] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[662784.429] (==) Log file: "/home/vinicius/.local/share/xorg/Xorg.0.log", Time: Wed Apr 17 14:22:40 2024
[662784.429] (==) Using config directory: "/etc/X11/xorg.conf.d"
[662784.429] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[662784.429] (==) No Layout section.  Using the first Screen section.
[662784.429] (==) No screen section available. Using defaults.
[662784.429] (**) |-->Screen "Default Screen Section" (0)
[662784.429] (**) |   |-->Monitor "<default monitor>"
[662784.429] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[662784.429] (**) Allowing byte-swapped clients
[662784.429] (==) Automatically adding devices
[662784.429] (==) Automatically enabling devices
[662784.429] (==) Automatically adding GPU devices
[662784.429] (==) Automatically binding GPU devices
[662784.429] (==) Max clients allowed: 256, resource mask: 0x1fffff
[662784.429] (WW) The directory "/usr/share/fonts/misc" does not exist.
[662784.429]    Entry deleted from font path.
[662784.429] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[662784.429]    Entry deleted from font path.
[662784.429] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[662784.429]    Entry deleted from font path.
[662784.429] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[662784.429]    Entry deleted from font path.
[662784.429] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[662784.429]    Entry deleted from font path.
[662784.429] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[662784.429]    Entry deleted from font path.
[662784.429] (==) FontPath set to:

[662784.429] (==) ModulePath set to "/usr/lib64/xorg/modules"
[662784.429] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[662784.429] (II) Module ABI versions:
[662784.429]    X.Org ANSI C Emulation: 0.4
[662784.429]    X.Org Video Driver: 25.2
[662784.429]    X.Org XInput driver : 24.4
[662784.429]    X.Org Server Extension : 10.0
[662784.430] (++) using VT number 1

[662784.430] (EE) systemd-logind: TakeControl failed: Device or resource busy
[662784.431] (II) xfree86: Adding drm device (/dev/dri/card0)
[662784.431] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[662784.431] (II) xfree86: Adding drm device (/dev/dri/card1)
[662784.431] (II) Platform probe for /sys/devices/pci0000:00/0000:00:1c.0/0000:2b:00.0/drm/card1
[662784.433] (--) PCI:*(0@0:2:0) 8086:9a49:1028:0a03 rev 1, Mem @ 0x6034000000/16777216, 0x4000000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[662784.433] (--) PCI: (43@0:0:0) 10de:1d16:1028:0a03 rev 161, Mem @ 0x81000000/16777216, 0x6020000000/268435456, 0x6030000000/33554432, I/O @ 0x00004000/128
[662784.433] (II) LoadModule: "glx"
[662784.433] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[662784.434] (II) Module glx: vendor="X.Org Foundation"
[662784.434]    compiled for 1.21.1.13, module version = 1.0.0
[662784.434]    ABI class: X.Org Server Extension, version 10.0
[662784.434] (II) Applying OutputClass "nvidia" to /dev/dri/card1
[662784.434]    loading driver: nvidia
[662784.434] (==) Matched intel as autoconfigured driver 0
[662784.434] (==) Matched nvidia as autoconfigured driver 1
[662784.434] (==) Matched nouveau as autoconfigured driver 2
[662784.434] (==) Matched nv as autoconfigured driver 3
[662784.434] (==) Matched modesetting as autoconfigured driver 4
[662784.434] (==) Matched fbdev as autoconfigured driver 5
[662784.434] (==) Matched vesa as autoconfigured driver 6
[662784.434] (==) Assigned the driver to the xf86ConfigLayout
[662784.434] (II) LoadModule: "intel"
[662784.434] (WW) Warning, couldn't open module intel
[662784.434] (EE) Failed to load module "intel" (module does not exist, 0)
[662784.434] (II) LoadModule: "nvidia"
[662784.434] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[662784.434] (II) Module nvidia: vendor="NVIDIA Corporation"
[662784.434]    compiled for 1.6.99.901, module version = 1.0.0
[662784.434]    Module class: X.Org Video Driver
[662784.434] (II) LoadModule: "nouveau"
[662784.434] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[662784.434] (II) Module nouveau: vendor="X.Org Foundation"
[662784.434]    compiled for 1.21.1.13, module version = 1.0.17
[662784.434]    Module class: X.Org Video Driver
[662784.434]    ABI class: X.Org Video Driver, version 25.2
[662784.434] (II) LoadModule: "nv"
[662784.434] (WW) Warning, couldn't open module nv
[662784.434] (EE) Failed to load module "nv" (module does not exist, 0)
[662784.434] (II) LoadModule: "modesetting"
[662784.435] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[662784.435] (II) Module modesetting: vendor="X.Org Foundation"
[662784.435]    compiled for 1.21.1.13, module version = 1.21.1
[662784.435]    Module class: X.Org Video Driver
[662784.435]    ABI class: X.Org Video Driver, version 25.2
[662784.435] (II) LoadModule: "fbdev"
[662784.435] (WW) Warning, couldn't open module fbdev
[662784.435] (EE) Failed to load module "fbdev" (module does not exist, 0)
[662784.435] (II) LoadModule: "vesa"
[662784.435] (WW) Warning, couldn't open module vesa
[662784.435] (EE) Failed to load module "vesa" (module does not exist, 0)
[662784.435] (II) NVIDIA dlloader X Driver  550.67  Tue Mar 12 23:32:46 UTC 2024
[662784.435] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[662784.435] (II) NOUVEAU driver
[662784.435] (II) NOUVEAU driver for NVIDIA chipset families :
[662784.435]    RIVA TNT            (NV04)
[662784.435]    RIVA TNT2           (NV05)
[662784.435]    GeForce 256         (NV10)
[662784.435]    GeForce 2           (NV11, NV15)
[662784.435]    GeForce 4MX         (NV17, NV18)
[662784.435]    GeForce 3           (NV20)
[662784.435]    GeForce 4Ti         (NV25, NV28)
[662784.435]    GeForce FX          (NV3x)
[662784.435]    GeForce 6           (NV4x)
[662784.435]    GeForce 7           (G7x)
[662784.435]    GeForce 8           (G8x)
[662784.435]    GeForce 9           (G9x)
[662784.435]    GeForce GTX 2xx/3xx (GT2xx)
[662784.435]    GeForce GTX 4xx/5xx (GFxxx)
[662784.435]    GeForce GTX 6xx/7xx (GKxxx)
[662784.435]    GeForce GTX 9xx     (GMxxx)
[662784.435]    GeForce GTX 10xx    (GPxxx)
[662784.435] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[662784.435] (WW) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
[662784.435] (EE)
Fatal server error:
[662784.435] (EE) xf86OpenConsole: Switching VT failed
[662784.435] (EE)
[662784.435] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[662784.435] (EE) Please also check the log file at "/home/vinicius/.local/share/xorg/Xorg.0.log" for additional information.
[662784.435] (EE)
[662784.435] (WW) xf86CloseConsole: KDSETMODE failed: Operation not permitted
[662784.435] (WW) xf86CloseConsole: VT_SETMODE failed: Operation not permitted
[662784.435] (WW) xf86CloseConsole: VT_ACTIVATE failed: Operation not permitted
[662784.435] (EE) Server terminated with error (1). Closing log file.
~>


Thank you all for your attention.


Last edited by vcmota on Thu Apr 18, 2024 5:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
vcmota
Guru
Guru


Joined: 19 Jun 2017
Posts: 367

PostPosted: Thu Apr 18, 2024 11:28 am    Post subject: Reply with quote

An update: I read somewhere that the non privileged user should be in the video group, and it was not. So I have added it, rebooted multiple times, and the problem persists, without any change in the logs.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21657

PostPosted: Thu Apr 18, 2024 3:05 pm    Post subject: Reply with quote

Your .bash_profile looks weird to me. It looks to me like every bash that is a login shell will try to start X, regardless of where that login shell runs. Thus, every time you log in via ssh, or on the framebuffer console, or on the serial console, or in an xterm, or even start a new window in tmux, you try again to start X. I think that will cause problems. I suggest that you only start X when actually logged in locally on a Linux virtual terminal (ttyN).
Back to top
View user's profile Send private message
vcmota
Guru
Guru


Joined: 19 Jun 2017
Posts: 367

PostPosted: Thu Apr 18, 2024 5:20 pm    Post subject: Reply with quote

Hu wrote:
Your .bash_profile looks weird to me. It looks to me like every bash that is a login shell will try to start X, regardless of where that login shell runs. Thus, every time you log in via ssh, or on the framebuffer console, or on the serial console, or in an xterm, or even start a new window in tmux, you try again to start X. I think that will cause problems. I suggest that you only start X when actually logged in locally on a Linux virtual terminal (ttyN).


Thank you Hu! You nailed it! Thank you sooo much! The errors in tmux are gone:

Code:

~> cat /home/vinicius/.local/share/xorg/Xorg.0.log | grep EE
[    39.022] Current Operating System: Linux moraes 6.6.21-gentoo-gentoo-dist #3 SMP PREEMPT_DYNAMIC Fri Mar 22 01:20:20 -03 2024 x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    39.048] (EE) Failed to load module "intel" (module does not exist, 0)
[    39.056] (EE) Failed to load module "nv" (module does not exist, 0)
[    39.059] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    39.059] (EE) Failed to load module "vesa" (module does not exist, 0)
[    39.957] (II) Initializing extension MIT-SCREEN-SAVER
~>


and ALSO, this just solved this issue here, which is killing me for TWO YEARS!!!!! And ALSO: I am able AGAIN to launch google-chrome-stable and opera, which stopped working entirely since FEBRUARY!!!

For future reference, this is my new bash_profile:
Code:

~> cat .bash_profile
# /etc/skel/.bash_profile

# This file is sourced by bash for login shells.  The following line
# runs your .bashrc and is recommended by the bash info pages.
# if [[ -f ~/.bashrc ]] ; then
#       . ~/.bashrc
# fi

if shopt -q login_shell; then
    [[ -f ~/.bashrc ]] && source ~/.bashrc
    [[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]] && xinit .xinitrc -- /etc/X11/xinit/xserverrc
else
    exit 1 # Somehow this is a non-bash or non-login shell.
fi

# xinit .xinitrc -- /etc/X11/xinit/xserverrc
~>




Thank you very much again!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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