[Bug 432350] New: SaX2 connects to wrong port on Thinkpad X60 MultiTouch tablet
https://bugzilla.novell.com/show_bug.cgi?id=432350 Summary: SaX2 connects to wrong port on Thinkpad X60 MultiTouch tablet Product: openSUSE 11.1 Version: Beta 1 Platform: PC OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: SaX2 AssignedTo: sndirsch@novell.com ReportedBy: carlos.lange@ualberta.ca QAContact: sax2-maintainer-bugs@forge.provo.novell.com CC: dkukawka@novell.com Found By: --- SaX2 assumes the Wacom tablet/touchscreen from X60 Multitouch is associated with ttyS0 and writes xorg.conf accordingly. This causes the boot process to freeze while initializing X showing just the x pointer frozen in the middle of the screen. But the output of setserial -g /dev/ttyS* below (obtained by activating the tablet, but not the pen, eraser or touch) shows that the device is associated with ttyS4 in the case of openSUSE 11.1b1: /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 /dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3 /dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4 /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3 /dev/ttyS4, UART: undefined, Port: 0x0200, IRQ: 5 /dev/ttyS5, UART: unknown, Port: 0x0000, IRQ: 0 /dev/ttyS6, UART: unknown, Port: 0x0000, IRQ: 0 /dev/ttyS7, UART: unknown, Port: 0x0000, IRQ: 0 and the association has been always with this port at every instance. When xorg.conf is modified replacing ttyS0 by ttyS4 in all 4 sessions (wacom, pen, eraser, touch), then the tablet mode and touch screen mode work fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c1 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |carlos.lange@ualberta.ca Summary|SaX2 connects to wrong port on Thinkpad X60 |sax2: connects to wrong port on Thinkpad X60 |MultiTouch tablet |MultiTouch tablet --- Comment #1 from Stefan Dirsch <sndirsch@novell.com> 2008-10-04 13:22:10 MDT --- Hmm. Is this a regression since openSUSE <= 11.0? Please attach /var/log/SaX.log, /etc/X11/xorg.conf and /var/log/Xorg.0.log. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c2 --- Comment #2 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-06 00:05:21 MDT --- In 10.3, the association alternated between ttyS0 and ttyS1, as explained in bug #323541. I have not tested with 11.0, but I can still do, if it helps. The association with ttyS4 is what I have consistently found in 11.1. The attachments follow. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c3 --- Comment #3 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-06 00:06:25 MDT --- Created an attachment (id=243545) --> (https://bugzilla.novell.com/attachment.cgi?id=243545) SaX.log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c4 --- Comment #4 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-06 00:09:00 MDT --- Created an attachment (id=243548) --> (https://bugzilla.novell.com/attachment.cgi?id=243548) xorg.conf (modified to use ttyS4) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c5 --- Comment #5 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-06 00:11:39 MDT --- Created an attachment (id=243550) --> (https://bugzilla.novell.com/attachment.cgi?id=243550) Xorg.0.log (when using ttyS0) This used the original xorg.conf from SaX2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c6 Carlos Lange <carlos.lange@ualberta.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|carlos.lange@ualberta.ca | --- Comment #6 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-06 00:14:20 MDT --- Created an attachment (id=243551) --> (https://bugzilla.novell.com/attachment.cgi?id=243551) Xorg.0.log (when using ttyS4) This is from the successful boot when using the modified xorg.conf with ttyS4. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c7 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |dkukawka@novell.com --- Comment #7 from Stefan Dirsch <sndirsch@novell.com> 2008-10-06 02:33:40 MDT --- So X is even segfaulting when the wrong device is used. Danny, I see ttyS0 hardcoded in api/data/cdb/{Pens,Tablets} for "Lenovo X61 TABLET PC*(SERIAL)". Is there some magic in SaX2, which should adjust it to the right serial device? I'm also wondering that the device is connected to ttyS4. Any explanation for this? You can't even select this device in the SaX2 GUI. :-( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|sax2: connects to wrong port on Thinkpad X60 |sax2: Uses wrong serial port on 'Lenovo X61 |MultiTouch tablet |TABLET PC' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c8 --- Comment #8 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-12 15:39:26 MDT --- See Pavel's comment 69 in bug #323541#c69 for why apparently ttyS4 is being used by the new kernel. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c9 --- Comment #9 from Stefan Dirsch <sndirsch@novell.com> 2008-10-13 14:16:39 MDT --- Dann, is there some magic in SaX2, which should adjust it to the right serial device? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c10 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sdelcroix@novell.com --- Comment #10 from Stefan Dirsch <sndirsch@novell.com> 2008-10-15 03:40:35 MDT --- *** Bug 435581 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=435581 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sdelcroix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c11 --- Comment #11 from Stephane Delcroix <sdelcroix@novell.com> 2008-10-15 03:44:26 MDT --- confirmed in beta2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c12 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|dkukawka@novell.com | Version|Beta 1 |Beta 2 --- Comment #12 from Stefan Dirsch <sndirsch@novell.com> 2008-10-15 03:54:16 MDT --- I'll try to make ttyS4 selectable in SaX2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c13 --- Comment #13 from Stefan Dirsch <sndirsch@novell.com> 2008-10-15 07:06:19 MDT --- Created an attachment (id=245672) --> (https://bugzilla.novell.com/attachment.cgi?id=245672) ttyS4.diff Patch doesn't help. Marcus, any ideas, what's wrong with it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |ms@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c14 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ms@novell.com | --- Comment #14 from Stefan Dirsch <sndirsch@novell.com> 2008-10-15 07:11:20 MDT --- I've been stupid. The following patch should help: Index: api/tablet/tabletconnection.cpp =================================================================== --- api/tablet/tabletconnection.cpp (revision 1738) +++ api/tablet/tabletconnection.cpp (working copy) @@ -100,6 +100,7 @@ mPortBox -> insertItem ( mText["Serial2"] ); mPortBox -> insertItem ( mText["Serial3"] ); mPortBox -> insertItem ( mText["Serial4"] ); + mPortBox -> insertItem ( mText["Serial5"] ); //===================================== // set default tablet mode to relative Index: api/touchscreen/touchselection.cpp =================================================================== --- api/touchscreen/touchselection.cpp (revision 1738) +++ api/touchscreen/touchselection.cpp (working copy) @@ -120,6 +120,7 @@ mPortBox -> insertItem ( mText["Serial2"] ); mPortBox -> insertItem ( mText["Serial3"] ); mPortBox -> insertItem ( mText["Serial4"] ); + mPortBox -> insertItem ( mText["Serial5"] ); //==================================== // update widget status... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c15 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #15 from Stefan Dirsch <sndirsch@novell.com> 2008-10-15 07:37:10 MDT --- fixed. You can select COM5/ttyS4 now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c16 --- Comment #16 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-15 09:59:02 MDT --- How can I test the patched version? I know the text "// set default tablet mode to relative" on your patch is just a comment, but I just wanted to point out that tablets should default to "absolute" mode, not "relative". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c17 --- Comment #17 from Stefan Dirsch <sndirsch@novell.com> 2008-10-15 10:43:37 MDT --- You can test it with one of the next Betas I assume. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sdelcroix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c18 --- Comment #18 from Stephane Delcroix <sdelcroix@novell.com> 2008-10-16 00:19:44 MDT --- Is ttyS4 selected by default ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c19 --- Comment #19 from Stefan Dirsch <sndirsch@novell.com> 2008-10-16 02:50:02 MDT --- No. ttyS0 is still the default. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sdelcroix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c20 Stephane Delcroix <sdelcroix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #20 from Stephane Delcroix <sdelcroix@novell.com> 2008-10-16 05:06:39 MDT --- So, the "sax2: Uses wrong serial port on 'Lenovo X61 TABLET PC'" bug is not fixed imho, only the "missing ttyS4" from list one... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c21 --- Comment #21 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-16 07:33:14 MDT --- I think Stephane has a point. How would a user know which port to choose? This problem is more critical in this case, since Xorg hangs badly at the SaX2 test if you choose a wrong port, not allowing you to simply Ctrl+Alt+Bksp back and try another port. We should make ttyS4 default, when selecting Lenovo/Tablet X61 as the tablet, since ttyS4 is used for both X60 and X61. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c22 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX --- Comment #22 from Stefan Dirsch <sndirsch@novell.com> 2008-10-16 08:13:16 MDT --- (In reply to comment #20 from Stephane Delcroix)
So, the "sax2: Uses wrong serial port on 'Lenovo X61 TABLET PC'" bug is not fixed imho, only the "missing ttyS4" from list one...
Sure, but ... (In reply to comment #21 from Carlos Lange)
I think Stephane has a point. How would a user know which port to choose? This problem is more critical in this case, since Xorg hangs badly at the SaX2 test if you choose a wrong port, not allowing you to simply Ctrl+Alt+Bksp back and try another port.
We should make ttyS4 default, when selecting Lenovo/Tablet X61 as the tablet, since ttyS4 is used for both X60 and X61.
.. AFAIK there is *no* magic available in SaX2 to default to the right device. It was just luck that the default works for you up to now. There are no features planned for SaX2. Making ttyS4 as default would be wrong as well. If I understood Bug #323541 correctly, ttyS4 is consistenly used only on this machine. So the better resolution is WONTFIX. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User sdelcroix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c23 --- Comment #23 from Stephane Delcroix <sdelcroix@novell.com> 2008-10-16 11:28:53 MDT --- (In reply to comment #22 from Stefan Dirsch)
Making ttyS4 as default would be wrong as well. If I understood Bug #323541 correctly, ttyS4 is consistenly used only on this machine.
you have to _select_ lenovo x61tablet from the list, so, as ttyS4 is the default for that machine, what could go wrong ?
So the better resolution is WONTFIX.
no, it's "leave it open, fix sax" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User dkukawka@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c24 --- Comment #24 from Danny Kukawka <dkukawka@novell.com> 2008-10-17 04:02:38 MDT --- (In reply to comment #23 from Stephane Delcroix)
(In reply to comment #22 from Stefan Dirsch)
Making ttyS4 as default would be wrong as well. If I understood Bug #323541 correctly, ttyS4 is consistenly used only on this machine.
you have to _select_ lenovo x61tablet from the list, so, as ttyS4 is the default for that machine, what could go wrong ?
Since you can't be sure that it's always ttyS4 it would break other machines (e.g. if they have no or a disabled IR port ...). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c27 --- Comment #27 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-21 08:58:00 MDT --- Well, if we decide to leave it for the user to experiment and try to find the correct port, then I would say that we should consider this bug as FIXED, because Stefan created the possibility to associate ttyS4 in SaX2. At the same time, we should reopen Bug 435581 and treat it as a SaX2 bug, as long as it breaks the test of any port other than the correct one. How is the new user supposed to find the correct port, if any test of a wrong port makes Xorg hang without possibility of restart (Ctrl+Alt+Bksp does not work)? If we save xorg.conf without testing, then the boot process hangs. An acceptable behaviour would be simply the tablet mode not working, while the correct port is not found. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User dkukawka@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c28 --- Comment #28 from Danny Kukawka <dkukawka@novell.com> 2008-10-21 09:16:30 MDT --- IMO it's a bug in X. In the past it wasn't a problem to use a wrong port. X should simply ignore the "device" if the port is wrong. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432350 User carlos.lange@ualberta.ca added comment https://bugzilla.novell.com/show_bug.cgi?id=432350#c29 --- Comment #29 from Carlos Lange <carlos.lange@ualberta.ca> 2008-10-21 09:29:29 MDT --- Makes sense. This is issue 1) in Bug 435581. I think we should reopen that bug and assign it to Xorg. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com