SOLVED - Lowering the dpi on Firefox

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
macondo
Posts: 90
Joined: 16. Jun 2011, 02:08

SOLVED - Lowering the dpi on Firefox

Post by macondo »

In the past i've put this in my .bashrc for the dpi in the title of FF to become smaller:

Code: Select all

alias startx='startx -- -dpi 80'
but it doesn't work on Salix, i also put in in my .xinitrc, no dice.
Any suggestions?
Last edited by macondo on 18. Jun 2011, 14:27, edited 1 time in total.
User avatar
dab1414
Posts: 30
Joined: 2. Jun 2011, 19:26

Re: Lowering the dpi on Firefox

Post by dab1414 »

So there could be several ways to tackle this. AFAIK you setting [quote="macondo"]In the past i've put this in my .bashrc for the dpi in the title of FF to become smaller:

Code: Select all

alias startx='startx -- -dpi 80'
is setting your entire xserver to that dpi.
Also knowing what you use for a login manager and video driver would help. But here is 3 ways that I have accomplished this with either salix or slackware.

1. If you start X with startx, then change the defaultserverargs line in /usr/bin/startx, so

Code: Select all

yourfavoriteeditor /usr/bin/startx
change

Code: Select all

defaultserverargs=""
to

Code: Select all

defaultserverargs="-dpi 80"
The next 2 are with the file /etc/X11/xorg.conf
2. Xorg way of setting up monitor size and DPI
Look for the section

Code: Select all

Section "Monitor"
change it to reflect

Code: Select all

Section "Monitor"
    Identifier "Monitor0"
    Option   "DPI" "80 x 80"
EndSection
3.also in /etc/X11/xorg.conf But this one is if using the proprietary nvidia driver
Look at this section

Code: Select all

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection
And add 2 lines to look like this

Code: Select all

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "UseEdidDpi" "FALSE"
    Option         "DPI" "80 x 80"
EndSection
You can easily judge the character of a man by how he treats those who can do nothing for him.
-Unknown


My Linux screenshots:
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Lowering the dpi on Firefox

Post by thenktor »

To change the Firefox dpi setting only enter about:config in the address bar and then search for dpi. You'll find the layout.css.dpi setting, which is described here: http://kb.mozillazine.org/Layout.css.dpi
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
macondo
Posts: 90
Joined: 16. Jun 2011, 02:08

Re: Lowering the dpi on Firefox

Post by macondo »

Thanks to both of you!
@dab1414: i edited /usr/bin/startx, success!
Post Reply