Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED] How to get fujitsu serial touchscreen working

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
Cayennes
n00b
n00b
Posts: 33
Joined: Fri Oct 01, 2004 7:56 pm

[SOLVED] How to get fujitsu serial touchscreen working

  • Quote

Post by Cayennes » Mon Aug 30, 2010 9:32 pm

I have a fujitsu lifebook p1610 running gentoo that I recently updated after leaving it for a long time. Many things about X seem to have changed since I originally set up this computer (evdev, etc.) and I switched to the new way of doing things; everything is working except the touchscreen. But reverting to my old config files isn't a solution since X won't even start with my old xorg.conf file.

Does anyone have a touchscreen working on an older fujitsu tablet that uses a serial touchscreen?

Let me know what info about my system would be useful.

Thanks for any help.
Last edited by Cayennes on Wed Sep 01, 2010 2:59 am, edited 1 time in total.
Top
BradN
Advocate
Advocate
User avatar
Posts: 2391
Joined: Fri Apr 19, 2002 2:48 am
Location: Wisconsin (USA)

  • Quote

Post by BradN » Mon Aug 30, 2010 10:29 pm

1. Get inputattach utility installed, you may have to google for it and compile it manually (it's just one .c file). This is the program that tells linux to start using input from a serial device. Inputattach stays loaded the entire time your device is in use, but doesn't actually do anything after it's started (it's just a sort of placeholder program for the serial port I guess, but be aware to use & to background it in a startup script or it will never finish).

2. Use xinput command to set the calibration (on my fujitsu lifebook, the default is unusable). You will probably have to experiment a lot to find values that work well - too bad I can't find a generic calibration program anywhere I looked.

3. Make a script that does these and runs at X login, and at resume from sleep/hibernate, because your touchscreen will be disconnected when not running and you will have to inputattach and calibrate it again.

On my system, the touchscreen works good like this, but if your machine is like mine, the touchpad isn't synchronized at first use and will make the cursor jump and click all over when you first touch it, and if you're unlucky it'll think a button's being held that you can't un-press, making you either suspend again and see if the initial touch unsticks it, or remember every time to click a touchpad button and wait a moment before the touchpad itself after resuming... maybe you don't even have a touchpad though?

Anyway, this is the method that works for me, ymmv.

I'll post the files I've got that should help you get it sorted out but I don't have my laptop here right now. If I don't post back in like 6 hours, just leave another message in this thread and I'll see it in the "my posts" search.
Top
BradN
Advocate
Advocate
User avatar
Posts: 2391
Joined: Fri Apr 19, 2002 2:48 am
Location: Wisconsin (USA)

  • Quote

Post by BradN » Tue Aug 31, 2010 4:54 pm

Sorry it took a little longer, but here's the magic:

/etc/touchscreen.sh:

Code: Select all

#!/bin/bash
killall inputattach
sleep .2
start-stop-daemon --start -b --exec /usr/local/bin/inputattach -- --fujitsu /dev/ttyS3
sleep .7
DISPLAY=:0 xinput set-int-prop "Fujitsu Serial Touchscreen" "Evdev Axis Calibration" 32 180 4000 190 3965
Those last 4 numers are what you might have to play with, maybe the serial port device too.

/etc/hibernate/common.conf [excerpt]:
OnResume 20 /etc/touchscreen.sh

Make sure to chmod +x /etc/touchscreen.sh, and then find a way to make that script run when you log into your desktop environment.

In order for the calibration to be set, the script needs to be able to connect to the X server. This isn't a problem at login, but it is after resume when the script is running as root, not your normal user. So, you will also have to find a way to run "xhost +local" at log-in too. I believe you might have to make the script setuid so it always runs as root to make inputattach work (my laptop only has a root account at the moment so I haven't tested thoroughly).


Hope this helps!
Top
Cayennes
n00b
n00b
Posts: 33
Joined: Fri Oct 01, 2004 7:56 pm

  • Quote

Post by Cayennes » Tue Aug 31, 2010 7:47 pm

BradN wrote:Get inputattach utility installed, you may have to google for it and compile it manually (it's just one .c file). This is the program that tells linux to start using input from a serial device.
Thanks. It doesn't seem to be working for me though.

I downloaded, compiled and tested it by running

Code: Select all

# inputattach --fujitsu /dev/ttyS0
and got

Code: Select all

inputattach: can't set line discipline
When I do this

Code: Select all

# cat /dev/ttyS0
it does print gibberish when I use the touchscreen like it should. And

Code: Select all

# inputattach --dump /dev/ttyS0
prints nicely formatted gibberish.
Top
BradN
Advocate
Advocate
User avatar
Posts: 2391
Joined: Fri Apr 19, 2002 2:48 am
Location: Wisconsin (USA)

  • Quote

Post by BradN » Wed Sep 01, 2010 2:13 am

Ok, then you need to go in your kernel config and make sure the serial line discipline is enabled, and if there's special serial mouse drivers or things like that (maybe even fujitsu serial touchscreen), make sure that's on too.

Once you get inputattach to work, the touchscreen should do something at least, but the calibration will probably be completely wrong.
Top
Cayennes
n00b
n00b
Posts: 33
Joined: Fri Oct 01, 2004 7:56 pm

  • Quote

Post by Cayennes » Wed Sep 01, 2010 2:57 am

BradN wrote:Ok, then you need to go in your kernel config and make sure the serial line discipline is enabled, and if there's special serial mouse drivers or things like that (maybe even fujitsu serial touchscreen), make sure that's on too.
Yay, that was the problem. I had the fujitsu serial touchscreen enabled but not the serial line discipline.
BradN wrote:Once you get inputattach to work, the touchscreen should do something at least, but the calibration will probably be completely wrong.
Actually I was lucky and it worked perfectly.

Thanks so much for your help.
Top
BradN
Advocate
Advocate
User avatar
Posts: 2391
Joined: Fri Apr 19, 2002 2:48 am
Location: Wisconsin (USA)

  • Quote

Post by BradN » Wed Sep 01, 2010 3:51 am

No problem, I knew I had to chime in on this one because it's a bitch making it work if you don't know how :)
Top
wim-x
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 110
Joined: Fri Nov 26, 2004 3:08 pm
Location: Netherlands

  • Quote

Post by wim-x » Sat Dec 18, 2010 8:54 pm

inputattach is provided by games-util/joystick
Top
Cayennes
n00b
n00b
Posts: 33
Joined: Fri Oct 01, 2004 7:56 pm

  • Quote

Post by Cayennes » Mon Dec 26, 2011 2:10 am

Update, just in case anyone else is facing a similar issue:

The easy way to calibrate: emerge and use xinput_calibrator

The inputattach that is included with the joystick packing doesn't include the --fujitsu option but the one I found on the internet does.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic