Edited by ph87 at Tue Jan 13, 2015 17:32 |
I just want to descibe one way how how you can get your touchscreen working within XBMC...
First I want to say "Thank you" to jogi36de who has tested all scripts and the whole build process!
I've to mention that I didn't develop the patches, I only adapted them for the BananaPi and made the scripts to make to build process easier! And btw. I'm a Noob in programming scripts - but they work
The HOW-TO for LeMedia
- Download the LeMedia 1.1 Image from here
- Then start the BananaPi and exit from XBMC
- Type following into the Terminal:
Copy the Code
- git clone https://github.com/ptC7H12/bp-touch.git
- That's all!!!
If you want to build XBMC for Lubuntu
In point 3 you just have to type "make lubuntu" instead of only "make"
How to calibrate the Touchscreen?
- Download following plugin: click here
- Unzip it and edit it. Enter your Screen resolution, in the rows 34/35 of the addon.py file, instead of the methods e.g.
Copy the Code
- #self.w = self.getWidth()
- #self.h = self.getHeight()
- self.w = 800
- self.h = 640
- Now zip this plugin again and install it in XBMC: Settings->Addons-> Install from ZIP
- Go to Programs and run the Plugin -> Follow the Instruction on the screen
- Restart XBMC or maybe sometimes (It may depend on the screen drivers) you only have to unplug the USB-cable of the Touchscreen and plugin again
- Mostly the screen is still not perfectly calibrated (don't know why, but for me it mostly worked on the RaspberryPi) then you've to edit the calibration file! You can edit this file with this command:
calib_x_d: difference between your finger and mousepointer on the X-axis Copy the Code
- nano /touch/touchscreen_axes_calib
calib_y_d: difference between your finger and mousepointer on the Y-axis
calib_x_fact: factor of calib_x_d, that means e.g. If the diffence between finger and pointer is on the right side of the screen bigger then on the left you have to adjust this value
calib_x_fact: factor of calib_y_d, that means e.g. If the diffence between finger and pointer is on the top side of the screen bigger then on the bottom you have to adjust this value
swap_axes: inverse the axes. E.g. when you move your finger to the right, but the pointer moves to the left, then change value to "1"
click_confines: The count of pixel to recognize a "click". Less means you have to point more precisely (On my screen I had set this value to "30")
If you're facing any issues regarding the build process, please communicate them here in this thread. Regarding all other issues I can not give any support, cause I don't own the BananaPi myself...