Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Plasma5 odd window / font scaling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
B4G
n00b
n00b


Joined: 17 Jan 2017
Posts: 1

PostPosted: Tue Jan 17, 2017 11:52 am    Post subject: [SOLVED] Plasma5 odd window / font scaling Reply with quote

Hi,
I set up Gentoo with Plasma5. Things work well except from some odd scaling ratio from window-size to text, as you can see in the screenshot of my desktop:
[img]https://s24.postimg.org/6ljxh9641/desktop.png[/img]
Fonts, Programms like the webbrowser etc. are scaled very big and to make things confusing, the font in the xterm-windows is way too small.
First of all my display-hardware is the one of a MacBookPro Retina:

  • 13.3''
  • dimensions: 286x179
  • resolution 2560x1600
  • 227ppi

I specified all the parameter my xorg.conf
Code:

#/etc/X11/xorg.conf

Section "Monitor"
    Identifier "Monitor0"
    DisplaySize 286 179
EndSection

Section "Device"
    Identifier "Device0"
    Driver "intel"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
    EndSubSection
    SubSection "Display"
        Depth 24
        Modes "2560x1600"
    EndSubSection
    Option "PreferredMode" "2560x1600"
EndSection


It would be amazing if anybody has got a guess!
Thanks

**************************
UPDATE
**************************

Removing all dpi-dependent information for sddm and in xorg.conf resets plasma5 to a reasonable window to console-font scaling. I now can set the display-resolution down to something like 1920*1200 in the settings-menue of plasma5 and I'm also able to use the scale-option in this context, too. However as windows and fonts are now reasonable scaled the fonts are blurry especially in the terminal. In addition to that setting the dpi or other dimensions of the monitor in the xorg.conf lets you scale the system and applications like chrome etc. However the xterm-fonts are not affected by that and stay tiny. They can only be 'enlarged' by changing the resolution in the settings-menue.

**************************
UPDATE 2 (Solution)
**************************

Modyfying the Xresources does the trick. So for anybody that has got a 'MacBook Pro Retina (late 2013)' or a 13.3'' with 2560x1600px running the following settings might be the best:


  • no 'dpi'-settings in '/etc/sddm.conf'
  • in '/etc/X11/xorg.conf' use 172dpi (larger dpi scales the system up, but not the terminal)
  • scale the windows to 1.5 (open 'System Settings' -> 'Display and Monitor' under Displays press 'Scale Display', you may have to scroll down)
  • set font-size for xterm/uxterm in '~/.Xresources' (you may have to create the file)


Code:

#/etc/X11/xorg.conf

Section "InputClass"
  Identifier "Touchpad0"
  MatchIsTouchpad "on"
  Driver "mtrack"
  Option "IgnoreThumb" "true"
  Option "ClickFinger1" "1"
  Option "ClickFinger2" "3"
EndSection

Section "InputDevice"
  Identifier "Keyboard0"
  #MatchIsKeyboard "on"
  #Driver "kbd"
  Driver "evdev"
  Option "XkbLayout" "us,de"
  Option "XkbModel" "Apple MacBook Keyboard"
  Option "XkbRules" "xorg"
  Option "XkbOptions" "grp:alt_shift_toggle,grp:switch,grp_led:scroll,compose:rwin,terminate:ctrl_alt_bksp"
  Option "XkbVariant" ",qwertz"
EndSection

Section "Monitor"
  Identifier "Monitor0"
  # DisplaySize 286 179 # commented due to dpi set below
EndSection

Section "Device"
  Identifier "Device0"
  Driver "intel"
  Option "DPI" "172x172"
EndSection

Section "Screen"
  Identifier "Screen0"
  Device "Device0"
  Monitor "Monitor0"
  DefaultDepth 24
  SubSection "Display"
    Depth 24
  EndSubSection
  SubSection "Display"
    Depth 24
    Modes "2560x1600"
  EndSubSection
  Option "PreferredMode" "2560x1600"
EndSection


Code:

#~/.Xresources

XTerm*renderFont: true
XTerm*faceName: VeraMono
XTerm*faceSize: 10
UXTerm*renderFont: true
UXTerm*faceName: VeraMono
UXTerm*faceSize: 10
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum