One more "X won't start" issue (X cannot run in framebuffer)

Help with issues regarding installation of Debian

One more "X won't start" issue (X cannot run in framebuffer)

Postby EIKA » 2021-01-01 16:47

Hi all!

My issue might look simple for Linux gurus. And there are a lot of similar threads here on board and other boards. But I spent 2 days working on it, and still no progress :shock:

Could you please, guys, look into and help me? I believe that we will be able solve this issue.

I installed Debian 10.7 from "firmware" distributive (at first I tried "netinstall" one, but lately switched to distributive that includes non-free firmware). I chose Desktop environment at tasksel tool at installation stage, as well as KDE Plasma. But system starts on console mode. And if I try to run it by entering X or startx, I am getting a lot of errors:

Code: Select all
Fatal server error:
X cannot run in framebuffer mode
Please specify BusIDs for all framebuffer devices.
xinit: saving up
xinit: Server terminated with error (1).
xinit: Unable to connect to X server: connection refused
xinit: server error

I googled a lot and found out 3 main directions for this or similar issue:

1. Installing ATI non-free drivers ( accordingly to this manual https://wiki.debian.org/AMDGPUDriverOnStretchAndBuster2 ; played with 20.45 version).
2. Installing free drivers ( accordingly this manual viewtopic.php?f=17&t=146093#p720067 )
3. Updating kernel headers.
4. Installing xserver-xorg-video-openchrome package.

But sadly nothing helped. But I am not Linux specialist and probably can do something wrong. I need your help and guidance, please.

Here is how exactly I did method # 1 (installation of ATI proprietary drivers):

Code: Select all
apt-get install linux-headers-$(uname -r)
tar -xvf amdgpu-pro-20.45-1164792-ubuntu-20.04.tar.xz
cd amdgpu-pro-20.45-1164792-ubuntu-20.04
dpkg -i amdgpu-dkms-firmware_*.deb
dpkg -i amdgpu-core_*.deb amdgpu-dkms_*.deb

Also, it can be important, I skipped patching. Because patch tool failed (it was unable to locate target file "amdgpu_bios.c"). Even after cd to /usr/src/amdgpu* dir.

Here is more data you will probably need:

VGA adapter data:

Code: Select all
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Picasso [1002:15d8] (rev ce)

So it’s AMD Athlon Gold 3150U CPU (codename "Picasso") containing GPU (probably Vega 3). Under Windows GPU recognizes as AMD Radeon 530 Series / AMD Radeon Graphics.

And here is Xorg logs taken from brand new / just installed system (recorded BEFORE installing any drivers / before any actions taken): https://pastebin.com/MWqEEYn2

Now I am ready to start from scratch. I re-installed Debian OS 10.7 and ready for new experiments.
EIKA
 
Posts: 16
Joined: 2021-01-01 15:17

Re: One more "X won't start" issue (X cannot run in framebuf

Postby EIKA » 2021-01-01 18:13

And here is method #5, from Debian's ATI How To: https://wiki.debian.org/AtiHowTo

Code: Select all
# apt purge *nvidia*
# apt update
# apt-get install firmware-linux-nonfree libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all

deb source was set as

Code: Select all
deb http://deb.debian.org/debian buster main contrib non-free

OS was restarted before test.

And here is result of execution startx (black screen of death):

http://netfileshare.com/share/boards/de ... X-fail.jpg
Last edited by Head_on_a_Stick on 2021-01-01 19:15, edited 1 time in total.
Reason: massive image replaced with plain URL, please consider forum users with limited bandwidth.
EIKA
 
Posts: 16
Joined: 2021-01-01 15:17

Re: One more "X won't start" issue (X cannot run in framebuf

Postby EIKA » 2021-01-01 18:56

And here is result of execution lspci -nnk | grep -i vga -A3 | grep 'in use' command:

Code: Select all
[  494.184923] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: ring 0 test failed (scratch(0xC040)=0xFFFFFFFF)
[  494.184987] [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <gfx_v8_0> failed -22
[  494.185049] [drm:amdgpu_device_resume [amdgpu]] *ERROR* amdgpu_device_ip_resume failed (-22).
[  499.618941] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xFFFFFFFF)
[  500.049189] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xFFFFFFFF)
[  500.479439] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xFFFFFFFF)
[  500.909670] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xFFFFFFFF)
[  501.339885] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xFFFFFFFF)
[  501.770141] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xFFFFFFFF)
[  502.200398] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xFFFFFFFF)
[  502.630714] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xFFFFFFFF)
[  503.583482] [drm:amdgpu_device_suspend [amdgpu]] *ERROR* amdgpu asic reset failed
EIKA
 
Posts: 16
Joined: 2021-01-01 15:17

Re: One more "X won't start" issue (X cannot run in framebuf

Postby Head_on_a_Stick » 2021-01-01 19:15

Picasso cards need the kernel & firmware-amd-graphics packages from the beowulf-backports repository. Read the "Frequently Asked Questions" thread in the HowTo section, post back here if you can't figure it out yourself.

EDIT: don't bother with AMDGPU-PRO, even AMD only recommend that for their "Pro" series cards and the warning has been placed on that Debian wiki page for good reason. I only hope they remove that nonsense soon.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13041
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: One more "X won't start" issue (X cannot run in framebuf

Postby EIKA » 2021-01-01 19:28

Head_on_a_Stick,

Thanks for your reply. I believe you're talking about this thread: viewtopic.php?f=16&t=142974

Bust what should I do after the clean install of "non-free" distributive?

If I got you right, I must change repository to:

Code: Select all
deb http://deb.debian.org/debian buster-backports main contrib non-free
deb-src http://deb.debian.org/debian buster-backports main contrib non-free

And then?

Code: Select all
# apt update

But what's else?
EIKA
 
Posts: 16
Joined: 2021-01-01 15:17

Re: One more "X won't start" issue (X cannot run in framebuf

Postby Head_on_a_Stick » 2021-01-01 19:33

EIKA wrote:What should I do?

As root:
Code: Select all
tee -a /etc/apt/sources.list <<<'deb https://deb.debian.org/debian buster-backports main contrib non-free'
apt update
apt install -t buster-backports linux-image-amd64 firmware-amd-graphics
reboot
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13041
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: One more "X won't start" issue (X cannot run in framebuf

Postby EIKA » 2021-01-01 19:49

Goddamn!

Thank you very much. You saved me.

IT WORKS!
EIKA
 
Posts: 16
Joined: 2021-01-01 15:17


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable