PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > dpi changes on the fly
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

dpi changes on the fly

Réponse
 
LinkBack Outils de la discussion
Vieux 11/09/2007, 06h10   #1
Hugo Vanwoerkom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut dpi changes on the fly

Hi,

Running Sid with Nvidia driver 9631.

X has always been rock solid, but recently I notice that the DPI
settings of the display changes on the fly, when I do:

xdpyinfo | grep 'dots per inch'

I normally get 110x110. That's what I set it to in /etc/gdm/gdm.conf:

....
command=/usr/bin/X0 :1 -layout X0 -dpi 110 -deferglyphs 16
-isolateDevice \"PCI:1:0:0\" -sharevts
....

But recently "suddenly"... maybe related to running Qt apps? the DPI
setting changes on the fly to 138x88 and all font sizes get tiny.

Logging out and back in sets it back to 110x110.

Is that possible, those DPI changes on the fly?

How does it happen?

Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 11/09/2007, 21h20   #2
Andrew Sackville-West
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dpi changes on the fly

On Mon, Sep 10, 2007 at 09:44:26AM -0500, Hugo Vanwoerkom wrote:
> Hi,
>
> Running Sid with Nvidia driver 9631.
>
> X has always been rock solid, but recently I notice that the DPI settings
> of the display changes on the fly, when I do:
>
> xdpyinfo | grep 'dots per inch'
>
> I normally get 110x110. That's what I set it to in /etc/gdm/gdm.conf:
>
> ...
> command=/usr/bin/X0 :1 -layout X0 -dpi 110 -deferglyphs 16 -isolateDevice
> \"PCI:1:0:0\" -sharevts
> ...
>
> But recently "suddenly"... maybe related to running Qt apps? the DPI
> setting changes on the fly to 138x88 and all font sizes get tiny.
>
> Logging out and back in sets it back to 110x110.
>
> Is that possible, those DPI changes on the fly?


gnome lets you change dpi on the fly from within the fonts
configuration window (don't ask me how to get there, I don't use
gnome, that's the wife's little clicky stuff).

A

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG5uSLaIeIEqwil4YRAlQoAKDjRD/MEKgF9drJgmE+8Cgjbf0NugCgnqQR
4B9M7ea7PBPbl/NbxR6AUFg=
=WJWk
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 12/09/2007, 02h50   #3
J
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dpi changes on the fly

I use kdm and had to make this change to stop
random font changes, but I only saw fonts change
size when rebooting:

root:/etc/kde3/kdm# diff Xservers Xservers.20041211
13c13
< :0 local@tty1 /usr/X11R6/bin/X -nolisten tcp -dpi 100
---

> :0 local@tty1 /usr/X11R6/bin/X -nolisten tcp




Hugo Vanwoerkom wrote:
> Hi,
>
> Running Sid with Nvidia driver 9631.
>
> X has always been rock solid, but recently I notice that the DPI
> settings of the display changes on the fly, when I do:
>
> xdpyinfo | grep 'dots per inch'
>
> I normally get 110x110. That's what I set it to in /etc/gdm/gdm.conf:
>
> ...
> command=/usr/bin/X0 :1 -layout X0 -dpi 110 -deferglyphs 16
> -isolateDevice \"PCI:1:0:0\" -sharevts
> ...
>
> But recently "suddenly"... maybe related to running Qt apps? the DPI
> setting changes on the fly to 138x88 and all font sizes get tiny.
>
> Logging out and back in sets it back to 110x110.
>
> Is that possible, those DPI changes on the fly?
>
> How does it happen?
>
> Hugo



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 12/09/2007, 17h20   #4
Hugo Vanwoerkom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dpi changes on the fly

Hugo Vanwoerkom wrote:
> Hi,
>
> Running Sid with Nvidia driver 9631.
>
> X has always been rock solid, but recently I notice that the DPI
> settings of the display changes on the fly, when I do:
>
> xdpyinfo | grep 'dots per inch'
>
> I normally get 110x110. That's what I set it to in /etc/gdm/gdm.conf:
>
> ...
> command=/usr/bin/X0 :1 -layout X0 -dpi 110 -deferglyphs 16
> -isolateDevice \"PCI:1:0:0\" -sharevts
> ...
>
> But recently "suddenly"... maybe related to running Qt apps? the DPI
> setting changes on the fly to 138x88 and all font sizes get tiny.
>
> Logging out and back in sets it back to 110x110.
>
> Is that possible, those DPI changes on the fly?
>
> How does it happen?
>


I think I figured it out:

I have fvwm as window manager and have buttons defined as:

....
Key F9 A S Exec xrandr -o left
Key F10 A S Exec xrandr -o normal
....

to rotate the screen.

When I run my Qt app it displays a window rotated (i.e.text is drawn in
vertical lines from right to left).

In order to see them straight up I rotate the screen with F9 and after
looking I rotate it back again.

But... doing xdpyinfo then shows:

resolution: 138x88 dots per inch

And if you start a Qt app then all the fonts are very small, naturally.

However doing F9 + F10 once more sets the dpi to 110x110 once more.

A bug in xrandr perhaps?

Hugo








--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 12/09/2007, 17h40   #5
Hugo Vanwoerkom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dpi changes on the fly

Hugo Vanwoerkom wrote:
> Hugo Vanwoerkom wrote:
>> Hi,
>>
>> Running Sid with Nvidia driver 9631.
>>
>> X has always been rock solid, but recently I notice that the DPI
>> settings of the display changes on the fly, when I do:
>>
>> xdpyinfo | grep 'dots per inch'
>>
>> I normally get 110x110. That's what I set it to in /etc/gdm/gdm.conf:
>>
>> ...
>> command=/usr/bin/X0 :1 -layout X0 -dpi 110 -deferglyphs 16
>> -isolateDevice \"PCI:1:0:0\" -sharevts
>> ...
>>
>> But recently "suddenly"... maybe related to running Qt apps? the DPI
>> setting changes on the fly to 138x88 and all font sizes get tiny.
>>
>> Logging out and back in sets it back to 110x110.
>>
>> Is that possible, those DPI changes on the fly?
>>
>> How does it happen?
>>

>
> I think I figured it out:
>
> I have fvwm as window manager and have buttons defined as:
>
> ...
> Key F9 A S Exec xrandr -o left
> Key F10 A S Exec xrandr -o normal
> ...
>
> to rotate the screen.
>
> When I run my Qt app it displays a window rotated (i.e.text is drawn in
> vertical lines from right to left).
>
> In order to see them straight up I rotate the screen with F9 and after
> looking I rotate it back again.
>
> But... doing xdpyinfo then shows:
>
> resolution: 138x88 dots per inch
>
> And if you start a Qt app then all the fonts are very small, naturally.
>
> However doing F9 + F10 once more sets the dpi to 110x110 once more.
>
> A bug in xrandr perhaps?
>


Here's a picture:
http://www.facebook.com/photo.php?pi...5&id=517767587














--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h00.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11689 seconds with 13 queries