linuxmint / muffin

The window management library for the Cinnamon desktop (libmuffin) and its sample WM binary (muffin)
GNU General Public License v2.0
197 stars 93 forks source link

Lenovo Ideapad L340-15IRH Gaming - 2nd monitor does not show up #567

Open HansBinBrabant opened 4 years ago

HansBinBrabant commented 4 years ago

2nd monitor, on hdmi, does not show up well

This laptop Lenovo Ideapad L340-15IRH Gaming has both intel and nvidia graphics on board.

In Linux Mint 20 Cinnamon Beta, running live from USB stick, the display tool shows the 2nd monitor. I can move a window to it. The monitor is alive and responds. But it only shows the cursor. An arrow cursor by default, and a little hand when moving some window to the 2nd monitor. But no windows show up on the 2nd monitor.

By making screencopys, using "gnome-screenshot --interactive &" with option "Grab the whole screen", the 2nd monitor shows up too ! Almost Happy ! I dont see it myself. But ... when I move a window to it, it shows up in the next taken screencopy. I still don't see it myself on the 2nd monitor.

Also in Linux Mint 19.3 Cinnamon (installed) (i have several kernels tried) the display tool doesnt show the 2nd monitor at all.

With windows 10, it works fine. Linux Mint 19.3 Cinnamon : No 2nd screen use possible No Linux Live OS does make it visible.

Same thing is ok on my old laptop with linux mint 19.3. Here it works fine. With windows 7, it works fine.

mint@mint:~$ inxi -Fzx
System:    Kernel: 5.4.0-26-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.6.3 
           Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: LENOVO product: 81LK v: IdeaPad L340-15IRH Gaming serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN serial: <filter> UEFI: LENOVO v: BGCN28WW date: 12/27/2019 
Battery:   ID-1: BAT0 charge: 18.2 Wh condition: 42.4/45.0 Wh (94%) model: Celxpert L18C3PF1 status: Charging 
CPU:       Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399 
           Speed: 1300 MHz min/max: 800/2600 MHz Core speeds (MHz): 1: 1343 2: 1361 3: 1340 4: 1303 5: 1342 6: 1763 7: 1872 
           8: 1878 9: 1824 10: 1328 11: 1346 12: 2160 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo driver: nouveau v: kernel bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz, 1600x900~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.0.4 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           Sound Server: ALSA v: k5.4.0-26-generic 
Network:   Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: Lenovo driver: ath10k_pci v: kernel 
           port: 4000 bus ID: 07:00.0 
           IF: wlp7s0 state: down mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 3000 
           bus ID: 08:00.0 
           IF: enp8s0 state: down mac: <filter> 
           Device-3: Qualcomm Atheros type: USB driver: btusb bus ID: 1-14:5 
Drives:    Local Storage: total: 968.42 GiB used: 62.1 MiB (0.0%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB1T0HALR-000L2 size: 953.87 GiB 
           ID-2: /dev/sda type: USB model: UFD 2.0 Silicon-Power16G size: 14.55 GiB 
Partition: ID-1: / size: 7.76 GiB used: 19.2 MiB (0.2%) fs: overlay source: ERR-102 
           ID-2: /var/log size: 12.45 GiB used: 42.9 MiB (0.3%) fs: ext4 dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 55.0 C mobo: N/A gpu: nouveau temp: 43 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 293 Uptime: 4m Memory: 15.52 GiB used: 859.1 MiB (5.4%) Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 
           Shell: bash v: 5.0.16 inxi: 3.0.38 

I do hope that my (first !) post does bring a solution, and that it helps others too I have some more issues with this laptop. I will post them soon in a next issue Thanks in advance

Hans

linuxmint_20_desktop_hdmi_issue_1 linuxmint_20_desktop_hdmi_issue_2 linuxmint_20_desktop_hdmi_issue_3

mtwebster commented 4 years ago

Hi, is there a file called 'cinnamon-monitors.xml' in your home's .config folder? If so can you try deleting it, then log out and back in.

I've also posted some new packages to test that relate to this, if you would be willing to try them out - see this comment: https://github.com/linuxmint/cinnamon-control-center/pull/238#issuecomment-646734935

Thanks

HansBinBrabant commented 4 years ago

Remove the strike through from the inxi output above in the initial posting : Done myself by making it code >:-) I'm learning again ...

@ MTWebster Thanks for your respons

In my installed Linux Mint Cinnamon 19.3, there is :

The new packages proposed can be installed when running live from USB ? I will give it a try and let you know. I did, and the installing worked

There is no ~/.config/cinnamon-monitors.xml I will now logout to see the effect of the deb files exercise

HansBinBrabant commented 4 years ago

I've also posted some new packages to test that relate to this, if you would be willing to try them out - see this comment: linuxmint/cinnamon-control-center#238 (comment)

Thanks

I did login again afer installing the deb files. No recognized difference. Windows moved to 2nd monitor become not visible for me. Screencopy's do have them. The cursor shows up on the 2nd monitor. Here my homework done :

cd /home/mint/Downloads
unzip xrandr.zip
ls -1
dpkg -i *.deb
logout and login

root@mint:/home/mint/Downloads# ls -1
cinnamon-control-center-data_4.6.0_all.deb
cinnamon-control-center-dbg_4.6.0_amd64.deb
cinnamon-control-center_4.6.0_amd64.deb
cinnamon-desktop-data_4.6.1_all.deb
gir1.2-cinnamondesktop-3.0_4.6.1_amd64.deb
gir1.2-cvc-1.0_4.6.1_amd64.deb
libcinnamon-control-center1_4.6.0_amd64.deb
libcinnamon-desktop-dbg_4.6.1_amd64.deb
libcinnamon-desktop4_4.6.1_amd64.deb
libcvc-dbg_4.6.1_amd64.deb
libcvc-dev_4.6.1_amd64.deb
libcvc0_4.6.1_amd64.deb
xrandr.zip
root@mint:/home/mint/Downloads# 

# sudo dpkg -i *.deb
dpkg -i *.deb

root@mint:/home/mint/Downloads# dpkg -i *.deb
dpkg: warning: downgrading cinnamon-control-center-data from 4.6.0+ulyana to 4.6.0
(Reading database ... 285585 files and directories currently installed.)
Preparing to unpack cinnamon-control-center-data_4.6.0_all.deb ...
Unpacking cinnamon-control-center-data (4.6.0) over (4.6.0+ulyana) ...
dpkg: warning: downgrading cinnamon-control-center-dbg from 4.6.0+ulyana to 4.6.0
Preparing to unpack cinnamon-control-center-dbg_4.6.0_amd64.deb ...
Unpacking cinnamon-control-center-dbg (4.6.0) over (4.6.0+ulyana) ...
dpkg: warning: downgrading cinnamon-control-center from 4.6.0+ulyana to 4.6.0
Preparing to unpack cinnamon-control-center_4.6.0_amd64.deb ...
Unpacking cinnamon-control-center (4.6.0) over (4.6.0+ulyana) ...
dpkg: warning: downgrading cinnamon-desktop-data from 4.6.1+ulyana to 4.6.1
Preparing to unpack cinnamon-desktop-data_4.6.1_all.deb ...
Unpacking cinnamon-desktop-data (4.6.1) over (4.6.1+ulyana) ...
dpkg: warning: downgrading gir1.2-cinnamondesktop-3.0 from 4.6.1+ulyana to 4.6.1
Preparing to unpack gir1.2-cinnamondesktop-3.0_4.6.1_amd64.deb ...
Unpacking gir1.2-cinnamondesktop-3.0 (4.6.1) over (4.6.1+ulyana) ...
dpkg: warning: downgrading gir1.2-cvc-1.0 from 4.6.1+ulyana to 4.6.1
Preparing to unpack gir1.2-cvc-1.0_4.6.1_amd64.deb ...
Unpacking gir1.2-cvc-1.0 (4.6.1) over (4.6.1+ulyana) ...
dpkg: warning: downgrading libcinnamon-control-center1:amd64 from 4.6.0+ulyana to 4.6.0
Preparing to unpack libcinnamon-control-center1_4.6.0_amd64.deb ...
Unpacking libcinnamon-control-center1:amd64 (4.6.0) over (4.6.0+ulyana) ...
dpkg: warning: downgrading libcinnamon-desktop-dbg:amd64 from 4.6.1+ulyana to 4.6.1
Preparing to unpack libcinnamon-desktop-dbg_4.6.1_amd64.deb ...
Unpacking libcinnamon-desktop-dbg:amd64 (4.6.1) over (4.6.1+ulyana) ...
dpkg: warning: downgrading libcinnamon-desktop4:amd64 from 4.6.1+ulyana to 4.6.1
Preparing to unpack libcinnamon-desktop4_4.6.1_amd64.deb ...
Unpacking libcinnamon-desktop4:amd64 (4.6.1) over (4.6.1+ulyana) ...
dpkg: warning: downgrading libcvc-dbg:amd64 from 4.6.1+ulyana to 4.6.1
Preparing to unpack libcvc-dbg_4.6.1_amd64.deb ...
Unpacking libcvc-dbg:amd64 (4.6.1) over (4.6.1+ulyana) ...
Selecting previously unselected package libcvc-dev.
Preparing to unpack libcvc-dev_4.6.1_amd64.deb ...
Unpacking libcvc-dev (4.6.1) ...
dpkg: warning: downgrading libcvc0:amd64 from 4.6.1+ulyana to 4.6.1
Preparing to unpack libcvc0_4.6.1_amd64.deb ...
Unpacking libcvc0:amd64 (4.6.1) over (4.6.1+ulyana) ...
Setting up cinnamon-control-center-data (4.6.0) ...
Setting up cinnamon-desktop-data (4.6.1) ...
Setting up libcinnamon-control-center1:amd64 (4.6.0) ...
dpkg: dependency problems prevent configuration of libcvc-dev:
 libcvc-dev depends on libpulse-dev; however:
  Package libpulse-dev is not installed.

dpkg: error processing package libcvc-dev (--install):
 dependency problems - leaving unconfigured
Setting up libcvc0:amd64 (4.6.1) ...
Setting up gir1.2-cvc-1.0 (4.6.1) ...
Setting up libcvc-dbg:amd64 (4.6.1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.2-1~fakesync1) ...
Setting up libcinnamon-desktop4:amd64 (4.6.1) ...
Setting up cinnamon-control-center (4.6.0) ...
Setting up gir1.2-cinnamondesktop-3.0 (4.6.1) ...
Setting up libcinnamon-desktop-dbg:amd64 (4.6.1) ...
Setting up cinnamon-control-center-dbg (4.6.0) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
 libcvc-dev
root@mint:/home/mint/Downloads# 

Thanks so far. Hope on next proposal and improvement. Good luck with a big brainwave. Have a beer >;-)

clefebvre commented 4 years ago

This is one of the weirdest bugs I've seen :)

I'll move this to muffin so we can look at it after the BETA.

HansBinBrabant commented 4 years ago

This is one of the weirdest bugs I've seen :)

I'll move this to muffin so we can look at it after the BETA.

Thanks for helping. My HDMI out is required for my live presentations about ... Linux :-). So it must work, else I have to buy another laptop, and now I have the concern that that one might have the same issue. Can it be a something stupid simple code mistake ? Some command not finished with a ' ? It happens with every live from usb running Linux.

I will test it with MX Linux on an other monitor tonight ... I did. No 2nd monitor noticed in the Display tool. Laptop Screen only.

HansBinBrabant commented 4 years ago

This is one of the weirdest bugs I've seen :)

I'll move this to muffin so we can look at it after the BETA.

Thanks for helping. My HDMI out is required for my live presentations about ... Linux :-). So it must work, else I have to buy another laptop, and now I have the concern that that one might have the same issue. Can it be a something stupid simple code mistake ? Some command not finished with a ' ? It happens with every live from usb running Linux.

I will test it with MX Linux on an other monitor tonight ... I did. No 2nd monitor noticed in the Display tool. Laptop Screen only. Included my kernels in the bootloader. 5.6.7-05-06-07-generic is the latest one, I m now running with the latest 5.40.038-generic, since this is the one also in Mint 20 !? For the display issue, there is no difference ... 2020_0623_123416

HansBinBrabant commented 4 years ago

In the meantime I did find out that https://pop.system76.com/ => https://pop-iso.sfo2.cdn.digitaloceanspaces.com/20.04/amd64/nvidia/11/pop-os_20.04_amd64_nvidia_11.iso this one just works. So my laptop is capable to work with the 2nd monitor by hdmi.

When I installed mint 19 it worked. But with 19.1 it stopped working (as is my impression after almost a year later ...)

HansBinBrabant commented 3 years ago

Hallo helpfull guy's. In mint 20, it worked. Now in 20.1 the problem is back. Can you help again ? Thanks in advance. Hans