[PROBLEM] Waveshare5/Sainsmart 7" HDMI with GPIO touch
| 
				
				 
					Problem: Waveshare5/Sainsmart 7" HDMI with GPIO touch
				 
			 | 
		
| 
				 
					1st Nov, 2016, 08:53 AM 
				 
				
Post: #16 
			 | 
		|||
				
  | 
		|||
				RE: Waveshare5/Sainsmart 7" HDMI with GPIO touch 
				(1st Nov, 2016 04:49 AM)Nachteule Wrote: Oh yes, you're right. Those libs are not longer part of Debian Jessie Sounds promising, however I'm confused as to the modifying mouse.XML file - what kind of modifying? I'll test this out tonight.  | 
		|||
| 
				 
					1st Nov, 2016, 01:59 PM 
				 
				
Post: #17 
			 | 
		|||
				
  | 
		|||
| 
				RE: Waveshare5/Sainsmart 7" HDMI with GPIO touch 
				 
					Alright, so far, what I've done:  
				
				
				
			Updated to kodi v17 via the devel repo. Edited advanced settings: sudo nano /home/xbian/.kodi/userdata/advancedsettings.xml I copied this text: <touchscreen> <x_offset>-32</x_offset> <!-- cursor pixel x offset --> <y_offset>-35</y_offset> <!-- cursor pixel y offset --> <x_stretch_factor>0.209</x_stretch_factor> <!-- stretch factor --> <y_stretch_factor>0.131</y_stretch_factor> <!-- stretch factor --> </touchscreen> Into that file, and saved it. I then opened the /usr/local/share/kodi/system/keymaps/mouse.xml file, And copied the text: <mouse> <leftclick>leftclick</leftclick> <rightclick>rightclick</rightclick> <middleclick>middleclick</middleclick> <doubleclick id="0">noop</doubleclick> <longclick id="0">contextmenu</longclick> <wheeldown>wheeldown</wheeldown> <wheelup>wheelup</wheelup> <mousedrag>mousedrag</mousedrag> <mousedragend>leftclick</mousedragend> <mousemove>noop</mousemove> </mouse> Into it. Saved, exited, rebooted. No dice. The mouse now doesn't work AT ALL. Before I edited the mouse.xml file, I could get some kind of control from the upper left of the screen....now, nothing. I may have completely messed up my mouse.xml file....how do I get the original back?!  | 
		|||
| 
				 
					1st Nov, 2016, 10:24 PM 
(This post was last modified: 1st Nov, 2016 11:01 PM by Nachteule.)
				 
				
Post: #18 
			 | 
		|||
				
  | 
		|||
| 
				RE: Waveshare5/Sainsmart 7" HDMI with GPIO touch 
				 
					What did you do exactly? 
				
				
				
			I suppose you just added the lines to the end of the files /home/xbian/.kodi/userdata/advancedsettings.xml and /usr/local/share/kodi/system/keymaps/mouse.xml ![]() ![]()   That is definitively wrong ![]() ![]() ![]() Here is my working version of mouse.xml and advancedsettings.xml: mouse.xml: Code: <?xml version="1.0" encoding="UTF-8"?>You can use this mouse.xml as it is. And again: would be good idea to copy this file into folder /home/xbian/.kodi/userdata/keymaps and edit it there because if you don't, those changes will be overwitten by xbian-package-xbmc update advancedsettings.xml: Code: <advancedsettings>Note: Please do NOT replace my advancedsettings.xml with your version it is just an example how to insert the touchscreen section into this file (before !!! </advancedsettings> and not behind)  | 
		|||
| 
				 
					11th Apr, 2018, 01:03 PM 
				 
				
Post: #19 
			 | 
		|||
				
  | 
		|||
| 
				RE: Waveshare5/Sainsmart 7" HDMI with GPIO touch 
				 
					I absolutely HATE to revive a long dead thread. 
				
				
				
			However: This is a problem again. I have the exact same setup from my initial problem, Except Now I've reinstalled the latest xbian for Rpi3, and changed the pi2 to a pi3. I'm trying to run the Sainsmart 7" touchscreen with the latest xbian. I tried booting it without doing anything, it runs, but the screen doesn't display. Plug into a tv, it works fine. SSH into the box, add the /boot.config.txt configuration, boot plugged into a tv, change the resolution, And the screen works great! Cannot get the touch screen working properly. I remembered this thread, and I had it working on the jukebox I made, but the same steps taken have no effect - the touch screen senses touch, but the cursor is all over the place. HELP?  | 
		|||
| 
				
	 
					« Next Oldest | Next Newest »
				 
			 |