"Turn off screen when inactive" is not working due to second monitor

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
duke_33
Level 1
Level 1
Posts: 32
Joined: Tue Jun 08, 2021 10:45 am

"Turn off screen when inactive" is not working due to second monitor

Post by duke_33 »

Hi guys, first time posting here, and new to Linux. I'm on Mint 20.1. I have a laptop and a second screen connected through hdmi (as extension). On power management I've set turn off screen when inactive for 5 minutes. Suspend never.

The problem is that the none of the monitors get turned off after 5 minutes. Well, they do, but let me explain:
-After 5 mins both screens turn off.
-Second screen launches (external) launches "No signal" sort of screensaver after 1 second.
-Somehow, Linux recognizes this as some sort of input, and both screens turn on again.

So I'm in this loop where every 5 mins the screens turn off for 2 seconds and then turn on back again. The most annoying thing is that "turning off" the second screen behaves as unplugging it, so all my windows on the second screen are sent back to the main as well as the icons, that get rearranged on the main screen.

On windows, this setup was working as expected, and I've read the second screen (LG) user guide manual looking for something useful but in vain.

Thanks!

Code: Select all

$ xrandr
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 16384 x 16384
eDP connected primary 1366x768+0+119 (normal left inverted right x axis y axis) 344mm x 193mm
   1366x768      60.00*+  40.00  
   1280x720      60.00  
   1024x768      60.00  
   800x600       60.00  
   640x480       60.00  
HDMI-A-0 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     59.93 +  60.00*   50.00    59.94  
   1680x1050     59.88  
   1280x1024     60.02  
   1440x900      59.93  
   1280x960      60.00  
   1280x800      59.93  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31047
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: "Turn off screen when inactive" is not working due to second monitor

Post by SMG »

duke_33 wrote: Tue Jun 08, 2021 11:17 amI have a laptop and a second screen connected through hdmi (as extension).
Welcome to the forum duke_33.

Sometimes these issues are related to graphics driver, but we have no information about your hardware or how Mint sees it. Please give us information about your install by entering this command in a terminal: inxi -Fxxxrz
Click </> from the mini toolbar above the textbox where you type your reply and then place your cursor between the code markers and paste the results of the command between the code markers [code]Results[/code]. This will let us know how Mint sees your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
duke_33
Level 1
Level 1
Posts: 32
Joined: Tue Jun 08, 2021 10:45 am

Re: "Turn off screen when inactive" is not working due to second monitor

Post by duke_33 »

Hi! And thanks for welcoming! Here is the output:

Code: Select all

System:    Kernel: 5.4.0-74-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: HP product: HP Laptop 15-bw0xx v: Type1ProductConfigId serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: HP model: 8331 v: 27.26 serial: <filter> UEFI: Insyde v: F.11 date: 07/05/2017 
Battery:   ID-1: BAT1 charge: 37.9 Wh condition: 37.9/41.4 Wh (92%) volts: 17.0/14.8 model: Hewlett-Packard PABAS0241231 
           type: Li-ion serial: <filter> status: Full 
           Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter> charge: 55% (should be ignored) 
           rechargeable: yes status: Discharging 
CPU:       Topology: Dual Core model: AMD A6-9220 RADEON R4 5 COMPUTE CORES 2C+3G bits: 64 type: MCP arch: Excavator 
           L2 cache: 1024 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 9981 
           Speed: 1296 MHz min/max: 1300/2500 MHz boost: enabled Core speeds (MHz): 1: 1296 2: 1297 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] vendor: Hewlett-Packard 
           driver: amdgpu v: kernel bus ID: 00:01.0 chip ID: 1002:98e4 
           Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] vendor: Hewlett-Packard 
           driver: radeon v: kernel bus ID: 01:00.0 chip ID: 1002:6660 
           Display: x11 server: X.Org 1.20.9 driver: ati,radeon unloaded: amdgpu,fbdev,modesetting,vesa 
           resolution: 1366x768~60Hz 
           OpenGL: renderer: AMD STONEY (DRM 3.35.0 5.4.0-74-generic LLVM 11.0.0) v: 4.5 Mesa 20.2.6 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:01.1 
           chip ID: 1002:15b3 
           Device-2: Advanced Micro Devices [AMD] Family 15h Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 00:09.2 chip ID: 1022:157a 
           Sound Server: ALSA v: k5.4.0-74-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel 
           port: 3000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rtl8723be v: kernel 
           port: 2000 bus ID: 03:00.0 chip ID: 10ec:b723 
           IF: wlp3s0 state: up mac: <filter> 
Drives:    Local Storage: total: 935.20 GiB used: 318.73 GiB (34.1%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 4C scheme: GPT 
           ID-2: /dev/sdb type: USB vendor: Generic model: SD MMC MS PRO size: 3.69 GiB serial: <filter> rev: 1.00 
Partition: ID-1: / size: 97.93 GiB used: 52.64 GiB (53.8%) fs: ext4 dev: /dev/sda6 
           ID-2: swap-1 size: 12.96 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda7 
Sensors:   System Temperatures: cpu: 46.9 C mobo: N/A 
           Fan Speeds (RPM): N/A 
           GPU: device: amdgpu temp: 47 C device: radeon temp: 20 C 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/megasync.list 
           1: deb https://mega.nz/linux/MEGAsync/xUbuntu_20.04/ ./
           Active apt repos in: /etc/apt/sources.list.d/nodesource.list 
           1: deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x focal main
           2: deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://mirrors.evowise.com/linuxmint/packages ulyssa main upstream import backport
           2: deb http://es-mirrors.evowise.com/ubuntu focal main restricted universe multiverse
           3: deb http://es-mirrors.evowise.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://es-mirrors.evowise.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
Info:      Processes: 229 Uptime: 16m Memory: 7.25 GiB used: 2.00 GiB (27.6%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: guake inxi: 3.0.38 
User avatar
SMG
Level 25
Level 25
Posts: 31047
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: "Turn off screen when inactive" is not working due to second monitor

Post by SMG »

This page Software and drivers for HP 15-bw000 Laptop PC seems to indicate there is a newer BIOS/UEFI available if you have a way of updating it. Sometimes those updates address port issues.

Machine:
Type: Laptop System: HP product: HP Laptop 15-bw0xx v: Type1ProductConfigId serial: <filter> Chassis: type: 10
serial: <filter>
Mobo: HP model: 8331 v: 27.26 serial: <filter> UEFI: Insyde v: F.11 date: 07/05/2017
_________________________________

It's also possible using the amdgpu driver might help. I'm not sure why, but the radeon driver loaded instead of the amdgpu driver even though the Stoney renderer loaded.

Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] vendor: Hewlett-Packard
driver: amdgpu v: kernel bus ID: 00:01.0 chip ID: 1002:98e4
Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] vendor: Hewlett-Packard
driver: radeon v: kernel bus ID: 01:00.0 chip ID: 1002:6660
Display: x11 server: X.Org 1.20.9 driver: ati,radeon unloaded: amdgpu,fbdev,modesetting,vesa
resolution: 1366x768~60Hz
OpenGL: renderer: AMD STONEY (DRM 3.35.0 5.4.0-74-generic LLVM 11.0.0) v: 4.5 Mesa 20.2.6 direct render: Yes

Sensors: System Temperatures: cpu: 46.9 C mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: amdgpu temp: 47 C device: radeon temp: 20 C

Are there any settings in the BIOS/UEFI of this laptop to be able to select the onboard or the discrete graphics? There is a way to force the use of amdgpu over radeon using kernel parameters if there is no BIOS/UEFI option. We could try that to see if it helps the monitor situation.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
duke_33
Level 1
Level 1
Posts: 32
Joined: Tue Jun 08, 2021 10:45 am

Re: "Turn off screen when inactive" is not working due to second monitor

Post by duke_33 »

SMG wrote: Wed Jun 09, 2021 2:04 pm This page Software and drivers for HP 15-bw000 Laptop PC seems to indicate there is a newer BIOS/UEFI available if you have a way of updating it. Sometimes those updates address port issues.

Machine:
Type: Laptop System: HP product: HP Laptop 15-bw0xx v: Type1ProductConfigId serial: <filter> Chassis: type: 10
serial: <filter>
Mobo: HP model: 8331 v: 27.26 serial: <filter> UEFI: Insyde v: F.11 date: 07/05/2017
_________________________________

It's also possible using the amdgpu driver might help. I'm not sure why, but the radeon driver loaded instead of the amdgpu driver even though the Stoney renderer loaded.

Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] vendor: Hewlett-Packard
driver: amdgpu v: kernel bus ID: 00:01.0 chip ID: 1002:98e4
Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] vendor: Hewlett-Packard
driver: radeon v: kernel bus ID: 01:00.0 chip ID: 1002:6660
Display: x11 server: X.Org 1.20.9 driver: ati,radeon unloaded: amdgpu,fbdev,modesetting,vesa
resolution: 1366x768~60Hz
OpenGL: renderer: AMD STONEY (DRM 3.35.0 5.4.0-74-generic LLVM 11.0.0) v: 4.5 Mesa 20.2.6 direct render: Yes

Sensors: System Temperatures: cpu: 46.9 C mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: amdgpu temp: 47 C device: radeon temp: 20 C

Are there any settings in the BIOS/UEFI of this laptop to be able to select the onboard or the discrete graphics? There is a way to force the use of amdgpu over radeon using kernel parameters if there is no BIOS/UEFI option. We could try that to see if it helps the monitor situation.
Thanks for your help! I've updated the bios but the problem persists. BIOS has no option regarding the graphic cards (I tried to unlock the advanced options, but apparently, in this model it is not possible). Could you guide me to set it up via kernel params please?
User avatar
SMG
Level 25
Level 25
Posts: 31047
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: "Turn off screen when inactive" is not working due to second monitor

Post by SMG »

duke_33 wrote: Thu Jun 10, 2021 12:50 amThanks for your help! I've updated the bios but the problem persists. BIOS has no option regarding the graphic cards (I tried to unlock the advanced options, but apparently, in this model it is not possible). Could you guide me to set it up via kernel params please?
With any change, I recommend taking a Timeshift snapshot before doing it. That way if there are any issues, you can revert using a live session of Mint to revert to a snapshot on your drive.

I am not real clear what may be happening with regards to the graphic drivers on your system, so I do not know if the kernel parameters will help this situation. The amdgpu driver is considered experimental (but usually works) for certain GPUs. I was not finding clear information as to which drivers are best for the two GPUs in your computer, but maybe this will work.

Open grub for editing with xed admin:///etc/default/grub
Change this line:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To this:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.si_support=0 amdgpu.si_support=1"
You then save the file.
Then update grub with sudo update-grub and all future boots of the computer will use those parameters.

After rebooting, you can run inxi -Gx to see which graphics drivers loaded for that boot cycle.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
duke_33
Level 1
Level 1
Posts: 32
Joined: Tue Jun 08, 2021 10:45 am

Re: "Turn off screen when inactive" is not working due to second monitor

Post by duke_33 »

SMG wrote: Thu Jun 10, 2021 12:27 pm
duke_33 wrote: Thu Jun 10, 2021 12:50 amThanks for your help! I've updated the bios but the problem persists. BIOS has no option regarding the graphic cards (I tried to unlock the advanced options, but apparently, in this model it is not possible). Could you guide me to set it up via kernel params please?
With any change, I recommend taking a Timeshift snapshot before doing it. That way if there are any issues, you can revert using a live session of Mint to revert to a snapshot on your drive.

I am not real clear what may be happening with regards to the graphic drivers on your system, so I do not know if the kernel parameters will help this situation. The amdgpu driver is considered experimental (but usually works) for certain GPUs. I was not finding clear information as to which drivers are best for the two GPUs in your computer, but maybe this will work.

Open grub for editing with xed admin:///etc/default/grub
Change this line:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To this:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.si_support=0 amdgpu.si_support=1"
You then save the file.
Then update grub with sudo update-grub and all future boots of the computer will use those parameters.

After rebooting, you can run inxi -Gx to see which graphics drivers loaded for that boot cycle.
Did it! But still having the issue.

Code: Select all

inxi -Gx
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] vendor: Hewlett-Packard 
           driver: amdgpu v: kernel bus ID: 00:01.0 
           Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] driver: amdgpu v: kernel 
           bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa resolution: 1366x768~60Hz 
           OpenGL: renderer: AMD STONEY (DRM 3.35.0 5.4.0-74-generic LLVM 11.0.0) v: 4.5 Mesa 20.2.6 direct render: Yes 
User avatar
SMG
Level 25
Level 25
Posts: 31047
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: "Turn off screen when inactive" is not working due to second monitor

Post by SMG »

It's good to see that worked to get amdgpu working and the STONEY renderer is still loaded.
duke_33 wrote: Tue Jun 08, 2021 11:17 am Hi guys, first time posting here, and new to Linux. I'm on Mint 20.1. I have a laptop and a second screen connected through hdmi (as extension).
What does "hdmi (as extension)" mean? Are you directly connecting the monitor from an HDMI port on the laptop to an HDMI connection on the LG monitor? Or are you connecting through a docking station? Or maybe using something other than an HDMI to HDMI cable?

What is the specific model number of the LG monitor?
duke_33 wrote: Tue Jun 08, 2021 11:17 am Second screen launches (external) launches "No signal" sort of screensaver after 1 second.
This would seem to indicate the connection between the computer and the monitor is lost. The monitor is letting you know it is no longer receiving a signal from the source. I would not expect a screen blanking to result in a "no signal". In fact, I would expect you do not see that message on your laptop's screen.

