LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Dual Monitors with Kde4 (https://www.linuxquestions.org/questions/slackware-14/dual-monitors-with-kde4-752220/)

ryerke 07-15-2010 02:08 PM

Quote:

Originally Posted by adamk75 (Post 4033359)
Are you sure they are seeing the desktop differently, and not just displaying themselves differently? What's the output of 'xdpyinfo -ext XINERAMA | grep head' under KDE and then GNOME?

Adam

Code:

bash-4.1$ xdpyinfo -ext XINERAMA | grep head
  head #0: 1680x1050 @ 0,0
  head #1: 1360x768 @ 1680,282

This is what I got in KDE. The resulting desktop arrangement is attached in my post above.

Relevant portion of xorg.conf:
Code:

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName      "ViewSonic VX2235wm"
    HorizSync      30.0 - 82.0
    VertRefresh    50.0 - 75.0
    Option        "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier    "Monitor1"
    VendorName    "Unknown"
    ModelName      "SHARP LCD"
    HorizSync      31.0 - 75.0
    VertRefresh    59.0 - 76.0
    Option        "CustomEdid" "CRT-0: /etc/X11/edid_crt.bin"
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Videocard0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "GeForce FX 5200"
    BusID          "PCI:3:0:0"
    Screen          0
    Option        "ModeValidation" "DFP-0: NoMaxPClkCheck"
    Option        "CustomEdid" "CRT-0: /etc/X11/edid_crt.bin"
    Option        "UseDisplyDevice" "CRT"
EndSection

Section "Screen"
    Identifier    "Screen0"
    Device        "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option        "TwinView" "1"
    Option        "TwinViewXineramaInfoOrder" "DFP-0"
    Option        "metamodes" "CRT: 1360x768 +1680+282, DFP: nvidia-auto-select +0+0"
    SubSection    "Display"
        Depth      24
    EndSubSection
EndSection

I think this is what you want. Correct me if I am wrong.

igadoter 07-15-2010 03:05 PM

Hmm,
Are we talking about "separate screens" as the "Screen" section in xorg.conf file or monitors sharing virtual desktop?
Please PO be precise - screen comes from xorg.conf - in the xorg.conf you may define several screen-s. If we are talking about a virtual desktop try
Code:

xrandr -q
you should see all you graphic outputs. You can also may you use xrandr to set position of outputs dynamically. ( can may use ? Strange language).
However you have to set the Virtual option in xorg.conf (actually max value 4096x4096).
If any use xrandr not krandr. The latter is a some kind of stuff which never worked for me.

adamk75 07-16-2010 02:15 AM

Quote:

Originally Posted by ryerke (Post 4034442)
Code:

bash-4.1$ xdpyinfo -ext XINERAMA | grep head
  head #0: 1680x1050 @ 0,0
  head #1: 1360x768 @ 1680,282

This is what I got in KDE. The resulting desktop arrangement is attached in my post above.

Alright, and what about gnome?

Adam

ryerke 07-17-2010 12:22 AM

Quote:

Originally Posted by adamk75 (Post 4034993)
Alright, and what about gnome?

Adam

I don' have gnome so I can't do that. My intentions were to present a configuration that the OP may have found useful since the question was about KDE.

adamk75 07-18-2010 02:48 AM

Quote:

Originally Posted by ryerke (Post 4036000)
I don' have gnome so I can't do that. My intentions were to present a configuration that the OP may have found useful since the question was about KDE.

Wait... I just realized that you answered my question (about the xdpyinfo output) that I asked of another poster.

Laodiceans 07-31-2010 01:38 PM

I'm using multimonitor in a nvidia card with two monitors. And I have xorg configured to have two separate X screens without xinerama. But the 2nd screen is blank, I think is a bug on KDE.
Can I have KDE in 1st screen and Xfce on 2nd screen?

adamk75 07-31-2010 03:27 PM

KDE4 does not support running on two or more separate screens at the same time so, yes, this is a bug with KDE (or, at least, a missing feature).

You can start xfce4 on the second screen by running 'DISPLAY=:0.1 startxfce4 &' from a terminal.

Adam

Laodiceans 07-31-2010 03:54 PM

Quote:

Originally Posted by adamk75 (Post 4051155)
KDE4 does not support running on two or more separate screens at the same time so, yes, this is a bug with KDE (or, at least, a missing feature).

You can start xfce4 on the second screen by running 'DISPLAY=:0.1 startxfce4 &' from a terminal.

Adam

But KDE is running on the 2nd screen, but don't show nothing. How I stop it from running on it and use Xfce there.

adamk75 07-31-2010 06:26 PM

Why are you so sure that KDE is running on the 2nd screen? Again, KDE4 does not support running on two or more separate screens at the same time, so unless something has changed *very* recently, that second screen is blank because there is no window manager running on it.

Adam

Laodiceans 07-31-2010 07:01 PM

Quote:

Originally Posted by adamk75 (Post 4051268)
Why are you so sure that KDE is running on the 2nd screen? Again, KDE4 does not support running on two or more separate screens at the same time, so unless something has changed *very* recently, that second screen is blank because there is no window manager running on it.

Adam

If I write 'DISPLAY=:0.1 konsole' it opens the Konsole on 2nd screen. That doesn't means that KDE is running there?

adamk75 07-31-2010 07:25 PM

No, it doesn't. It means you started konsole on the 2nd screen. That's all.

Adam

Laodiceans 07-31-2010 07:41 PM

The 'DISPLAY=":0.1" startxfce4 &' give this result:


Code:

[kerml@main ~]$ DISPLAY=":0.1" startxfce4 &
[1] 9217
 [kerml@main ~]$ /usr/bin/startxfce4: X server already running on display :0.1
/tmp/xrdb_EO5YQp:1:3: error: invalid preprocessing directive #Those
/tmp/xrdb_EO5YQp:2:3: error: invalid preprocessing directive #or
/tmp/xrdb_EO5YQp:3:3: error: invalid preprocessing directive #Xft
/tmp/xrdb_EO5YQp:4:3: error: invalid preprocessing directive #Xft
xrdb:  "Xft.hinting" on line 9 overrides entry on line 6
xrdb:  "Xft.hintstyle" on line 11 overrides entry on line 7
/tmp/xrdb_EO5YQp:1:3: error: invalid preprocessing directive #Those
/tmp/xrdb_EO5YQp:2:3: error: invalid preprocessing directive #or
/tmp/xrdb_EO5YQp:3:3: error: invalid preprocessing directive #Xft
/tmp/xrdb_EO5YQp:4:3: error: invalid preprocessing directive #Xft
xrdb:  "Xft.hinting" on line 9 overrides entry on line 6
xrdb:  "Xft.hintstyle" on line 11 overrides entry on line 7
Agent pid 9230
xfce4-session: Another session manager is already running
Agent pid 9230 killed

[1]+  Done                    DISPLAY=":0.1" startxfce4

And

Code:

[kerml@main ~]$ DISPLAY=":0.1" startkde &
[1] 10694
 [kerml@main ~]$ KDE seems to be already running on this display.


Maybe I need two X servers? One for each monitor.

Laodiceans 08-01-2010 03:24 AM

KDE is running in 2nd screen. But I can start a different WM there like Openbox.
I put the 2nd screen on right of the 1st on nvidia-settings, still with X screens separated and without xinerama. But with mouse moving on edge of screens I can switch between them.
Then I created a file in ~/.kde/Autostart/ with:

Code:

#!/bin/bash

DISPLAY=:0.1 openbox-session &

And make it executable!

Now I'm configuring Openbox!

adamk75 08-01-2010 04:19 AM

Quote:

Originally Posted by Laodiceans (Post 4051489)
KDE is running in 2nd screen.

Again, what makes you think that?

Adam

Laodiceans 08-01-2010 07:57 AM

This:

Code:

[kerml@main ~]$ DISPLAY=":0.1" startkde &
[1] 10694
 [kerml@main ~]$ KDE seems to be already running on this display.



All times are GMT -5. The time now is 12:24 AM.