PDA

View Full Version : Kali having Display/Radeon Error and automatically signing off



sz3cur3
2022-07-26, 09:01
Hi Guys

I am getting radeon error as below, and the kali system automatically signoff losing any unsaved work. And need to start from again. Browser tabs can be restored when i sign-back and come, nothing more.
The system freezes for 2 to 3 seconds displaying the below error messages in black screen and then signs-off.

Additional info: I am using dual monitors. Not sure is it related to that.

Its very annoying and happens very frequently.

Any thoughts to solve the issue?

Jul 25 20:41:06 kali kernel: DMAR: [Firmware Bug]: No firmware reserved region can cover this RMRR [0x0000000079800000-0x000000007bffffff], contact BIOS vendor for fixes
Jul 25 20:41:06 kali kernel: psmouse serio1: synaptics: Unable to query device: -5
Jul 25 20:41:09 kali kernel: debugfs: File 'radeon_ring_gfx' in directory '1' already present!
Jul 25 20:41:09 kali kernel: debugfs: File 'radeon_ring_cp1' in directory '1' already present!
Jul 25 20:41:09 kali kernel: debugfs: File 'radeon_ring_cp2' in directory '1' already present!
Jul 25 20:41:09 kali kernel: debugfs: File 'radeon_ring_dma1' in directory '1' already present!
Jul 25 20:41:09 kali kernel: debugfs: File 'radeon_ring_dma2' in directory '1' already present!
Jul 25 20:41:29 kali kernel: debugfs: File 'radeon_ring_gfx' in directory '1' already present!
Jul 25 20:41:29 kali kernel: debugfs: File 'radeon_ring_cp1' in directory '1' already present!
Jul 25 20:41:29 kali kernel: debugfs: File 'radeon_ring_cp2' in directory '1' already present!
Jul 25 20:41:29 kali kernel: debugfs: File 'radeon_ring_dma1' in directory '1' already present!
Jul 25 20:41:29 kali kernel: debugfs: File 'radeon_ring_dma2' in directory '1' already present!
Jul 25 20:42:09 kali kernel: debugfs: File 'radeon_ring_gfx' in directory '1' already present!
Jul 25 20:42:09 kali kernel: debugfs: File 'radeon_ring_cp1' in directory '1' already present!
Jul 25 20:42:09 kali kernel: debugfs: File 'radeon_ring_cp2' in directory '1' already present!
Jul 25 20:42:09 kali kernel: debugfs: File 'radeon_ring_dma1' in directory '1' already present!
Jul 25 20:42:09 kali kernel: debugfs: File 'radeon_ring_dma2' in directory '1' already present!
Jul 25 20:42:10 kali pulseaudio[918]: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.service not found.
Jul 25 20:42:48 kali pulseaudio[918]: Error opening PCM device front:0: No such file or directory
Jul 25 20:42:48 kali pulseaudio[918]: Error opening PCM device iec958:1: No such file or directory
Jul 25 20:42:48 kali pulseaudio[918]: Error opening PCM device front:0: No such file or directory
Jul 25 20:42:50 kali kernel: debugfs: File 'radeon_ring_gfx' in directory '1' already present!
Jul 25 20:42:50 kali kernel: debugfs: File 'radeon_ring_cp1' in directory '1' already present!
Jul 25 20:42:50 kali kernel: debugfs: File 'radeon_ring_cp2' in directory '1' already present!
Jul 25 20:42:50 kali kernel: debugfs: File 'radeon_ring_dma1' in directory '1' already present!
Jul 25 20:42:50 kali kernel: debugfs: File 'radeon_ring_dma2' in directory '1' already present!
Jul 25 20:42:51 kali pulseaudio[1008]: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.service not found.
Jul 25 21:14:39 kali kernel: debugfs: File 'radeon_ring_gfx' in directory '1' already present!
Jul 25 21:14:39 kali kernel: debugfs: File 'radeon_ring_cp1' in directory '1' already present!
Jul 25 21:14:39 kali kernel: debugfs: File 'radeon_ring_cp2' in directory '1' already present!
Jul 25 21:14:39 kali kernel: debugfs: File 'radeon_ring_dma1' in directory '1' already present!
Jul 25 21:14:39 kali kernel: debugfs: File 'radeon_ring_dma2' in directory '1' already present!
Jul 25 23:14:51 kali kernel: debugfs: File 'radeon_ring_gfx' in directory '1' already present!
Jul 25 23:14:51 kali kernel: debugfs: File 'radeon_ring_cp1' in directory '1' already present!
Jul 25 23:14:51 kali kernel: debugfs: File 'radeon_ring_cp2' in directory '1' already present!



