Monitor rotation crashes X-server after latest update

After recent update, I am unable to set rotation from display settings. The X-server crashes:

77.782] (II) RADEON(0): Allocate new frame buffer 6400x2280 
77.784] (II) RADEON(0): VRAM usage limit set to 133074K 
77.786] (EE) 
77.786] (EE) Backtrace: 
77.786] (EE) 0: /usr/bin/Xorg.bin (xorg_backtrace+0x85) [0x55c918ca6875] 
77.786] (EE) 1: /usr/bin/Xorg.bin (0x55c918ad0000+0x1d8375) [0x55c918ca8375] 
77.786] (EE) 2: /lib64/libc.so.6 (0x7fa29273e000+0x56430) [0x7fa292794430] 
77.786] (EE) 
77.786] (EE) Segmentation fault at address 0x0 
77.786] (EE) 

Fatal server error:
77.786] (EE) Caught signal 11 (Segmentation fault). Server aborting
77.786] (EE)
77.786] (EE)

[FONT=monospace]My graphics setup:
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X] vendor: PC Partner Limited
driver: radeon v: kernel alternate: amdgpu bus-ID: 05:00.0 chip-ID: 1002:683d class-ID: 0300
Display: x11 server: X.org 1.21.1.1 compositor: kwin_x11 driver: loaded: ati,radeon

It looks like same issue reported in:

https://forum.manjaro.org/t/after-update-kde-changing-the-display-to-portrait-mode-makes-the-system-crash/91561/5
https://bugs.kde.org/show_bug.cgi?id=446026

[/FONT]Anybody facing same issue in TW?

Thanks!

With similar GPU, I cannot reproduce:

# inxi -ISy
System:
  Host: fi965 Kernel: 5.14.14-3-default x86_64 bits: 64
  Desktop: KDE Plasma 5.23.3 Distro: openSUSE Tumbleweed 20211124
Info:
  Processes:...inxi: 3.3.09
# inxi -Gayz
Graphics:
  **Device**-1: AMD Oland [Radeon HD 8570 / R5 430 OEM / R7 240/340 / Radeon 520
  OEM]
  vendor: Dell **driver: amdgpu** v: kernel alternate: radeon bus-ID: 01:00.0
  chip-ID: 1002:6611 class-ID: 0300
  **Display**: x11 server: X.Org 1.21.1.1 compositor: kwin_x11 **driver:**
  **loaded: modesetting** display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3760x1920 s-dpi: 120 s-size: 795x406mm (31.3x16.0")
  s-diag: 893mm (35.1")
  Monitor-1: DP-1 res: 2560x1440 hz: 60 dpi: 109 size: 598x336mm (23.5x13.2")
  diag: 686mm (27")
  **Monitor-2: DVI-I-1 res: 1200x1920** hz: 60
  OpenGL: renderer: AMD Radeon HD 8500 Series (OLAND DRM 3.42.0
  5.14.14-3-default LLVM 13.0.0)
  v: 4.6 Mesa 21.3.0 direct render: Yes
#

Maybe your problem is the old technology Radeon DDX display driver that I’m not using. See this driver primer for more info. I’m going to try again with a slightly older Radeon GPU, as this one is using the amdgpu kernel device driver.

My older Radeon works fine with IceWM and TDE:

# inxi -Sy
System:
  Host: gx78b Kernel: 5.14.14-3-default x86_64 bits: 64
  Desktop: Trinity R14.0.11 Distro: openSUSE Tumbleweed 20211124
# inxi -Gayz
Graphics:
  Device-1: AMD Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] vendor: Dell
  driver: radeon v: kernel bus-ID: 01:00.0 chip-ID: 1002:6779 class-ID: 0300
  Display: x11 server: X.Org 1.21.1.1 driver: loaded: modesetting
  unloaded: fbdev,vesa alternate: ati display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3760x1920 s-dpi: 120 s-size: 795x406mm (31.3x16.0")
  s-diag: 893mm (35.1")
  Monitor-1: DP-1 res: 2560x1440 hz: 60 dpi: 109 size: 598x336mm (23.5x13.2")
  diag: 686mm (27")
  Monitor-2: DVI-I-1 res: 1200x1920 hz: 60
  OpenGL: renderer: AMD CAICOS (DRM 2.50.0 / 5.14.14-3-default LLVM 13.0.0)
  v: 3.3 Mesa 21.3.0 compat-v: 3.1 direct render: Yes
#

However when I try to run a Plasma session, I see the lightbulb splash for a bit, then the screen turns black with movable mouse pointer, and nothing more happens until I Ctrl-Alt-BS. This comes from dmesg without trying to rotate a display:

 2053.466462] [drm:btc_dpm_set_power_state [radeon]] *ERROR* rv770_restrict_performance_levels_before_switch failed
 2120.428969] [drm:btc_dpm_set_power_state [radeon]] *ERROR* rv770_restrict_performance_levels_before_switch failed
 2145.231211] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2145.231261] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2150.339193] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2150.339231] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2155.355174] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2155.355201] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2160.359155] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2160.359187] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2160.359215] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C08A (len 1126, WS 0, PS 0) @ 0xC11C
 2165.363137] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2165.363166] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2170.367119] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2170.367148] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2170.367176] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C08A (len 1126, WS 0, PS 0) @ 0xC41A
 2175.451100] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2175.451129] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2180.455081] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2180.455110] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2185.463058] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
 2185.463087] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C9CA (len 62, WS 0, PS 0) @ 0xC9E6
 2185.463115] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C08A (len 1126, WS 0, PS 0) @ 0xC11C

Tail of journal has this:

Nov 26 01:16:32 gx78b startplasma-x11[6597]: "kapplymousetheme" ("breeze_cursors", "24") exited with code 255
Nov 26 01:16:32 gx78b startplasma-x11[6597]: Skipping syncing of environment variable  "BASH_FUNC_mc%%" as name contains unsupported characters
Nov 26 01:16:32 gx78b startplasma-x11[6597]: Skipping syncing of environment variable  "BASH_FUNC_mc%%" as name contains unsupported characters
Nov 26 01:16:32 gx78b systemd[1684]: Reloading.
Nov 26 01:16:33 gx78b kcminit_startup[6701]: Initializing  "kcm_style" :  "kcminit_style"
Nov 26 01:16:33 gx78b kcminit_startup[6701]: QFile::copy: Empty or null file name
Nov 26 01:16:33 gx78b plasma_session[6697]: org.kde.plasma.session: process job  "kcminit_startup" finished with exit code  0
Nov 26 01:16:33 gx78b dbus-daemon[1924]: [session uid=0 pid=1924] Activating via systemd: service name='org.kde.kglobalaccel' unit='plasma-kglobalaccel.service' requested by ':1.77' (uid=0>
Nov 26 01:16:33 gx78b systemd[1684]: Starting KDE Global Shortcuts Server...
Nov 26 01:16:33 gx78b dbus-daemon[1924]: [session uid=0 pid=1924] Successfully activated service 'org.kde.kglobalaccel'
Nov 26 01:16:33 gx78b systemd[1684]: Started KDE Global Shortcuts Server.
Nov 26 01:16:33 gx78b kwin_x11[6714]: Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sha>
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5089:46: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5091:48: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5093:48: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5097:47: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5099:46: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5107:48: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5111:46: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5113:46: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5117:45: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:33 gx78b kwin_x11[6714]: kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5120:46: this compose sequence is a duplicate of another; skipping line
Nov 26 01:16:34 gx78b ksmserver[6726]: Qt: Session management error: networkIdsList argument is NULL
Nov 26 01:16:34 gx78b plasma_session[6697]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop" ("/usr/lib64/libexec/polkit-k>
Nov 26 01:16:34 gx78b plasma_session[6697]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/org.kde.plasmashell.desktop" ("/usr/bin/plasmashell")
Nov 26 01:16:34 gx78b plasma_session[6697]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/xembedsniproxy.desktop" ("/usr/bin/xembedsniproxy")
Nov 26 01:16:34 gx78b plasma_session[6697]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/gmenudbusmenuproxy.desktop" ("/usr/bin/gmenudbusmenuproxy")
Nov 26 01:16:34 gx78b polkit-kde-authentication-agent-1[6731]: New PolkitAgentListener  0x561999788200
Nov 26 01:16:34 gx78b polkit-kde-authentication-agent-1[6731]: Adding new listener  PolkitQt1::Agent::Listener(0x561999712400) for  0x561999788200
Nov 26 01:16:34 gx78b polkit-kde-authentication-agent-1[6731]: Listener online
Nov 26 01:16:34 gx78b polkitd[3627]: Registered Authentication Agent for unix-session:18 (system bus name :1.170 [/usr/lib64/libexec/polkit-kde-authentication-agent-1], object path /org/kd>
Nov 26 01:16:34 gx78b polkit-kde-authentication-agent-1[6731]: Authentication agent result: true
Nov 26 01:16:34 gx78b kwin_x11[6714]: kwin_core: XCB error: 10 (BadAccess), sequence: 824, resource id: 1839, major code: 142 (Composite), minor code: 2 (RedirectSubwindows)
Nov 26 01:16:34 gx78b plasmashell[6733]: Aborting shell load: The activity manager daemon (kactivitymanagerd) is not running.
Nov 26 01:16:34 gx78b plasmashell[6733]: If this Plasma has been installed into a custom prefix, verify that its D-Bus services dir is known to the system for the daemon to be activatable.
Nov 26 01:16:34 gx78b plasmashell[6733]: starting invalid corona "org.kde.plasma.desktop"
Nov 26 01:16:38 gx78b kernel: perf: interrupt took too long (2513 > 2500), lowering kernel.perf_event_max_sample_rate to 79500
Nov 26 01:17:02 gx78b kwin_x11[6714]: kwin_core: XCB error: 152 (BadDamage), sequence: 2730, resource id: 16777262, major code: 143 (DAMAGE), minor code: 3 (Subtract)
Nov 26 01:17:02 gx78b kwin_x11[6714]: kwin_core: XCB error: 152 (BadDamage), sequence: 2734, resource id: 16777263, major code: 143 (DAMAGE), minor code: 3 (Subtract)

This to me looks unrelated to the OP problem. Since I don’t normally try to use Plasma on this installation, and don’t see any evidence of segfault, I’m not going to pursue this. Instead I’m going to purge Plasma from it, and remain happy with TDE.

Not reproducing here on a yet older Radeon:

# cat out
# inxi -SIy
System:
  Host: big31 Kernel: 5.14.14-3-default x86_64 bits: 64
  Desktop: KDE **Plasma **5.23.3 Distro: openSUSE Tumbleweed 20211124
Info:...Shell: Bash inxi: 3.3.09
# inxi -Gayz
Graphics:
  **Device**-1: AMD RV620 PRO [Radeon HD 3470] vendor: Dell C120D **driver: radeon**
  v: kernel bus-ID: 01:00.0 chip-ID: 1002:95c0 class-ID: 0300
  **Display:** x11 server: X.Org 1.21.1.1 compositor: kwin_x11 **driver:**
  **loaded: modesetting** unloaded: fbdev,vesa alternate: ati display-ID: :0
  screens: 1
  Screen-1: 0 s-res: 3640x2560 s-dpi: 120 s-size: 770x541mm (30.3x21.3")
  s-diag: 941mm (37")
  Monitor-1: DP-1 res: 2560x1440 hz: 60 dpi: 109 size: 598x336mm (23.5x13.2")
  diag: 686mm (27")
  **Monitor-2**: DP-2 res: **1080x2560** hz: 60
  OpenGL: renderer: AMD RV620 (DRM 2.50.0 / 5.14.14-3-default LLVM 13.0.0)
  v: 3.3 Mesa 21.2.5 compat-v: 3.0 direct render: Yes
#

Earlier I forgot to mention I do not use KScreen to configure my displays. I do it globally via a startup script with xrandr. You might wish to try disabling KScreen and trying xrandr. If that works for you, it’s definitely a KDE issue.

Thank you for the response!

Ok, so I rebuild the driver from source (xf86-video-ati) after applying a fix and copied over the new .so to system path. Now I am able to rotate the monitor.

Steps followed:

  1. Download xf86-video-ati-19.1.0 src.The directory contains 2 patches which will help to build
  2. Apply fix mentioned here:
    https://bugs.archlinux.org/task/72759
    https://github.com/archlinux/svntogit-packages/commit/494a0b762f8ef7d16c6d0e396d365f6337a201de#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a
  3. Update the ati_drv.so and radeon.so to newly built ones with fix.

For now, its working and I am able to rotate.

Thanks!