[LINUX] Touchscreen (touch screen) issue only with XBMC?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Blacksheep70 Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Post: #1
Hi community,

I am using XBMC with MythTV integration ony my HTPC with Ubuntu 10.10. One of the last open construction sites is the touchscreen in XBMC. The used driver is elotouch

I am using an USB Elo Touchscreen which works well (!) on the desktop. I can move the pointer everywhere i want, start programs from the application menu and so on. Wink

As soon XBMC is started it seems that the mouse control does not work properly. I see the mouse pointer moving along the left and upper border of the TFT when I touch the touchscreen and move my finger. But the mouse pointer is not able to leave the border. Feels like it is gluing at the border and can only moved along there but not e.g. to the middle of the screen.
_____
|XXX
|XXX

The lines should show where i can move the pointer along, the X should demonstrate the area where i can't move the pointer to.

With a normal usb mouse I can move the pointer everywhere I want.

Search for similar problems here and with google was not helpful.

Any ideas? Confused

Thanx in advantage!

Regards
Blacksheep
find quote
SpiffBB Offline
Member
Posts: 74
Joined: Sep 2008
Reputation: 0
Post: #2
Just to be shure - you havent by misstake disabled mouse controll in settings?!
find quote
Blacksheep70 Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Post: #3
Hi SpiffBB

thanx for your answer. But: If the mouse control is disabled I would expect that the normal mouse would not work. But it does as described above.

But this brought me to the idea that both devices connected could be the problem... But the same behaviour exists when I unplug the USB mouse.

Next idea Wink

Regards
Blacksheep
find quote
Blacksheep70 Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Post: #4
Not only to bump the topic... Found out more:

If XBMC is running in windowed mode, the touchscreen works well. I can select everything I want im XBMC.

But if XBMC is running in the fullscreen mode the behaviour I initially described is happen.

So it seems that XBMC is making a difference in handling mouse events when running windowed and full screen?

Would be cool if a XBMC developer could make a statement here and probably fix that...
Running XBMC windowed is uncool on a pure HTPC Wink

Regards
Blacksheep.
find quote
Blacksheep70 Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Post: #5
I will submit this as a bug today...

Regards
Blacksheep
find quote
Blacksheep70 Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Post: #6
Ticket #11051 created.
find quote
Blacksheep70 Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Post: #7
kais replied into the ticket and the workaround works for me:

Quote:Seems that the SDL has a bug/feature that blocks the SDL_MOUSEMOTION events if a custom mouse cursor is used instead of the system mouse cursor in the fullscreen mode (see http://us.generation-nt.com/answer/bug-5...35561.html and http://blogs.distant-earth.com/wp/?p=293).

I tried to implement hidden system cursor as one workaround suggest. The touchscreen worked after the change, but the problem was that the mouse wasn't allowed to move "menu" areas in the top of the screen and left border of the screen (Ubuntu Netbook 10.10 contains menu in the left side of the screen). I didn't investigate the fix further because I found that the "SDL_MOUSE_RELATIVE=0" allows to use touchscreen perfectly in the XBMC Live 1o version that was my main goal (added line "export SDL_MOUSE_RELATIVE=0" to the /usr/bin/runXBMC to my local version). In the Ubuntu Netbook the SDL_MOUSE_RELATIVE prevents also moving to the top and left border of the screen.

The tested hardware was Exopc ( http://www.exopc.com/en/exopc-slate.php).

Thanx a lot, kais! Quoted your answer here. Maybe someone need the solution too.

Regards
Blacksheep
find quote
ofer_shm Offline
Junior Member
Posts: 26
Joined: Oct 2008
Reputation: 0
Post: #8
hi
i have the same problem with my touch screen
evrything work good but when i run xbmc in full screen the touch screen stop working

i didnt understand how to solve it , i cant find the file runxbmc


thank you
find quote
Blacksheep70 Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Post: #9
It's quite easy:

create the file by using your prefered text editor, e.g.
Code:
nano /usr/bin/runXBMC

insert following into the file:

Code:
#!/bin/bash
export SDL_MOUSE_RELATIVE=0
xbmc

Save the file by pressing STRG&X

Make the new created file executeable (I did it as root):

Code:
chmod 755 /usr/bin/runXBMC

And that was the trick. At least you have to point the existing auto start for xmbc to the new /usr/bin/runXBMC file.

Works fine on my system. Feel free to ask if you have further issues with the above....

Regards,
Blacksheep
find quote
ofer_shm Offline
Junior Member
Posts: 26
Joined: Oct 2008
Reputation: 0
Post: #10
Thank you very much !!!
it work fine now
find quote
Post Reply