13.1 - Nvidia driver and panning mode

openSUSE 13.1 @ 64bits
Closed nvidia driver installed by the “hard way”
nvidia-settings from packman

nvidia driver works with display 1280x1024 (hardware is also 1280x1024) → OK
Setting panningmode in nvidia-settings to 1890x1024 → Test OK, have panning mode
Saving config of nvidia-settings to “/etc/X11/xorg.conf” → OK
Reboot makes panningmode disappear.

What can i do for saving the panning mode configuration?

/etc/X11/xorg.conf:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 331.20  (buildmeister@swio-display-x86-rhel47-05)  Wed Oct 30 18:20:32 PDT 2013


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 data in "/etc/sysconfig/mouse"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "yes"
    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      "CRT-1"
    HorizSync       30.0 - 72.0
    VertRefresh     50.0 - 160.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 240"
EndSection

Section "Screen"

# Removed Option "metamodes" "nvidia-auto-select @1890x1024 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-1"
    Option         "metamodes" "1280x1024 @1890x1024 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Did you tun nvidia-settings as root. Check ownership of the xorg.conf file

yes i did run nvidia-settings as root
that’s why i have in “/etc/X11” the configfile “xorg.config”
what is the correct ownership for xorg.config ?

the hardway installtion of nvidia driver i did not “nvidia-xconfig” in script of *.run.

Strange. I also did ‘the hard way’, but the nvidia-xconfig did run:

     cat /etc/X11/xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 331.20  (buildmeister@swio-display-x86-rhel47-05)  Wed Oct 30 18:20:32 PDT 2013

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 331.20  (buildmeister@swio-display-x86-rhel47-05)  Wed Oct 30 18:20:53 PDT 2013

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 data in "/etc/sysconfig/mouse"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "yes"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL U2412M"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 61.0
    Option         "DPMS"
EndSection

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

Section "Screen"

# Removed Option "metamodes" "DVI-I-1: nvidia-auto-select +0+1080, HDMI-0: nvidia-auto-select +0+0, DVI-D-0: nvidia-auto-select +1920+1080"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-I-1: nvidia-auto-select +0+0, HDMI-0: nvidia-auto-select +3840+120, DVI-D-0: nvidia-auto-select +1920+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

root should own xorg.conf

The problem of panning with nvidia driver is inside KDE 4.11.2 (and 4.11.3)
if i login into xfce my panning config that was made with nvidia-setting is OK

So, why is KDE refuse the setting in xorg.conf?
the startup of KDE (the 5 icons) seems to start into my panning mode (1890x1024)
but if the plasma comes on then KDE switch into 1280x1024.

Check the setting in KDE configure desktop.

you mean “kscreen” ?
no option of 1890x1024 in the list of screen resolutions.

workaround for the problem:
in autostart (~/.kde4/Autostart) a bin/bash


#!/bin/sh

# panning to 1890x1024

set -x

xrandr --output VGA-0 --panning 1890x1024



The new kscreen ignores xorg.conf by default, that’s by design.
But they are going to change that for single monitor systems in version 1.1 AFAIK. (13.1 ships with 1.0.1 though)

You could uninstall kscreen and install the older krandr instead, but you would have to tell YaST to ignore some dependency issues.
Or run this:

sudo zypper in -f -kscreen -libkscreen -libkscreen1 krandr

So closed nvidia driver have work to do…
Let’s hope that kscreen in the futher have a option for panning mode, have to list that as a wish to KDE team :wink:

for now i will start a script that tell the system to go panning mode
thx guys!

Well, as I said, you could uninstall kscreen and install krandr. Then you shouldn’t need that script, since your xorg.conf should be respected.

Or IIRC (can’t check right now) you can disable kscreen in “Configure Desktop”->“Startup and Shutdown”->“Service Manager”. Then it shouldn’t change any display settings.

No idea if panning support is planned for kscreen though…