sddm-greeter font size

My monitor is:


erlangen:~ # hwinfo --monitor 
16: None 00.0: 10002 LCD Monitor                                 
  [Created at monitor.125] 
  Unique ID: rdCR.K1i5gxVmsEC 
  Parent ID: _Znp.Q4EeJVCnQmB 
  Hardware Class: monitor 
  Model: "SAMSUNG LU28R55" 
  Vendor: SAM "SAMSUNG" 
  Device: eisa 0x1017 "LU28R55" 
  Serial ID: "H4ZN302578" 
  Resolution: 720x400@70Hz 
  Resolution: 640x480@60Hz 
  Resolution: 640x480@67Hz 
  Resolution: 640x480@72Hz 
  Resolution: 640x480@75Hz 
  Resolution: 800x600@56Hz 
  Resolution: 800x600@60Hz 
  Resolution: 800x600@72Hz 
  Resolution: 800x600@75Hz 
  Resolution: 832x624@75Hz 
  Resolution: 1024x768@60Hz 
  Resolution: 1024x768@70Hz 
  Resolution: 1024x768@75Hz 
  Resolution: 1280x1024@75Hz 
  Resolution: 1152x864@75Hz 
  Resolution: 1280x720@60Hz 
  Resolution: 1280x1024@60Hz 
  Resolution: 3840x2160@60Hz 
  Size: 632x360 mm 
  Year of Manufacture: 2038 
  Week of Manufacture: 50 
  Detailed Timings #0: 
     Resolution: 3840x2160 
     Horizontal: 3840 4016 4104 4400 (+176 +264 +560) +hsync 
       Vertical: 2160 2168 2178 2250 (+8 +18 +90) +vsync 
    Frequencies: 594.00 MHz, 135.00 kHz, 60.00 Hz 
  Driver Info #0: 
    Max. Resolution: 3840x2160 
    Vert. Sync Range: 50-75 Hz 
    Hor. Sync Range: 30-135 kHz 
    Bandwidth: 594 MHz 
  Config Status: cfg=new, avail=yes, need=no, active=unknown 
  Attached to: #13 (VGA compatible controller) 
erlangen:~ # 

Graphics is pleasant:

erlangen:~ # inxi -aG
Graphics:  Device-1: Intel HD Graphics 530 vendor: ASRock driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:1912 
           Display: server: X.Org 1.20.9 compositor: kwin_x11 driver: intel unloaded: fbdev,modesetting,vesa display ID: :0 
           screens: 1 
           Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 676x380mm (26.6x15.0") s-diag: 775mm (30.5") 
           Monitor-1: HDMI1 res: 2560x1440 hz: 60 dpi: 103 size: 630x360mm (24.8x14.2") diag: 726mm (28.6") 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 20.2.1 compat-v: 3.0 direct render: Yes 
erlangen:~ # 

However fonts of greeter are tiny. Tried to improve:

erlangen:~ # cat /etc/sddm.conf
[X11]
EnableHiDPI=true
erlangen:~ # 

Fonts are still tiny. Any idea to increase font size?

Use the ‘ServerArguments=’ directive in /etc/sddm.conf. For example

ServerArguments=-nolisten tcp -dpi 120
1 Like
  • Reconfigured
karl@erlangen:~> cat /etc/sddm.conf
[X11]
ServerArguments=-nolisten tcp -dpi 148
karl@erlangen:~> 

  • Adjusted System Settings > Display and Monitor > Display Configuration > Resolution: 3840x2160
  • Set panel height to 64

Done.

Nice one! :slight_smile:

Forums policy prevented my from adding to your reputation.:wink:

FTR: Fixed virtual terminals:

erlangen:~ # cat /etc/vconsole.conf  
KEYMAP=de-latin1-nodeadkeys 
#FONT=eurlatgr.psfu 
FONT=suse12x22.psfu 
erlangen:~ # 

Improved by installing ‘terminus-bitmap-fonts’ and selecting ’ FONT=ter-v32b’.

Quoting the “sddm.conf” man page – my “/etc/sddm.conf” is empty:


 > od -a /etc/sddm.conf
0000000  nl
0000001
 > 

SYNOPSIS
Configuration loads all files in the configuration directories followed by the configuration file in the order listed
below with the latter having the most precedent. Changes should be made to the local configurations.

   /usr/lib/sddm/sddm.conf.d
          System configuration directory
   /etc/sddm.conf.d
          Local configuration directory
   /etc/sddm.conf
          Local configuration file for compatibility

AFAICS, for Leap 15.2 “/usr/lib/sddm/sddm.conf.d/00-general.conf” contains:


[XDisplay]
ServerPath=/usr/bin/X
SessionCommand=/etc/X11/xdm/Xsession
DisplayCommand=/etc/X11/xdm/Xsetup
MinimumVT=7
# boo#1089932
EnableHiDPI=true

[Users]
# boo#979775
ReuseSession=true

Works for me”:

Monitor-1: HDMI-A-0 res: 3840x2160 hz: 60 dpi: 140 size: 698x393mm (27.5x15.5") diag: 801mm (31.5")

[QUOTE=dcurtisfra;2980741]Quoting the “sddm.conf” man page – my “/etc/sddm.conf” is empty:


 > od -a /etc/sddm.conf
0000000  nl
0000001
 > 

What’s your point? You can edit as you require.

[quote="“deano_ferrari,post:8,topic:143042”]

Given that, “/etc/sddm.conf” is present “only for compatibility” reasons means that, its deprecated

  • Put your local system changes into a file located in “/etc/sddm.conf.d/
    ” … - The Linux distribution has it’s SDDM defaults present in files located in “/usr/lib/sddm/sddm.conf.d/
    ” …

Yes, but for now /etc/sddm.conf or a file within /etc/sdd,.conf.d/ will work. My post was mainly about the ‘ServerArguments=’ directive that can be used to provide the dpi override. Best not to adjust anything distro-specific in /usr… directories, as those changes can be overwritten with updates. Instead, use the admin location in ‘/etc/…’. In any case, the man pages are always good to consult. As Karl also subsequently found and reported, /etc/vconsole.conf can be configured to specify fonts (and sizes) via /etc/vconsole.conf. More info

man vconsole.conf

Yes indeed!

  • I haven’t reported it but, with a 140 dpi screen, the default virtual console European Latin/Greek “eurlatgr” font is more than a little bit too small and, the size can not be changed …
  • My current workaround is to use the SUSE 12x22 console font – Karl’s solution using the “terminus-bitmap-fonts” looks good – I’ll be trying it soon …