FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,991
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing Font size in gdm login screen (add "-dpi 96" to Xorg server)

    The version of gdm used in F10 (and maybe F9) seems to ignore any attempt at setting custom Xorg server parameters in /etc/gdm/custom.conf in the [servers] section as per the old documentation

    This is particularly annoying if you want to change the font size which is far too big on smaller notebooks & netbooks. The old way was to add "-dpi 96" to the X Server startup parameters, gdm goes out of its way to make that extremely difficult now. (2.24 documentation)

    However there is a simple hack which achieves the same task (yes, unfortunately it's a hack)

    as root make a backup copy of /usr/libexec/gdm-simple-slave in case of problems, then type this exactly (the space after 96 is important, there must be 3 chars, so don't put a space if you set -dpi 108 for example)

    Code:
    sed 's/verbose/dpi 96 /g' -i /usr/libexec/gdm-simple-slave
    and that's it! restart the Xorg server to activate your new fonts on the gdm login screen, check with ps that the setting was applied:

    Code:
    [root@localhost ~]# ps -ef | grep gdm
    root      2586     1  0 13:24 ?        00:00:00 /usr/sbin/gdm-binary -nodaemon
    root      4109  2586  0 13:32 ?        00:00:00 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1 --force-active-vt
    root      4110  4109  6 13:32 tty1     00:00:36 /usr/bin/Xorg :0 -nr -dpi 96 -auth /var/run/gdm/auth-for-gdm-YEj7E7/database -nolisten tcp vt1
    Note that we have replaced the "-verbose" parameter so you'll get less Xorg messages, but that's the price to pay for gdm's intractability.

    If you don't like the new size then you can repeat the sed command but this time "verbose" won't exist so use "dpi 96" instead eg

    Code:
    sed 's/dpi 96/dpi 86/g' -i /usr/libexec/gdm-simple-slave
    Always keep your backup copy of gdm-simple-slave in case of problems. Note also that this hack has to be redone after any gdm update package is installed

    NB If you have selinux enabled then you must restore the context of gdm-simple-slave after applying the hack or if you copy the backup file back over the hacked version, do this (as root) with 'restorecon -F /usr/libexec/gdm-simple-slave' and REBOOT

    To do it properly you should download the gdm sourcecode and edit the relevant line in gdm-2.24.0/daemon/gdm-server.c, or add a more detailed patch which enables some sort of config file setting to be used as in the old days
    Last edited by sideways; 28th December 2008 at 09:37 PM. Reason: add important selinux info

  2. #2
    Join Date
    Aug 2008
    Location
    Australia
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just used this command and it worked perfect! :-D

    Code:
    sed 's/verbose/dpi 96 /g' -i /usr/libexec/gdm-simple-slave

  3. #3
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,991
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    An alternative way to do this without hacking the gdm binaries:

    create a login shell and password for user gdm, login as gdm and change the fonts dpi setting to 96 under System->Preferences->Look and Feel->Appearance, select the Fonts tab, click the 'Details' button.

    Code:
    su -
    chsh -s /bin/bash gdm
    passwd gdm
    PS

    This also allows you to customise other aspects of the gdm login screen such as background, fonts and windows styles
    Last edited by sideways; 11th February 2009 at 03:24 AM.

  4. #4
    Join Date
    Jul 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks man! it worked for the new gdm 2.28

Similar Threads

  1. Login screen "reboots" after attempted login.
    By jorgen182 in forum Using Fedora
    Replies: 12
    Last Post: 17th September 2009, 11:29 AM
  2. xorg "white screen of doom" after undocking laptop
    By mayostard in forum Using Fedora
    Replies: 1
    Last Post: 27th July 2009, 04:22 AM
  3. black screen and "X" mouse not changing
    By needslotsofhelp in forum Installation, Upgrades and Live Media
    Replies: 0
    Last Post: 17th January 2007, 07:51 PM
  4. xorg.conf value "display size" - What does that mean?
    By chris_y2k_r1 in forum Hardware
    Replies: 3
    Last Post: 4th March 2006, 06:15 AM
  5. updates break font server FontPath "unix/:7100"
    By tashirosgt in forum Using Fedora
    Replies: 0
    Last Post: 8th March 2005, 01:03 AM

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
  •