I have found a lot of very solid articles/answers about this topic:
- https://askubuntu.com/a/555812/574648
- https://unix.stackexchange.com/a/213984
- https://askubuntu.com/a/662567/574648
And of course:
- https://wiki.archlinux.org/index.php/Xrandr
- https://wiki.archlinux.org/index.php/HiDPI#Multiple_displays
However, I'm still struggling. My laptop is Dell XPS15. Its display is 3840x2160. I have tried different external monitors, but at the moment the one I use is also Dell with resolution 1920x1080.
When I connect external monitor, some of the panels immediately become very small on 3840x2160 screen. When I try to scale up build-in display, chrome scales, my IDE scales, but displays window along with other windows like NVIDIA X Server settings stay very small. I have tried to play with Scale all window contents to match in Display but to no avail. It's either too big on the external screen or to small on the build-in. I have also tried xrandr with scale param but it gives me:
xrandr --output HDMI-1 --scale 2x2
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 26 (RRSetCrtcTransform)
Value in failed request: 0x40
Serial number of failed request: 38
Current serial number in output stream: 39
Ideally, I want several windows of the same application(let's say Chrome or Intellij Idea to be open on different displays and scale independently on them).
EDIT
I am not looking for Scale for menus and title bar, I like the way the bars are. I want windows contents scaled independently. Displays UI forces me to either scale all windows to match Built-id display or the external display. As a result:
Scale all window contents to match Build-In Display:
Build-In Display - everything looks perfect; External Display - everything is huge.
Scale all window contents to match External Display:
Build-In Display - very small; External Display - everything looks perfect.
xrandr --listmonitors
please? – WinEunuuchs2Unix Nov 11 '16 at 12:43I would really an answer to this question, so let me offer a bounty on this.
The output of
– systho Jan 03 '17 at 08:26xrandr -listmonitors
is thissudo apt-get install pastebinit; sudo sh -c "lsb_release -sd; dmidecode -s system-product-name; echo ==; lshw -c display; echo ==; xrandr --verbose; echo ==; cat /etx/X11/xorg.conf" | tee ~/Desktop/ubuntu-graphic-info.txt | pastebinit
– user.dz Jan 03 '17 at 11:01xrandr --output VGA-0 --scale 2x2 --mode 1440x900 --fb 2880x2600 --pos 0x800 --output DP-3 --mode 1280x800 --scale 1x1 --pos 0x0
, yours could be:xrandr --output HDMI-1-1 --scale 2x2 --mode 1920x1080 --fb 7680x2160 --pos 3840x0 --output eDP-1-1 --mode 3840x2160 --scale 1x1 --pos 0x0
– user.dz Jan 03 '17 at 11:14Here is the output you asked (it's quite long)
https://gist.github.com/anonymous/3ca481fb78d3b61502ce7b69e37edaff
– systho Jan 04 '17 at 08:09scale
inxrandr
generate the same error, even1x1
xrandr --output eDP-1-1 --scale 1x1
– systho Jan 04 '17 at 08:14X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 26 (RRSetCrtcTransform) Value in failed request: 0x3f Serial number of failed request: 38 Current serial number in output stream: 39