Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Display won't start when using KDE+SDDM
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
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 2:29 pm    Post subject: Display won't start when using KDE+SDDM Reply with quote

So what I have my gentoo installation working in CLI (well, there was some problem with CLI display, so i carried on using SSH) - I described it better in this topic https://forums.gentoo.org/viewtopic-t-1146531.html

What I am bassicaly trying to do, is to enchance my installation with desktop enviroment, and I chose kde-plasma/plasma-meta to do it. I followed these steps: https://wiki.gentoo.org/wiki/SDDM, but when I try to start it, this happens:

Code:
GENTOO MACHINE ~ # rc-service display-manager start --verbose
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/display-manager start
 * Setting up sddm ...
 * start-stop-daemon: fopen `/run/sddm.pid': No such file or directory
 * Detaching to start `/usr/bin/sddm' ...         [ ok ]
GENTOO MACHINE ~ #


From my understanding, this means that I am somehow stuck at "Detaching /usr/bin/sddm" step. I also tried launching KDE directly, by startx command, but it doesn't work either - it closes telling me about No screens found (EE). I tried to reconfigure my Xorg, and this happened.

Code:
GENTOO MACHINE / # Xorg -configure                                                                              X.Org X Server 1.20.14                                  X Protocol Version 11, Revision 0                       Build Operating System: Linux 5.15.11-gentoo x86_64 Gentoo                                                      Current Operating System: Linux GENTOO MACHINE 5.15.11-gentoo #1 SMP PREEMPT Wed Dec 29 12:47:38 CET 2021 x86_64Kernel command line: BOOT_IMAGE=/vmlinuz-5.15.11-gentoo root=UUID=a9ec68ee-f208-4c5f-9c9d-ed8a881c1663 ro singleBuild Date: 30 December 2021  06:34:51AM                                                                        Current version of pixman: 0.40.0                               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: "/var/log/Xorg.0.log", Time: Thu Dec 30 06:58:53 2021                                            List of video drivers:                                          amdgpu                                                  modesetting                                     (++) Using config file: "/root/xorg.conf.new"           (==) Using system config directory "/usr/share/X11/xorg.conf.d"                                                 (II) AMDGPU(0): [KMS] Kernel modesetting enabled.       (II) AMDGPU(1): [KMS] Kernel modesetting enabled.                                                                                                                       Xorg is not able to detect your mouse.                  Edit the file and correct the Device.                                                                           Xorg has configured a multihead system, please check your config.                                                                                                       Your xorg.conf file is /root/xorg.conf.new                                                                      To test the server, run 'X -config /root/xorg.conf.new'                                                         (EE) Server terminated with error (2). Closing log file.GENTOO MACHINE / #



You can find more about my system in post I linked above, not too much changed since last time. Also I think these files maybe needed to resolve this case:


Code:
GENTOO MACHINE /usr/share/X11/xorg.conf.d # ls
 10-amdgpu.conf  10-quirks.conf  40-libinput.conf       
GENTOO MACHINE /usr/share/X11/xorg.conf.d # cat 10-amdgpu.conf                                                 
Section "OutputClass"                                           
Identifier "AMDgpu"                                   
MatchDriver "amdgpu"                                   
Driver "amdgpu"                                 
EndSectionGENTOO MACHINE /usr/share/X11/xorg.conf.d #



Code:
GENTOO MACHINE ~ # cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CHOST="x86_64-pc-linux-gnu"
COMMON_FLAGS="-O2 -march=znver2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPT="-j8"
ACCEPT_LICENSE="*"
USE="X -bluetooth -systemd -qtwebengine -webengine"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
GRUB_PLATFORMS="efi-64"
VIDEO_CARDS="amdgpu"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
GENTOO MACHINE ~ #


I installed everything using emerge -1av twm xterm xclock, here's output:

Code:
GENTOO MACHINE ~ # startx                             
hostname: Unknown host                                                                                                                                                  X.Org X Server 1.20.14                                  X Protocol Version 11, Revision 0                       Build Operating System: Linux 5.15.11-gentoo x86_64 Gentoo                                                      Current Operating System: Linux GENTOO MACHINE 5.15.11-gentoo #1 SMP PREEMPT Wed Dec 29 12:47:38 CET 2021 x86_64Kernel command line: BOOT_IMAGE=/vmlinuz-5.15.11-gentoo root=UUID=a9ec68ee-f208-4c5f-9c9d-ed8a881c1663 ro       Build Date: 30 December 2021  06:34:51AM                                                                        Current version of pixman: 0.40.0                               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: "/var/log/Xorg.0.log", Time: Thu Dec 30 08:24:07 2021                                            (==) Using system config directory "/usr/share/X11/xorg.conf.d"                                                 (EE)                                                    Fatal server error:                                     (EE) no screens found(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 "/var/log/Xorg.0.log" for additional information.                        (EE)                                                    (EE) Server terminated with error (1). Closing log file.xinit: giving up                                        xinit: unable to connect to X server: Connection refusedxinit: server error                                     
GENTOO MACHINE ~ #


And .log file:

Code:

[   160.130]
X.Org X Server 1.20.14
X Protocol Version 11, Revision 0
[   160.131] Build Operating System: Linux 5.15.11-gentoo x86_64 Gentoo
[   160.131] Current Operating System: Linux GENTOO MACHINE 5.15.11-gentoo #1 SMP PREEMPT Wed Dec 29 12:47:38 CET 2021 x86_64
[   160.131] Kernel command line: BOOT_IMAGE=/vmlinuz-5.15.11-gentoo root=UUID=a9ec68ee-f208-4c5f-9c9d-ed8a881c1663 ro
[   160.131] Build Date: 30 December 2021  06:34:51AM
[   160.131] 
[   160.131] Current version of pixman: 0.40.0
[   160.131]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   160.131] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   160.131] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Dec 30 08:24:07 2021
[   160.131] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   160.131] (==) No Layout section.  Using the first Screen section.
[   160.131] (==) No screen section available. Using defaults.
[   160.131] (**) |-->Screen "Default Screen Section" (0)
[   160.131] (**) |   |-->Monitor "<default monitor>"
[   160.131] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[   160.131] (==) Automatically adding devices
[   160.131] (==) Automatically enabling devices
[   160.131] (==) Automatically adding GPU devices
[   160.131] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   160.131] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   160.131]    Entry deleted from font path.
[   160.131] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   160.131]    Entry deleted from font path.
[   160.131] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   160.131]    Entry deleted from font path.
[   160.131] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   160.131]    Entry deleted from font path.
[   160.131]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   160.131] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/75dpi/
[   160.131] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   160.131] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   160.131] (II) Loader magic: 0x556ffebd5d00
[   160.131] (II) Module ABI versions:
[   160.131]    X.Org ANSI C Emulation: 0.4
[   160.131]    X.Org Video Driver: 24.1
[   160.131]    X.Org XInput driver : 24.1
[   160.131]    X.Org Server Extension : 10.0
[   160.132] (--) using VT number 7

[   160.132] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   160.134] (--) PCI:*(38@0:0:0) 1002:67df:1da2:e387 rev 239, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xfce00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[   160.134] (II) LoadModule: "glx"
[   160.134] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   160.136] (II) Module glx: vendor="X.Org Foundation"
[   160.136]    compiled for 1.20.14, module version = 1.0.0
[   160.136]    ABI class: X.Org Server Extension, version 10.0
[   160.136] (==) Matched ati as autoconfigured driver 0
[   160.136] (==) Matched modesetting as autoconfigured driver 1
[   160.136] (==) Matched fbdev as autoconfigured driver 2
[   160.136] (==) Matched vesa as autoconfigured driver 3
[   160.136] (==) Assigned the driver to the xf86ConfigLayout
[   160.136] (II) LoadModule: "ati"
[   160.136] (WW) Warning, couldn't open module ati
[   160.136] (EE) Failed to load module "ati" (module does not exist, 0)
[   160.136] (II) LoadModule: "modesetting"
[   160.137] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   160.137] (II) Module modesetting: vendor="X.Org Foundation"
[   160.137]    compiled for 1.20.14, module version = 1.20.14
[   160.137]    Module class: X.Org Video Driver
[   160.137]    ABI class: X.Org Video Driver, version 24.1
[   160.137] (II) LoadModule: "fbdev"
[   160.137] (WW) Warning, couldn't open module fbdev
[   160.137] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   160.137] (II) LoadModule: "vesa"
[   160.137] (WW) Warning, couldn't open module vesa
[   160.137] (EE) Failed to load module "vesa" (module does not exist, 0)
[   160.137] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   160.137] (EE) open /dev/dri/card0: No such file or directory
[   160.137] (WW) Falling back to old probe method for modesetting
[   160.137] (EE) open /dev/dri/card0: No such file or directory
[   160.137] (EE) Screen 0 deleted because of no matching config section.
[   160.137] (II) UnloadModule: "modesetting"
[   160.137] (EE) Device(s) detected, but none match those in the config file.
[   160.137] (EE)
Fatal server error:
[   160.137] (EE) no screens found(EE)
[   160.137] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[   160.137] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   160.137] (EE)
[   160.137] (EE) Server terminated with error (1). Closing log file.


.config file (kernel config) - https://paste.c-net.org/SuburbsTurkeys
emerge --info - https://pastebin.com/BFJWUE8h


Last edited by lesnik2137 on Thu Dec 30, 2021 4:16 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 3:09 pm    Post subject: Reply with quote

lesnik2137,

You are plugging all the bits in and finding that it doesn't work. We need to reduce the problem space to find out why.
Then fix that problem and move onto the next problem, if there is one.
Build on what you know works.

Code:
emerge -1av twm xterm xclock
That will install the startx default programs, without adding them to your world file, so that they will be cleaned later.
Remove display-manager from the default runlevel because we don't want that running.
Reboot, so we are a clean boot to start.
Log in as your normal user.

Run
Code:
startx
When all is well, you will get three xterms and an analogue clock all wrapped up in twm.
If it works, you need to know that twm only uses the primary mouse button.

Once that works, we can move on.

Pastebin the Xor.0.log if it fails.

If you want to test for a permissions issue, test as the root user.
If that works, you have a permissions problem.
The logs will tell what was happening.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 3:19 pm    Post subject: Reply with quote

Thank you for your response - it wasn't permissions issue - I performed everything as root from SSH. I will startx now and let you know what happens asap.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 3:32 pm    Post subject: Reply with quote

lesnik2137,

startx checks that you own the console.
That check will fail if you log in over ssh and X won't start.

I thought you said you fixed the console issue?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 3:36 pm    Post subject: Reply with quote

Well, here have a little bit of problem. I have the same issue when it comes to opening terminal or tty locally - I still cannot see anything else than Loading linux... and Loading initramfs... stuff. Anyway, I am already updating my answer with console output of startx.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 3:57 pm    Post subject: Reply with quote

lesnik2137,

You have a
Code:
[   160.134] (--) PCI:*(38@0:0:0) 1002:67df
GPU, thats a Radeon RX 470/480/570/570X/580/580X/590

Code:
[   160.136] (==) Matched ati as autoconfigured driver 0
[   160.136] (==) Matched modesetting as autoconfigured driver 1
[   160.136] (==) Matched fbdev as autoconfigured driver 2
[   160.136] (==) Matched vesa as autoconfigured driver 3
[   160.136] (==) Assigned the driver to the xf86ConfigLayout

Thats a problem. amdgpu stauld be at the top of the list and its missing.

Code:
[   160.137] (EE) open /dev/dri/card0: No such file or directory
This error means that your kernel is missing Direct Rendering support.
That would stop your console working too.

Please put your entire kernel .config file onto a pastebin. Its far too big for a post.
We also need to see your
Code:
emerge --info
output
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 4:18 pm    Post subject: Reply with quote

I am not sure, but up to this point I thought that I had everything done correctly when it came to drivers, I wasn't even considering that possibility, as I followed https://wiki.gentoo.org/wiki/AMDGPU closeley. But now when I think about it, maybe I actually didn't include some needed option in make menuconfig. I updated my answer with emerge --info output, and .config
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 4:48 pm    Post subject: Reply with quote

Its OK to post replies rather than updating and older post.

Code:
VIDEO_CARDS="amdgpu"
will pull in the xorg user space part of the amdgpu driver.
You need to add radeonsi and update world to get some missing userspace options.

