View previous topic :: View next topic |
Author |
Message |
FreeMind1 n00b
Joined: 11 Apr 2021 Posts: 16
|
Posted: Thu Apr 15, 2021 10:35 am Post subject: [SOLVED] X freezes after executing "startx" |
|
|
Hello there!
When I start X, it freezes, this is the log:
https://pastebin.com/vpbLuxgc
I have a suspicion that this might have something to do with my kernel configuration,
since that's been the main source of all the problems I've had so far.
If you have any experience on this, then feel free to reply.
Best Regards,
To whoever is reading this!
Last edited by FreeMind1 on Sat Apr 17, 2021 7:18 pm; edited 1 time in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Thu Apr 15, 2021 10:54 am Post subject: |
|
|
Some config that might be missing for you
Code: |
grep -i drm /usr/src/linux/.config
CONFIG_DRM=m
CONFIG_DRM_MIPI_DBI=m
CONFIG_DRM_MIPI_DSI=y
CONFIG_DRM_DP_AUX_CHARDEV=y
# CONFIG_DRM_DEBUG_SELFTEST is not set
CONFIG_DRM_KMS_HELPER=m
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_DP_CEC=y
CONFIG_DRM_TTM=m
CONFIG_DRM_VRAM_HELPER=m
CONFIG_DRM_TTM_HELPER=m
CONFIG_DRM_GEM_CMA_HELPER=y
CONFIG_DRM_KMS_CMA_HELPER=y
CONFIG_DRM_GEM_SHMEM_HELPER=y
CONFIG_DRM_SCHED=m
CONFIG_DRM_I2C_CH7006=m
CONFIG_DRM_I2C_SIL164=m
CONFIG_DRM_I2C_NXP_TDA998X=m
CONFIG_DRM_I2C_NXP_TDA9950=m
CONFIG_DRM_RADEON=m
CONFIG_DRM_RADEON_USERPTR=y
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_AMDGPU_SI=y
CONFIG_DRM_AMDGPU_CIK=y
CONFIG_DRM_AMDGPU_USERPTR=y
# CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC=y
CONFIG_DRM_AMD_DC_DCN=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
CONFIG_DRM_NOUVEAU=m
CONFIG_DRM_NOUVEAU_BACKLIGHT=y
CONFIG_DRM_NOUVEAU_SVM=y
CONFIG_DRM_I915=m
CONFIG_DRM_I915_FORCE_PROBE="*"
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
CONFIG_DRM_I915_GVT=y
CONFIG_DRM_I915_GVT_KVMGT=m
CONFIG_DRM_I915_FENCE_TIMEOUT=10000
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000
CONFIG_DRM_I915_STOP_TIMEOUT=100
CONFIG_DRM_I915_TIMESLICE_DURATION=1
CONFIG_DRM_VGEM=m
CONFIG_DRM_VKMS=m
CONFIG_DRM_VMWGFX=m
CONFIG_DRM_VMWGFX_FBCON=y
CONFIG_DRM_GMA500=m
CONFIG_DRM_GMA600=y
CONFIG_DRM_GMA3600=y
CONFIG_DRM_UDL=m
CONFIG_DRM_AST=m
CONFIG_DRM_MGAG200=m
CONFIG_DRM_QXL=m
CONFIG_DRM_BOCHS=m
CONFIG_DRM_VIRTIO_GPU=m
CONFIG_DRM_PANEL=y
CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=m
CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y
CONFIG_DRM_ANALOGIX_ANX78XX=m
CONFIG_DRM_ANALOGIX_DP=m
# CONFIG_DRM_ETNAVIV is not set
CONFIG_DRM_CIRRUS_QEMU=m
CONFIG_DRM_GM12U320=m
CONFIG_TINYDRM_HX8357D=m
CONFIG_TINYDRM_ILI9225=m
CONFIG_TINYDRM_ILI9341=m
CONFIG_TINYDRM_ILI9486=m
CONFIG_TINYDRM_MI0283QT=m
CONFIG_TINYDRM_REPAPER=m
CONFIG_TINYDRM_ST7586=m
CONFIG_TINYDRM_ST7735R=m
CONFIG_DRM_XEN=y
CONFIG_DRM_XEN_FRONTEND=m
CONFIG_DRM_VBOXVIDEO=m
# CONFIG_DRM_LEGACY is not set
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
lake ~ # grep -i i9 /usr/src/linux/.config
CONFIG_NI903X_WDT=m
CONFIG_DRM_I915=m
CONFIG_DRM_I915_FORCE_PROBE="*"
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
CONFIG_DRM_I915_GVT=y
CONFIG_DRM_I915_GVT_KVMGT=m
CONFIG_DRM_I915_FENCE_TIMEOUT=10000
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000
CONFIG_DRM_I915_STOP_TIMEOUT=100
CONFIG_DRM_I915_TIMESLICE_DURATION=1
CONFIG_TINYDRM_ILI9225=m
CONFIG_TINYDRM_ILI9341=m
CONFIG_TINYDRM_ILI9486=m
CONFIG_LCD_ILI922X=m
CONFIG_LCD_ILI9320=m
CONFIG_SND_HDA_I915=y
|
Please post the output of
Code: |
grep VIDEO /etc/portage/make.conf
lspci | egrep -i "3d|vga"
lspci -nkk
|
If you have bothe nouveau and nvidia then you need to blacklist nouveau.
Also you need dbus and elogind enabled and running.
Are they _________________
Last edited by alamahant on Thu Apr 15, 2021 10:58 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Thu Apr 15, 2021 10:57 am Post subject: |
|
|
FreeMind1,
Code: | [ 653.706] (--) PCI:*(0@0:2:0) 8086:3e9b:17aa:39f5 rev 0, Mem @ 0xa2000000/16777216, 0xb0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[ 653.706] (--) PCI: (1@0:0:0) 10de:1c20:17aa:39f5 rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288 |
That's intel and an nvidia GPUs, so its probably an Opimus graphics system. That needs special set up as its only 1 1/2 graphics systems. There is a guide on the wiki.
Code: | [ 653.712] (II) NVIDIA dlloader X Driver 465.19.01 Fri Mar 19 07:56:53 UTC 2021
[ 653.712] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 653.712] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 653.712] xf86EnableIOPorts: failed to set IOPL for I/O (Function not implemented)
[ 653.713] (II) modeset(0): using drv /dev/dri/card0 |
Baby steps. Rip out the nvidia-drivers packages.
Make Xorg work on the Intel GPU with the modesetting driver. You will need that anyway.
Once that works add in Optimus.
Your log is truncated, there are no fatal errors there.
If you don't have an Opimus graphics system, the above is stll the right approach to get started.
Where you go from the Intel GPU with the modesetting driver depends on if you have Optimus or two real graphics cards. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
FreeMind1 n00b
Joined: 11 Apr 2021 Posts: 16
|
Posted: Thu Apr 15, 2021 7:14 pm Post subject: |
|
|
Ok, an update, here goes:
So I've sort of found myself in a rabbit hole that keeps on going.
Anyways, I'll get to the point, after setting up Optimus, recompiling my kernel,
and doing other stuff, I try to re-emerge x11-drivers/nvidia-drivers.
But it spits out an error, to be more precise; a bug, as I find out later.
I find the commit of the bug and they say something about editing the ebuild and enabling "CONFIG_CHECK".
So my question is:
How do I change "CONFIG_CHECK" to 1, true, whatever, in my ebuild?
If you have any experience on this, then feel free to reply.
Best Regards
To whoever is reading this! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Thu Apr 15, 2021 8:00 pm Post subject: |
|
|
FreeMind1,
We need to read that bug.
CONFIG_CHECK is a list of kernel configuration symbols to be checked for settings.
The ebuild tries to check them when its emerged. Any that are not set correctly generate warnings but the build proceeds.
The settings make no difference to the code but the code may not run unless the kernel is fixed. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
the_actuary n00b
Joined: 04 Apr 2021 Posts: 48
|
Posted: Fri Apr 16, 2021 4:05 am Post subject: |
|
|
In addition to what others have said, in the likelihood that you are using a tiger lake processor, make sure you use a kernel versioned 5.11 or above. Anything below doesn't have support for IRIS XE built in.
https://forums.gentoo.org/viewtopic-t-1133328.html |
|
Back to top |
|
|
FreeMind1 n00b
Joined: 11 Apr 2021 Posts: 16
|
Posted: Sat Apr 17, 2021 8:49 am Post subject: |
|
|
Ok, sorry for not being as active as before this past day to two.
I ended up doing a big yikes and I had to reinstall my Gentoo,
not much a problem though, since I only had a base install with xorg and a few other packages.
Anyways, it appears that I have stumbled upon a new problem, when I startx, it says something along the lines of,
"(EE) no screens found".
Here is my xorg.conf.d/10-nvidia.conf:
Code: |
Section "ServerLayout"
Identifier "layout
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "01:00:0"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
Section "Screen"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
|
And 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
exec $command
fi
# Keyboard layout
setxkbmap dk &
# Xrandr
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
# Display resolution
xrandr --output NVIDIA-0 --mode 1920x1080 &
# Execute DWM
exec dwm ~/.dwm.log
|
If you have any experience on this, feel free to reply. _________________ Best Regards
To whoever is reading this!
Hi, I am new, so please go easy on me. |
|
Back to top |
|
|
FreeMind1 n00b
Joined: 11 Apr 2021 Posts: 16
|
Posted: Sat Apr 17, 2021 11:58 am Post subject: |
|
|
Ok, forget what I wrote in my last post.
The "(EE) no screens found" error disappeared, don't know how.
But now when I "startx" a black screen appears with a blinking underscore. _________________ Best Regards
To whoever is reading this!
Hi, I am new, so please go easy on me. |
|
Back to top |
|
|
FreeMind1 n00b
Joined: 11 Apr 2021 Posts: 16
|
Posted: Sat Apr 17, 2021 7:22 pm Post subject: |
|
|
Hello everyone!
I managed to fix the problem by messing around with my .xinitrc and xorg.conf.
And I can finally use X!
I have stumbled upon another problem though; an error.
When I try to start st inside of DWM I get "Segmentation fault".
I'm going to make a new thread, if anyone of you have any experience with this,
then feel free to give me an answer in the new thread which is also going to be in the Desktop Environments category. _________________ Best Regards
To whoever is reading this!
Hi, I am new, so please go easy on me. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21619
|
|
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
|
|