debian 6, 96dpi

Knoppix

Модераторы: Warderer, Модераторы разделов

c0de
Сообщения: 10

debian 6, 96dpi

Сообщение c0de »

всем привет,debian 6 xfce,ноубук с видео Intel GMA 3150 + внешний монитор 19" benQ.
нужно сделать 96dpi во всех приложениях
имеем

я правельно понимаю что для монитора 19,такое не нормально?
дело в том что работал я некотрое время на родном мониторе 1280x600 если не вру,может оно со старых времен сохранилось?

Код: Выделить всё

xdpyinfo | grep resolution
  resolution:    154x165 dots per inch

хотя

Код: Выделить всё

user@localhost:~$ cat /var/log/Xorg.0.log |grep -i dpi
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/75dpi/:unscaled,
    /usr/share/fonts/X11/100dpi,
    /usr/share/fonts/X11/75dpi,
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/75dpi/:unscaled,
    /usr/share/fonts/X11/100dpi,
    /usr/share/fonts/X11/75dpi,
(++) intel(0): DPI set to (96, 96)
(WW) intel(0): Option "DPI" is not used
user@localhost:~$


xorg.conf

Код: Выделить всё

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
    FontPath     "/usr/share/fonts/X11/cyrillic"
    FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
    FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "dri2"
    Load  "dbe"
    Load  "glx"
    Load  "record"
    Load  "dri"
    Load  "extmod"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "ColorKey"               # <i>
        #Option     "CacheLines"             # <i>
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "DRI"                    # [<bool>]
        #Option     "NoDDC"                  # [<bool>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "XvMCSurfaces"           # <i>
        #Option     "PageFlip"               # [<bool>]
     Option     "DPI"                       "96 x 96"
    Identifier  "Card0"
    Driver      "intel"
    VendorName  "Intel Corporation"
    BoardName   "N10 Family Integrated Graphics Controller"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection




что я делал
1.ставил параметр Option "DPI" "96 x 96"
в xorg.conf он его не признает
2.добавил параметр в строчку /usr/bin/startx
defaultserverargs="-dpi 96 -ac -nolisten tcp"
3.добовлял параметр в строчку
/etc/x11/xinit/xserverrc
exec /usr/bin/X -dpi 96 -nolisten tcp "$@"

действия 2,3 приносят толк только в логах при команде cat (ее вывод я привел выше)
на xdpyinfo нечего не действует,откуда он берет значения?
X стартует из консоли после команды startx
Спасибо сказали:
Аватара пользователя
genacid
Сообщения: 194
ОС: debian testing

Re: debian 6, 96dpi

Сообщение genacid »

Попробуй добавить:

Код: Выделить всё

Section "Monitor"
  ...
  DisplaySize AA BB
  ...
EndSection
...
Section "Device"
  ...
  Option "NoDDC" true
  ...
EndSection

где AA = <разрешение по горизонтали>*25.4/96,
BB = <разрешение по вертикали>*25.4/96.

Често не помню уже почему именно так, но man xorg.conf должен помочь.
testing is testing
Спасибо сказали: