Monitor blank after it has entered sleep mode, or switched off and on (dual-monitor setup)

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
Bion
Level 1
Level 1
Posts: 4
Joined: Tue Dec 25, 2018 7:37 am

Monitor blank after it has entered sleep mode, or switched off and on (dual-monitor setup)

Post by Bion » Tue Dec 25, 2018 11:35 am

Hello, I have a problem that's been troubling me for some time now. I have a dual-monitor setup which is working fine, as long as one of the monitors doesn't enter "sleep mode" or is switched off and back on again, which commonly happens when the computer is suspended or when they are automatically switched off to save power.

If that happens, one of the two monitors loses its signal. I then have to reboot to get the other monitor back. There is no issue if a monitor loses signal briefly, it can regain signal as long as it does not enter sleep mode. I didn't have this issue in Windows, so the monitors should be fine.

Output of xrandr:

Code: Select all

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+  50.00    59.94  
   (other resolutions)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DVI-D-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+
   (other resolutions)
DVI-D-1 is my primary monitor, HDMI-A-0 is the secondary (I can't swap their cables or their positions). I can switch the DVI monitor off and on without issues, but if I switch the HDMI monitor off I lose the DVI monitor when I switch it back on. The HDMI monitor usually works after the system is suspended (and both monitors have entered sleep mode), but the DVI stays blank. If I take a screenshot, I can see both screens.

I found the following in the logs after switching the HDMI monitor off and on (switching the DVI monitor off and on produces no logs):

Log

Code: Select all

kernel: [drm] {1920x1080, 2200x1125@148500Khz}
kernel: [drm] {1920x1080, 2200x1125@148500Khz}
kernel: [drm] {1920x1080, 2200x1125@148500Khz}
kernel: [drm] dc_link_detect: mode number = 0, format_code = 1, channel_count = 2, sample_rate = 7, sample_size = 7
kernel: [drm] dc_link_detect: manufacturer_id = 7204, product_id = 346, serial_number = 52613CF7, manufacture_week = 26, manufacture_year = 25, display_name = G226HQL, speaker_flag = 1, audio_mode_count = 1
kernel: [drm] G226HQL: [Block 1] 
kernel: [drm] G226HQL: [Block 0] 
kernel: [drm] {1920x1080, 2200x1125@148500Khz}
Very rarely both monitors wake from sleep, but are mirrored. I've been unable to trace the steps to reproduce this. It might or might not be related, I can't tell. If I take a screenshot I can see the screens as they should be (not mirrored). If I go to settings > display and press "detect displays" both have the same label, which is odd. If I click apply, regardless of changing any settings, both screens lose signal. When they are mirrored "service lightdm restart" solves the issue, but otherwise it doesn't.

What I have tried so far that didn't work:
xrandr (--auto and these commands)
cinnamon --replace
service lightdm restart
Disabling/enabling lock screen
Unplugging and reinserting DVI and HDMI cable (in any order)
Installing amdgpu-pro drivers (didn't solve the issue and didn't work well with redshift, so uninstalled)
Reinstalling Linux Mint (I used xfce with LM 19 before, switched to cinnamon & LM 19.1. Had the same issue with both.)
Running cinnamon with software rendering.
Changing ErP and IOMMU bios settings.

System info:

Code: Select all

System:
  Kernel: 4.15.0-43-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 
  Desktop: Cinnamon 4.0.8 
  Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop System: Gigabyte product: N/A v: N/A serial: <filter> 
  Mobo: Gigabyte model: 970A-DS3P v: x.x serial: <filter> 
  UEFI: American Megatrends v: FD date: 02/26/2016
Graphics:
  Device-1: AMD Tonga PRO [Radeon R9 285/380] vendor: PC Partner Limited driver: amdgpu v: kernel bus ID: 01:00.0 
  Display: x11 server: X.Org 1.19.6 driver: amdgpu,ati unloaded: fbdev,modesetting,radeon,vesa resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: AMD Radeon R9 380 Series (TONGA / DRM 3.23.0 / 4.15.0-43-generic LLVM 6.0.0) v: 4.5 Mesa 18.0.5 direct render: Yes 
I'd appreciate any help with this problem :)
Last edited by Bion on Wed Dec 26, 2018 9:26 pm, edited 3 times in total.

User avatar
roblm
Level 11
Level 11
Posts: 3566
Joined: Sun Feb 24, 2013 2:41 pm

Re: Monitor blank after it has entered sleep mode, or switched off and on (dual-monitor setup)

Post by roblm » Wed Dec 26, 2018 4:10 pm

My only suggestion is to try using this command after one of the monitors loses it’s signal:

Code: Select all

xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60 --pos 1920x0 --output DVI-D-1 --mode 1920x1080 --primary --rate 60 --pos 0x0
If that doesn’t work, then this if HDMI is off:

Code: Select all

xrandr --output HDMI-A-0 --off && xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60 --pos 1920x0 --output DVI-D-1 --mode  1920x1080 --primary --rate 60 --pos 0x0
Or this if DVI is off:

Code: Select all

xrandr --output DVI-D-1 --off && xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60 --pos 1920x0 --output DVI-D-1 --mode 1920x1080 --primary --rate 60 --pos 0x0

Bion
Level 1
Level 1
Posts: 4
Joined: Tue Dec 25, 2018 7:37 am

Re: Monitor blank after it has entered sleep mode, or switched off and on (dual-monitor setup)

Post by Bion » Wed Dec 26, 2018 6:11 pm

Thanks for the reply! I tried those commands, but they didn't turn the screen back on unfortunately. Though, it was not entirely without effect.

I switched the HDMI monitor off and on, and as usual the DVI monitor subsequently lost connection. On the HDMI monitor I couldn't see the programs I had open there before I switched it off (which is also usual), but a screenshot showed they were on the other monitor. Running

Code: Select all

xrandr --output DVI-D-1 --off && xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60 --pos 1920x0 --output DVI-D-1 --mode 1920x1080 --primary --rate 60 --pos 0x0
put those programs back on the HDMI monitor. So that's something. I think it's not a problem xrandr can fix, unfortunately.

I tried logging into cinnamon using software rendering today, but that didn't work either.

Edit: tried changing ErP and IOMMU settings in the bios, neither helped. Also tried a live stick with LM cinnamon, xfce and mate. Same problem with cinnamon and xfce, but not with mate.

n1tro
Level 1
Level 1
Posts: 5
Joined: Wed Nov 28, 2018 11:01 am

Re: Monitor blank after it has entered sleep mode, or switched off and on (dual-monitor setup)

Post by n1tro » Sun Oct 20, 2019 11:48 pm

Same problem here. I got an Asus vivobook with a second screen built into the mousepad. When computer turns off the screen, the mousepad screen is black with all the apps that were on it displaying on the laptop screen.

Bion
Level 1
Level 1
Posts: 4
Joined: Tue Dec 25, 2018 7:37 am

Re: Monitor blank after it has entered sleep mode, or switched off and on (dual-monitor setup)

Post by Bion » Mon Oct 21, 2019 4:02 am

n1tro wrote:
Sun Oct 20, 2019 11:48 pm
Same problem here. I got an Asus vivobook with a second screen built into the mousepad. When computer turns off the screen, the mousepad screen is black with all the apps that were on it displaying on the laptop screen.
I'm sorry I can't help you. Like I expect your issue is, mine was very hardware-specific. Haven't encountered it again either with other setups.

I assume you have tried "xrandr --auto"? You could bind it to a shortcut key if it works.

n1tro
Level 1
Level 1
Posts: 5
Joined: Wed Nov 28, 2018 11:01 am

Re: Monitor blank after it has entered sleep mode, or switched off and on (dual-monitor setup)

Post by n1tro » Mon Oct 21, 2019 9:03 am

xandr --auto doesn't do anything for me. When the screens goes off, the 2nd screen from the mousepad is completely gone under Display when I check. Only a reboot brings it back.

Bion
Level 1
Level 1
Posts: 4
Joined: Tue Dec 25, 2018 7:37 am

Re: Monitor blank after it has entered sleep mode, or switched off and on (dual-monitor setup)

Post by Bion » Mon Oct 21, 2019 10:52 am

n1tro wrote:
Mon Oct 21, 2019 9:03 am
xandr --auto doesn't do anything for me. When the screens goes off, the 2nd screen from the mousepad is completely gone under Display when I check. Only a reboot brings it back.
This probably deserves its own topic :)

Post Reply

Return to “Graphics Cards & Monitors”