Bodhi Linux Forums: (SOLVED)Right click using touchscreen - Bodhi Linux Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

(SOLVED)Right click using touchscreen

#1 User is offline   Asaf.h 

  • Member
  • Group: Members
  • Posts: 123
  • Joined: 31-March 11

Posted 17 September 2012 - 10:54 PM

Hi Bodhi.

Bodhi works out of the box with my touchscreens. ( on IBM X41. or with eGalxy touch surface)
I am looking for the way to config the touchscreen driver.
I would like the driver to do a Right Click Emulation.


I am not sure which driver I am using, I think it called: "evdev"...? I am not sure.

I found some info about the driver EVTouch online is this the one on bodhi?

http://www.conan.de/...n/libtouch.html

as I understand the function "LONGTOUCHED" is what I am looking for.
but - I have no idea about the right syntext.

I have also found this link:
http://www.staff.amu...mar/blog/?p=247
which talk about editing the file : /etc/X11/xorg.conf.d/99-calibration.conf
but the file does not exist on bodhi...

If any one has an idea how to make it works I would be very happy to here about it,

Assaf
0

#2 User is offline   Jeff 

  • Project Advisor
  • Group: Developer
  • Posts: 9691
  • Joined: 23-November 10
  • LocationBloomington, IL

Posted 18 September 2012 - 02:06 AM

You can use the software "easy stroke" to emulate a right click via a gesture I believe.

Modern Linux distributions no longer use xorg.confs and haven't for some time. That being said if you create a file for xorg it will be used.

~Jeff
0

#3 User is offline   swordplay 

  • Member
  • Group: Members
  • Posts: 342
  • Joined: 08-June 12
  • LocationHonolulu

Posted 18 September 2012 - 04:11 AM

You can try this: http://www.staff.amu...mar/blog/?p=247

Aloha.
0

#4 User is offline   Asaf.h 

  • Member
  • Group: Members
  • Posts: 123
  • Joined: 31-March 11

Posted 18 September 2012 - 07:37 AM

Hi Guys
Thanks for yours replays.

It is possible to generate right click with easy stroke. but easy stroke will disturb the extension grab and drag (scrolling in Firefox)

I tried to put the Xorg.Conf in /etc/X11/xorg.conf.d/99-calibration.conf
But it does not change any thing.
I found that in /usr/share/X11/xorg.conf.d there are many Xorg.Conf files.
maybe it is possible to add the " Option "EmulateThirdButton" "1" " to one of them ??


Assaf
0

#5 User is offline   loupgris 

  • Member
  • Group: Members
  • Posts: 42
  • Joined: 27-June 11
  • LocationFrance - Close to Paris

Posted 18 September 2012 - 07:16 PM

Hi,

you can try and create an /etc/X11/xorg.conf file with the touchscreen parameters in it.
That's the way I made work my touchscreen on my Archos 9 bloody tablet :D

Well, worth the try, I found out xorg.conf beeing usefull on some hardware even with the huge progress within xorg self config.
0

#6 User is offline   Asaf.h 

  • Member
  • Group: Members
  • Posts: 123
  • Joined: 31-March 11

Posted 19 September 2012 - 03:52 PM

View Postloupgris, on 18 September 2012 - 07:16 PM, said:

Hi,

you can try and create an /etc/X11/xorg.conf file with the touchscreen parameters in it.
That's the way I made work my touchscreen on my Archos 9 bloody tablet :D

Well, worth the try, I found out xorg.conf beeing usefull on some hardware even with the huge progress within xorg self config.


could you please post your file as an example ?
0

#7 User is offline   Asaf.h 

  • Member
  • Group: Members
  • Posts: 123
  • Joined: 31-March 11

Posted 25 September 2012 - 10:25 PM

OK. SOLVED !!!

the solution:

1. open terminal and run the command "xinput_calibrator".. after the calibration is finish read the terminal output.
The xinput_calibrator will give you the name of the XORG.CONF file you are about to create.

2. Go to /usr/share/X11/xorg.conf.d/ and create or update the file that the "xinput_calibrator" suggested

3. in the file you just create add the following, just after the
Option "Calibration"   "xxx yyy zzz qqq"

Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "750"
Option "EmulateThirdButtonThreshold" "30"   

save the file - restart and now try and see - long hold on the touchscreen brings up right click.


just as an example the file I created called : 99-calibration.conf
and its content is:
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "eGalax Inc. USB TouchController"
        Option  "Calibration"   "234 1962 164 1861"
	Option "EmulateThirdButton" "1"
	Option "EmulateThirdButtonTimeout" "750"
	Option "EmulateThirdButtonThreshold" "30"
EndSection


good luck you all

Assaf
0

#8 User is offline   Jalmado 

  • Member
  • Group: Members
  • Posts: 1
  • Joined: 20-March 14

Posted 20 March 2014 - 01:22 PM

I'm trying to make the right-click work using the method of xinput_calibrator suggested by Assaf.
But after running the command, it doesn't tell me of any file, but in order to make the calibration permanent it tells me:

Install the 'xinput' tool and copy the command below in a script that starts with your X session

xinput set-int-prop "UNITEC USB Touch (Win7)" "Evdev Axis Calibration· 32 153 19989 34 11322"

I tried creating a file with those parameters and with the Options above but it didn't work.

Any suggestions?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users