If you don't have it yet,
Code:
emerge linux-firmware
as that will provide the firmware required by your GPU.

A few things about your kernel.

Code:

CONFIG_DRM=y

CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100

CONFIG_DRM_AMDGPU=y
CONFIG_DRM_AMDGPU_SI=y
CONFIG_DRM_AMDGPU_CIK=y
CONFIG_DRM_AMDGPU_USERPTR=y

Is all good stuff.

Turn off
Code:
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_BACKLIGHT=y
They are for Radeon cards made in 19xx and they will stop AMDGPU from working.

Now you get to some choices .... With
Code:
CONFIG_DRM_AMDGPU=y
The firmware must be built into the kernel.
Its not, or it would be listed in
Code:
CONFIG_EXTRA_FIRMWARE="amd-ucode/microcode_amd_fam17h.bin"

There is a lot of it too, about 20 files from memory.

If you flip
Code:
CONFIG_DRM_AMDGPU=y
to be a module, it will toad after root is mounted, then it can read /lib/firmware to find its firmware.
To build the firmware into the kernel you need all of the polaris10 files.

Fix your kernel with
Code:
make menuconfig
not a text editor, update world to get the radeonsi changes, then reboot into your new kernel.

If it doesn't work, check the date/time in
Code:
uname -a
Thats the build date/time of the running kernel.
It should be nowish if the new kernel is in use. Its easy to forget to mount boot for the kernel install.

If there is still no console, pastebin the output of
Code:
dmesg
and your new kernel .config.
The console will use amdgpufb but it needs all the kernel bits to work.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 5:19 pm    Post subject: Reply with quote

okey, so I don't entirely understand what you just said, so let me ask for clarification.

the VIDEO_CARDS="amdgpu" refers to what? I know it's currently part of my /etc/portage/make.conf file, is there any problem with it? Then you mentioned adding radeonsi - and again i am not sure what does it mean? is it package i can install with emerge? Update world refers to emerge command @world parameter i belive.

I already have linux-firmware installed

Kernel config - can you let me know how exactly can I remove those 3 RADEON flags without editing file? I am unable to find it in menumakeconfig.
Also i cannot find CONFIG_DRM_AMDGPU.

Thank you in advance.[/quote]
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1659

PostPosted: Thu Dec 30, 2021 5:30 pm    Post subject: Reply with quote

lesnik2137 wrote:
the VIDEO_CARDS="amdgpu" refers to what? I know it's currently part of my /etc/portage/make.conf file, is there any problem with it? Then you mentioned adding radeonsi - and again i am not sure what does it mean? is it package i can install with emerge? Update world refers to emerge command @world parameter i belive.


It literally means set VIDEO_CARDS="amdgpu radeonsi" in make.conf like it says in the wiki.

lesnik2137 wrote:
Kernel config - can you let me know how exactly can I remove those 3 RADEON flags without editing file? I am unable to find it in menumakeconfig.
Also i cannot find CONFIG_DRM_AMDGPU.


menuconfig has a wonderful search and jump feature if you know the symbol (like CONFIG_). Simply press the / key inside menuconfig and enter the symbol name to search. Then the search results will have a number in parenthesis on the left of an entry like (2). Pressing that number on your keyboard will jump you to that option to change.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 5:45 pm    Post subject: Reply with quote

lesnik2137,

VIDEO_CARDS= has a long history. When it was new, it defined the xorg video drivers to be installed and that was all.
Now its used to choose optional parts of mesa too. That was OK in the early days. There wan sill a one to one correspondence between what went into VIDEO_CARDS= and the support that was installed.

More recently, it got messy. The amdgpu xorg driver requires that mesa be built with radeonsi support as amdgpu appears to be a radeonsi card to mesa.

VIDEO_CARDS="amdgpu" is required but its not enough.
To make it work with Xorg
Code:
VIDEO_CARDS="amdgpu radeonsi"
is needed, so you get the xorg driver and mesa support.


menuconfig has a search option.
Once its running, press / and enter a symbol name fragment. Its not case sensitive and the CONFIG_ is not required.
Try it with amdgpu
All the symbols that contain amdgpu will be listed. To jump to one, press the single digit to the left of the help for that item.
It will look like ...

Code:
 > Search (amdgpu) ──────────────────────────────────────────────────────────────────────────
  ┌─────────────────────────────────── Search Results ────────────────────────────────────┐
  │ Symbol: DRM_AMDGPU [=y]                                                               │ 
  │ Type  : tristate                                                                      │ 
  │ Defined at drivers/gpu/drm/Kconfig:247                                                │ 
  │   Prompt: AMD GPU                                                                     │ 
  │   Depends on: HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && MMU [=y]                      │ 
  │   Location:                                                                           │ 
  │     -> Device Drivers                                                                 │ 
  │ (1)   -> Graphics support                                                             │ 
  │ Selects: FW_LOADER [=y] && DRM_KMS_HELPER [=y] && DRM_SCHED [=y] && DRM_TTM [=y] && D │ 
  │                                                                                       │ 
  │                                                                                       │ 
  │ Symbol: DRM_AMDGPU_CIK [=n]                                                           │ 
  │ Type  : bool                                                                          │ 
  │ Defined at drivers/gpu/drm/amd/amdgpu/Kconfig:15                                      │ 
  │   Prompt: Enable amdgpu support for CIK parts                                         │ 
  │   Depends on: HAS_IOMEM [=y] && DRM_AMDGPU [=y]                                       │ 
  │   Location:                                                                           │ 
  │     -> Device Drivers                                                                 │ 
  │       -> Graphics support                                                             │ 
  │ (2)     -> AMD GPU (DRM_AMDGPU [=y])                                                  │ 
  │                                                                                       │ 
  │                                                                                       │ 
  │ Symbol: DRM_AMDGPU_SI [=n]                                                            │ 
  │ Type  : bool                                                                          │ 
  │ Defined at drivers/gpu/drm/amd/amdgpu/Kconfig:2                                       │ 
  │   Prompt: Enable amdgpu support for SI parts                                          │ 
  │   Depends on: HAS_IOMEM [=y] && DRM_AMDGPU [=y]                                       │ 
  │   Location:                                                                           │ 
  │     -> Device Drivers                                                                 │ 
  │       -> Graphics support                                                             │ 
  │ (3)     -> AMD GPU (DRM_AMDGPU [=y])                                                  │ 
  │                                                                                       │ 
  │                                                                                       │ 
  │ Symbol: DRM_AMDGPU_USERPTR [=y]                                                       │ 
  │ Type  : bool                                                                          │ 
  │ Defined at drivers/gpu/drm/amd/amdgpu/Kconfig:27                                      │ 
  │   Prompt: Always enable userptr write support                                         │ 
  │   Depends on: HAS_IOMEM [=y] && DRM_AMDGPU [=y] && MMU [=y]                           │ 
  │   Location:                                                                           │ 
  │     -> Device Drivers                                                                 │ 
  │       -> Graphics support                                                             │ 
  │ (4)     -> AMD GPU (DRM_AMDGPU [=y])                                                  │ 
  │ Selects: HMM_MIRROR [=y] && MMU_NOTIFIER [=y]                                         │ 
  │ Selected by [n]:                                                                      │ 
  │   - HSA_AMD [=n] && HAS_IOMEM [=y] && DRM_AMDGPU [=y] && (X86_64 [=y] || ARM64 || PPC │ 

│ │
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 6:13 pm    Post subject: Reply with quote

Thank you for your tips! They were helpful now for gathering information, but I am sure I will use it in future as well. I didn't know I can search in make menuconfig, or that VIDEO_CARDS accept multiple arguments

dmesg: https://paste.c-net.org/NailsWired
new kernel: https://paste.c-net.org/CompressCoolers

I recompiled this kernel again and booted into it.

And there still isn't terminal visible on monitor. I needed to SSH again.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 6:25 pm    Post subject: Reply with quote

lesnik2137,

Your dmesg generates a JSON error here.

SSH in, install wgetpaste
Run
Code:
wgetpaste -c 'dmesg'
and tell the URL you get back.

You have turned off all the framebuffer devices.
Code:
# CONFIG_FB is not set
That menu item controls them all.

The RADEON settings that needed to be off are inside that menu.
You should keep EFI framebuffer, VESA Framebuffer and Simple Framebuffer.

Simple Framebuffer was hidden but I don't know why yet. Don't worry about that right now.

-- edit --

View page source works for your dmesg.

-- edit more --

Code:
[    2.222587] EXT4-fs (nvme0n1p4): INFO: recovery required on readonly filesystem
[    2.222589] EXT4-fs (nvme0n1p4): write access will be enabled during recovery
[    2.250916] EXT4-fs (nvme0n1p4): recovery complete
[    2.252550] EXT4-fs (nvme0n1p4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.


Use the
Code:
shutdown -h now
command as root to do a clean shutdown.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 7:01 pm    Post subject: Reply with quote

Doing changes in kernel that you mentioned in your last post did it. I saw cli output, and surprisingly my KDE loaded as well. Thank you very much NeddySeagoon for guidance. I feel like 12 years old me, 5 years ago after installing my first ubuntu on separate partition to workaround parental time limit control, or 15 year old me installing debian with custom DE, to learn coding more efficiently. It's only beginning of my adventure with gentoo, and hopefully when I grow enough I will be able to help others here, on this from or maybe on other forums. I will also take your advice about making backups - as soon as I configure my gentoo I am going to save diskimage of it on network drive. Also if you think I should post anything, that may be helpful for someone in the future stumbling upon this thread, let me know.

Regards, lesnik
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 7:08 pm    Post subject: Reply with quote

lesnik2137,

Well done!

We should check that all is well with KDE and your console. Trust but verify :)
Please pastebin the content of your Xorg.0.log and the output of dmesg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 7:20 pm    Post subject: Reply with quote

Sure, but since i already have DE on PC i want to perform that action through browser. Let me quickly compile and install it
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 7:46 pm    Post subject: Reply with quote

lesnik2137,

OK :)

