From: "Dmitry Torokhov" Subject: Re: suspend kills serial wacom tablet Date: Fri, 13 Apr 2007 15:16:51 -0400 Message-ID: References: <200704131249.23640.bjorn.helgaas@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from nz-out-0506.google.com ([64.233.162.231]:30751 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932179AbXDMTQw (ORCPT ); Fri, 13 Apr 2007 15:16:52 -0400 Received: by nz-out-0506.google.com with SMTP id s1so819833nze for ; Fri, 13 Apr 2007 12:16:51 -0700 (PDT) In-Reply-To: <200704131249.23640.bjorn.helgaas@hp.com> Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Bjorn Helgaas Cc: marco , linux-acpi@vger.kernel.org On 4/13/07, Bjorn Helgaas wrote: > On Tuesday 20 February 2007 06:52, marco wrote: > > I have a thinkpad X41-tablet which uses the linuxwacom serial drivers. > > The tablet works perfectly when the laptop first boots, but does not work > > at all after resuming from sleep. I posted to the linuxwacom list but > > think that the problem might be more general in how acpi resumes the > > serial ports. > > > > As suggested here: > > http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_on_a_ThinkPad_X41_Tablet > > I have added a script to resume.d which calls the setserial command: > > /bin/setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig > > Using setserial to change port or IRQ usage is a good clue that the > kernel is doing something wrong. Usually it's "we KNOW that ttyS0 > lives at 0x3f8 and IRQ 4, so we'll ignore what ACPI is telling us." > But it sounds like this is a tangent and not related to your current > problem. > > Can you post the dmesg log from a boot where the tablet works > correctly? That will tell us exactly what kernel you're running > and how the kernel detected the serial port. There've been some > serial port resume changes in the not-too-distant past, and I > don't know whether they're in the Ubuntu kernel yet. It has nothing to do with changes to serial. Wacom driver for tablets connected to serial ports lives completely in userspace (X) and is completelyunaware that the box is coming out of sleep and that conncted device needs to be reinitialized. ... Not to say that wacom with in-kernel portion of the driver (USB) handles resuming well... But that should change when X starts supporintg hotplug. -- Dmitry