Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Dual monitors no longer work under bookworm/testing

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
dharper
Posts: 4
Joined: 2023-01-28 07:14
Been thanked: 3 times

Dual monitors no longer work under bookworm/testing

#1 Post by dharper »

I have been running Debian testing for about a year (having been a "stable" user for some time previously) and have never had significant issues beyond some minor dependency issues. However, I recently rebooted my system and found that my second monitor no longer worked once I was booted into my DE of choice (Cinnamon, although the behavior replicates on KDE as well). The monitor is completely functional during the reboot process, but once the X system starts it goes black. The monitor is recognized by neofetch and by the GUI display settings manager. If I switch the second monitor to the primary monitor, I am able to switch over to it seamlessly, but I then lose access to the first monitor. If I try to mirror displays, the both monitors go black and I have to reboot to get any life out of them.

I booted from a live USB of Debian 11.6 and everything works fine. I did a reinstall from there and, again, the system works perfectly. If I change my /etc/apt/sources.list to "bookworm" or "testing" and do a sudo apt update && sudo apt upgrade then reboot, I am back to the same single-monitor issue.

My current neofetch (from a system that was installed and upgraded this evening):

OS: Debian GNU/Linux bookworm/sid x86_64
Host: 10BNS01S00 ThinkCentre M78
Kernel: 6.1.0-1-amd64
Uptime: 26 mins
Packages: 2767 (dpkg)
Shell: bash 5.2.15
Resolution: 1920x1080
DE: Cinnamon 4.8.6
WM: Mutter (Muffin)
WM Theme: (Default)
Theme: Adwaita [GTK2/3]
Icons: gnome [GTK2/3]
Terminal: terminator
CPU: AMD A8-5500B APU (4) @ 3.200GHz
GPU: AMD ATI Radeon HD 7560D
Memory: 2321MiB / 31292MiB

Output of lscpi:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7560D]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI Audio Controller
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:10.1 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 16)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 2)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 5
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 04)
03:00.1 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #1 (rev 01)
03:00.2 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #2 (rev 01)
03:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. RTL8111xP IPMI interface (rev 01)
Screenshot from 2023-01-28 02-26-27.png
Screenshot from 2023-01-28 02-26-08.png
Is there a setting that was changed in the last couple of weeks that is affecting my ability to use two screens? I find it pretty invaluable for my work so I would like to find a workaround.

Thank you in advance.
--Daniel

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: Dual monitors no longer work under bookworm/testing

#2 Post by cds60601 »

Just for giggles, run arandr (arandr is pretty much a non-graphical version of the screenshot you presented), set it up as you normally would in your other environments.
Then save the settings (this will create a script you can run).
If after a reboot, and you manually run the script, and it works correctly, you could use that in your .bashrc (or what ever you use) OR as an alternative (what I do and has never failed) you may be able to inject that script in the login manager.

For example, in my lightdm.conf I do have an option to run a script that:
1. disables my laptop screen
2. make my HDMI external the primary and only active screen

Here is my monitors.sh, for example.
The commented lines are for past or future needs.

Code: Select all

!/bin/sh
# Shutoff laptop display - use only HD monitor
xrandr --output eDP --off
xrandr --output HDMI-A-0 --mode 2560x1440
#xrandr --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal

# Set both laptop and HD monitor to same resolution
#xrandr --output eDP --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal
Supercalifragilisticexpialidocious

dharper
Posts: 4
Joined: 2023-01-28 07:14
Been thanked: 3 times

Re: Dual monitors no longer work under bookworm/testing

#3 Post by dharper »

Thanks for the suggestion.

Here is the script arandr generated for me:

#!/bin/sh
xrandr --output DisplayPort-0 --mode 1680x1050 --pos 1920x15 --rotate normal --output VGA-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal

When I run it my display switches to the second monitor, but the first goes dark. (I have my VGA output set to my primary monitor.)

For clarity, the monitors go dark but are still recognized by the system as being present -- the windows are still there and the programs still run, I just can't see them. The mouse still moves as expected over the edge of whichever monitor is working, but I can't use it to get anything done. This is actually *more annoying* than if it simply switched a single-monitor mode from one screen to the other.

Possibly of relevance, when I run arandr from a terminal window I get this error.

(arandr:17499): Gdk-CRITICAL **: 10:48:04.384: gdk_atom_intern: assertion 'atom>

(arandr:17499): Gdk-CRITICAL **: 10:48:04.384: gdk_atom_intern: assertion 'atom>

I'm wondering if the issue is somewhere in lightdm. Should I try switching to gdm3 or other to see if the problem goes away?

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: Dual monitors no longer work under bookworm/testing

#4 Post by cds60601 »

I know that each WM/DE has it's own suggested login manager, but obviously we can always mix and match.
It's odd that you are having issues with LightDM - normally, its a pretty flawless (my experience) LM.
Sure - you could try another. I think another light weight LM would be SDDM, but it's really up to you.

Of course, there is always the option to remove a LM and just use startx ;)
Supercalifragilisticexpialidocious

dharper
Posts: 4
Joined: 2023-01-28 07:14
Been thanked: 3 times

Re: Dual monitors no longer work under bookworm/testing

#5 Post by dharper »

I tried sddm and the error repeated, so whatever it is it seems that the issue lies deeper than the LM.

I actually got started with Slackware back in 1997-1998, so I do remember the startx era but would prefer to stick with something a bit more polished. ;-)

I have downgraded to Debian 11 for now because it works flawlessly with my setup (and I have work to do this weekend), but will re-upgrade to bookworm if and when a promising solution is proposed.

--Daniel

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: Dual monitors no longer work under bookworm/testing

#6 Post by cds60601 »

Sounds good. Sorry I could not offer a solution.
Like some here, I opted not to do Sid any longer. When it ran, it was flawless. Now, some of the apps I need to run require a bit more stability.
So back on Stable here but run the liquorix kern.

Good luck to you.
Supercalifragilisticexpialidocious

smastyy
Posts: 1
Joined: 2023-03-14 19:13
Has thanked: 1 time

Re: Dual monitors no longer work under bookworm/testing

#7 Post by smastyy »

I've been having the same issue (monitor blank after login even though windows/cursor can be placed on it) intermittently, since around the same time (middle of january) and the behavior is very non-deterministic. Sometimes a restart helps, other times it does not. I'm on a laptop and sometimes one external monitor works while the second one doesn't, other times both external monitors don't work. One thing I noticed is that if I connect via HDMI it seems to work, but using DP (via USB-C) causes the issues.

I'm also on Debian 12, running without a DE, just openbox. I've been running bookworm since august 2021 without any issues, until this started happening sometime in january.

neofetch:

Code: Select all

OS: Debian GNU/Linux bookworm/sid x86_64 
Host: 20UF000KCK ThinkPad X13 Gen 1 
Kernel: 6.1.0-5-amd64 
Uptime: 13 mins 
Packages: 2637 (dpkg) 
Shell: zsh 5.9 
Resolution: 1920x1080 
WM: Openbox 
WM Theme: Arc-Dark 
Theme: Arc-Dark [GTK2/3] 
Icons: Arc-custom [GTK2/3] 
Terminal: guake 
CPU: AMD Ryzen 5 PRO 4650U with Radeon Graphics (12) @ 2.100GHz 
GPU: AMD ATI 07:00.0 Renoir 
Memory: 2596MiB / 15217MiB
lspci:

Code: Select all

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.5 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
01:00.0 Non-Volatile memory controller: SK hynix Device 1639
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
02:00.1 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #1 (rev 0e)
02:00.2 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #2 (rev 0e)
02:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. RTL8111xP IPMI interface (rev 0e)
02:00.4 USB controller: Realtek Semiconductor Co., Ltd. RTL811x EHCI host controller (rev 0e)
03:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
05:00.0 Wireless controller [0d40]: Intel Corporation XMM7360 LTE Advanced Modem (rev 01)
06:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev d3)
07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
07:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
07:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
07:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
07:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
I've tried using xrandr, arandr, lxrandr and the display settings from XFCE to no effect. Tried jumping between LightDM, SDDM and LXDM, again without any effect.

Had the same issue on my work laptop (Thinkpad P14s) as well, I was forced to switch to Linux Mint w/ Cinnamon on that because this issue.

dharper
Posts: 4
Joined: 2023-01-28 07:14
Been thanked: 3 times

Re: Dual monitors no longer work under bookworm/testing

#8 Post by dharper »

Returning to this issue since the Bookworm release is imminent.

I did a full upgrade using the bookworm repositories this morning, and I ran into the same issue as before. I tried downgrading the kernel to 5.10.0-23-amd64 and the problem persists, although I can force the second monitor to operate if I pass "xrandr --output DisplayPort-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output VGA-0 --mode 1680x1050 --pos 1920x15 --rotate normal" using my .bashrc. This does not work in any 6.0 kernel so far as I can tell.

I attempted to load a live ISO of MX Linux and the problem exists there as well, so my guess is that there's something in the 6.0 kernel that doesn't like my monitor setup. (Or possibly the AMD CPU/GPUs in my system?)

My current neofetch:

OS: Debian GNU/Linux 12 (bookworm) x86_64
Host: 10BNS01S00 ThinkCentre M78
Kernel: 5.10.0-23-amd64
Uptime: 10 mins
Packages: 4533 (dpkg), 6 (flatpak)
Shell: bash 5.2.15
Resolution: 1920x1080, 1680x1050
DE: Cinnamon 5.6.8
WM: Mutter (Muffin)
WM Theme: cinnamon (Default)
Theme: Adwaita [GTK2/3]
Icons: gnome [GTK2/3]
Terminal: terminator
CPU: AMD A8-5500B APU (4) @ 3.200GHz
GPU: AMD ATI Radeon HD 7560D
Memory: 2025MiB / 31355MiB

My current lspci

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7560D]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI Audio Controller
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:10.1 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 16)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 2)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 5
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 04)
03:00.1 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #1 (rev 01)
03:00.2 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #2 (rev 01)
03:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. RTL8111xP IPMI interface (rev 01)

If it's truly a kernel issue I don't think there's anything else that can be done at this level. Thanks to everyone who responded with assistance.

CynicalDebian
Posts: 263
Joined: 2023-03-02 05:26
Location: USA
Has thanked: 50 times
Been thanked: 60 times
Contact:

Re: Dual monitors no longer work under bookworm/testing

#9 Post by CynicalDebian »

@dharper

Welcome back :). Please wrap your terminal output in code tags to make those trying to help lives much easier.

Code: Select all

 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit
Do you have IOMMU=on in your launch options? I doubt it but perhaps verifying it works with it off is a good first step.

People underestimate how much display hardware matters for configuration, what display cables are you using e.g VGA, DisplayPort, Etc... Are any adapters involved?

Let us see the output of

Code: Select all

$ xrandr
With both of your monitors plugged in.
dharper wrote:If I try to mirror displays, the both monitors go black and I have to reboot to get any life out of them.
Did you try switching virtual terminals with Ctrl+Alt+f2? You can also try to take control back from x with a sysrq combination.

Alt+SysRQ+r

dharper wrote: I actually got started with Slackware back in 1997-1998, so I do remember the startx era but would prefer to stick with something a bit more polished. ;-)
How X actually starts is a bit like starting a rocket ship, except no one has told you how any of the buttons work and all the instructions were put into a shredder (aka spread across 6 confusing manpages). I assure you that startx is just as bad as the nightmare that is lightDM/GDM/SDDM startup procedures. Startx is useful for debugging, since if X crashes you are usually dumped back to your TTY with useful stderr output, while a DM is happy to restart in place to keep things seamless and pretty.

You can check the logs of X and your DM

Code: Select all

# systemctl status lightdm
$ less /var/log/Xorg.0.log
For any more hints.
dharper wrote:If it's truly a kernel issue I don't think there's anything else that can be done at this level.
I truly doubt it, let us try some more debugging first. Please debug on kernel 6 in bookworm for now!
Be seeing you...

Post Reply