Calibration from a single terminal.

Due to overwhelming demand, we have created a forum just dedicated to Toughbook users who use Linux!
Message
Author
User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: Calibration from a single terminal.

#91 Post by SHEEPMAN! »

Bumping important bits. For those that only read the last post.

Run from terminal with one line.

I needed to use root terminal to run this. Possibly because it is on a LiveUSB. This was wrong, see next post.

Code: Select all

xinput_calibrator --output-type xorg.conf.d --output-filename /etc/X11/xorg.conf.d/99-calibration.conf


Whatever text editor you use, append the two lines exactly as shown. Viola! right click!

Code: Select all

Option "EmulateThirdButton"  "1"
Option "EmulateThirdButtonMoveThreshold" "50"
Attachments
This is nano text editor...most any text editor will work.
This is nano text editor...most any text editor will work.
Screenshot.png (51.46 KiB) Viewed 328817 times
Last edited by SHEEPMAN! on Tue Apr 23, 2019 12:43 am, edited 1 time in total.
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: Calibration from a single terminal.

#92 Post by SHEEPMAN! »

Must be run from root as you are creating a file, whereas just calibrating the screen is acceptable as user input.
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: Calibration from a single terminal.

#93 Post by kode-niner »

Yeah, almost everything in /etc is owned by root. You don't want user processes mucking around X11 either, so it's only natural that everything in there is 100% owned by root.
Daily drives a CF-31

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: Calibration from a single terminal.

#94 Post by SHEEPMAN! »

Speaking of root....

WHEN WRITING A .conf FILE FROM THE TERMINAL, HOW DO YOU MAKE THE BLESSED THING RUN THE FILE.

SO FAR I WROTE PSMOUSE.CONF WITH A ONE-LINER FROM TERMINAL

THEN I REBOOTED. DIDN'T TAKE EFFECT SO I EDITED FILE FROM FILE MANAGER GRANTING READ/WRITE ACCESS TO ALL USERS..
I haven't rebooted yet but what is the correct way (simple) to do this once?

Maybe do

Code: Select all

echo options psmouse resolution=400
Using su?

Thanks.
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: Calibration from a single terminal.

#95 Post by kode-niner »

Sorry I might have missed the beginning of this discussion, but what is in your psmouse.conf and in which directory did you put it in?
Daily drives a CF-31

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: Calibration from a single terminal.

#96 Post by SHEEPMAN! »

To speed up draggy mouse permanently in a CF-29.

Contents:

Code: Select all

options psmouse resolution=400
The file is: /etc/modprobe.d/psmouse.conf with the other .conf files

putting it in /usr/share/X11/xorg.conf.d caused a system hang-up. I don't call it a crash because I figured it might happen. IOW my fault not the system.

I've used this for years on CF-29s. Something changed in MX18 (Debian Stretch?)

In lsmod psmouse says 0. (not used?)

It doesn't help that I am on four different computer models every day. :pat:
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

Re: Calibration from a single terminal.

#97 Post by UNCNDL1 »

Working on the touchscreen 31 MK4, and put this into terminal:
mx@mx:~
$ sudo xinput_calibrator --output-type xorg.conf.d --output-filename /etc/X11/xorg.conf.d/99-calibration.conf
Calibrating EVDEV driver for "Fujitsu Component USB Touch Panel" id=9
current calibration values (from XInput): min_x=473, max_x=15694 and min_y=1129, max_y=15905

Doing dynamic recalibration:
Setting calibration data: 530, 15652, 1137, 15926
--> Making the calibration permanent <--
writing xorg.conf calibration data to '/etc/X11/xorg.conf.d/99-calibration.conf'
Section "InputClass"
Identifier "calibration"
MatchProduct "Fujitsu Component USB Touch Panel"
Option "Calibration" "530 15652 1137 15926"
Option "SwapAxes" "0"
EndSection
mx@mx:~
$
1. Situation is that nano editor is on the operating system, but can not get it to open up.
Is there another editor available to use?
2. Do I need to make calibration permanent, or has it already been saved?
I'm rusty at this and need some practice
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: Calibration from a single terminal.

#98 Post by kode-niner »

Are you root or using sudo to edit the root-owned file?
Daily drives a CF-31

UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

Re: Calibration from a single terminal.

#99 Post by UNCNDL1 »

So glad I book marked this posting. Using it on the MK2 CF-30 that I bought in an auction on this site way back when to fund some needed website goodies.
This is running an older version of Navigatrix 0.5 from 2015. It looks like I need to upgrade the browser (maybe) but other than that, touchscreen calibration as described above works just fine.
Funny Terminal:
_________________________________
/ When the sun shineth, make hay. \
| |
\ -- John Heywood /
---------------------------------
\
__,---.
/__|o )
`- / /
,) (,
// \\
{( )}
=======""===""===============
|||||
|||
|
/ New Year's Eve is the time of year when \
| a man most feels his age, and his wife |
| most often reminds him to act it. |
| |
\ -- Webster's Unafraid Dictionary /
-----------------------------------------
\
__,---.
/__|o )
`- / /
,) (,
// \\
{( )}
=======""===""===============
|||||
|||
|

tough@debian:~$ sudo apt-get install xinput-calibrator
[sudo] password for tough:
Reading package lists... Done
Building dependency tree
Reading state information... Done
xinput-calibrator is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tough@debian:~$ xinput_calibrator #minus sign became an underscore
Setting calibration data: 0, 4095, 0, 4095
Calibrating EVDEV driver for "Fujitsu Component USB Touch Panel" id=9
current calibration values (from XInput): min_x=0, max_x=4095 and min_y=0, max_y=4095

Doing dynamic recalibration:
Setting calibration data: 282, 3929, 221, 3954
--> Making the calibration permanent <--
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
Identifier "calibration"
MatchProduct "Fujitsu Component USB Touch Panel"
Option "Calibration" "282 3929 221 3954"
Option "SwapAxes" "0"
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

Post Reply

Return to “The LINUX forum!!!”