Advertisement
irokezer59

tuchscreen

Dec 18th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.56 KB | None | 0 0
  1. # *********************************************:v:*************************
  2. Section "Module"
  3. Load "dbe" # Double buffer extension
  4. SubSection "extmod"
  5. Option "omit xfree86-dga" # don't initialise the DGA extension
  6. EndSubSection
  7. Load "type1"
  8. Load "freetype"
  9. Load "glx"
  10. Load "dri"
  11.  
  12. EndSection
  13.  
  14. # **********************************************************************
  15. # Files section. This allows default font and rgb paths to be set
  16. # **********************************************************************
  17.  
  18. Section "Files"
  19. FontPath "/usr/share/fonts/X11/cyrillic/"
  20. FontPath "/usr/share/fonts/X11/misc/"
  21. FontPath "/usr/share/fonts/X11/TTF/"
  22. FontPath "/usr/share/fonts/X11/Type1/"
  23. FontPath "/usr/share/fonts/X11/75dpi/"
  24. FontPath "/usr/share/fonts/X11/100dpi/"
  25. EndSection
  26.  
  27. # **********************************************************************
  28. # Server flags section.
  29. # **********************************************************************
  30.  
  31. Section "ServerFlags"
  32. Option "AutoAddDevices" "False"
  33.  
  34. # Uncomment this to cause a core dump at the spot where a signal is
  35. # received. This may leave the console in an unusable state, but may
  36. # provide a better stack trace in the core dump to aid in debugging
  37.  
  38. # Option "NoTrapSignals"
  39.  
  40. # Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
  41. # (where n is 1 through 12). This allows clients to receive these key
  42. # events.
  43.  
  44. # Option "DontVTSwitch"
  45.  
  46. # Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
  47. # This allows clients to receive this key event.
  48.  
  49. # Option "DontZap"
  50.  
  51. # Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
  52. # sequences. This allows clients to receive these key events.
  53.  
  54. # Option "Dont Zoom"
  55.  
  56. # Uncomment this to disable tuning with the xvidtune client. With
  57. # it the client can still run and fetch card and monitor attributes,
  58. # but it will not be allowed to change them. If it tries it will
  59. # receive a protocol error.
  60.  
  61. # Option "DisableVidModeExtension"
  62.  
  63. # Uncomment this to enable the use of a non-local xvidtune client.
  64.  
  65. # Option "AllowNonLocalXvidtune"
  66.  
  67. # Uncomment this to disable dynamically modifying the input device
  68. # (mouse and keyboard) settings.
  69.  
  70. # Option "DisableModInDev"
  71.  
  72. # Uncomment this to enable the use of a non-local client to
  73. # change the keyboard or mouse settings (currently only xset).
  74.  
  75. # Option "AllowNonLocalModInDev"
  76.  
  77. EndSection
  78.  
  79. # **********************************************************************
  80. # Input devices
  81. # **********************************************************************
  82.  
  83. # **********************************************************************
  84. # Core keyboard's InputDevice section
  85. # **********************************************************************
  86.  
  87. Section "InputDevice"
  88.  
  89. Identifier "Keyboard1"
  90. Driver "kbd"
  91.  
  92. # For most OSs the protocol can be omitted (it defaults to "Standard").
  93. # When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
  94. # uncomment the following line.
  95.  
  96. # Option "Protocol" "Xqueue"
  97.  
  98. Option "AutoRepeat" "500 30"
  99.  
  100. # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
  101. # Option "Xleds" "1 2 3"
  102.  
  103. # Option "LeftAlt" "Meta"
  104. # Option "RightAlt" "ModeShift"
  105.  
  106. # To customise the XKB settings to suit your keyboard, modify the
  107. # keyboard, you will probably want to use:
  108. # Option "XkbModel" "pc102"
  109. # If you have a US Microsoft Natural keyboard, you can use:
  110. # Option "XkbModel" "microsoft"
  111. #
  112. # Then to change the language, change the Layout setting.
  113. # For example, a german layout can be obtained with:
  114. # Option "XkbLayout" "de"
  115. # or:
  116. # Option "XkbLayout" "de"
  117. # Option "XkbVariant" "nodeadkeys"
  118. #
  119. # If you'd like to switch the positions of your capslock and
  120. # control keys, use:
  121. # Option "XkbOptions" "ctrl:swapcaps"
  122.  
  123. # These are the default XKB settings for Xorg
  124. # Option "XkbRules" "xorg"
  125. # Option "XkbModel" "pc101"
  126. # Option "XkbLayout" "us"
  127. # Option "XkbVariant" ""
  128. # Option "XkbOptions" ""
  129.  
  130. # Option "XkbDisable"
  131.  
  132. Option "XkbRules" "xorg"
  133. # Option "XkbModel" "pc105"
  134. # Option "XkbLayout" "us"
  135.  
  136. Option "XkbModel" "pc105"
  137. Option "XkbLayout" "us,ru"
  138. Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
  139. EndSection
  140.  
  141.  
  142. # **********************************************************************
  143. # Core Pointer's InputDevice section
  144. # **********************************************************************
  145.  
  146. Section "InputDevice"
  147.  
  148. # Identifier and driver
  149.  
  150. Identifier "Mouse1"
  151. Driver "mouse"
  152. Option "CorePointer"
  153. Option "Protocol" "ImPS/2"
  154. Option "Device" "/dev/psaux"
  155. Option "ZAxisMapping" "4 5"
  156.  
  157. # Mouse-speed setting for PS/2 mouse.
  158.  
  159. # Option "Resolution" "256"
  160.  
  161. # When using XQUEUE, comment out the above two lines, and uncomment
  162. # the following line.
  163.  
  164. # Option "Protocol" "Xqueue"
  165.  
  166. # Baudrate and SampleRate are only for some Logitech mice. In
  167. # almost every case these lines should be omitted.
  168.  
  169. # Option "BaudRate" "9600"
  170. # Option "SampleRate" "150"
  171.  
  172. # Emulate3Buttons is an option for 2-button Microsoft mice
  173. # Emulate3Timeout is the timeout in milliseconds (default is 50ms)
  174.  
  175. # Option "Emulate3Buttons"
  176. # Option "Emulate3Timeout" "50"
  177.  
  178. # ChordMiddle is an option for some 3-button Logitech mice
  179.  
  180. # Option "ChordMiddle"
  181.  
  182. EndSection
  183.  
  184. # **********************************************************************
  185. # elo USB InputDevice sections
  186. #
  187. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  188. #
  189. # You need to setup multiple touchscreens by xrandr and
  190. # xinput tools.
  191. #
  192. # Example of the setting two touchscreens:
  193. #
  194. # 1. xrandr | grep " connected"
  195. # DVI-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 509mm x 286mm
  196. # VGA-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
  197. #
  198. # 2. xinput --list
  199. # Virtual core pointer id=2 [master pointer (3)]
  200. # Virtual core XTEST pointer id=4 [slave pointer (2)]
  201. # Elo0 id=6 [slave pointer (2)]
  202. # Elo1 id=7 [slave pointer (2)]
  203. # Mouse1 id=8 [slave pointer (2)]
  204. # Virtual core keyboard id=3 [master keyboard (2)]
  205. # Virtual core XTEST keyboard id=5 [slave keyboard (3)]
  206. # Keyboard1 id=9 [slave keyboard (3)]
  207. #
  208. # 3. xinput map-to-output 6 DVI-0
  209. # xinput map-to-output 7 VGA-0
  210. #
  211. # See also:
  212. # man elo, man xinput, man xrandr
  213. #
  214. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  215. #
  216. # **********************************************************************
  217.  
  218. Section "InputDevice"
  219.  
  220. Identifier "Elo0"
  221. Driver "elo"
  222.  
  223. EndSection
  224.  
  225. Section "InputDevice"
  226.  
  227. Identifier "Elo1"
  228. Driver "elo"
  229.  
  230. EndSection
  231.  
  232. # **********************************************************************
  233. # Monitor section
  234. # **********************************************************************
  235. # Any number of monitor sections may be present
  236.  
  237. Section "Monitor"
  238. Identifier "Monitor 0"
  239. HorizSync 30 - 70
  240. VertRefresh 50-160
  241. Modeline "1024x768" 64.994 1024 1064 1200 1344 768 771 777 806 -HSync -VSync
  242. Modeline "1024x768@85" 98.9 1024 1056 1216 1408 768 782 788 822 -HSync -VSync
  243. Modeline "1024x768@100" 115.5 1024 1056 1248 1440 768 771 781 802 -HSync -VSync
  244. Modeline "1920x1080" 148.550 1920 2048 2080 2200 1080 1096 1100 1125 +Hsync +Vsync
  245. EndSection
  246.  
  247. Section "Monitor"
  248. Identifier "Monitor 1"
  249. HorizSync 30 - 70
  250. VertRefresh 50-160
  251. Modeline "1024x768" 64.994 1024 1064 1200 1344 768 771 777 806 -HSync -VSync
  252. Modeline "1024x768@85" 98.9 1024 1056 1216 1408 768 782 788 822 -HSync -VSync
  253. Modeline "1024x768@100" 115.5 1024 1056 1248 1440 768 771 781 802 -HSync -VSync
  254. Modeline "1920x1080" 148.550 1920 2048 2080 2200 1080 1096 1100 1125 +Hsync +Vsync
  255. EndSection
  256.  
  257.  
  258. # **********************************************************************
  259. # Graphics device section
  260. # **********************************************************************
  261.  
  262. # Device configured by xorgconfig:
  263.  
  264. Section "Device"
  265. Identifier "Device 0"
  266. Driver "radeon"
  267. BusID "PCI:195@0003:00:0"
  268.  
  269. EndSection
  270.  
  271. Section "Device"
  272. Identifier "Device 1"
  273. Driver "radeon"
  274. BusID "PCI:03@0000:00:0"
  275.  
  276. EndSection
  277.  
  278. # **********************************************************************
  279. # Screen sections
  280. # **********************************************************************
  281.  
  282. # Any number of screen sections may be present. Each describes
  283. # the configuration of a single screen. A single specific screen section
  284. # may be specified from the X server command line with the "-screen"
  285. # option.
  286. Section "Screen"
  287. Identifier "Screen 0"
  288. Device "Device 0"
  289. Monitor "Monitor 0"
  290. DefaultDepth 24
  291. Subsection "Display"
  292. Depth 8
  293. Modes "1024x768" "800x600" "640x480"
  294. ViewPort 0 0
  295. EndSubsection
  296. Subsection "Display"
  297. Depth 16
  298. # Modes "1024x768" "800x600"
  299. # Modes "800x600"
  300. Modes "1024x768"
  301. ViewPort 0 0
  302. EndSubsection
  303. Subsection "Display"
  304. Depth 24
  305. # Modes "1280x1024" "1024x768" "800x600" "640x480"
  306. ViewPort 0 0
  307. EndSubsection
  308. EndSection
  309.  
  310. Section "Screen"
  311. Identifier "Screen 1"
  312. Device "Device 1"
  313. Monitor "Monitor 1"
  314. DefaultDepth 24
  315. Subsection "Display"
  316. Depth 8
  317. Modes "1024x768" "800x600" "640x480"
  318. ViewPort 0 0
  319. EndSubsection
  320. Subsection "Display"
  321. Depth 16
  322. # Modes "1024x768" "800x600"
  323. # Modes "800x600"
  324. Modes "1024x768"
  325. ViewPort 0 0
  326. EndSubsection
  327. Subsection "Display"
  328. Depth 24
  329. # Modes "1280x1024" "1024x768" "800x600" "640x480"
  330. ViewPort 0 0
  331. EndSubsection
  332. EndSection
  333.  
  334. Section "Extensions"
  335. Option "Composite" "Enable"
  336. EndSection
  337.  
  338. Section "dri"
  339. Mode 0666
  340. EndSection
  341.  
  342. Section "ServerLayout"
  343.  
  344. Identifier "Sivuch-2 Server Layout (Elographics USB touchscreens x2)"
  345.  
  346. Screen "Screen 0"
  347. Screen "Screen 1" RightOf "Screen 0"
  348.  
  349. InputDevice "Mouse1" "CorePointer"
  350. InputDevice "Keyboard1" "CoreKeyboard"
  351.  
  352. InputDevice "Elo0" "SendCoreEvents"
  353. InputDevice "Elo1" "SendCoreEvents"
  354.  
  355. EndSection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement