no calibration tool

Bug #227183 reported by Agostini Sylvain
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
xserver-xorg-input-penmount (Ubuntu)
Incomplete
Low
Peter Antoniac

Bug Description

Binary package hint: xserver-xorg-input-penmount

The driver for the penmount touchscreen works perfectly with the PM6000 usb chips, mounted on a kohjinsha sh8 (umpc). However no calibration tool is available, making it unusable...
The penmount website provides a driver and calibration tool, not opensource, but actually the calibration tool is broken under hardy, it was working under gutsy.
Is there any other way to calibrate the penmount touchscreen under GNULinux?
Thanks for any kind of info.

Tags: hardy
Revision history for this message
Peter Antoniac (pan1nx) wrote :

Yes, I can confirm this bug. The calibration tool doesn't work because of Xorg is now 7.3 in hardy and it used to work in 7.2. The penmount_drv.so that comes in the penmount.com [http://penmount.com/down_2_1.php] doesn't work also because of ABI incompatibility with this drive. The calibration is therefore impossible since there is no good driver for penmount.

Changed in xserver-xorg-input-penmount:
status: New → Confirmed
Revision history for this message
Peter Antoniac (pan1nx) wrote :

OK,
Looked into the source of the penmount callibration tool. It is using an old method from Xinput that was changed. I will make a new package and test it with the new Xinput if it can get calibrated. So far, I managed to build a new penmount_drv.so with the sources from the penmount.com. With couple of changes in the header files and some renaming I managed to get the penmount working. The calibration was done in the xorg.conf (so pretty much manual calibration with MinX and MinY). More to come later...

Revision history for this message
Peter Antoniac (pan1nx) wrote :

I will try to make a patch and publish it here...

Changed in xserver-xorg-input-penmount:
assignee: nobody → theseinfeld
status: Confirmed → In Progress
Revision history for this message
Agostini Sylvain (agostini-sylvain-deactivatedaccount) wrote :

thank you very much,

I am not programmer so unfortunately I cannot help, sorry. I will try to play with the data in the xorg.conf to have a minimu calibration.

Revision history for this message
Peter Antoniac (pan1nx) wrote :

If you do that, make sure that you don't have the /etc/penmount.dat file there (move it or remove it from there). If you have the file, the penmount drivers from the penmount.com will read it...

I have actually a debian package that works now. If you want it, let me know. I have one compiled.

But, if you want to make one for yourself, I suggest this:
 1. apt-get source xserver-xorg-input-penmount
 1. Move the xf86PM.c and .h from penmount.com download (version 2.0.1) into that src directory.
 1. Apply these pacthes there:
 cd xserv.../src
 add these patches:
--- src/xf86PM.c.orig 2007-08-08 13:27:08.000000000 +0300
+++ src/xf86PM.c 2008-05-19 11:28:04.000000000 +0300
@@ -58,13 +58,13 @@
 #undef BUS_ISA
 #endif

+#include <xisb.h>
 #include <misc.h>
 #include <xf86.h>
 #define NEED_XF86_TYPES
 #include <xf86_ansic.h>
 #include <xf86_OSproc.h>
 #include <xf86Xinput.h>
-#include <xisb.h>
 #include <exevents.h>

 /*****************************************************************************
@@ -1335,7 +1335,7 @@
 static int
 ControlProc (InputInfoPtr pInfo, xDeviceCtl * control)
 {
- xDeviceTSCalibrationCtl *c = (xDeviceTSCalibrationCtl *) control;
+ xDeviceAbsCalibCtl *c = (xDeviceAbsCalibCtl *) control;
     PenMountPrivatePtr priv = (PenMountPrivatePtr) (pInfo->private);

     priv->min_x = c->min_x;

and
--- src/xf86PM.h.orig 2007-08-08 13:27:08.000000000 +0300
+++ src/xf86PM.h 2008-05-19 11:08:32.000000000 +0300
@@ -31,6 +31,7 @@

 #ifndef _PENMOUNT_H_
 #define _PENMOUNT_H_
+#define DONT_DEFINE_WRAPPERS

 /**********************************************
           File Path

Revision history for this message
Philippe Dellaert (philippe-dellaert) wrote :

Is is possible to mail me the patch (philippe at dellaert.org) or even package? I'm trying to get a 9000 working with ubuntu, but everything fails (both in gutsy as in hardy) . Also, what exactly do i have to add to my xorg.conf, cause i can use the ubuntu 7.10 drivers from their site and run the install.sh which adds a bunch...

Hope you can help

Thanks a lot!
Philippe Dellaert

Revision history for this message
Peter Antoniac (pan1nx) wrote :

I will make you a debian package...
I will place it on my ppa...

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Ok. I did them in my ppa:
https://edge.launchpad.net/~theseinfeld/+archive
It works in hardy but not in gutsy. The gutsy has the old Xorg, so, you could use the penmount 2.0.1 for it.

You can download the deb file from here:
http://launchpadlibrarian.net/14636751/xserver-xorg-input-penmount_1.2.0-1ubuntu1.1_i386.deb

The calibration in hardy should be done from the xorg.conf, by adding this section
Section "InputDevice"
 Identifier "PenMount"
 Driver "penmount"
 Option "Protocol" "PM6000USB"
 Option "Device" "/dev/input/touchscreen"
 Option "PMode" "1" # Was 1 initially
 Option "ReportingMode" "raw" # disable scaling to screen resolution
 Option "MinX" "10"
 Option "MaxX" "1000"
 Option "MinY" "10"
 Option "MaxY" "1000"
 Option "ADBit" "10"
 Option "Beep" "0" # 0 = no beep, 1 = beep enabled
 Option "PenDownMode" "0" # 0=stream mode, 1=point mode
 Option "SwapXY" "1"
 Option "DebugLevel" "9"
EndSection

AND, in your ServerLayout section, remember to add:
InputDevice "Penmount" "SendCoreEvents"

Cheers,
Peter

Revision history for this message
Philippe Dellaert (philippe-dellaert) wrote :

Thanks a lot!

This makes the touchscreen work, which is good.
Two minor problems thou:
1) My Y-axis is swapped (i turned SwapXY to 0 because X-axis was swapped, this is fixed, but when touching the bottom the pointer is put on the top of the screen)
2) My screen resolution is 1024x768 but the pointer is not able to touch the edges... (probably the MinX, MinY, MaxX, MaxY settings, but somehow, i can't find how :s)

Sorry if i'm asking stupid questions, but your help is really appreciated!

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

same problem here with the Y-axis swap. adding the following code on line 1165 (right after where the x and y values are read form the serial pins) fixed that for me:

y = priv->screen_height - y;

problem still is that priv_screen_height doesn't seem to be set to the right number. the transformations done on the (x, y) coordinates always give funny results, in particular the wrong scaling results. the pointer is not drawn underneath my finger, but has a displacement, relative to the position of my finger (so there's a multiplication = scaling going wrong).

trying to figure out where this happens...

Revision history for this message
Peter Antoniac (pan1nx) wrote :

For that, you might need to touch the MinX, MinY, MaxX, MaxY...

Let me know when you have a fix so we can close this :)

Revision history for this message
fmartagong (fmartagong) wrote :

Hello:

The first, thanks to Peter Antoniac for your work.

I am Spanish and my English is very poor.

I also have one Kohjinsha. I have Hardy Heron.

I tried to install deb but I could not, sends me the following error message:

"dpkg: about .../xserver-xorg-input-penmount_1.2.0-ubuntu1.1_i386.deb containing xserver-xorg-input-penmount:
xserver-xorg-core conflicts with xserver-xorg-input
xserver-xorg-input-penmount provides xserver-xorg-input and will be installed

dpkg: error procesing /tmp/xserver-xorg-input-penmount_1.2.0-1ubuntu1.1_i386.deb (--install)
 packages in conflict - will not install xserver-xorg-input-penmount"

This messages appears in Spanish, in English may very slightly.

Can you help?

I have read the messages of thread but I do not really understand some messages.

Nor do I understand how it calibrates the Penmount after installing deb.

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

hehe, I was stupid trying to fix the swapped Y-coordinate with that line of code. digging deeper into the existing code, I found out I could play around with the settings changing the PMode. for my screen, simply setting it to 2 made the X-Y interpretation correct.

I'm still puzzled by the calibration though. I can't get my mouse pointer until the edges of the screen, and there's still this displacement. trying to figure it out tonight.

for fmartagong: I was getting the same problem on my ubuntu system. I just unpacked the .deb, and manually put the files into place. this worked out just fine. for the calibration: I actually don't know if the calibration tools form penmount work now, but it should be (according to the code) possibel to calibrate using the ``scaled'' reporting mode and the correct MinX, MaxX, MinY and MaxY settings. good luck!

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

hmm, the displacement cannot be solved by a simple linear transformation. it's very weird actually. I added some debugging lines to the driver to print out the X and Y values it reads from the serial port (testing on a PM9000 here) and when I'm following the far left border of the screen with the pen, my cursor makes a circular movement towards the inside of the screen. it's hard to explain. the same happens at the far right edge of the screen. the top and bottom line are just fine, so there seems to be something wrong with reading the X values from the port.

the code for this is:

x = ( priv->packet[1] & 0x00000FFF );
x <<= 7;
x += ( priv->packet[2] & 0x0FFFFFFF );

y = ( priv->packet[3] & 0x00000FFF );
y <<= 7;
y += ( priv->packet[4] & 0x0FFFFFFF );

very similar for X and Y, but X isn't giving me satisfying results.
I'm also wondering why it maps with 0x00000FFF, only to do a 7-bit left-shift straight afterwards. why not just map with 0x0000000F ?

I'll try to dig deeper into this.

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

ok, sorry, my bad again (it's getting late :-)). I messed up hexadecimal and binary notation here.

anyway, I'm stuck. from the code above, you can tell that packet[1] is responsible for the greatest part of the X coordinate value. when I put my pen in the top left corner, this packet contains a decimal 1. in the bottom left corner, a decimal 1 again. but somewhere in the middle, it gives me back a 2. in the top right corner, it's a 6, whereas in the bottom right corner it's a 5.

how can one ever convert such results into decent pointer coordinates?

I'm guessing something is missing, or going wrong, at the device initialisation. any hints from anyone?

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Hi,

I know that the package was not the best. I did it in hurry just to prove that it can be done. I am not the package maintainer, and the sources of that package are from my old gutsy...and copied to hardy...

Now, for debugging, I noticed that the mouse_drv.so creates problems. It might be nice for you when debugging that you just move that driver away (xorg 7.3 will load it automatically, so the easy way is to just mv /usr/lib/xorg/modules/input/mouse_drv.so /root/)

The rest is just to play with the options, study that source. Only thing I did was to update the source to use the new Xinput from the 7.3 (that is why it was not working in hardy but in gutsy). The calibration tool, well, that is another thing to be done, but when I get the time for it...

Let me know about the issues or possible resolutions...

Cheers,
Peter

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

removing mouse_drv.so has no effect whatsoever here. anyway, the problem is not with stability or anything else, only with the fact that the mousepointer just doesn't stick to the position where your finger is. it's not only a point of calibration, because the relative position between fingerposition and mouseposition is depending on where you are on the screen. the movement is smooth (no seemingly random jumping around), but when I make a straight movement with my finger, the mouse pointer follows a curved track. this is very hard to get straight with mathematical transformations in the code.

Peter, would it be possibel to apply your patch (which made everything work here in the first place) to the latest version of the pentax drivers (the ones from the hardy package)? maybe that can help us forward?

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Woo... I see that the problem is growing quite much. What I thought that will just be a hack, it is growing into a full driver issue. It will be nice to know what hardware is behind also, like PM6000/PM9000, USB/TTYS0 etc.
I could apply the patch to anything and also make new packages. But the problem is the upstream. I think we should contact soon the PM driver developers. They seem to be working on a new driver for the new Xinput that is in the Xorg 7.3. Maybe they should check out something from this thread.

I will try to involve them as well...

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

We are testing on a PM9000, connected to TTYS3 on our system.

I agree the problem lies upstream here. I tried to get them involved as well through the official support line of the company where we bought our screens (they claim they support Linux after all), but no luck until now.

Could you please send me a patched version of the latest drivers? I'm looking forward to test them here, to see if it makes any difference.

Which thread are you referring to, by the way?

Revision history for this message
Peter Antoniac (pan1nx) wrote :

The patched version is already online (check my previous comment from 2008-05-21 - comments/8). Myself, I use the USB PM9000.

What I mean about contacting, was the guys from behing the xorg-input packaging. The original Ubuntu drivers. Myself, I used some of their framework for the building the packages and then some sources from the penmount. The thing is that the PenMount guys are using the Xorg 7.2 Input framework which was quite much changed in the new Ubuntu Hardy Xorg (that is now 7.3). This is the cause of the penmount drivers not working in Hardy. Still, you can try to bug the PenMount for their driver as the 7.3 was out since last year, so what kind of support is this that they didn't come out with a driver in 6 months? You can point out my patches (from comments/8) because with this changes it gets more into the next Xinput. Of course there are other changes that I didn't go deep, and they should do other changes.

Let me know...

Cheers,
Peter

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

hmm, I don't see any difference between the files you have in your PPA for gutsy and for hardy. diff also doesn't see any difference. :-) I'll test them nevertheless...

the support from PenMount indeed is worthless. just look at their website. if there would have been an Internet in the sixties, their web page would be from then. their Xorg 7.2 driver also doesn't work well here. it conflicts with the intel videa driver, so vesa in needed.

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Hmm, the gutsy compilation from my PPA is just a copy for the hardy and intreprid. There are no differences between the patches. It shouldn't work in Gutsy as the driver supported by the PenMount should work in Gutsy. If you have problems with that in Gutsy, uh, well, I have no idea how to help...

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

sometimes contacting the vendor *does* help, apparently. :-)

http://penmount.com/Download/Driver/PenMount/PenMount%20Ubuntu%208.04%20Driver%20beta2%2020080526.zip

this drivers works perfectly for me (PM9000 board with internal RS232 connection). works together with intel video driver, at a 1024x768 resolution, without irqpoll, seemingly stable and moreover... the calibration tool works!

huge thanks to penmount, aqeri and anybody else who has taken care of this. no only to wait for someone to package it into a ubuntu .deb.

Revision history for this message
Peter Antoniac (pan1nx) wrote :

I will package it into a .deb soon, but without the calibration for now... Just the xorg-xserver-input-penmount.
If I had time, I could make it full blown package, but I need to check the penmount copyright agreements for their source/binaries...

Revision history for this message
Georg Klimm (klimm) wrote :

Hello,

I'm using a http://de.kontron.com/products/boards+and+mezzanines/embedded+sbc/mobile+flatpanel+sbc/epanelpm.html with a penmount touchpad PM6000USB.
After reading this thread, I've upgraded from debian etch to lenny to compile the patched driver an now the latest version from http://gitweb.freedesktop.org/?p=xorg/driver/xf86-input-penmount.git;a=commit;h=8a9ff94e3db692736f86d52e569f65f6f363b0e0

The Problem ist that the "X.Org X Server 1.4.0.90" don't evaluate any parameters in the concerning InputDevice Section :-(
This is detectable in the circumstance that the "DebugLevel"-Option has no effect.

On this system is NO mouse.

When I take /dev/input/mice as input I have a x/y-swapped result. In case of /dev/event2 it is only an arbitrary movement of the mousecursor.
In fact seems a main problem that the xserver generates a mouse when no mouse is defined in the xorg.conf.

Any idea?

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Georg Klimm, I can see that after a long process you came to an old conclusion, or well known fact: in the new Xorg server, the server installs the mouse by default. Then, the mouse uses the xev infrastructure which causes the swapping. It is still blurry to me how it manages to get the penmount data and translate it. Nevertheless, the idea is that it gets some input from the penmount device and translates it into the mouse (relative) coordinates. As a result, clicking twice on the screen on the same spot will bring you always on a different place :)

What you can do is to remove the mouse_drv by moving the: /usr/lib/xorg/modules/input/mouse_drv.so to some different file name. This thread is about Ubuntu, but your Debian experience might shade some light on the solution.

Let us know...

Revision history for this message
Georg Klimm (klimm) wrote : xserver-xorg-input-penmount-1.3.0

I've discovered a new Serverflag: Option "AllowEmptyInput" "True"
With this option you must not make the dirty trick with the mouse_drv.so

I've not solved the problem to get the data into the penmountdriver, because without the mousedriver there are obviously no data on the /dev/input/mive or /dev/input/mouse

Now I dig deep into the driver and try to evaluate the raw data from the usb-port

Revision history for this message
Peter Antoniac (pan1nx) wrote :

> I've not solved the problem to get the data into the penmountdriver, because without the mousedriver there are obviously no data on the /dev/input/mive or /dev/input/mouse

Hmm, but on my system the HAL is making the event4 into /dev/input/touchscreen. Then, in xorg.conf I put the input file to be that one and it works with my patches.

Regarding the mouse_drv, when I was testing it on the hardy alpha, the AllowEmptyInput didn't work. I find it safer to move that file than any option :) for debugging...

Did you try the packages from penmount?

Revision history for this message
Georg Klimm (klimm) wrote :

In Debian etch they make the right movement on the screen but in 10% of the screen. With the PMode-variable I can move this frame from corner to corner but no adjustment gives satusfiring results.
The newer drivers from penmount don't run in cuase auf the glibc 2.4
So I updating to lenny where the ABI-Problem in Xorg comes up. I spend hours of my life for this tiny $%& touchscreen :-(
Now I hve decided to make a break for a couple of days and decide, if I make a new driver from your hints, the sources from xorg and the sources of penmount. (Melting all the nice code in a developers-pot :-)
Anyway, thanks for your helpfull ideas!

And please forgive me my terrible english ...

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

Some good news from my side here: we have successfully deployed six PM9000 (RS232) based touchscreens in a production environment, with the latest (beta) Ubuntu 8.04 driver and calibration tool provided by Penmount themselves.

Working just fine, both the driver as the calibration tool inside a fully up to date Ubuntu Hardy installation. :-)

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Oh, sorry to hear that. It is because of the new changes, and I trust that they are good changes for future.

I can understand your frustrations thou (Georg Klimm), hang on and let us know...

As for PM9000 RS232 industrial deployment, I guess there are more problems with the USB ones like PM6000... But any news is good news now :)

Revision history for this message
Georg Klimm (klimm) wrote :

I've some experiences with the serial penmount: they are much more easier to handle!
Unfortunately kontron doesn't distribute the ePanel with the serial Penmount and the customer will have categorical these kontron-devices ...

I promise that I don't give up :-)

Revision history for this message
Georg Klimm (klimm) wrote : calibration tool and actual driver

Sometimes it seems to be better to wait a few days:
Maybe the attached new driver also works for you
A calibration tool is in the zip too

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Are there any updates on this? Does it work? Can we close this?

Revision history for this message
fmartagong (fmartagong) wrote : Re: [Bug 227183] Re: no calibration tool

Hello:

My english is very poor. I am sorry.

The Penmount company have made one driver with calibration tool. It is not
software free, but work fine.
You can download the drive
here<http://www.penmount.com/Download/Driver/PenMount/PenMount%20Ubuntu8.04%20Driver%20V2.2.tar.gz>

Thanks for your work. Best regards
:)

2008/12/1 Peter Antoniac <email address hidden>

> Are there any updates on this? Does it work? Can we close this?
>
> --
> no calibration tool
> https://bugs.launchpad.net/bugs/227183
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "xserver-xorg-input-penmount" source package in Ubuntu: In
> Progress
>
> Bug description:
> Binary package hint: xserver-xorg-input-penmount
>
> The driver for the penmount touchscreen works perfectly with the PM6000 usb
> chips, mounted on a kohjinsha sh8 (umpc). However no calibration tool is
> available, making it unusable...
> The penmount website provides a driver and calibration tool, not
> opensource, but actually the calibration tool is broken under hardy, it was
> working under gutsy.
> Is there any other way to calibrate the penmount touchscreen under
> GNULinux?
> Thanks for any kind of info.
>

--
===
Francisco Martagón Gordillo

Cada día te brinda una nueva oportunidad.

La resignación es un suicidio cotidiano (Álex Rovira)

Hay que ser duros y resistir, hay que aguantar y tirar para adelante.

Revision history for this message
Bart Van Loon (bart-ingen) wrote :

as far as I am concerned, this bug may be closed.

we have 8 perfectly working penmount touchscreens in production with Ubuntu Hardy running now...

Revision history for this message
Peter Antoniac (pan1nx) wrote :

We close it for now. It seems that there are many fixes in the intrepid and jaunty. Feel free to reopen if it still causes problems.

Changed in xserver-xorg-input-penmount:
status: In Progress → Fix Released
Revision history for this message
Ilya Brik (ibrik) wrote :

It seems you'll need to re-open the bug for jaunty. There is now official PenMount's driver for this distro, the older driver doesn't work on jaunty and when I'm trying to install the xorg package I get the following:

The following packages are BROKEN:
  xserver-xorg-core
The following NEW packages will be installed:
  xserver-xorg-input-penmount
0 packages upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 14.2kB of archives. After unpacking 90.1kB will be used.
The following packages have unmet dependencies:
  xserver-xorg-core: Conflicts: xserver-xorg-input-2.1 which is a virtual package.
Unable to resolve dependencies! Giving up...
The following packages are BROKEN:
  xserver-xorg-core
The following NEW packages will be installed:
  xserver-xorg-input-penmount
0 packages upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 14.2kB of archives. After unpacking 90.1kB will be used.
aptitude failed to find a solution to these dependencies. You can solve them yourself by hand or type 'n' to quit.
The following packages have unmet dependencies:
  xserver-xorg-core: Conflicts: xserver-xorg-input-2.1 which is a virtual package.
Resolve these dependencies by hand? [N/+/-/_/:/?]

I'll be very appreciate for any suggestions.

Revision history for this message
Ilya Brik (ibrik) wrote :

excuse my typo in the previous comment. It should be:
There is NO official PenMount's driver for this distro

Revision history for this message
Jeffrey Patrick Lui (punong-bisyonaryo) wrote :

Just would like to pipe in that a Jaunty version of the driver has been released by Penmount a couple of months back. However, on my Kohjinsha SH6, installing the driver has the unfortunate side-effect of causing my sound rocker control to stop working (on other computers, other users reported that their multimedia keys stop working). My workaround for that was removing the AutoAddDevices option that the Penmount driver puts into xorg.conf

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Hmm, I guess based on comment 40 we should go back to work again over this issues. Where did you get the driver from? Was it packaged by Ubuntu?

Changed in xserver-xorg-input-penmount (Ubuntu):
importance: Undecided → Low
status: Fix Released → Incomplete
Bryce Harrington (bryce)
tags: added: hardy
Revision history for this message
Ehalls (ehall007) wrote :

Hi there, I have the same problem, my computer is a GIGABYTE 912x tablet pc

The driver in Synaptic didn't allow calibration. But the new 9.10 deb at PenMount site : http://www.penmount.com.tw/down_2_1.php does have calibration and works perfectly. However, if I rotate the screen when in tablet mode it doesn't work.

Best regards

Erik

Revision history for this message
Peter Antoniac (pan1nx) wrote :

That rotation issue is an old problem. Did you try to use the calibration results with the ubuntu driver after?

Revision history for this message
DMA02 (george-dma) wrote :

Hello,

I'm trying to get my penmount touchscren to work but it is just not getting detected.
I have one of those POS machines that are 100% VIA hardware. It comes with a DMC9000 touchscreen that is connected directly onto the mother board. It looks like a parallel port connector (definitely wider than how a serial port looks like). Every manual I have tells me that it is a RS-232 serial touch screen and uses COM5.

I have set up my serial ports with setserial for all 6 of my com ports. I have COM 5 at 19200 baud.
Kernel is compiled with penmount driver and it is loaded (as shown in lsmod) I have ttyS0 to ttyS5

When I run "pm-setup -s" it does not find my DMC9000 on ANY port.
I try cat /proc/bus/input/devices but I don't see my touchscreen there. Just emulated mouse and my keyboard.

I can't figure it out, I can't get this thing to get detected.

Anyone have any ideas on how to get it detected? or just something I have not tried.?

Revision history for this message
Peter Antoniac (pan1nx) wrote :

DMA02, regarding your post #44, please make it as a question. I can suggest then that you could run a cut /dev/ttySx and see what is the output when you touch the panel.

Revision history for this message
DMA02 (george-dma) wrote :

It's difficult to form it into a question, if i did it would be "why doesn't pm-setup detect my touchscreen?"

I tried doing a "cat /dev/ttyS0-5" to no avail.

My touch screen is supposed to be connected on COM 5 (which is an internal com port, not external)

Plainly, the touchscreen is not getting detected. I opened my machine up and it is using some custom controller board built with the design specs of penmount circuitry.

The windows drivers of penmout work on this machine, I've seen a "digitouch usb serial v1.3.3" file there which makes me wonder what they are doing. Are there any official (even if it is closed source) penmount drivers?

Revision history for this message
ASK (komandooru-arun) wrote :
Download full text (4.9 KiB)

Penmount 9000 RS232 + Ubuntu 7.04 + Penmount Ubuntu drivers 2.0 =Touch screen works fine, sometimes X crashes (not always) and restarts by itself inconsistently....

After installing penmount drivers, the X crashes/restarts automatically on ubuntu 7.04 Desktop Edition.

We see in syslog “repro gdm[4895]: gdm_slave_xioerror_handler: Fatal X error - Restarting :0 “

X Window System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2

CPU:Intel Celeron M 1.5 GHz RAM:1GB
Motherboard:Intel 915GM express chipset
VGA Chip & Driver:Mobile 915GM/GMS/910GML Express

Touch panet □ 5-Wire

Model AFL-15B-915-CM370/WT-R/1GB-R11

Xorg.conf
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
 FontPath "/usr/share/fonts/X11/misc"
 FontPath "/usr/share/fonts/X11/cyrillic"
 FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
 FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
 FontPath "/usr/share/fonts/X11/Type1"
 FontPath "/usr/share/fonts/X11/100dpi"
 FontPath "/usr/share/fonts/X11/75dpi"
 # path to defoma fonts
 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
 Load "i2c"
 Load "bitmap"
 Load "ddc"
 Load "dri"
 Load "extmod"
 Load "freetype"
 Load "glx"
 Load "int10"
 Load "vbe"
EndSection

Section "InputDevice"
 Identifier "Generic Keyboard"
 Driver "kbd"
 Option "CoreKeyboard"
 Option "XkbRules" "xorg"
 Option "XkbModel" "pc105"
 Option "XkbLayout" "us"
EndSection

Section "InputDevice"
 Identifier "Configured Mouse"
 Driver "mouse"
 Option "CorePointer"
 Option "Device" "/dev/input/mice"
 Option "Protocol" "ImPS/2"
 Option "ZAxisMapping" "4 5"
 Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
 Driver "wacom"
 Identifier "stylus"
 Option "Device" "/dev/input/wacom"
 Option "Type" "stylus"
 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
 Driver "wacom"
 Identifier "eraser"
 Option "Device" "/dev/input/wacom"
 Option "Type" "eraser"
 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
 Driver "wacom"
 Identifier "cursor"
 Option "Device" "/dev/input/wacom"
 Option "Type" "cursor"
 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
 Identifier "PenMount"
 Driver "penmount"
 Option "Protocol" "PM9000"
 Option "Device" "/dev/ttyS3"
 Option "PMode" "1"
 Option "MinX" "10"
 Option "MaxX" "1000"
 Option "MinY" "10"
 Option "MaxY" "1000"
 Option "ADBit" "10"
 Option "Baudrate" "19200"
 Option "Beep" "1" # 0 = no beep, 1 = beep enabled
 Option "PressVol" "100" # volume of beep (press event)
 Option "PressPit...

Read more...

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Hi,
Thanks for the interest in fixing Ubuntu. May I ask you ASK (from comment #47) how is this related to calibration? Can you find another bug report related to penmount that discusses the restart issue? If there is no other related bug, please file a new one.

Thanks,
Peter

Revision history for this message
ASK (komandooru-arun) wrote :

Hi Peter,

Appreciate your response. See as long as I do not install penmount drivers
the machine works fine without any issues. I tried tracing bug related to
even Xorg, but before that xwindows crashes/restarts with fault exception

MARepro gdm[6374]: gdm_slave_xioerror_handler: Fatal X error - Restarting :0

Thanks & Regards,
ASK
+91-(0)-99018 36677

On 23 February 2010 15:09, Peter Antoniac <email address hidden> wrote:

> Hi,
> Thanks for the interest in fixing Ubuntu. May I ask you ASK (from comment
> #47) how is this related to calibration? Can you find another bug report
> related to penmount that discusses the restart issue? If there is no other
> related bug, please file a new one.
>
> Thanks,
> Peter
>
> --
> no calibration tool
> https://bugs.launchpad.net/bugs/227183
> You received this bug notification because you are subscribed to
> xserver-xorg-input-penmount in ubuntu.
>
> Status in “xserver-xorg-input-penmount” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: xserver-xorg-input-penmount
>
> The driver for the penmount touchscreen works perfectly with the PM6000 usb
> chips, mounted on a kohjinsha sh8 (umpc). However no calibration tool is
> available, making it unusable...
> The penmount website provides a driver and calibration tool, not
> opensource, but actually the calibration tool is broken under hardy, it was
> working under gutsy.
> Is there any other way to calibrate the penmount touchscreen under
> GNULinux?
> Thanks for any kind of info.
>
>
>

Revision history for this message
MacRules (macrules) wrote :

Please provide a calibration tool for the Penmount deivce.
Without it, the Xorg driver is useless.
It is still not in 10.10 !

Revision history for this message
akaars (ilyabr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.