Scaling Displays on NVIDIA Prime Results In BadValue Error

Hi @sandipt

I’m experience the same problem that @pacificfils reported, What I’m trying to achieve is to have two different DPI configurations for a dual monitor. I’m running the following commands using XrandR:

xrandr --output eDP-1-1 --primary --mode 3840x2160 --scale 1x1 --pos 0x0 --rotate normal --output HDMI-1-1 --mode 1920x1080 --scale 2x2 --pos 3840x0 --rotate normal

This are my desktop environment details

KDE Plasma Version: 5.8.7
KDE Framework Version: 5.35.0
Qt Version: 5.6.1
Kernel Version: 4.4.0-79-generic
OS Type: 64-bit

Do you known if NVIDIA drivers will support transform in the future? Or this is a bug.

Here’s some additional info, that might be useful for you.

nvidia-smi

+-----------------------------------------------------------------------------+                                                                                                   
| NVIDIA-SMI 375.66                 Driver Version: 375.66                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 960M    Off  | 0000:02:00.0     Off |                  N/A |
| N/A   49C    P0    N/A /  N/A |   1565MiB /  4044MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1216    G   /usr/lib/xorg/Xorg                             856MiB |
|    0      2137    G   kwin_x11                                       121MiB |
|    0      2140    G   /usr/bin/krunner                                12MiB |
|    0      2142    G   /usr/bin/plasmashell                           160MiB |
|    0      2943    G   ...el-token=179042A5B38D2338B87533F3841EC681   335MiB |
|    0      5644    G   ...s-passed-by-fd --v8-snapshot-passed-by-fd    78MiB |

xorg.conf

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "None"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:2@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

Feel free to require any additional info you need.

Thank you.