OpenGL Composer stops when i connect the second monitor

Hi. I need help with the following. When I connect my second monitor, the composer stops. In other words, all OpenGL desktop and graphic effects (textures, etc.) are suspended. The second monitor is a Samsung LED TV, with a resolution of 1920x1080 and a refresh rate of 60 Hz. I connect it to the Notebook via HDMI. When this happens, I can reactivate the composer using the shortcut Shift + Alt + F12, but doing so the mouse starts to malfunction, printing the image of the pointer (like a “mouse pointer trail”) all over the screen, it’s impossible to use. This faulty mouse behavior stops only if I disconnect the second monitor. When I disconnect the monitor I also need to reactivate the composer. This does not happen by selecting Xrender as the rendering engine. But I lose all the visual effects and environmental management advantages that OpenGL allows. I can not find a solution in Google or in this forum, therefore I leave my query here. I detail the Log of my laptop:

System:    Kernel: 4.19.141-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
           Desktop: KDE Plasma 5.19.4 Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: X541SA v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: X541SA v: 1.0 serial: <filter> UEFI: American Megatrends 
           v: X541SA.301 date: 09/14/2016 
Battery:   ID-1: BAT0 charge: 34.2 Wh condition: 34.2/34.6 Wh (99%) model: ASUSTeK X550A26 
           status: Full 
CPU:       Topology: Quad Core model: Intel Pentium N3710 bits: 64 type: MCP arch: Airmont rev: 4 
           L2 cache: 1024 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 12800 
           Speed: 1315 MHz min/max: 480/2560 MHz Core speeds (MHz): 1: 1315 2: 1173 3: 1905 
           4: 1549 
Graphics:  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics 
           vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: IMC Networks USB2.0 VGA UVC WebCam type: USB driver: uvcvideo bus ID: 1-4:8 
           Display: x11 server: X.Org 1.20.8 driver: intel resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 405 (BSW) v: 4.6 Mesa 20.1.6 
           direct render: Yes 
Audio:     Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High 
           Definition Audio 
           vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           Sound Server: ALSA v: k4.19.141-2-MANJARO 
Network:   Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASUSTeK driver: r8169 
           v: kernel port: e000 bus ID: 02:00.0 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter vendor: AzureWave 
           driver: ath9k v: kernel port: e000 bus ID: 03:00.0 
           IF: wlp3s0 state: up mac: <filter> 
Drives:    Local Storage: total: 465.76 GiB used: 35.69 GiB (7.7%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ01ABF050 size: 465.76 GiB 
Partition: ID-1: / size: 449.07 GiB used: 35.57 GiB (7.9%) fs: ext4 dev: /dev/sda2 
Swap:      ID-1: swap-1 type: partition size: 8.22 GiB used: 125.7 MiB (1.5%) dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 6280.0 C mobo: 50.0 C 
           Fan Speeds (RPM): cpu: 2300 
Info:      Processes: 193 Uptime: 2h 43m Memory: 3.74 GiB used: 1.86 GiB (49.8%) Init: systemd 
           Compilers: gcc: 10.2.0 Packages: 1367 Client: KDE Plasma v: 5.19.4 inxi: 3.1.05 

Thanks

Try with that resolution, your graphics card doesn’t support FHD

Could you detail your answer?
Thank you!

Hi!
Looks like you grafics card only support HD resolution ( 137676860Hz), look your inxi output.
I’m not sure but maybe that is the problem

I understand what you’re saying. I looked up the technical specifications of the graphics card and according to laptopmedia:

“The GPU can support up to 3 displays with a maximum resolution of 4K but internally can handle only 2560 x 1440 (QHD) via eDP. The external displays can be connected via HDMI or Display Port. Other major features include the support of DirectX 12 and Open GL 4.2.”

So I assume this is a KDE Plasma or Manjaro kernel driver or configuration issue. With other distros (Ubuntu Mate, Mint Mate, even an old Manjaro xfce) I didn’t have this problem. Only with the latest Ubuntu 20.04 (Gnome) the ‘mouse pointer trail’ happened when connecting the second monitor via HDMI, but at that time I solved it by creating a file:

/etc/X11/xorg.conf.d/20-intel.conf

Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"
EndSection

But this time that alternative did not solve my problem.

Regards

Hi!
Can you post the output of
xrandr -q

Hi! This is the ouput

xrandr -q
Screen 0: minimum 8 x 8, current 3286 x 1080, maximum 32767 x 32767
eDP1 connected primary 1366x768+1920+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1366x768      60.00*+
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   680x384       60.00  
   640x360       59.84    59.32    60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 700mm x 390mm
   1920x1080     60.00*+  50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1366x768      59.79  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

thanks!

Hi!
it could be problem of your tv, the xrandr output looks right, most tv have a button in the remote to configure mods of display, check the config of your tv, there are some post in the forum about it

I changed the TV connection to the ‘HDMI2’ input (previously the cable was connected to ‘DVI HDMI’). That improved the composer’s reaction to connecting the second monitor, but partially. It still continues to cause problems. OpenGL is still active but the windows disappear from the laptop screen and are positioned on the TV monitor, Plank disappears, and sometimes the mouse crashes again.

For my part I entered some extra settings. Edited /etc/X11/xorg.conf.d/10-monitor.conf:

Section "Monitor"
    Identifier  "eDP1"
    Option      "Primary" "true"
EndSection

Section "Monitor"
    Identifier  "HDMI2"
    Option      "LeftOf" "eDP1"
    Option      "Primary" "false"
EndSection

I added a new section in /etc/X11/xorg.conf.d/20-intel.conf:

Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"
EndSection

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "TearFree" "true"
EndSection

And finally I edited /etc/default/grub, adding i915.enable_psr=0 to “GRUB_CMDLINE_LINUX_DEFAULT=”:

GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor resume=UUID=00a2dcc4-b790-4742-90d7-a8d7c04a4f45 udev.log_priority=3 i915.enable_psr=0"

These modifications I found in different proposed solutions for problems similar to mine.

Thanks and regards.