Results 1 to 1 of 1

Thread: [lubuntu] Set proper display DPI with LXDM

  1. #1
    Join Date
    Jun 2011
    Beans
    1

    [lubuntu] Set proper display DPI with LXDM

    Problem:
    My laptop incorrectly recognises screen DPI (or PPI, whatever).
    Fonts look way to small and antialiasing is not applied as intened.

    Todo:
    Manually set DPI for Xorg (not just font DPI).
    My correct value is 118x118 dpi.

    Failed methods:
    Providing /etc/X11/xorg.conf OR /usr/share/X11/xorg.conf.d/60-monitor.conf files with options like (none helped):
    Code:
    Section "Monitor"
        Identifier "Monitor0"
        DisplaySize 272 204
        Option "DPI" "118 x 118"
    EndSection
    Editing /etc/X11/xinit/xserverrc to contain line like (strange, but did not help):
    Code:
    exec /usr/bin/X -dpi 118 -nolisten tcp "$@"
    The things that worked:
    Firstly straightforward method of uncomenting /etc/alternatives/lxdm.conf file to override server args like:
    Code:
    arg=/usr/bin/X -nr vt07 -dpi 118 -nolisten tcp
    did not help as well,
    but after some debugging the solution was found in putting arg value within double quotes, like follows:
    Code:
    arg="/usr/bin/X -nr vt07 -dpi 118 -nolisten tcp"


    Alternative solution (found in Archlinux wiki):

    Run command
    Code:
    xrandr --dpi 118
    And place this string in appropriate startup script (like /etc/xdg/Lubuntu/autostart for Lubuntu) if You like this solution.
    Last edited by SpaceCat3000; June 15th, 2011 at 01:24 PM. Reason: indents fix

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •