user [EMAIL PROTECTED]
usertag 500626 + config-xglamo
thanks

Hi Timo!

Let's move to smartphones-userland, [EMAIL PROTECTED] is ATM only used
for packaging stuff :-D

On Mon, 29 Sep 2008 22:29:43 +0200, Timo Juhani Lindfors wrote:
> With xserver-xglamo (and matchbox-window-manager) fonts in midori are
> very large.

Something was already discussed at [1], at least now we've the same
problem: huge fonts.

> xpdyinfo reports
>
> dimensions:    480x640 pixels (43x58 millimeters)
>   resolution:    284x280 dots per inch

When have you launched xdpyinfo?  I discovered the following:

1) at boot I get 75x75, fonts are a bit smaller, but still OK

2) `xrandr -s [0|1]` changes to 284x280, the same with `xrandr -o [0|2]`

3) `xranrd -o [1|3]` changes to 378x210

4) `xrandr -s [2|3]` changes to 142x140

Then, I can go back to 75x75 anymore, i.e. `xrandr --dpi 75` doesn't
have any effect.  Timo, do you have the same?

FWIW, xrandr doesn't work with X.org, so I cannot test it :-(

> which is probably correct so maybe we need some GTK option to use
> smaller fonts?

I'd like the same values for both Xglamo and X.Org.

> Under xserver-xorg-video-fbdev xpdyinfo reports
>
>   dimensions:    640x480 pixels (169x127 millimeters)
>   resolution:    96x96 dots per inch
>
> and the fonts look ok.

AFAIK something around 100x100 is the standard, but I'm not really an
expert on this subject.

> I seem to be able to set this fake DPI value with xserver-xglamo by
> using
>
> -dpi 96
>
> in /etc/X11/xinit/xserverrc -- 

ATM I'd prefer to specify it into /etc/init.d/zhone-session;
--8<---------------cut here---------------start------------->8---
--- zhone-session.ORG   2008-09-29 23:52:57.000000000 +0200
+++ zhone-session       2008-09-29 23:53:04.000000000 +0200
@@ -17,7 +17,7 @@
 PROG_FSO=/usr/bin/zhone-session
 PROG_XSESSION=/etc/X11/Xsession
 PROG_XINIT=/usr/bin/xinit
-X_OPTIONS="vt4 -nolisten tcp"
+X_OPTIONS="vt4 -nolisten tcp -dpi 96"
 PIDDIR=/var/run/
 PIDFILE=${PIDDIR}/${NAME}.pid
 USER=root
--8<---------------cut here---------------end--------------->8---

However, as soon as you use xrandr, these values change for the bad :-(

> maybe that should be the default so that glamo would work consistently
> in the same way fbdev does?

FSO X (Xglamo or Xfbdev) is started with the following settings,,
specified in /etc/X11/Xserver:96:

  ARGS="$ARGS -dpi 285 -screen 480x640 [...]" ;;

This means that the value we obtain after the first xrandr command is
"correct".  However, I don't understand why it specifies 285 DPI.

Thx, bye,
Gismo / Luca

Footnotes: 
[1] 
http://projects.linuxtogo.org/pipermail/smartphones-standards/2008-August/000390.html

Attachment: pgpuAuqqy7w7z.pgp
Description: PGP signature

Reply via email to