Announcement

Collapse
No announcement yet.

Dual Monitor not detected in 16.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dual Monitor not detected in 16.04

    Using System settings>>Display and monitor there is no sign of my external monitor connected to the HDMI port.

    The laptop screen works fine but I am struggling to get Dual monitor working.

    As a test I tried:

    xrandr --output HDMI-1 --mode 1366x768 --right-of LVDS-1

    and this turns the monitor on but the settings don't update in System setting GUI.

    $ for i in /sys/class/drm/card*/enabled; do echo -en "$i\t"; cat $i;done
    /sys/class/drm/card0-DP-1/enabled disabled
    /sys/class/drm/card0-DP-2/enabled disabled
    /sys/class/drm/card0-DP-3/enabled disabled
    /sys/class/drm/card0-HDMI-A-1/enabled enabled
    /sys/class/drm/card0-HDMI-A-2/enabled disabled
    /sys/class/drm/card0-HDMI-A-3/enabled disabled
    /sys/class/drm/card0-LVDS-1/enabled enabled
    /sys/class/drm/card0-VGA-1/enabled disabled

    Does anyone have a better work around? I don't seem to be able to set a background picture and can only drag windows from the laptop screen to the monitor.

    Neil

    #2
    Which graphics card do you have?

    I am running 16.04 on my laptop with my external monitor hooked up via HDMI and it is working as expected. Mostly, I am using card 1.

    Code:
    Graphics:  Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller
               Card-2: Advanced Micro Devices [AMD/ATI] Venus PRO [Radeon HD 8850M / R9 M265X]
               Display Server: X.Org 1.18.3 drivers: ati,radeon,intel (unloaded: fbdev,vesa)
               Resolution: 1920x1080@60.01hz, 1920x1080@60.00hz
               GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 11.2.0
    If you are running an Nvidia card, try installing the Nvidia drivers through Settings -> System Settings -> Driver Manager
    If you're sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!

    Comment


      #3
      Originally posted by elijathegold View Post
      If you are running an Nvidia card, try installing the Nvidia drivers through Settings -> System Settings -> Driver Manager
      Because Driver Manager is 'broken' at the moment; it won't finish the search and then display it's recommendation; so you will need to follow:

      https://www.kubuntuforums.net/showth...l=1#post386601

      This does the search via the command line.
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        It's a Dell laptop with an intel i910 graphics card.

        All the hdmi devices are disabled.



        Originally posted by elijathegold View Post
        Which graphics card do you have?

        I am running 16.04 on my laptop with my external monitor hooked up via HDMI and it is working as expected. Mostly, I am using card 1.

        Code:
        Graphics:  Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller
                   Card-2: Advanced Micro Devices [AMD/ATI] Venus PRO [Radeon HD 8850M / R9 M265X]
                   Display Server: X.Org 1.18.3 drivers: ati,radeon,intel (unloaded: fbdev,vesa)
                   Resolution: 1920x1080@60.01hz, 1920x1080@60.00hz
                   GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 11.2.0
        If you are running an Nvidia card, try installing the Nvidia drivers through Settings -> System Settings -> Driver Manager

        Comment


          #5
          From a cold boot run the command
          Code:
          dmesg | grep -i firmware
          which should highlight any problems with missing or malfunctioning firmware (if any). You could also run
          Code:
          dmesg | grep -i hdmi
          to see if there are any issues flagged.
          If you're sitting wondering,
          Which Batman is the best,
          There's only one true answer my friend,
          It's Adam Bloody West!

          Comment


            #6
            Originally posted by elijathegold View Post
            From a cold boot run the command
            Code:
            dmesg | grep -i firmware
            which should highlight any problems with missing or malfunctioning firmware (if any). You could also run
            Code:
            dmesg | grep -i hdmi
            to see if there are any issues flagged.
            Just reboot and tried the commands suggested:

            dmesg | grep -i firmware
            [ 0.124826] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
            [ 4.277780] iwlwifi 0000:02:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm

            dmesg | grep -i hdmi
            [ 4.998027] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input16
            [ 4.998109] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input17
            [ 4.998395] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input18

            There doesn't seem to be anything wrong in terms of graphics card. (Intel i910)

            Running:

            for i in /sys/class/drm/card*/enabled; do echo -en "$i\t"; cat $i;done
            /sys/class/drm/card0-DP-1/enabled disabled
            /sys/class/drm/card0-DP-2/enabled disabled
            /sys/class/drm/card0-DP-3/enabled disabled
            /sys/class/drm/card0-HDMI-A-1/enabled disabled
            /sys/class/drm/card0-HDMI-A-2/enabled disabled
            /sys/class/drm/card0-HDMI-A-3/enabled disabled
            /sys/class/drm/card0-LVDS-1/enabled enabled
            /sys/class/drm/card0-VGA-1/enabled disabled

            I am wondering if I need to add a switch into the boot script?

            I can only get it partially working by doing:

            xrandr --addmode HDMI-1 1366x768
            xrandr --output HDMI-1 --mode 1366x768 --right-of LVDS-1


            Neil



            Comment


              #7
              I was going to suggest the xrandr hack myself. I would guess that the solution would entail adding the device to the Xorg.conf file but it has been so long since I had to fiddle with that beastie I have forgotten most of what I knew!

              While it's quite unlikely due to the xrandr having an effect, could you try a different cable?

              [edit]I suppose you could add the xrandr lines to an auto start script as one final way around it[/edit]
              Last edited by elijathegold; Apr 29, 2016, 04:28 AM.
              If you're sitting wondering,
              Which Batman is the best,
              There's only one true answer my friend,
              It's Adam Bloody West!

              Comment


                #8
                Originally posted by elijathegold View Post
                I was going to suggest the xrandr hack myself. I would guess that the solution would entail adding the device to the Xorg.conf file but it has been so long since I had to fiddle with that beastie I have forgotten most of what I knew!

                While it's quite unlikely due to the xrandr having an effect, could you try a different cable?

                [edit]I suppose you could add the xrandr lines to an auto start script as one final way around it[/edit]

                Same laptop,cable and monitor worked before so I don't think it is a hardware problem. It's a config issue on boot or during X start I think.

                If anyone understands how to add xrandr to the start up sequence of X or system boot or can show me how to force a hardware detection/ turn the hardware from disabled to enabled then please describe how to do it!

                Neil

                Comment


                  #9
                  In your home directory run the commands
                  Code:
                  mkdir scripts
                  cd scripts
                  touch xrandr.sh
                  chmod +x xrandr.sh
                  This creates a scripts folder, the script file and makes it executable. Add the following in to the script
                  Code:
                  #!/bin/bash
                  
                  [FONT=monospace]xrandr --addmode HDMI-1 1366x768
                  xrandr --output HDMI-1 --mode 1366x768 --right-of LVDS-1
                  [/FONT]
                  Then using Settings -> System Settings -> Startup and Shutdown, make sure you are in the in the Autostart tab. Click Add Program and browse to your xrandr script. Leave everything else as the defaults and OK your way through.

                  This will only work for your user and will run the commands when you log on.
                  If you're sitting wondering,
                  Which Batman is the best,
                  There's only one true answer my friend,
                  It's Adam Bloody West!

                  Comment


                    #10
                    Thanks for that. I'll give it a go now.

                    Do you happen to know how I can find out the supported resolutions for HDMI-1? I'm running 1366x768 but would ideally like to go higher. Is there a routine I can run to detect supported resolution?

                    Comment


                      #11
                      Firstly, I would run xrandr while the hdmi is active and see what this lists. If it shows the desired resolution then just changing the values in the script may be enough. If it doesn't and you are absolutely sure of the screens capabilities then run
                      Code:
                      cvt 1920 1080 60
                      xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
                      xrandr --addmode HDMI-1 [FONT=monospace]1920x1080_60.00[/FONT]
                      xrandr --output HDMI-1 --mode 1920x1080_60.00 --right-of LVDS-1
                      In the second code line, the details are based on the output of the cvs command and may be different for your monitor. Try them from the terminal and if they work OK, you can use them in the script.
                      Last edited by elijathegold; Apr 29, 2016, 08:26 AM. Reason: Correcting a small typo
                      If you're sitting wondering,
                      Which Batman is the best,
                      There's only one true answer my friend,
                      It's Adam Bloody West!

                      Comment


                        #12
                        Originally posted by elijathegold View Post
                        Firstly, I would run xrandr while the hdmi is active and see what this lists. If it shows the desired resolution then just changing the values in the script may be enough. If it doesn't and you are absolutely sure of the screens capabilities then run
                        Code:
                        cvt 1920 1080 60
                        xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
                        xrandr --addmode HDMI-1 [FONT=monospace]920x1080_60.00[/FONT]
                        xrandr --output HDMI-1 --mode 920x1080_60.00 --right-of LVDS-1
                        In the second code line, the details are based on the output of the cvs command and may be different for your monitor. Try them from the terminal and if they work OK, you can use them in the script.
                        For reference this is my script to set up the second monitor. There was a minor typo in the last set of instructions.....

                        xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
                        xrandr --addmode HDMI-1 1920x1080_60.00
                        xrandr --output HDMI-1 --mode 1920x1080_60.00 --right-of LVDS-1

                        Starting this as described earlier on system start works fine. I have no way of putting widgets on this screen or setting a desktop background but I can drag and drop windows to it which is mostly what I need it for.

                        I hope this helps others with the same issue.

                        Neil


                        Comment


                          #13
                          I think the inability to set a background or widgets on the external monitor is a bug. I have a background on mine but it will disappear at some point, maybe after the monitor sleeps. Restarting kwin puts it back again. If I can work out when it happens, I'll file a KDE bug.

                          Thanks for spotting the typo. The dangers of copy and paste
                          If you're sitting wondering,
                          Which Batman is the best,
                          There's only one true answer my friend,
                          It's Adam Bloody West!

                          Comment

                          Working...
                          X