Showing results for 
Search instead for 
Do you mean 
Reply
Punch Card
Posts: 12
Registered: ‎01-20-2016
Location: US
Message 1 of 50 (22,528 Views)

External Display issue with P50 on Linux

Hello!

 

I have a P50 (TopSeller 20EN0013US) and dual boot Windows 10 Pro and UbuntuGnome 15.10 with it. I have been having an issue connecting external displays via the laptop's mini-DisplayPort connector. When I plug in an external display while the machine is running, the internal display will begin turning on and off every second, until the external display is disconnected. The external display never turns on. I have the bios set to use dedicated graphics only. I am using the binary Nvidia driver, version 352.63, and have also tried the 352.79, 358.xx, and 361.xx (from the nvidia-drivers ppa) which all have the same issue. I am using the kernel version 4.2.0.27, which is the stock 15.10 ubuntu kernel. The issue does not occur under Windows 10 Pro.

 

I have been able to work around the issue by setting the mini-Displayport to the primary display device (so it is visible at boot, and ends up being used for the console framebuffer), which then allows me to switch to the console and back, which generally allows both the external display and internal display to work. Any display reconfiguration (or even if the display goes to sleep) will cause the issue to occur again, but I can still switch to the console and back to get it to work.

 

I also noticed that the issue does not occur via the HDMI output, however all of the displays I personally own only have displayport or dual-link dvi. I have access to a 90W Ultra Dock, which I will try to test tomorrow and see if the displayport's on the dock have the same issue.

 

Has anybody else ran into this issue? Any suggestions or help is appreciated!

Thinkpad P70: 6700HQ, 16GB RAM, 256GB SSD + 480GB SSD, DVD-RW, Quadro M3000M, FHD Matte IPS (AUO), Windows 10 Pro + UbuntuGNOME 16.04
Punch Card
Posts: 22
Registered: ‎11-21-2015
Location: us
Message 2 of 50 (22,442 Views)

Re: External Display issue with P50 on Linux

I ran in this exact issue on P70 but only when I dock it to pro dock. Connecting external monitor directly to mini DP was not causing flashes in my case.  I use gnome-shell and temporary workaround (for flashes) is to restart gnome-shell (I defined a shortcut using .xbindkeysrc for the "gnome-shell --replace".) The flashes stopped permanently only when I saved the monitor setup to its config file manually.

 

However I gave up and returning P70 for other issues which I couldn't find any workaround. I've just posted to another topic (P50 / P70 linux experiences).

good luck with your installation.

Punch Card
Posts: 12
Registered: ‎01-20-2016
Location: US
Message 3 of 50 (22,408 Views)

Re: External Display issue with P50 on Linux

Thanks for the tip! I setup a similar xbindkey and was actually able to get it to detect my monitors at work and configure the displays (place the internal LCD in a different position relative to the external displays).

I will note that the nVidia binary driver does NOT support UEFI native mode entirely, so in order to be able to switch to VT's, you must have CSM support enabled in the bios.

I noticed that Debian has finally added nvidia 352.79 to jessie-backports. I think I will reinstall once I have a chance as vanilla Debian has generally been more stable for me than Ubuntu.
Thinkpad P70: 6700HQ, 16GB RAM, 256GB SSD + 480GB SSD, DVD-RW, Quadro M3000M, FHD Matte IPS (AUO), Windows 10 Pro + UbuntuGNOME 16.04
Fanfold Paper
Posts: 10
Registered: ‎04-22-2016
Location: US
Message 4 of 50 (21,842 Views)

Re: External Display issue with P50 on Linux

[ Edited ]

I have been running Fedora 23 on my P50 with dock and external monitors. I ran into an issue like this. Then yesterday I tried installing Ubuntu Gnome 16.04 on it. It was a day of pain. Here are some tips and some other information.

 

There are three modes the graphics can run in.

 

1. Intel only(Hybrid in the bios)

It runs like crap, even with workarounds when using external monitors. It also makes using GRUB interactively painfully slow.

 

 

2. Intel/Nvidia(Hybrid in the bios)

Kinda worked with external monitors, but when I disconnected from them I wouldn't get a display on the internal display.

 

3. Nvidia only(Dedicated in the bios)

 

Had the painful flickering issue to start. Gnome-shell would even crash. Sometimes it would settle down, and work until I wanted to change the monitor configuration. Then it would flicker all over again.

 

After stumbling on to the fact that 2 wasn't 1 by uninstalling the Nvidia driver. Then I realized that installing the Nvidia driver had installed nvidia-prime. Which is what makes 2 work. I tried uninstalling nvidia-prime, and suddenly the crashing went away.

 

I still don't have it perfect, but adding this to my xorg.conf seems to have helped get rid continious flicker on display reconfiguration. The numbers 3.2.8, 3.1 and 4 may vary in your case. You should be able to find them from /var/log/Xorg.0.log.

 

Option "ConnectedMonitor" "DFP, DFP, DFP"
Option "UseDisplayDevice" "DFP-3.2.8, DFP-3.1, DFP-4"

 

Update:

I switched from gdm to lightdm, and the flickering went completely away. It seems to be a bug in gdm. Then I don't need special nvidia options either.

 

Upgrading to a 4.5.x+(currently 4.5.2) kernel helps with Skylake hardware.

 

Enabling CSM support in the bios helps. It is basically a backward compatiability mode.

 

I found a really annoying issue that causes ^@(null characters) to be inputted on the linux console seemingly randomly when connected to the dock. They are inputted like you typed it on the keyboard, so they interfere with typing passwords. I use full disk encryption, and it kept interfering with enter that and logging in during boot. I had to disconnect from the dock most of the time to be able to enter a password. I don't have a solution for this yet.

 

If you have full disk encryption on like me, and put it in Nvidia only mode the splash screen that asks for your password doesn't work right with Ubuntu GNOME 16.04. It will show your password in the top left as you type it and doesn't seem to take it as input for encryption. I have to use the recovery mode GRUB entry, but take out the word recovery to get it to boot without the splash. Then I can enter the password properly.

 

 

I had to change /etc/grub.d/10_linux:
gfxpayload_dynamic="0"
vt_handoff="0"
 
Also had to change /etc/default/grub
 
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
 
Run:
grub-mkconfig -o /boot/grub/grub.cfg
HDMI
Posts: 294
Registered: ‎11-13-2010
Location: US
Message 5 of 50 (21,778 Views)

Re: External Display issue with P50 on Linux

@ngrennan, thank you for the info on installing Ubuntu 16.04 on P50. I think you can possibly start a new thread on this broader topic. I was trying to install Ubuntu 16.04 on my P50. USB made, and then found a lot of reported issues and I am not sure if I should use LVM to manage the filesystems for Ubuntu... 

 

Back to the topic, do you find any difference using a HDMI and mini-DP for the external monitor? 

-----------------------------------------------------------------------------
TPs own: X31 (2003), X61T, X200T, Tablet 2, P50 (2016); Win XP-10, Ubuntu8.04-16.04.
Fanfold Paper
Posts: 10
Registered: ‎04-22-2016
Location: US
Message 6 of 50 (21,756 Views)

Re: External Display issue with P50 on Linux

LVM use is marginal. Most of the time it is neither a benefit or detriment. On laptops you aren't likely to want to resize after install. You also don't really have expansion options with most laptops, though the P50 is an exception to that. On the other hand LVM can make things more complicated when doing more advanced things like recovery. My method is not to use it on laptops, and to not even use it on servers(in my case these days that means EC2 instances). The potential exception is database servers. It is useful for doing snapshots. But that is only really useful for ephemeral storage. With EBS volumes you can snapshot them without LVM. It is much more useful on physical servers.

 

I don't use the HDMI port, and I generally don't use the mini-DP. The HDMI can technically do better than 1080p, but in practice seems to be limited to 1080P. My 1440p monitors will only do 1080p across HDMI. I have a 4k TV, but I have a desktop with a Nvidia 980 that I use with it. My external monitors are 1440p at home and work. While fighting to get the dock to work I have tried the mini-DP, and found if I just want one external monitor the mini-DP works without trouble.  

HDMI
Posts: 294
Registered: ‎11-13-2010
Location: US
Message 7 of 50 (21,700 Views)

Re: External Display issue with P50 on Linux

[ Edited ]

For those who has problems with the Prime or other NVidia drives, you may want to try Primus: http://www.webupd8.org/2012/11/primus-better-performance-and-less.html

 

I didn't try it by myself, because I am still having problems with my disks. It is told by others that Primus works better on computers with NVidia. You may need to install Bumblebee before hand: https://wiki.archlinux.org/index.php/bumblebee#Primusrun

-----------------------------------------------------------------------------
TPs own: X31 (2003), X61T, X200T, Tablet 2, P50 (2016); Win XP-10, Ubuntu8.04-16.04.
Fanfold Paper
Posts: 10
Registered: ‎04-22-2016
Location: US
Message 8 of 50 (21,662 Views)

Re: External Display issue with P50 on Linux

[ Edited ]

Switching from gdm to lightdm only partially fixed the flickering problem. It would do the same thing when trying to wake up from locking the screen. I found upgrading from 3.18 to 3.20 helped. Then I ran into a crash bug. I fixed it by using a patch from Arch Linux. I asked  one of the Ubuntu maintainers to include the patch in the next release.

 

I seem to still have an issue with coming back from locking the screen, but not the flickering. Fussing with it and waiting on it, it did finally come back and let me login.

 

3.20 seems to add the lock button back to the top right menu. Smiley Happy

 

16.04 Gnome 3.20 ppa:

http://www.webupd8.org/2016/04/how-to-install-gnome-320-in-ubuntu.html

 

Bug report with reported fix:
 
Patch:
HDMI
Posts: 294
Registered: ‎11-13-2010
Location: US
Message 9 of 50 (21,638 Views)

Re: External Display issue with P50 on Linux

So, I have tried Primus and it doesn't seem to fix the problem. Still cannot connect to the external monitor stably... Flickering on the build in monitor if connected, and the fans are running heavily some times. It can detect the external monitor, just no image so far...Not sure what is the problem.

-----------------------------------------------------------------------------
TPs own: X31 (2003), X61T, X200T, Tablet 2, P50 (2016); Win XP-10, Ubuntu8.04-16.04.
Fanfold Paper
Posts: 10
Registered: ‎04-22-2016
Location: US
Message 10 of 50 (21,605 Views)

Re: External Display issue with P50 on Linux

Upgrading to Gnome 3.20 seems to be the only real fix for that issue. Then you need the patch above to fix another issue.

Top kudoed Authors