-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDMI output not working (solved) #855
Comments
Hmm, I'm in a similar situation with an MSI GS43VR 6RE Phantom Pro with the following specs:
Issue: When I connect the MSI laptop to an external monitor via HDMI, the screen flickers nonstop until the cable is unplugged. With the mDP port on the rear, the external display only works IF set in duplicate mode, which can greatly limit the resolution used (Common culprit is a projector I use frequently). I'll try this workaround and give feedback soon. FYI: I'm on Ubuntu 16.04LTS. |
And it works, voila! |
I have a similar laptop, the Clevo P651RA and have the same two requirements: (1) turn off dGPU when unused (2) enable use of external monitors. For this I don't use Bumblebee but nouveau. Older notes are at #808 (comment), but with the latest versions of the kernel/Xorg stack it gets better (I currently use nouveau/intel as xorg drivers instead of modesetting). |
@Lekensteyn - I did try nouveau (see here), but xrandr --listproviders only showed the intel card - and the power use was higher even though the nvidia card was turned "off" (could only get vgaswitcheroo to show DynPwr). Anything specific for the nouveau setup that I might have missed? |
@bammitzb "DynPwr" means that the GPU is turned ON, "DynOff" means that the power is turned off (both using runtime PM). I have not tested it with the nvidia blob driver, for listproviders to show the nouveau/modesetting device you need respective xorg modules (xf86-video-nouveau or modesetting as included with recent xorg-server). If any of the programs keep /dev/dri/card1 open (Xorg, an application through |
@Lekensteyn I did use the xf86-video-nouveau as well as the modesetting driver I think, but maybe I should give it another try... |
@Lekensteyn Finally got time to try nouveau (+modesetting) again and it now works, i.e. xrand --listproviders shows both intel and nvidia card and I can activate the nvidia HDMI and DP outputs by doing this as you suggested (reverse PRIME?):
If I don't do the above I just see the below in the log when plugging monitor on DP, so maybe if this event was handled the outputs could get switched on/off automatically?
With respect to vgaswitcheroo I also get "DynOff" for the nvidia card when on battery, and "DynPwr" when on AC (EDIT: When on AC it is also possible to get DynOff - use powertop to toggle nvidia pci tunable "Bad" into "Good"). Initially I saw 16-18W when on battery, but trying now gives approx. 26W?? (EDIT: I get 16-18W when I have pcie_port_pm=off as kernel boot parameters). Nevertheless, my external outputs work better with nouveau, so I think I'll stick to nouveau and hope support just gets better over time... (EDIT: I still have a lot of issues with the external outputs - sometimes I just can't get my external display where I want it and sometimes I end up with a black screen with just a mouse pointer on it. This was also the case when I used bumblebee though.) I tried to run without any xorg.conf, but that did not work - I had to have the following xorg.conf to get nouveau+modesetting to work:
|
@bammitzb Yours is the only instructions I have found that work to get my external USB-C/DisplayPort monitor working on my Lenovo P72. Unfortunately response is extremely slow/laggy on the external display. I don't believe the Nvidia GPU is actually powering it, but at least I've gotten much further today than in the past weeks. [edit] A little more googling brought me to https://bugs.freedesktop.org/show_bug.cgi?id=96820 Per comments, in If you don't want to change For reference, my Lenovo P72 is running
|
@jtreminio Glad to help - also took me a long time to get mine working. These days nouveau just works when attaching external display and the power down even works fine now also when the external screen is unplugged. |
Guys, what Desktop Environment do you use? As described in this bug report the external monitor works only with Wayland (this conflicts with some tools I use). With LXQT and Gnome 3 (X.org) I have the external monitor enabled, no window is rendered there (only a mouse cursor). I have Hyperbook NH5/Clevo NH55RCQ (with GeForce GTX 1660 Ti) which seems to have HDMI wired to the NVidia card as mentioned in this thread. I use nouveau. |
I am running Gentoo with KDE and above xorg.conf (nouveau + modesetting). I use this small script to turn on external monitor output when I need to use it:
These days that just works! I used to have a script to turn off external monitor support as well, mainly to power down when on battery - but that also seems to work nicely now if I unplug the external monitor (17-18 W when on battery an unplugging the monitor). With the monitor plugged in I'm around 26-30W. |
Thanks @bammitzb . Yes, the NVidia card seems to be turned on automatically after the monitor is connected and is found by Gnome 3 (with LXQT I need to use |
EDIT: A better solution seems to now be to use nouveau+modesetting - see comments below.
(This comes from #764 (comment) - I thought I'd open a separate issue for my problem that has been solved).
I have a Tuxedo XC1706 (aka Schenker XMG P706 aka Clevo P671RG) (i7-6700HQ/GTX 970M) where the external outputs (HDMI and 2 display ports) are wired to the NVIDIA card. The intel HD only has the laptop screen attached. My goal has been to have a laptop with good battery life, so turn off nvidia when not needed - and I found bumblebee to be the near perfect solution. It worked more or less except: 1) The nvidia card did not turn off automatically when the optirun command had finished and 2) The external outputs were not working.
I can live with 1) since I am able to turn the card off manually using a script. But I need 2) badly.
I finally got the HDMI output working - the trick was to add intel as a dummy inactive device in the bumblebee xorg.conf.nvidia (similar/opposite to what I do in /etc/X11/xorg.conf.d/xorg.conf):
This is my /etc/X11/xorg.conf.d/xorg.conf:
I did edit my bumblebee.conf a bit, but I'm not sure that has anything to do with it:
I can now turn the nvidia card on (and enable external outputs on the nvidia card) by using this script:
Ctrl-C the script when no longer needed and run this script to turn off the nvidia card again:
The text was updated successfully, but these errors were encountered: