/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Linux/xorg/XFree86.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
1. DRI - Direct Rendering Interface
 
2
        a. Mesa included - no need for separate package
 
3
        b. DRM kernel drivers must presist in 2.4.x/kernel/driver/char/drm/
 
4
           and specific for kernel!!!
 
5
        c. All OpenGL apps must use libGL.so.1.2 from XFree and not use
 
6
           libGL.so & etc from Mesa & others. Most simple OGL programs also
 
7
           use GLUT & GLU.
 
8
           Some old programms linked with libMesaGL may been reworking with
 
9
           XFree86 by setting link "ln -s libGL libMesaGL"
 
10
        d. glxinfo - information of current loaded glx module
 
11
        e. export LIBGL_ALWAYS_INDIRECT - Software rendering
 
12
           export LIBGL_DEBUG,MESA_DEBUG - additional output
 
13
           export LIBGL_DRIVERS_PATH - default /usr/X11R6/lib/modules/dri
 
14
        f. Bus mastering must be enabled:
 
15
                lspci - list pci devices
 
16
                setpci -s 01:00.0 4.w (here 01:00.0 VGA address in previous 
 
17
                                        command)
 
18
                        if bit 2(from 0) is 1 - then busmastering enabled
 
19
                setpci -s 01:00.0 4.w=... may help enable bus mastering
 
20
        g. If libGL open with dlopen then
 
21
                a. RTLD_GLOBAL flag must be set
 
22
                b. dlclose() only after XCloseDisplay()
 
23
                c. Linking with pthread
 
24
        
 
25
2. Infos about current work status
 
26
        a. xdpyinfo
 
27
        b. xset -q
 
28
 
 
29
 
 
30
3. Disabling screen blanking: 
 
31
        xset s off; xset -dpms
 
32
 
 
33
4. xauth ( connecting users to XFree86 )
 
34
    Creating Server:
 
35
        xauth  generate :0.0 MIT-MAGIC-COOKIE-1 trusted 
 
36
    EXTRACTING To Some File:
 
37
        xauth extract - $DISPLAY > file
 
38
    Generating Client:
 
39
        xauth merge file
 
40
 
 
41
5. ��� ��������� �� ������� NVidia �������� ��� ������������ �������
 
42
    � XF86Config-4, � Section "Device" �������� ������:
 
43
        Option "NvAgp" "1"
 
44
   �� � ���� ������ �� ������������� ����� ����� SDL, ������ ����������� 
 
45
   ����� �������.
 
46
 
 
47
6. ��� ��������� ������ Mouse Wheel
 
48
    gpm -t imps2 ��� � /etc/sysconfig/mouse:
 
49
        MOUSETYPE=imps2
 
50
        WHEEL=yes
 
51
 
 
52
    � XF86Config-4 � Section "InputDevice":
 
53
        Identifier  "Mouse"
 
54
        Driver "mouse"
 
55
        Option "Protocol"    "IMPS/2"
 
56
        Option "Device"      "/dev/mouse"
 
57
        Option "ZAxisMapping" "4 5"
 
58
        Option "Buttons" "5"
 
59
 
 
60
7.  ��� ������� �������� ����� ������ X Window    
 
61
        import -display localhost:0.0 -window root screenshot.jpg
 
62
 
 
63
8.  �������������� ����������� ����, ��� ������� ������� � paw
 
64
        Option "BackingStore"
 
65
 
 
66
9.  ��������� ��� �������� �����, XFree86 3.x
 
67
        Option "no_accel"
 
68
        Option "sw_cursor"
 
69
 
 
70
10. Setting AutoRepeat Rate & Delay
 
71
        xset r on
 
72
        xset r rate 300 25
 
73
 
 
74
11. Restoring broken keyboard (no Ctrl+C, etc.)
 
75
        setxkbmap -verbose
 
76
        
 
77
12. Restoring connection to xfs (missing fonts after xfs restart)
 
78
        xset -fp "unix/:-1"
 
79
        xset +fp "unix/:-1"
 
80
        xset fp rehash
 
81
 
 
82
13. Xinerama
 
83
    Composite extension is not working together with Xinerama. This prevents
 
84
    compis and google-earth from operation. 
 
85
    For NVIDIA cards TwinView could be used instead.
 
86
 
 
87
    
 
 
b'\\ No newline at end of file'