Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] startx black screen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
GoutaTakeshi
n00b
n00b


Joined: 29 Jan 2024
Posts: 12

PostPosted: Wed Feb 14, 2024 9:38 am    Post subject: [SOLVED] startx black screen Reply with quote

After I start X, my screen goes black.
Here are the log files:
https://pastebin.com/gTZ7ZDzt


Last edited by GoutaTakeshi on Sun Feb 18, 2024 2:56 am; edited 1 time in total
Back to top
View user's profile Send private message
apiaio
Guru
Guru


Joined: 04 Dec 2008
Posts: 417

PostPosted: Wed Feb 14, 2024 10:09 am    Post subject: Reply with quote

from your log file
Code:
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)

Do you have x11-drivers/xf86-video-fbdev and x11-drivers/xf86-video-vesa installed?


Last edited by apiaio on Wed Feb 14, 2024 10:16 am; edited 1 time in total
Back to top
View user's profile Send private message
GoutaTakeshi
n00b
n00b


Joined: 29 Jan 2024
Posts: 12

PostPosted: Wed Feb 14, 2024 10:16 am    Post subject: Reply with quote

apiaio wrote:
from your log file
Code:
 (EE) Failed to load module "fbdev" (module does not exist, 0)

Do you have x11-drivers/xf86-video-fbdev installed?

I didn't install it,i missed out on it.thx
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1695

PostPosted: Wed Feb 14, 2024 1:26 pm    Post subject: Reply with quote

apiaio wrote:
from your log file
Code:
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)

Do you have x11-drivers/xf86-video-fbdev and x11-drivers/xf86-video-vesa installed?

This is not an issue since amdgpu driver is in use.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4295
Location: Bavaria

PostPosted: Thu Feb 15, 2024 4:08 am    Post subject: Reply with quote

GoutaTakeshi,

first of all you should check this:
https://wiki.gentoo.org/wiki/Xorg#X_server_starts_and_dies_unexpectedly_with_no_errors

If this is not the cause of your black screen I think we need the output of "dmesg".
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
GoutaTakeshi
n00b
n00b


Joined: 29 Jan 2024
Posts: 12

PostPosted: Thu Feb 15, 2024 7:11 am    Post subject: Reply with quote

pietinger wrote:
GoutaTakeshi,

first of all you should check this:
https://wiki.gentoo.org/wiki/Xorg#X_server_starts_and_dies_unexpectedly_with_no_errors

If this is not the cause of your black screen I think we need the output of "dmesg".


Here is my xinitrc.
Code:
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -n "`/etc/X11/chooser.sh`" ]; then
 command="`/etc/X11/chooser.sh`"
else
 failsafe="yes"
fi

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?* ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

if [ -n "$failsafe" ]; then
# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login
sxhkd &
exec bspwm
else
 exec $command
fi



Here is my new Xorg log.
Code:
[   242.785]
X.Org X Server 1.21.1.11
X Protocol Version 11, Revision 0
[   242.787] Current Operating System: Linux laptop 6.6.13-gentoo-x86_64 #10 SMP PREEMPT_DYNAMIC Fri Feb  9 00:09:24 CST 2024 x86_64
[   242.787] Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-6.6.13-gentoo-x86_64 root=UUID=b9fc82e1-4a25-41d5-b151-f485705e3058 ro rootflags=subvol=@
[   242.788] 
[   242.788] Current version of pixman: 0.42.2
[   242.790]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   242.790] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   242.792] (==) Log file: "/home/framework/.local/share/xorg/Xorg.0.log", Time: Thu Feb 15 14:30:18 2024
[   242.792] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   242.792] (==) No Layout section.  Using the first Screen section.
[   242.792] (==) No screen section available. Using defaults.
[   242.792] (**) |-->Screen "Default Screen Section" (0)
[   242.792] (**) |   |-->Monitor "<default monitor>"
[   242.793] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[   242.793] (==) Automatically adding devices
[   242.793] (==) Automatically enabling devices
[   242.793] (==) Automatically adding GPU devices
[   242.793] (==) Automatically binding GPU devices
[   242.793] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   242.793] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   242.793]    Entry deleted from font path.
[   242.793] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   242.793]    Entry deleted from font path.
[   242.793] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   242.793]    Entry deleted from font path.
[   242.793] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   242.793]    Entry deleted from font path.
[   242.793] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   242.793]    Entry deleted from font path.
[   242.793] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   242.793]    Entry deleted from font path.
[   242.793] (==) FontPath set to:
   
[   242.793] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   242.793] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   242.793] (II) Module ABI versions:
[   242.793]    X.Org ANSI C Emulation: 0.4
[   242.793]    X.Org Video Driver: 25.2
[   242.793]    X.Org XInput driver : 24.4
[   242.793]    X.Org Server Extension : 10.0
[   242.793] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory)
[   242.794] (II) xfree86: Adding drm device (/dev/dri/card0)
[   242.794] (II) Platform probe for /sys/devices/pci0000:00/0000:00:08.1/0000:c1:00.0/drm/card0
[   242.843] (--) PCI:*(193@0:0:0) 1002:15bf:f111:0006 rev 203, Mem @ 0x8800000000/268435456, 0x90000000/2097152, 0x90500000/524288, I/O @ 0x00001000/256
[   242.843] (II) LoadModule: "glx"
[   242.843] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   242.844] (II) Module glx: vendor="X.Org Foundation"
[   242.844]    compiled for 1.21.1.11, module version = 1.0.0
[   242.844]    ABI class: X.Org Server Extension, version 10.0
[   242.844] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
[   242.844]    loading driver: amdgpu
[   242.844] (==) Matched amdgpu as autoconfigured driver 0
[   242.844] (==) Matched ati as autoconfigured driver 1
[   242.844] (==) Matched modesetting as autoconfigured driver 2
[   242.844] (==) Matched fbdev as autoconfigured driver 3
[   242.844] (==) Matched vesa as autoconfigured driver 4
[   242.844] (==) Assigned the driver to the xf86ConfigLayout
[   242.844] (II) LoadModule: "amdgpu"
[   242.844] (II) Loading /usr/lib64/xorg/modules/drivers/amdgpu_drv.so
[   242.844] (II) Module amdgpu: vendor="X.Org Foundation"
[   242.844]    compiled for 1.21.1.11, module version = 23.0.0
[   242.844]    Module class: X.Org Video Driver
[   242.844]    ABI class: X.Org Video Driver, version 25.2
[   242.844] (II) LoadModule: "ati"
[   242.844] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[   242.844] (II) Module ati: vendor="X.Org Foundation"
[   242.844]    compiled for 1.21.1.11, module version = 22.0.0
[   242.844]    Module class: X.Org Video Driver
[   242.844]    ABI class: X.Org Video Driver, version 25.2
[   242.889] (II) LoadModule: "modesetting"
[   242.889] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   242.889] (II) Module modesetting: vendor="X.Org Foundation"
[   242.889]    compiled for 1.21.1.11, module version = 1.21.1
[   242.889]    Module class: X.Org Video Driver
[   242.889]    ABI class: X.Org Video Driver, version 25.2
[   242.889] (II) LoadModule: "fbdev"
[   242.889] (WW) Warning, couldn't open module fbdev
[   242.889] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   242.889] (II) LoadModule: "vesa"
[   242.889] (WW) Warning, couldn't open module vesa
[   242.889] (EE) Failed to load module "vesa" (module does not exist, 0)
[   242.889] (II) AMDGPU: Driver for AMD Radeon:
   All GPUs supported by the amdgpu kernel driver
[   242.889] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   242.889] (EE)
Fatal server error:
[   242.891] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[   242.892] (EE)
[   242.894] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[   242.897] (EE) Please also check the log file at "/home/framework/.local/share/xorg/Xorg.0.log" for additional information.
[   242.898] (EE)
[   242.898] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[   242.898] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[   242.898] (EE) Server terminated with error (1). Closing log file.

When I run "startx," the console outputs
Code:
[   242.891] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)

Afterwards, I found an article online that mentioned using elogind could solve this issue. However, it didn't work for me.So, I am not currently using it.
Below is my dmesg log.https://pastebin.com/aFK9Wv7P
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


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

PostPosted: Thu Feb 15, 2024 12:14 pm    Post subject: Reply with quote

GoutaTakeshi wrote:
Afterwards, I found an article online that mentioned using elogind could solve this issue. However, it didn't work for me.

The log in your OP showed elogind working actually, and no Xorg errors. So maybe this part of your xinitrc was failing:

GoutaTakeshi wrote:
Code:
if [ -n "$failsafe" ]; then
# ...
sxhkd &
exec bspwm
else
 # ...
fi

_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
GoutaTakeshi
n00b
n00b


Joined: 29 Jan 2024
Posts: 12

PostPosted: Fri Feb 16, 2024 7:17 am    Post subject: Reply with quote

GDH-gentoo wrote:
GoutaTakeshi wrote:
Afterwards, I found an article online that mentioned using elogind could solve this issue. However, it didn't work for me.

The log in your OP showed elogind working actually, and no Xorg errors. So maybe this part of your xinitrc was failing:

GoutaTakeshi wrote:
Code:
if [ -n "$failsafe" ]; then
# ...
sxhkd &
exec bspwm
else
 # ...
fi

When I use the global elogind flag, the error message "(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)" does not appear. However, after running startx, the screen goes black. I have followed the instructions in the wiki guide to update the xinitrc.
Code:
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -n "`/etc/X11/chooser.sh`" ]; then
 command="`/etc/X11/chooser.sh`"
else
 failsafe="yes"
fi

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?* ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

if [ -n "$failsafe" ]; then
 sxhkd &
 exec dbus-launch --exit-with-session bspwm
else
 exec $command
fi


This is the standard error message from startx.
Code:
+ unset SESSION_MANAGER
+ userclientrc=/home/framework/.xinitrc
+ '[' -f '' ']'
+ sysclientrc=/etc/X11/xinit/xinitrc
+ userserverrc=/home/framework/.xserverrc
+ '[' -f '' ']'
+ sysserverrc=/etc/X11/xinit/xserverrc
+ defaultclient=xterm
+ defaultserver=/usr/bin/X
+ defaultclientargs=
+ defaultserverargs=
+ defaultdisplay=
+ clientargs=
+ serverargs=
+ vtarg=
+ enable_xauth=1
+ d=0
+ true
+ '[' -e /tmp/.X0-lock -o -S /tmp/.X11-unix/X0 ']'
+ break
+ defaultdisplay=:0
+ unset d
+ whoseargs=client
+ '[' x '!=' x ']'
+ '[' x = x ']'
+ client=xterm
+ '[' x = x ']'
+ '[' -f /home/framework/.xinitrc ']'
+ client=/home/framework/.xinitrc
+ '[' x = x ']'
+ clientargs=
+ '[' x = x ']'
+ server=/usr/bin/X
+ '[' x = x -a x = x ']'
+ '[' -f /home/framework/.xserverrc ']'
+ '[' -f /etc/X11/xinit/xserverrc ']'
+ server=/etc/X11/xinit/xserverrc
+ '[' x = x ']'
+ serverargs=
+ have_vtarg=no
+ '[' no = no ']'
+ serverargs=' '
+ '[' x = x ']'
+ display=:0
+ '[' x1 = x1 ']'
+ '[' x = x ']'
+ XAUTHORITY=/home/framework/.Xauthority
+ export XAUTHORITY
+ removelist=
++ uname -n
+ hostname=laptop
+ authdisplay=:0
++ /usr/bin/mcookie
+ mcookie=26b0103d301c0b45896124f0565053ee
+ test x26b0103d301c0b45896124f0565053ee = x
+ dummy=0
++ mktemp --tmpdir serverauth.XXXXXXXXXX
+ xserverauthfile=/tmp/serverauth.CbVQyKvtrb
+ trap 'rm -f '\''/tmp/serverauth.CbVQyKvtrb'\''' HUP INT QUIT ILL TRAP BUS TERM
+ xauth -q -f /tmp/serverauth.CbVQyKvtrb
+ serverargs='  -auth /tmp/serverauth.CbVQyKvtrb'
+ for displayname in $authdisplay $hostname$authdisplay
++ xauth list :0
++ sed -n 's/.*:0[[:space:]*].*[[:space:]*]//p'
+ authcookie=5931105f5ed60d27c3cf703899e27912
+ '[' z5931105f5ed60d27c3cf703899e27912 = z ']'
+ dummy=1
+ xauth -q -f /tmp/serverauth.CbVQyKvtrb
+ for displayname in $authdisplay $hostname$authdisplay
++ xauth list laptop:0
++ sed -n 's/.*laptop:0[[:space:]*].*[[:space:]*]//p'
xauth: (argv):1:  bad display name "laptop:0" in "list" command
+ authcookie=
+ '[' z = z ']'
+ xauth -q
xauth: (stdin):1:  bad display name "laptop:0" in "add" command
+ removelist='laptop:0 '
+ xinit /home/framework/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.CbVQyKvtrb