If you disconnect the monitor and just use the laptop screen, do things work as you would expect for the screen blanking?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
duke_33
Level 1
Level 1
Posts: 32
Joined: Tue Jun 08, 2021 10:45 am

Re: "Turn off screen when inactive" is not working due to second monitor

Post by duke_33 »

Hi again and thanks again, I do really really appreciate this!
What does "hdmi (as extension)" mean? Are you directly connecting the monitor from an HDMI port on the laptop to an HDMI connection on the LG monitor? Or are you connecting through a docking station? Or maybe using something other than an HDMI to HDMI cable?
The monitor is directly connected through HDMI port on the laptop to an HDMI connection on the LG monitor. By "extension" I meant, desktop extension to my left, not mirroring the main screen.

The Monitor is an LG W2442PE. I've read the user guide https://gscs-b2c.lge.com/downloadFile?f ... 272495.pdf but found nothing useful.
This would seem to indicate the connection between the computer and the monitor is lost. The monitor is letting you know it is no longer receiving a signal from the source. I would not expect a screen blanking to result in a "no signal". In fact, I would expect you do not see that message on your laptop's screen.
It seems to be that. The thing is that in Windows 10, I get the same "no signal", but the screen off works as expected. By expected I mean, the main screen stays off, and the second displays this "no signal" message.
If you disconnect the monitor and just use the laptop screen, do things work as you would expect for the screen blanking?
Yes, if I disconnect the second monitor, then things works as expected.

Since dual monitor "screen off" works on windows, and single screen off works on Mint, I have to assume that it is an issue related to Mint and HDMI port management.

I was wondering if maybe I could catch on the logs what is waking up my PC after the screen goes off, maybe that would give us a hint.

Let me attach this settings just in case:

https://ibb.co/MZW3DZh
https://ibb.co/k0crYzw
User avatar
SMG
Level 25
Level 25
Posts: 31047
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: "Turn off screen when inactive" is not working due to second monitor

Post by SMG »

duke_33 wrote: Sat Jun 12, 2021 3:41 amSince dual monitor "screen off" works on windows, and single screen off works on Mint, I have to assume that it is an issue related to Mint and HDMI port management.
Or it is related to the amdgpu driver which handles graphic port management.

In your situation, there are two GPUs. I do not know if there is a way to specific which GPU has control of the graphics (or if it matters). On computers with Intel and Nvidia dual graphics, often the Nvidia card is the only one wired to work with the HDMI port. It's possible only one of the two GPUs in your computer can send graphics to the HDMI port. Depending upon how Mint is managing the two GPUs and the drivers for each, that might be why this odd phenomenon is happening. (Just a guess on my part.)

Maybe someone else will be more familiar with this type of situation and jump on the thread with some advice.
duke_33 wrote: Sat Jun 12, 2021 3:41 amI was wondering if maybe I could catch on the logs what is waking up my PC after the screen goes off, maybe that would give us a hint.
You could run dmesg -T | tail -n 200 after it goes from "no signal" to displaying again. The number can be adjusted if that does not go back far enough in time to determine what might be happening.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
duke_33
Level 1
Level 1
Posts: 32
Joined: Tue Jun 08, 2021 10:45 am

Re: "Turn off screen when inactive" is not working due to second monitor

Post by duke_33 »

Well it is rather simple output, I requested the date just to have a reference and forced the screens to turn off with "xset dpms force standby" :

Code: Select all

mariano@atom:~/Documents/Proyectos Node$ date
Sun 13 Jun 2021 14:09:39 PM CEST
mariano@atom:~/Documents/Proyectos Node$ xset dpms force standby
mariano@atom:~/Documents/Proyectos Node$ date
Sun 13 Jun 2021 14:10:04 PM CEST
mariano@atom:~/Documents/Proyectos Node$ dmesg -T | tail -n 10
[Sun Jun 13 13:52:13 2021] Bluetooth: RFCOMM socket layer initialized
[Sun Jun 13 13:52:13 2021] Bluetooth: RFCOMM ver 1.11
[Sun Jun 13 13:52:21 2021] logitech-hidpp-device 0003:046D:4023.0003: HID++ 2.0 device connected.
[Sun Jun 13 13:52:41 2021] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[Sun Jun 13 13:55:38 2021] logitech-hidpp-device 0003:046D:4054.0004: HID++ 4.5 device connected.
[Sun Jun 13 13:55:52 2021] amdgpu 0000:01:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).
[Sun Jun 13 14:00:01 2021] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[Sun Jun 13 14:04:21 2021] amdgpu 0000:01:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).
[Sun Jun 13 14:08:16 2021] amdgpu 0000:01:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).
[Sun Jun 13 14:09:49 2021] amdgpu 0000:01:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).
User avatar
SMG
Level 25
Level 25
Posts: 31047
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: "Turn off screen when inactive" is not working due to second monitor

