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)
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:sed 's/verbose/dpi 96 /g' -i /usr/libexec/gdm-simple-slave
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.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
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
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 installedCode:sed 's/dpi 96/dpi 86/g' -i /usr/libexec/gdm-simple-slave
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![]()


Reply With Quote