X.Org X Server 1.21.1.11
X Protocol Version 11, Revision 0
Current Operating System: Linux laptop 6.6.13-gentoo-x86_64 #11 SMP PREEMPT_DYNAMIC Fri Feb 16 12:15:05 CST 2024 x86_64
Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-6.6.13-gentoo-x86_64 root=UUID=b9fc82e1-4a25-41d5-b151-f485705e3058 ro rootflags=subvol=@
 
Current version of pixman: 0.42.2
   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/framework/.local/share/xorg/Xorg.0.log", Time: Fri Feb 16 14:39:44 2024
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
xinit: connection to X server lost


waiting for X server to shut down (EE) PIXA3854:00 093A:0274 Touchpad: Read error 19
.(II) Server terminated successfully (0). Closing log file.

xinit: unexpected signal 1
++ rm -f /tmp/serverauth.CbVQyKvtrb
+ retval=1
+ '[' x1 = x1 ']'
+ '[' 'xlaptop:0 ' '!=' x ']'
+ xauth remove laptop:0
xauth: (argv):1:  bad display name "laptop:0" in "remove" command
+ '[' x/tmp/serverauth.CbVQyKvtrb '!=' x ']'
+ rm -f /tmp/serverauth.CbVQyKvtrb
+ command -v deallocvt
+ deallocvt
+ exit 1

The recent login information from /var/log/messages.
Code:
Feb 16 14:39:05 laptop syslog-ng[1774]: syslog-ng shutting down; version='4.6.0'
Feb 16 14:39:24 laptop syslog-ng[1730]: syslog-ng starting up; version='4.6.0'
Feb 16 14:39:24 laptop kernel: modprobe (1091) used greatest stack depth: 12512 bytes left
Feb 16 14:39:24 laptop kernel: input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:c1:00.6/sound/card1/input14
Feb 16 14:39:24 laptop dhcpcd[1777]: dhcpcd-10.0.6 starting
Feb 16 14:39:24 laptop dhcpcd[1779]: dev: loaded udev
Feb 16 14:39:24 laptop dhcpcd[1779]: DUID 00:01:00:01:2d:57:bf:1a:a8:3b:76:ba:af:81
Feb 16 14:39:24 laptop kernel: 8021q: 802.1Q VLAN Support v1.8
Feb 16 14:39:24 laptop dhcpcd[1779]: no valid interfaces found
Feb 16 14:39:24 laptop dhcpcd[1779]: no interfaces have a carrier
Feb 16 14:39:24 laptop kernel: [drm] PSR support 1, DC PSR ver 0, sink PSR ver 3 DPCD caps 0x7b su_y_granularity 4
Feb 16 14:39:24 laptop kernel: [drm] kiq ring mec 3 pipe 1 q 0
Feb 16 14:39:24 laptop kernel: [drm] VCN decode and encode initialized successfully(under DPG Mode).
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: [drm:jpeg_v4_0_hw_init [amdgpu]] JPEG decode initialized successfully.
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: SE 1, SH per SE 2, CU per SH 6, active_cu_number 8
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring vcn_unified_0 uses VM inv eng 0 on hub 8
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring jpeg_dec uses VM inv eng 1 on hub 8
Feb 16 14:39:24 laptop kernel: amdgpu 0000:c1:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
Feb 16 14:39:24 laptop kernel: [drm] ring gfx_32768.1.1 was added
Feb 16 14:39:24 laptop kernel: [drm] ring compute_32768.2.2 was added
Feb 16 14:39:24 laptop kernel: [drm] ring sdma_32768.3.3 was added
Feb 16 14:39:24 laptop kernel: [drm] ring gfx_32768.1.1 ib test pass
Feb 16 14:39:24 laptop kernel: [drm] ring compute_32768.2.2 ib test pass
Feb 16 14:39:24 laptop kernel: [drm] ring sdma_32768.3.3 ib test pass
Feb 16 14:39:24 laptop kernel: [drm] Initialized amdgpu 3.54.0 20150101 for 0000:c1:00.0 on minor 0
Feb 16 14:39:24 laptop kernel: fbcon: amdgpudrmfb (fb0) is primary device
Feb 16 14:39:24 laptop kernel: [drm] DSC precompute is not needed.
Feb 16 14:39:25 laptop kernel: mt7921e 0000:01:00.0 wlp1s0: renamed from wlan0
Feb 16 14:39:25 laptop kernel: Console: switching to colour frame buffer device 141x47
Feb 16 14:39:25 laptop kernel: amdgpu 0000:c1:00.0: [drm] fb0: amdgpudrmfb frame buffer device
Feb 16 14:39:26 laptop dhcpcd[1779]: wlp1s0: waiting for carrier
Feb 16 14:39:26 laptop dhcpcd[1779]: wlp1s0: waiting for carrier
Feb 16 14:39:26 laptop kernel: Bluetooth: hci0: Device setup in 2195074 usecs
Feb 16 14:39:26 laptop kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Feb 16 14:39:29 laptop kernel: (udev-worker) (885) used greatest stack depth: 12240 bytes left
Feb 16 14:39:29 laptop kernel: (udev-worker) (899) used greatest stack depth: 11904 bytes left
Feb 16 14:39:29 laptop kernel: (udev-worker) (898) used greatest stack depth: 10024 bytes left
Feb 16 14:39:29 laptop login[1885]: pam_unix(login:session): session opened for user framework(uid=1000) by framework(uid=0)
Feb 16 14:39:29 laptop kernel: elogind-daemon[1404]: New session 2 of user framework.
Feb 16 14:39:46 laptop kernel: elogind-daemon[1404]: Power key pressed.
Feb 16 14:39:46 laptop kernel: elogind-daemon[1404]: Powering Off...
Feb 16 14:39:46 laptop kernel: elogind-daemon[1404]: System is powering down..
Feb 16 14:39:46 laptop kernel: elogind-daemon[1404]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
Feb 16 14:39:46 laptop shutdown[1966]: shutting down for system halt
Feb 16 14:39:46 laptop init[1]: Switching to runlevel: 0
Feb 16 14:39:46 laptop kernel: elogind-daemon[1404]: Removed session 2.
Feb 16 14:39:46 laptop init[1]: Trying to re-exec init
Feb 16 14:39:47 laptop start-stop-daemon[2191]: Will stop PID 1404
Feb 16 14:39:47 laptop start-stop-daemon[2191]: Sending signal 15 to PID 1404
Feb 16 14:39:47 laptop kernel: elogind-daemon[1404]: Received signal 15 [TERM]
Feb 16 14:39:47 laptop dbus-daemon[1375]: [system] Activating service name='org.freedesktop.login1' requested by ':1.2' (uid=1000 pid=1910 comm="/usr/bin/X -nolisten tcp -keeptty :0 -auth /tmp/se") (using servicehelper)
Feb 16 14:39:47 laptop elogind-daemon[2201]: New seat seat0.
Feb 16 14:39:47 laptop elogind-daemon[2201]: Watching system buttons on /dev/input/event0 (Lid Switch)
Feb 16 14:39:47 laptop elogind-daemon[2201]: Watching system buttons on /dev/input/event1 (Power Button)
Feb 16 14:39:47 laptop elogind-daemon[2201]: Watching system buttons on /dev/input/event5 (SteelSeries SteelSeries Prime Mini Wireless)
Feb 16 14:39:47 laptop elogind-daemon[2201]: Watching system buttons on /dev/input/event6 (SteelSeries SteelSeries Prime Mini Wireless)
Feb 16 14:39:47 laptop elogind-daemon[2201]: Watching system buttons on /dev/input/event10 (FRMW0004:00 32AC:0006 Consumer Control)
Feb 16 14:39:47 laptop elogind-daemon[2201]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
Feb 16 14:39:47 laptop dbus-daemon[1375]: [system] Successfully activated service 'org.freedesktop.login1'
Feb 16 14:39:47 laptop start-stop-daemon[2241]: Will stop /sbin/dhcpcd
Feb 16 14:39:47 laptop start-stop-daemon[2241]: Will stop PID 1779
Feb 16 14:39:47 laptop start-stop-daemon[2241]: Sending signal 15 to PID 1779
Feb 16 14:39:47 laptop dhcpcd[1779]: received SIGTERM, stopping
Feb 16 14:39:47 laptop dhcpcd[1779]: wlp1s0: removing interface
Feb 16 14:39:47 laptop dhcpcd[1779]: dhcpcd exited
Feb 16 14:39:47 laptop start-stop-daemon[2282]: Will stop /usr/sbin/syslog-ng
Feb 16 14:39:47 laptop start-stop-daemon[2282]: Will stop PID 1730
Feb 16 14:39:47 laptop syslog-ng[1730]: syslog-ng shutting down; version='4.6.0'
Feb 16 14:39:47 laptop start-stop-daemon[2282]: Sending signal 15 to PID 1730
Feb 16 14:40:20 laptop syslog-ng[1773]: syslog-ng starting up; version='4.6.0'
Feb 16 14:40:20 laptop dhcpcd[1803]: dhcpcd-10.0.6 starting
Feb 16 14:40:20 laptop dhcpcd[1805]: dev: loaded udev
Feb 16 14:40:20 laptop dhcpcd[1805]: DUID 00:01:00:01:2d:57:bf:1a:a8:3b:76:ba:af:81
Feb 16 14:40:20 laptop kernel: 8021q: 802.1Q VLAN Support v1.8
Feb 16 14:40:20 laptop kernel: Bluetooth: hci0: Device setup in 2192024 usecs
Feb 16 14:40:20 laptop kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Feb 16 14:40:20 laptop dhcpcd[1805]: no interfaces have a carrier
Feb 16 14:40:21 laptop dhcpcd[1805]: wlp1s0: waiting for carrier
Feb 16 14:40:24 laptop kernel: (udev-worker) (881) used greatest stack depth: 10024 bytes left
Feb 16 14:40:24 laptop kernel: ucsi_acpi USBC000:00: ucsi_handle_connector_change: ACK failed (-110)
Feb 16 14:40:29 laptop kernel: ucsi_acpi USBC000:00: ucsi_handle_connector_change: ACK failed (-110)
Feb 16 14:40:34 laptop login[1883]: pam_unix(login:session): session opened for user framework(uid=1000) by framework(uid=0)
Feb 16 14:40:34 laptop kernel: elogind-daemon[1447]: New session 2 of user framework.
Feb 16 14:40:35 laptop kernel: ucsi_acpi USBC000:00: ucsi_handle_connector_change: ACK failed (-110)
Feb 16 14:41:06 laptop kernel: elogind-daemon[1447]: Power key pressed.
Feb 16 14:41:06 laptop kernel: elogind-daemon[1447]: Powering Off...
Feb 16 14:41:06 laptop kernel: elogind-daemon[1447]: System is powering down..
Feb 16 14:41:06 laptop kernel: elogind-daemon[1447]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
Feb 16 14:41:06 laptop shutdown[1967]: shutting down for system halt
Feb 16 14:41:06 laptop init[1]: Switching to runlevel: 0
Feb 16 14:41:06 laptop kernel: elogind-daemon[1447]: Removed session 2.
Feb 16 14:41:06 laptop init[1]: Trying to re-exec init
Feb 16 14:41:06 laptop start-stop-daemon[2193]: Will stop PID 1447
Feb 16 14:41:06 laptop start-stop-daemon[2193]: Sending signal 15 to PID 1447
Feb 16 14:41:06 laptop kernel: elogind-daemon[1447]: Received signal 15 [TERM]
Feb 16 14:41:06 laptop dbus-daemon[1418]: [system] Activating service name='org.freedesktop.login1' requested by ':1.2' (uid=1000 pid=1911 comm="/usr/bin/X -nolisten tcp -keeptty :0 -auth /tmp/se") (using servicehelper)
Feb 16 14:41:07 laptop elogind-daemon[2203]: New seat seat0.
Feb 16 14:41:07 laptop elogind-daemon[2203]: Watching system buttons on /dev/input/event0 (Lid Switch)
Feb 16 14:41:07 laptop elogind-daemon[2203]: Watching system buttons on /dev/input/event1 (Power Button)
Feb 16 14:41:07 laptop elogind-daemon[2203]: Watching system buttons on /dev/input/event5 (SteelSeries SteelSeries Prime Mini Wireless)
Feb 16 14:41:07 laptop elogind-daemon[2203]: Watching system buttons on /dev/input/event6 (SteelSeries SteelSeries Prime Mini Wireless)
Feb 16 14:41:07 laptop elogind-daemon[2203]: Watching system buttons on /dev/input/event10 (FRMW0004:00 32AC:0006 Consumer Control)
Feb 16 14:41:07 laptop elogind-daemon[2203]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
Feb 16 14:41:07 laptop dbus-daemon[1418]: [system] Successfully activated service 'org.freedesktop.login1'
Feb 16 14:41:07 laptop start-stop-daemon[2235]: Will stop /sbin/dhcpcd
Feb 16 14:41:07 laptop start-stop-daemon[2235]: Will stop PID 1805
Feb 16 14:41:07 laptop start-stop-daemon[2235]: Sending signal 15 to PID 1805
Feb 16 14:41:07 laptop dhcpcd[1805]: received SIGTERM, stopping
Feb 16 14:41:07 laptop dhcpcd[1805]: wlp1s0: removing interface
Feb 16 14:41:07 laptop dhcpcd[1805]: dhcpcd exited
Feb 16 14:41:07 laptop start-stop-daemon[2272]: Will stop /usr/sbin/syslog-ng
Feb 16 14:41:07 laptop start-stop-daemon[2272]: Will stop PID 1773
Feb 16 14:41:07 laptop syslog-ng[1773]: syslog-ng shutting down; version='4.6.0'
Feb 16 14:41:07 laptop start-stop-daemon[2272]: Sending signal 15 to PID 1773
Feb 16 14:41:42 laptop syslog-ng[1771]: syslog-ng starting up; version='4.6.0'
Feb 16 14:41:42 laptop dhcpcd[1800]: dhcpcd-10.0.6 starting
Feb 16 14:41:42 laptop dhcpcd[1802]: dev: loaded udev
Feb 16 14:41:42 laptop dhcpcd[1802]: DUID 00:01:00:01:2d:57:bf:1a:a8:3b:76:ba:af:81
Feb 16 14:41:42 laptop kernel: 8021q: 802.1Q VLAN Support v1.8
Feb 16 14:41:42 laptop dhcpcd[1802]: no interfaces have a carrier
Feb 16 14:41:42 laptop kernel: Bluetooth: hci0: Device setup in 2192669 usecs
Feb 16 14:41:42 laptop kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Feb 16 14:41:43 laptop dhcpcd[1802]: wlp1s0: waiting for carrier
Feb 16 14:41:46 laptop kernel: (udev-worker) (902) used greatest stack depth: 12512 bytes left
Feb 16 14:41:46 laptop kernel: (udev-worker) (892) used greatest stack depth: 10024 bytes left
Feb 16 14:41:46 laptop login[1880]: pam_unix(login:session): session opened for user framework(uid=1000) by framework(uid=0)
Feb 16 14:41:46 laptop kernel: elogind-daemon[1445]: New session 2 of user framework.
Feb 16 14:44:58 laptop sudo[1919]: framework : TTY=tty1 ; PWD=/home/framework ; USER=root ; COMMAND=/usr/bin/less /var/log/messages
Feb 16 14:44:58 laptop sudo[1919]: pam_unix(sudo:session): session opened for user root(uid=0) by framework(uid=1000)

Here is the new dmesg log. https://pastebin.com/KBb8yVtk
Here is the new Xorg log. https://pastebin.com/YmFZ6ArQ
Back to top
View user's profile Send private message
GoutaTakeshi
n00b
n00b


Joined: 29 Jan 2024
Posts: 12

PostPosted: Sun Feb 18, 2024 2:54 am    Post subject: Reply with quote

GDH-gentoo wrote:
GoutaTakeshi wrote:
Afterwards, I found an article online that mentioned using elogind could solve this issue. However, it didn't work for me.

The log in your OP showed elogind working actually, and no Xorg errors. So maybe this part of your xinitrc was failing:

GoutaTakeshi wrote:
Code:
if [ -n "$failsafe" ]; then
# ...
sxhkd &
exec bspwm
else
 # ...
fi

After several days of troubleshooting, it was indeed caused by the .xinitrc file. The issue arose because the configuration file for sxhkd was referencing urxvt. Hence, it is necessary to start urxvt in the .xinitrc file. I appreciate your valuable hint, which helped me identify the problem. :D
new .xinitrc:
Code:
 sxhkd &
 urxvt &    # To prevent a black screen issue in bspwm, it is crucial to add the terminal program used in the sxhkd configuration to the .xinitrc file.
 exec dbus-launch --exit-with-session bspwm
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
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