Only the second monitor works
I am new to Ubuntu, and I am experiencing problems with monitors and Nvidia. I have Ubuntu 14.04 x64 (I cannot upgrade because I need that version for my robot) and an integrated Nvidia card in my laptop, a Nvidia GeForce GTX 950M. At the very beginning, plugging in an HDMI cable for using a second monitor, the second monitor was not detected. I installed Nvidia drivers and started messing around (probably too much), and now only the second monitor is detected, and in addition the touchpad doesn’t work, but the mouse and the keyboard do work.
Right now I am using Nvidia drivers 361.45.18 (I am not using the most recent 375.26 that I could use since I am not sure they would work in Ubuntu 14.04). I downloaded CompizConfig Settings Manager and in General Options -> Display Settings I untoggled ‘Detect Outputs’ (but if I toggle it back, nothing really changes) and forced two outputs, 1920×1080+0+0 and 1920×1080+1920+0, as suggested in some forums. Before doing this, a single desktop was stretched out on the two monitors: after doing it, everything was immediately working, and survived 4-5 reboots. But the day after, only the second screen worked, for mystical reasons. When I turn on the pc, the ‘Ubuntu’ logo appears on the laptop screen while loading, but then the login screen appears only on the second monitor: whether I plug or unplug the HDMI, nothing changes: the pc screen is really dark purple (you can see it’s on), but even if I unplug the HDMI, it stays so. Nothing appears there. And I can’t move windows anywhere, there is only one desktop. Both in Systems Settings and nvidia-settings only the LG external monitor is detected.
I can post this info here:
sudo lshw -c video *-display description: 3D controller product: GM107M [GeForce GTX 950M] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a2 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list rom configuration: driver=nvidia latency=0 resources: irq:134 memory:a3000000-a3ffffff memory:90000000- 9fffffff memory:a0000000-a1ffffff ioport:4000(size=128) memory:a4000000-a407ffff *-display description: VGA compatible controller product: Intel Corporation vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 06 width: 64 bits clock: 33MHz capabilities: pciexpress msi pm vga_controller bus_master cap_list rom configuration: driver=i915_bpo latency=0 resources: irq:132 memory:a2000000-a2ffffff memory:b0000000-bfffffff ioport:5000(size=64)
xrandr Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384 HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm 1920x1080 60.0*+ 59.9 50.0 60.1 60.0 50.0 1680x1050 60.0 1600x900 60.0 1440x900 59.9 1400x1050 60.0 1280x1024 75.0 60.0 1280x800 59.8 1280x720 60.0 59.9 50.0 1152x864 75.0 1024x768 75.0 60.0 800x600 75.0 60.3 720x576 50.0 720x480 59.9 640x480 75.0 59.9 59.9
I am scared to do any action since at least now it’s stable and I can work, but if I don’t have a second monitor, I can’t. So I need to solve this. Please, ask me anything that I should post, the output of any flag, since I don’t know precisely which can be useful. But please, help me.