LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-31-2015, 03:32 PM   #1
xMister32
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Rep: Reputation: Disabled
KDE - Debian 8.2 - Problem with dual display setup, 1920x1080 & 1440x900 (GTX 960)


Hello everyone!
After around 5 hours of searching through forums or webpages, I decided to ask here.
I've installed Debian 8.2 with KDE. My GPU is GeForce GTX 960, so I've installed NVIDIA proprietary drivers (from their server), version 352.55.
My setup contains two displays - main (1920x1080) and additional (1440x900).
After installing drivers, main display works perfectly, but the second one stucked at resolution 640x480. Only other resoulution mode that I can choose in nvidia-settings is 320x240, which ofc don't fit me well.
I tried to add custom mode using xrandr but I can't properly execute addmode command because of errors..
Interesting thing is that before I've installed those drivers, only additional dispay was working, and resolution was 1280x1024 so it surely supports it. (btw it's typical and it's because of my GPU, installation of every OS goes on this second display).
My problem may be connected to the fact that I'm using adapter to connect VGA display to DVI-I port. Also, on my Windows installation everything works just fine. I used to have Ubuntu installed, and resolutions were fine.
If anyone here can help me, I will be very grateful.
It's my first time with using Debian so please, be forgiving :P
In before, thank you all!
 
Old 10-31-2015, 04:23 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Your xorg.conf?
 
Old 10-31-2015, 05:03 PM   #3
xMister32
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
My xorg.conf

Oh ofc, here it is:
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 352.55  (buildmeister@swio-display-x64-rhel04-15)  Thu Oct  8 15:52:34 PDT 2015


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-31-2015, 05:20 PM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Looks like you only had one output connected when generating the xorg.conf.

Do it again with both connected, then make any manual edits required for your desired modes.
 
Old 10-31-2015, 05:47 PM   #5
xMister32
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
I used nvidia-xconfig command. It generated exactly same xorg.conf as before. I tried to do it from terminal and also again from tty1 with disabled kdm. Same result. Is there any way to add it manually?
 
Old 10-31-2015, 06:06 PM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
You should be able to use the nvidia-settings tool to set it up how you want and generate an xorg,conf from that.
 
Old 10-31-2015, 06:27 PM   #7
xMister32
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
I did what you suggested and my xorg.conf changed. Here it is:

Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 346.35  (buildmeister@swio-display-x86-rhel47-09)  Sat Jan 10 21:57:03 PST 2015

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
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"
    # HorizSync source: xconfig, VertRefresh source: xconfig
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 960"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "DVI-I-0: 640x480_60 +1920+600, HDMI-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
 
Old 10-31-2015, 06:41 PM   #8
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Code:
    Option         "metamodes" "DVI-I-0: 640x480_60 +1920+600, HDMI-0: nvidia-auto-select +0+0"
This looks like the relevant line - change it to what you want.
 
Old 10-31-2015, 07:15 PM   #9
xMister32
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
It's my xorg.conf after changing it manually.
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 346.35  (buildmeister@swio-display-x86-rhel47-09)  Sat Jan 10 21:58:11 PST 2015

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 346.35  (buildmeister@swio-display-x86-rhel47-09)  Sat Jan 10 21:57:03 PST 2015

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
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"

    # HorizSync source: xconfig, VertRefresh source: xconfig
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 960"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "DVI-I-0: 1440x900_60 +1920+0, HDMI-0: 1920x1080_60 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Unfortunately, nothing changed. I think that it's because there is no mode called 1440x900_60 for DVI-I-0 when mode 1920x1080_60 exists for HDMI-0.
Here is my xrandr output, I'm wondering if there is any way to add other modes to DVI-I-0..

Code:
mister@mister-debian:~$ xrandr
Screen 0: minimum 8 x 8, current 2560 x 1080, maximum 16384 x 16384
DVI-I-0 connected 640x480+1920+0 (normal left inverted right x axis y axis) 0mm x 0mm
   640x480       59.94*+
   320x240       60.05  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1400x1050     59.98  
   1280x1024     60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94    59.93  
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)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
Unknown-0 disconnected (normal left inverted right x axis y axis)
 
Old 10-31-2015, 07:48 PM   #10
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Rep: Reputation: 34
http://www.arunviswanathan.com/node/53
 
Old 10-31-2015, 08:03 PM   #11
xMister32
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
^I did exactly as it's in your link but it returns error you can see below
Code:
mister@mister-debian:~/kdmtheme-1.2.2$ xrandr | grep maximum
Screen 0: minimum 8 x 8, current 2560 x 1080, maximum 16384 x 16384
mister@mister-debian:~/kdmtheme-1.2.2$ gtf 1440 900 59.9

  # 1440x900 @ 59.90 Hz (GTF) hsync: 55.83 kHz; pclk: 106.29 MHz
  Modeline "1440x900_59.90"  106.29  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync

mister@mister-debian:~/kdmtheme-1.2.2$ xrandr --newmode "1440x900_59.90"  106.29  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync
mister@mister-debian:~/kdmtheme-1.2.2$ xrandr --addmode DVI-I-0 1440x900_59.90
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  49
  Current serial number in output stream:  50
mister@mister-debian:~/kdmtheme-1.2.2$

Last edited by xMister32; 10-31-2015 at 08:05 PM.
 
Old 10-31-2015, 09:12 PM   #12
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Rep: Reputation: 34
Sorry about that,i'd happened to stumble on it in the context of creating a new mode and was meant to be a suggestion, that's why i didn't elaborate on it, Here's another till someone more experienced steps in.
 
Old 10-31-2015, 09:29 PM   #13
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Have you tried with nouveau rather than the nvidia driver?
It seems to work better in multi-monitor setups - especially using xrandr.
 
Old 10-31-2015, 09:31 PM   #14
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,003
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by descendant_command View Post
Have you tried with nouveau rather than the nvidia driver?
It seems to work better in multi-monitor setups - especially using xrandr.
Honestly, I'd suggest at least TRYING that as well. I've had issues with my dual monitor setup with the Nvidia proprietary drivers in some versions (most work without issue, but a few proved to be quite troublesome), but using krandr (kde's frontend to xrandr) with nouveau I've had it working without issue for several years through KDE4 and now KDE5.
 
Old 11-01-2015, 07:26 AM   #15
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Section "Monitor" #Laptop Screen
Identifier "Laptop"
Option "Primary" "True" # Auf dem primren Display wird bspw. der Login-Manager angezeigt
Option "PreferredMode" "1280x800" # korrekte Auflsung eintragen
EndSection

Section "Monitor" #externer Bildschirm
Identifier "Extern"
Option "LeftOf" "Laptop" # Auch "RightOf" mglich
Option "Primary" "False"
Option "PreferredMode" "1280x1024" # korrekte Auflsung eintragen
EndSection

Section "Device"
Identifier "Card0"
Driver "nouveau"
Option "Monitor-LVDS-1" "Laptop" # Schema "Monitor-ANSCHLUSSNAME"
Option "Monitor-VGA-1" "Extern"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 2560 1024 # Hhe und Breite des erzeugten "Screens" (1280 + 1280 = 2560)
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Layout0"
Screen "Screen0"
EndSection

or here

https://wiki.archlinux.org/index.php/Multihead
 
  


Reply



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
VGA passthrough with a GTX 960 deepthought42 Linux - Virtualization and Cloud 1 09-28-2015 08:00 AM
[SOLVED] Monitor: Replaced Dual 1280x1024 with Dual 1920x1080 - Won't keep resolution settings rpeiffer Linux - Desktop 2 01-31-2013 07:37 AM
Debian 1440x900 resolution problem Antiz Linux - Newbie 10 04-06-2010 11:34 AM
NVIDIA GeForce 5200 display problem & Debian FHC Linux - Hardware 2 08-17-2007 09:15 PM
Winxp/linux dual boot & display problem Nemo_007 Linux - General 1 09-23-2003 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:49 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