Post by SMG »

duke_33 wrote: Sun Jun 13, 2021 8:16 am Well it is rather simple output, I requested the date just to have a reference and forced the screens to turn off with "xset dpms force standby" :
Does that command work if you do not have the external monitor connected? This thread Why we use sleep command before xset dpms? seems to indicate more is needed.

The person in this thread `xset dpms force off` is not working. found there was an issue with the controller of the LCD (ie. an issue related to the monitor itself).

The fact the problem happens only when the monitor is attached could mean there is something about the monitor, but I do not have any ideas on how to resolve the issue.

Booting with the external monitor attached, what is the output of cat /var/log/Xorg.0.log | nc termbin.com 9999?
It will return with a url address that you should post in your next reply. Maybe there is something in how X Server is seeing the external monitor that will be registered in that file and will give an idea of what may be happening.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
duke_33
Level 1
Level 1
Posts: 32
Joined: Tue Jun 08, 2021 10:45 am

Re: "Turn off screen when inactive" is not working due to second monitor

Post by duke_33 »

SMG wrote: Sun Jun 13, 2021 1:45 pm Does that command work if you do not have the external monitor connected? This thread Why we use sleep command before xset dpms? seems to indicate more is needed.
Yes, they do work if I do not have the external monitor connected, both "xset dpms force off" and "xset dpms force standby"
SMG wrote: Sun Jun 13, 2021 1:45 pm The person in this thread `xset dpms force off` is not working. found there was an issue with the controller of the LCD (ie. an issue related to the monitor itself).
I'll give it a try with another monitor and let you know what happens!
SMG wrote: Sun Jun 13, 2021 1:45 pm Booting with the external monitor attached, what is the output of cat /var/log/Xorg.0.log | nc termbin.com 9999?
It will return with a url address that you should post in your next reply. Maybe there is something in how X Server is seeing the external monitor that will be registered in that file and will give an idea of what may be happening.
And here is the log https://termbin.com/nchr! Thanks!
User avatar
SMG
Level 25
Level 25
Posts: 31047
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: "Turn off screen when inactive" is not working due to second monitor

Post by SMG »

duke_33 wrote: Sun Jun 13, 2021 2:49 pmAnd here is the log https://termbin.com/nchr! Thanks!
Both cards are recognized and have the amdgpu driver applied to them.

Code: Select all

[    49.468] (II) xfree86: Adding drm device (/dev/dri/card0)
[    49.485] (II) xfree86: Adding drm device (/dev/dri/card1)
..
[    51.736] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
[    51.736] 	loading driver: amdgpu
[    51.736] (II) Applying OutputClass "AMDgpu" to /dev/dri/card1
[    51.736] 	loading driver: amdgpu
There are lines which start with AMDGPU(0) (which according to the chip ID is the Stoney) and lines which start with AMDGPU(G0) (which is the Sun XT).

Code: Select all

[    52.526] (--) AMDGPU(0): Chipset: "Unknown AMD Radeon GPU" (ChipID = 0x98e4)
[    58.232] (--) AMDGPU(G0): Chipset: "AMD Radeon (TM) R5 M330" (ChipID = 0x6660)
All the monitor information seems to be prefaced with AMDGPU(0) which is the onboard Stoney graphics. The Stoney is the one which originally had the amdgpu driver installed (without the need for kernel parameters). I do not know if that has significance in this issue.

I did notice the following line which is a warning. I was not able to find enough information to fully understand what this might mean.

Code: Select all

 [    58.227] (WW) AMDGPU(0): 3 ZaphodHeads crtcs unavailable. Some outputs will stay off.
I did not come up with any new ideas from the Xorg log. Maybe someone else will be more familiar with this laptop or this graphics combination and have some ideas.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
duke_33
Level 1
Level 1
Posts: 32
Joined: Tue Jun 08, 2021 10:45 am

Re: "Turn off screen when inactive" is not working due to second monitor

Post by duke_33 »

I've just tried with another monitor, from a different brand, and it gets even worst, when the "Turn off screen" action is trigered the main screen would start blinking for like ten seconds (switching between screen off, black screen and screen on), while the second one displays "check signal cable", after that, both screens would turn on again. Thanks @SMG, you have been really helpful and supportive! Hope someone will come with a solution in the future! :D
Locked

Return to “Graphics Cards & Monitors”