System Details as below:

OS: Kali GNU/Linux Rolling x86_64
.....''''..........,:ld; Host: Inspiron 5459
.';;;:::;,,.x, Kernel: 5.18.0-kali2-amd64
..'''. 0Xxoc:,. ... Uptime: 8 hours, 16 mins
.... ,ONkc;,;cokOdc',. Packages: 2924 (dpkg)
. OMo ':ddo. Shell: zsh 5.9
dMc :OO; Resolution: 1920x1080, 1080x1920
0M. .:o. DE: Xfce 4.16
;Wd WM: Xfwm4
;XO, WM Theme: Kokodi
,d0Odlc;,.. Theme: Kali-Dark [GTK2/3]
..',;:cdOOd::,. Icons: Flat-Remix-Blue-Dark [GTK2/3]
.:d;.':;. Terminal: qterminal
'd, .' Terminal Font: FiraCode 10
;l .. CPU: Intel i7-6500U (4) @ 3.100GHz
.o GPU: AMD ATI Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile
c GPU: Intel Skylake GT2 [HD Graphics 520]
.' Memory: 3696MiB / 15708MiB

Fred Sheehan
2022-07-30, 02:09
disable the in built intel GPU and force it to use only the AMD its probably a GPU switching error, Linux isn't good at that

sz3cur3
2022-08-01, 09:38
Thanks for giving a insight to the error.

Tried to disable builtin Intel, in grub as i915.modeset=0. Then unable to boot to GUI. Revert back.

Instead disabled AMD ( In grub added, amd.radeon=0).

Issue remains with builtin intel only ( while amd was disabled)

Doubt: I hadn't installed additional graphics card in my laptop (in this case AMD), hope its showing from my Docking station DELL 3100.

xrandr list while AMD Disabled as below:

└─$ xrandr --listproviders
Providers: number : 5
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 4 name:modesetting
Provider 1: id: 0x13a cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 2: id: 0x119 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 3: id: 0xf8 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 4: id: 0xd6 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting


Xrandr with AMD enabled:
└─$ xrandr --listproviders
Providers: number : 6
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 5 name:modesetting
Provider 1: id: 0x158 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 2: id: 0x137 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 3: id: 0x116 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 4: id: 0xf5 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 5: id: 0xd4 cap: 0xd, Source Output, Source Offload, Sink Offload crtcs: 0 outputs: 0 associated providers: 1 name:HAINAN @ pci:0000:01:00.0

Tried xrandr offloadsink to set all providers to use provider 5: only for provider 5 to provider 0 working. rest of them error as below;

┌──(szecu㉿kali)-[~]
└─$ xrandr --setprovideroffloadsink 0xd4 0xf5
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 34 (RRSetProviderOffloadSink)
Value in failed request: 0xf5
Serial number of failed request: 20
Current serial number in output stream: 21

┌──(szecu㉿kali)-[~]
└─$ xrandr --setprovideroffloadsink 5 4
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 34 (RRSetProviderOffloadSink)
Value in failed request: 0xf5
Serial number of failed request: 20
Current serial number in output stream: 21

┌──(szecu㉿kali)-[~]
└─$ xrandr --setprovideroffloadsink 5 0

┌──(szecu㉿kali)-[~]
└─$

Is there any other way to disable builtin Intel card and use AMD permanently. Thanks.

Fred Sheehan
2022-08-02, 00:00
There is a driver in the Kali repositories;

sudo apt install xserver-xorg-video-amdgpu

And the switcheroo app to change gpu's for you;

sudo apt install switcheroo-control