Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: SDDM DPI Issues

  1. #1

    Default SDDM DPI Issues

    I know there is a lot of stuff on high to set DPI scaling for SDDM correctly, but I am currently having kind of an opposite problem:

    I have a laptop with a very high resolution display using Tumbleweed with KDE and (some time ago) fiddled with the DPI/scaling/resolution settings and whatnot:
    1. Using a different screen resolution than the default. This worked best to my experience (SDDM was tiny, but I only use it to type in my password, so that's okay) with some minor issues - the laptop resolution sometimes reverting to the default when I plug in a second monitor, for instance. The problem was that this stopped working at some point (I was not able to set the desired resolution for some reason) but I think this issue is fixed.
    2. Using kwin's screen scaling feature. This also works but has the problem that a) windows on other monitors are scaled as well and b) I had issues with virtualbox
    3. Using custom font DPI settings and icon sizes. Works as well without the virtualbox issue but has the same problem as 2 plus it looks ugly
    4. Editing /etc/sddm.conf and setting an SDDM DPI value. This works with the same problems as 2 and 3

    My goal right now is to revert everything to the default settings, i.e. super small everything on my laptop, and then using method 1 again since this worked best for me. The problem I face is that if I revert the steps listed above, I suddenly get a very huge SDDM login screen and a ridiculously scaled plasma desktop (konsole does not fit on screen). Heck, SDDM gets SMALLER, if I set the DPI value in /etc/sddm.conf to 192!

    My guess is that I have somewhere overridden a default scaling/DPI setting that I'm missing out right now. Are there any other locations that I can look at to get an idea why everything is so large on my laptop?

    Oh and on a side note: why does the SDDM DPI setting influence how kwin_x11 draws the window decorations? This seems odd to me...

  2. #2

    Default Re: SDDM DPI Issues

    I have played with DPI settings a lot. The best fit for me is to set screen size in /etc/X11/xorg.conf.d/50-monitor.conf. That is somewhat tedious as the size is in mm there and the DPI is calculated then. So I had to do the reverse calculation, ie have a target of, say 144 dpi (150%) and calculated screen size from that. My actual dpi is 162 or so but that looks odd. As the gnome folks simply ignore the monitor setting, I also have to set dpi in ~/.Xresources via Xft.dpi:144 along with cursor size. Lastly I set dpi in Firefox for making its UI elements not hurt my eyes.

    The pro is that you can set screen size per monitor and thus override any automagically calculated defaults for any of your monitors.

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    18,751
    Blog Entries
    14

    Default Re: SDDM DPI Issues

    Add something like this ( get the 122 value from what works in KDE ) to /etc/sddm.conf
    Code:
    [X11]
    ServerArguments=-dpi 122
    This than works for the entire DE launched from SDDM.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4

    Default Re: SDDM DPI Issues

    Quote Originally Posted by Knurpht View Post
    Add something like this ( get the 122 value from what works in KDE ) to /etc/sddm.conf
    Code:
    [X11]
    ServerArguments=-dpi 122
    This than works for the entire DE launched from SDDM.
    That is actually what I'm currently doing and it works. It has the issue though, that when I plug in a second monitor (or video projector), everything on that monitor is super big.

  5. #5

    Default Re: SDDM DPI Issues

    Quote Originally Posted by markdd View Post
    I have played with DPI settings a lot. The best fit for me is to set screen size in /etc/X11/xorg.conf.d/50-monitor.conf. That is somewhat tedious as the size is in mm there and the DPI is calculated then. So I had to do the reverse calculation, ie have a target of, say 144 dpi (150%) and calculated screen size from that. My actual dpi is 162 or so but that looks odd. As the gnome folks simply ignore the monitor setting, I also have to set dpi in ~/.Xresources via Xft.dpi:144 along with cursor size. Lastly I set dpi in Firefox for making its UI elements not hurt my eyes.

    The pro is that you can set screen size per monitor and thus override any automagically calculated defaults for any of your monitors.
    Hm, I had a simple working solution before. This seems to be not very flexible. But I checked whether I had something set like this and this is apparently not the case.

  6. #6

    Default Re: SDDM DPI Issues

    Okay, here's an update. I disabled the SDDM arguments (EnableHiDPI and ServerArguments), now window decorations and KDE applications are very large, but other applications (like Thunderbird, LibreOffice) are NOT - they are displayed as expected (super tiny on my laptop display). This leads me to believe that there is an issue with my kwin settings somewhere. I deleted the ~/.cache/kwin folder, but that did not change a thing.

    I am still confused as why SDDM is rendered BIGGER if I set the DPI value to a SMALLER value? I.e. set it to 96, everything is huge, set it to 192, everything looks normal?

  7. #7
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    811

    Default Re: SDDM DPI Issues

    What is your output from?
    Code:
    xrdb -query | grep dpi
    Does any file in /etc/X11/ contain a string resembling the following?
    Code:
    -nolisten tcp -dpi
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2) & 42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,others on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,GT218 &&&&

  8. #8

    Default Re: SDDM DPI Issues

    Quote Originally Posted by mrmazda View Post
    What is your output from?
    Code:
    xrdb -query | grep dpi
    Does any file in /etc/X11/ contain a string resembling the following?
    Code:
    -nolisten tcp -dpi
    Code:
    xrdb -query | grep dpi
    does not show anything, however there is output if I run the following in /etc/X11:

    Code:
    grep -rnw . -e "-nolisten tcp"
    ./xinit/xserverrc:38:    args="$args -nolisten tcp"
    ./xdm/Xservers:18::0 local /usr/bin/X -nolisten tcp -br vt7 -keeptty
    ./xdm/SUSEconfig.xdm:81:        sed -ri 's%(.*/usr/bin/X)[[:blank:]]*(-(no|)listen[[:blank:]]*tcp[[:blank:]]*|)%\1 -nolisten tcp %g' ${file}.SuSEconfig
    Nothing is found if I search for "dpi", though.

    I think this might actually be a font DPI setting. If I disable everything I know related to DPI settings, KDE applications look "normal", but actually their symbols are very small and generally the text looks like it barely fits into place.

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    19,219
    Blog Entries
    1

    Default Re: SDDM DPI Issues

    Quote Originally Posted by kyoki View Post
    I think this might actually be a font DPI setting. If I disable everything I know related to DPI settings, KDE applications look "normal", but actually their symbols are very small and generally the text looks like it barely fits into place.
    Have you checked the settings in System Settings > Fonts? You can always hit the 'Defaults' button and then 'Apply'.

    BTW, what does the following return?
    Code:
    xdpyinfo | grep -B 2 resolution
    openSUSE Leap 15.0; KDE Plasma 5

  10. #10

    Default Re: SDDM DPI Issues

    Quote Originally Posted by deano_ferrari View Post
    Have you checked the settings in System Settings > Fonts? You can always hit the 'Defaults' button and then 'Apply'.
    Yep, did that, changed nothing. Would that also affect SDDM settings?

    Quote Originally Posted by deano_ferrari View Post
    BTW, what does the following return?
    Code:
    xdpyinfo | grep -B 2 resolution
    This returns the expected DPI settings - if I change /etc/sddm.conf to use some DPI value, it displays it (e.g. 192x193), if I comment that out, it shows 96x96. Is there a command line tool or something, which can display KDE system settings? Would be nice to query that.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •