LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-06-2011, 08:07 PM   #1
sleeping
LQ Newbie
 
Registered: Dec 2004
Distribution: ArchLinux
Posts: 22

Rep: Reputation: 0
Multi-head with different resolutions, "fullscreen" uses wrong resolution


(Using ArchLinux with KDE)

My desktop has two monitors. The first one (on the left) has a resolution of 1600x1200. The second one (on the right) has a resolution of 1360x768.

Using the nvidia-settings tool, I set my second monitor to act as a separate X screen. Here is the resulting xorg.conf file :

Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 260.19.36  (buildmeister@swio-display-x86-rhel47-01.nvidia.com)  Tue Jan 18 17:15:10 PST 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    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: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "PRI BBY LCD TV"
    HorizSync       30.0 - 80.0
    VertRefresh     55.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8500 GT"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8500 GT"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "CRT: 1360x768 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
When I launch an application on the second screen, and I make it "fullscreen" (either by clicking on the appropriate button on the title bar, or with "wmctrl -x -r MyWindow.MyWindow -b toggle,fullscreen"), the application gets resized to 1600x1200, even though it is on the 1360x768 screen.

What is odd is that calling xwininfo on the root window of the second screen gives a geometry of 1360x768, but calling xprop on the root window of the second screen gives a _NET_DESKTOP_GEOMETRY value of 1600x1200. I suppose "fullscreen" uses _NET_DESKTOP_GEOMETRY to figure out the size to take, but that size is wrong.

Code:
[user@host ~]$ DISPLAY=:0.1 xwininfo -root
xwininfo: Window id: 0x293 (the root window) (has no name)

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1360
  Height: 768
  Depth: 24
  Visual: 0x157
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x156 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-0  +0-0
  -geometry 1360x768+0+0

[user@host ~]$ DISPLAY=:0.1 xprop -root
KWIN_RUNNING(KWIN_RUNNING) = 0x1
_NET_CLIENT_LIST_STACKING(WINDOW): window id # 0x2000043
_NET_CLIENT_LIST(WINDOW): window id # 0x2000043
_NET_SHOWING_DESKTOP(CARDINAL) = 0
_NET_DESKTOP_GEOMETRY(CARDINAL) = 1600, 1200
_NET_DESKTOP_VIEWPORT(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0
_NET_WORKAREA(CARDINAL) = 0, 0, 1600, 1200, 0, 0, 1600, 1200, 0, 0, 1600, 1200, 0, 0, 1600, 1200
_NET_ACTIVE_WINDOW(WINDOW): window id # 0x0
_NET_CURRENT_DESKTOP(CARDINAL) = 1
_NET_DESKTOP_NAMES(UTF8_STRING) = "Desktop 1", "Desktop 2", "Desktop 3", "Desktop 4"

(snip)
How can I either change _NET_DESKTOP_GEOMETRY to the proper value, or have a fullscreen feature that uses the correct resolution?
 
Old 03-06-2011, 10:55 PM   #2
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 9
uhm ... "metamodes" in the Screen Section doesn't look right to me. This could reactivate some kind of TwinView. Try "Modes" instead, see here for a template:

ftp://download.nvidia.com/XFree86/Li...ppendix-p.html

Is the 1360x768 monitor scrolling/panning within 1600x1200?

Does switching screenmodes help? (on either of the screens)

Setting the window to right position/size instead of "fullscreen" via wmctrl would be a workaround.
 
Old 03-12-2011, 09:46 PM   #3
sleeping
LQ Newbie
 
Registered: Dec 2004
Distribution: ArchLinux
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bluebox View Post
uhm ... "metamodes" in the Screen Section doesn't look right to me. This could reactivate some kind of TwinView. Try "Modes" instead, see here for a template:

ftp://download.nvidia.com/XFree86/Li...ppendix-p.html

Is the 1360x768 monitor scrolling/panning within 1600x1200?

Does switching screenmodes help? (on either of the screens)

Setting the window to right position/size instead of "fullscreen" via wmctrl would be a workaround.
I tried changing metamodes to Modes, and the result is the same. The monitors aren't panning, i.e. I can't move a window from one to the next, they really are two separate X screens, so no TwinView at all.

While setting the window to the right position/size with wmctrl might work for most applications, there are some where it's fullscreen or nothing. For example, playing a YouTube video fullscreen, the flash player will try to get a 1600x1200 resolution on the 1360x768 screen.
 
Old 03-13-2011, 10:32 AM   #4
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 9
Quote:
For example, playing a YouTube video fullscreen, the flash player will try to get a 1600x1200 resolution on the 1360x768 screen.
Yes, of course ... this is annoying.

Have a look at /var/log/Xorg.0.log and try to figure out, where the 1600x1200 does come from.

Try mode-switching - with Ctrl-Alt _and_ xrandr. Switch away from 1360x768 and back to 1360x768 with any combination of Ctrl-Alt and xrandr and test whether the problem persists. Try switching the main monitor to 1360x768 and see whether this does help.

I suppose, there is some virtual screen problem ...
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
LXer: DistroWatch Weekly: Correcting screen resolutions, Hardy Heron, "finstall" LXer Syndicated Linux News 0 09-03-2007 06:00 AM
Need dual "clone" desktops, but with different resolutions Malibyte Linux - Desktop 2 08-26-2007 08:02 AM
"Picture playback slows down in fullscreen mode" saintkay Linux - Desktop 3 08-26-2007 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:14 AM.

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