You are not logged in.
Yesterday I updated my system and one of the updated packages was xlockmore.
Since then I noticed that xlock ignores the instructions in .Xdefaults.
How can I get it to use Terminus font again?
Here is the info about my system:
[~] pacman -Qi xlockmore
Name : xlockmore
Version : 5.42-1
Description : screen saver / locker for the X Window System
Architecture : i686
URL : http://www.tux.org/~bagleyd/xlockmore.html
Licenses : BSD
Groups : None
Provides : None
Depends On : freetype2 gtk2 libxpm lesstif pam libxmu glu
Optional Deps : fortune-mod [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 3089.00 KiB
Packager : Sergej Pupykin <pupykin.s+arch@gmail.com>
Build Date : Wed 17 Apr 2013 03:39:07 PM EEST
Install Date : Thu 18 Apr 2013 02:02:34 PM EEST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
[~] grep -i xlock .Xresources | grep font
XLock.font: -xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-1
XLock.planfont: -xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-1
XLock.messagefont: -xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-1
[~] xlsfonts | grep 'xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-1$' | sort -u
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-1
[~] xlock -resources | grep font
XLock.fpsfont: -*-helvetica-medium-r-*-*-24-*-*-*-*-*-*
XLock.font: -*-helvetica-medium-r-*-*-24-*-*-*-*-*-*
XLock.planfont: -*-fixed-medium-r-*-*-14-*-*-*-*-*-*
XLock.fontset: -*-helvetica-medium-r-*-*-24-*-*-*-*-*-*,-*-*-medium-r-normal--24-*
XLock.planfontset: -*-fixed-medium-r-*-*-14-*-*-*-*-*-*,-*-*-medium-r-normal--14-*
XLock.messagefont: -*-times-*-*-*-*-18-*-*-*-*-*-*-*
Last edited by cviorel (2013-04-23 09:31:30)
Offline
Same problem here. xlockmore-5.41 gives:
$ xlock -resources|grep font
XLock.fpsfont: -*-helvetica-medium-r-*-*-24-*-*-*-*-*-*
XLock.font: -*-helvetica-medium-r-*-*-24-*-*-*-*-*-*
XLock.planfont: -*-fixed-medium-r-*-*-14-*-*-*-*-*-*
XLock.messagefont: -*-times-*-*-*-*-18-*-*-*-*-*-*-*
While xlockmore-5.42 gives two more lines:
$ xlock -resources|grep font
XLock.fpsfont: -*-helvetica-medium-r-*-*-24-*-*-*-*-*-*
XLock.font: -*-helvetica-medium-r-*-*-24-*-*-*-*-*-*
XLock.planfont: -*-fixed-medium-r-*-*-14-*-*-*-*-*-*
XLock.fontset: -*-helvetica-medium-r-*-*-24-*-*-*-*-*-*,-*-*-medium-r-normal--24-*
XLock.planfontset: -*-fixed-medium-r-*-*-14-*-*-*-*-*-*,-*-*-medium-r-normal--14-*
XLock.messagefont: -*-times-*-*-*-*-18-*-*-*-*-*-*-*
I don't have any instruction in .Xresources for xlock, but the font used to be enjoyably small (some monospace font, maybe terminus). After upgrade it's big and ugly; I can't tell its name just by looking at it, but it's a serif font. I have terminus-font installed and a bunch of Windows-compatible fonts manually copied to /usr/share/fonts, and anyway it mustn't be a font problem because as I said version 5.41 works just fine.
The output in the console where I invoked xinit is identical for both versions:
xlock: can not find font: -b&h-lucida-medium-r-normal-sans-24-*-*-*-*-*-iso8859-1, using fixed...
libGL error: some driver error here...
(I believe the libGL thing is because I use the atunnels screensaver.)
Both versions generate:
$ pacman -Ql xlockmore
xlockmore /usr/
xlockmore /usr/bin/
xlockmore /usr/bin/xglock
xlockmore /usr/bin/xlock
xlockmore /usr/bin/xmlock
xlockmore /usr/share/
xlockmore /usr/share/X11/
xlockmore /usr/share/X11/app-defaults/
xlockmore /usr/share/X11/app-defaults/XLock
xlockmore /usr/share/X11/app-defaults/XmLock
xlockmore /usr/share/licenses/
xlockmore /usr/share/licenses/xlockmore/
xlockmore /usr/share/licenses/xlockmore/LICENSE
xlockmore /usr/share/man/
xlockmore /usr/share/man/man1/
xlockmore /usr/share/man/man1/xlock.1.gz
xlockmore /usr/share/xlock/
xlockmore /usr/share/xlock/xglockrc
I ran diff on the two versions of xlockmore /usr/share/X11/app-defaults/XLock (I guess it's some sort of config file) and they are identical.
Offline
Solved by setting
-fontset fontsetname # fontset to use for Xmb
-planfontset fontsetname # fontset to use for Xmb
in Xresources file like this:
XLock.fontset: -xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-1
XLock.planfontset: -xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-1
Offline
Nice, but this sudden behavior change prompted me to search for alternatives and try slock. Way less bloated, configured at compile time = less subject to those problems that come without prior notice.
Offline