One more thing you need to know about Gentoo. Its not really a distro,
Gentoo is the portage package manager and the ::gentoo repo. That's all. Everything else is $UPSTREAM.
Gentoo is a toolkit that you use to design and install your own distro. All Gentoo installs are different.
We all use the same tools to build our own distros.

What this means is that you have to make a lot of the design decisions for your Gentoo that binary distros have already made and hidden for you.
That can be a bit of a shock sometimes.

The good news is that if you don't like your distro design, you can get from where you are to where you want to be by building and removing things.
It's mostly CPU time to do the builds. There is no need to reinstall.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 8:06 pm    Post subject: Reply with quote

Well, I always considered gentoo to be a distro, since that's what even wikipedia says https://en.wikipedia.org/wiki/Gentoo_Linux, but when now I think about it, I think you are right. I install any kind of firmware/software I wanted before arriving where I am now. And still I can install/reinstall/uninstall things, and that feels amazing, I see it as opportunity to dive even deeper into computers and stuff. Thank you once again!

Here's dmesg output https://pastebin.com/m1yTNAc8
Xorg.0.log: https://pastebin.com/iLFNhPL9
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Dec 30, 2021 8:28 pm    Post subject: Reply with quote

lesnik2137,

First, dmesg.
Code:
[    2.744693] [drm] amdgpu kernel modesetting enabled.
[    2.744729] checking generic (e0000000 7f0000) vs hw (e0000000 10000000)
[    2.744730] fb0: switching to amdgpu from EFI VGA
That's what we wanted to see and
Code:
[    3.448168] amdgpu 0000:26:00.0: [drm] fb0: amdgpudrmfb frame buffer device


If you want to use WiFi, you need to fix
Code:
[    0.484559] Loading firmware: regulatory.db
[    0.485031] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

It will probably still work but it will be suboptimal.
That's the list of permitted channels and and transmit powers in the various regions of the world.
It's a firmware file you need to build into the kernel.

Code:
[    2.231758] EXT4-fs (nvme0n1p4): INFO: recovery required on readonly filesystem
[    2.231760] EXT4-fs (nvme0n1p4): write access will be enabled during recovery
[    2.266097] EXT4-fs (nvme0n1p4): recovery complete
Shutdown properly. Sometime soon, your root filesystem will be corrupted.

Xorg.0.log

Code:

[    19.835] (II) xfree86: Adding drm device (/dev/dri/card0)
...
[    19.853] (==) Matched amdgpu as autoconfigured driver 0
[    19.853] (==) Matched ati as autoconfigured driver 1
[    19.853] (==) Matched modesetting as autoconfigured driver 2
[    19.853] (==) Matched fbdev as autoconfigured driver 3
[    19.853] (==) Matched vesa as autoconfigured driver 4
there is amdgpu at the top of the list then all the line- that show it starting
Code:
[    19.949] (II) AMDGPU(0): glamor X acceleration enabled on Radeon RX 570 Series (POLARIS10, DRM 3.42.0, 5.15.11-gentoo, LLVM 13.0.0)
[    19.949] (II) AMDGPU(0): glamor detected, initialising EGL layer.


That all looks good. :)

Well done!

On to your next Gentoo learning opportunity. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 8:45 pm    Post subject: Reply with quote

Thank you once again for confirmation! I didn't included WIFI support on purpose, as I will probably never use it, I don't even have any wireless NIC. And I think everything is okey with my wired connection. THANK YOU ONCE AGAIN UWU <3 :D
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Thu Dec 30, 2021 10:40 pm    Post subject: Reply with quote

Well, it's me again. I have weird problem, referring to the same setup that this post is all about. When I choose my gentoo from GRUB menu, it boots, I see all the cli output that everything is starting, and then blackscreen with only underscore in top left corner. It seems very werid to me, as I didn't do anything serious when booted - installed basic stuff like firefox, kde kcalc, libre office etc.

I am very suprised by this issue, so please let me know what I am supposed to do :(
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Fri Dec 31, 2021 9:50 am    Post subject: Reply with quote

I just thought of something I did before it stopped working. I had to recomplie kernel to make sound work - and it did, I booted again, openned firefox to test sound on youtube. And it worked fine. Then, I decided I want to have libre-office, so I started compiling, and then I stopped emerge command with ctrl+c and decided to install libreoffice -bin instead of compiling everything. Maybe it caused issue somehow... I also added some flags to /etc/portage/make.conf

I can still connect through SSH, I can still see all stuff about loading, after choosing option from GRUB, but then i see just blackscreen with underscore on it. And I cannot go into tty.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Fri Dec 31, 2021 11:04 am    Post subject: Reply with quote

lesnik2137,

That sounds like it should be when your display manager starts ... or should start.
You didn't describe anything that should affect it.

Are you shutting down properly now or do you still throw away the write cache, rather than flushing caches to disk and unmounting your filesystems properly?
That can cause all sorts of errors.

We need to look at the parts, to see which part isn't working then work on the broken bit.
Take display manager out of the default runlevel and reboot to the shell.
Code:
shutdown -r now
will do the reboot.

At the command line,
Code:
startx
will run the default. That's Xorg with three xterms, an analogue clock, wrapped in twm.
If that fails, pastebin dmesg and the Xorg.0.log file because its either your kernel or Xorg.
Do you still have twm xterm and xclock installed?

If that works, its your display manager or KDE.
Which display manager did you use?

You say you rebuilt the kernel. As sound works, we know that the right kernel binary is in use but did you install the modules after the kernel rebuild?
The kernel and its modules must match, or the modules won't load. That includes the amdgpu driver required for Xorg.
Its also used for your console if its there, if not, the kernel will use EFI framebuffer.
dmesg will tell that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Fri Dec 31, 2021 11:31 am    Post subject: Reply with quote

I rebooted using shutdown -r now, and the same happened (except now underscore was blinking for some reason, which i find pretty weird). I tried startx via SSH and it crashed, with I belive the same output.

Here's dmesg: https://paste.c-net.org/CappedMalone
Here are xorg logs: https://paste.c-net.org/TiresomeLonnie
Back to top
View user's profile Send private message
lesnik2137
n00b
n00b


Joined: 30 Dec 2021
Posts: 46

PostPosted: Fri Dec 31, 2021 12:54 pm    Post subject: Reply with quote

Oh, I forgot to mention but I used sddm as my display manager - https://wiki.gentoo.org/wiki/SDDM
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