LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-22-2020, 03:46 AM   #1
leydar
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Rep: Reputation: Disabled
Multiscreen laptop and HDMI


Hi,

I'm running Ubuntu 20.04.1 LTS with Gnome 3.36.3 on a Novatech laptop with Mesa Intel® HD Graphics 630 (KBL GT2) onboard and Nvidia GeForce GTX 1070.

A couple of days ago it crashed back to the graphical login screen after I logged in. I switched to a virtual terminal to try and figure out what was going on. I installed nvidia-driver-450 and rebooted. I alternated between installing the drivers in Gnome and from the CLI with apt-get. I purged nvidia* drivers and reinstalled and rebooted.

I'm now at a point where I can use prime-select to set the system to either intel or nvidia. If I select nvidia it will display correctly on an external monitor but not on the built in monitor. The external one only appears in settings/display. When I select intel and reboot it will display exclusively on the built in laptop screen and not the external monitor. It's also limited to 960*540 resolution. I'm thinking reinstalling the Intel drivers might help but I'd still have a configuration issue. I can't hotkey between screens and only the currently selected one is available via the settings GUI.

This configuration previously displayed on both internal and external screens without issue. I used to see both displays available in settings where now I only see whichever is set by prime-select.

nvidia-smi
Code:
Tue Oct 20 21:20:38 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02    Driver Version: 450.80.02    CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 1070    Off  | 00000000:01:00.0  On |                  N/A |
| N/A   45C    P2    31W /  N/A |    250MiB /  8119MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1203      G   /usr/lib/xorg/Xorg                 35MiB |
|    0   N/A  N/A      2196      G   /usr/lib/xorg/Xorg                 91MiB |
|    0   N/A  N/A      2701      G   /usr/bin/gnome-shell               70MiB |
|    0   N/A  N/A      7702      G   ...AAAAAAAAA= --shared-files       42MiB |
+-----------------------------------------------------------------------------+
xrandr
Code:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 520mm x 290mm
   1920x1080     60.00*+  59.94  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x480       59.94    59.94  
   640x480       75.00    72.81    59.94  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
cat /etc/X11/xorg.conf
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 450.80.02


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
 
Old 10-22-2020, 10:17 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Did you also purge and reinstall the xorg*nvidia* packages that support the nvidia card? It is possible that a mismatch between the nvidia packages and the related xorg packages may be contributing to your issues. All mine show the 455.26 driver level.
 
Old 10-24-2020, 09:00 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
One of those issues more easily solved with a fresh install, than trying to figure out what happened. AKA m$ methodology. Otherwise it sounds like one of those bumblebee, optimus, primus, thing a bobs / witchcraft.
 
Old 10-24-2020, 04:07 PM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
What about checking that with xrandr
Code:
xrandr --display eDP1 --auto --above HDMI0
Can't remember if it is --display or --output and can't check for now, try both, with tab completion very efficient, even to find display.
 
1 members found this post helpful.
Old 10-29-2020, 07:30 AM   #5
leydar
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Tonus View Post
What about checking that with xrandr
Code:
xrandr --display eDP1 --auto --above HDMI0
Can't remember if it is --display or --output and can't check for now, try both, with tab completion very efficient, even to find display.
It's --output, but it returns
Code:
warning: output eDP1 not found; ignoring
I think the display is disabled somewhere in the configuration.
Code:
xrandr -d :0
Invalid MIT-MAGIC-COOKIE-1 keyCan't open display :0
My monitor.xml:
Code:
<monitors version="2">
  <configuration>
    <logicalmonitor>
      <x>1920</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>eDP-1-1</connector>
          <vendor>LGD</vendor>
          <product>0x046f</product>
          <serial>0x00000000</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>60.020423889160156</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>HDMI-0</connector>
          <vendor>AOC</vendor>
          <product>2450W</product>
          <serial>CVEB8HA002522</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>60</rate>
        </mode>
      </monitor>
    </logicalmonitor>
  </configuration>
  <configuration>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>eDP-1</connector>
          <vendor>LGD</vendor>
          <product>0x046f</product>
          <serial>0x00000000</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>47.990375518798828</rate>
        </mode>
      </monitor>
    </logicalmonitor>
  </configuration>
  <configuration>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>eDP-1-1</connector>
          <vendor>LGD</vendor>
          <product>0x046f</product>
          <serial>0x00000000</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>60.020423889160156</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>1920</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>HDMI-0</connector>
          <vendor>HSD</vendor>
          <product>HQ272PPB</product>
          <serial>1234567890123</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>60</rate>
        </mode>
      </monitor>
    </logicalmonitor>
  </configuration>
  <configuration>
    <logicalmonitor>
      <x>1680</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>eDP-1-1</connector>
          <vendor>LGD</vendor>
          <product>0x046f</product>
          <serial>0x00000000</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>60.020423889160156</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>HDMI-0</connector>
          <vendor>DEL</vendor>
          <product>DELL E2209W</product>
          <serial>W632F8B30A0I</serial>
        </monitorspec>
        <mode>
          <width>1680</width>
          <height>1050</height>
          <rate>59.954250335693359</rate>
        </mode>
      </monitor>
    </logicalmonitor>
  </configuration>
</monitors>
 
  


Reply

Tags
laptop, screen, ubuntu, xorg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Snapdragon 600 SBC offers an HDMI input and dual HDMI outputs for $99 LXer Syndicated Linux News 0 09-10-2017 01:54 AM
Question: Ideas for connecting laptop to TV via HDMI (no HDMI port on laptop) haertig Linux - Software 5 07-18-2015 03:53 PM
Is it possible to play Blu Ray through a video card HDMI output to HDMI TV? SharpyWarpy Linux - Hardware 5 10-28-2012 01:01 AM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration