From owner-freebsd-mobile@FreeBSD.ORG Sat May 2 00:57:59 2015 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 828CE8F8 for ; Sat, 2 May 2015 00:57:59 +0000 (UTC) Received: from mail-qc0-x234.google.com (mail-qc0-x234.google.com [IPv6:2607:f8b0:400d:c01::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CDA714AE for ; Sat, 2 May 2015 00:57:59 +0000 (UTC) Received: by qcyk17 with SMTP id k17so50040420qcy.1 for ; Fri, 01 May 2015 17:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=IyPQMnuUJwZmoYY7klmpu8dLspn3V1rEgZzXQiEbj8A=; b=b6HOUzyzOZXyEpuzjEarp+3VQl1uHxDcPvSDrfzIw2Xw/MaWw2zmxKj3P1HZaI2x7T yn1+T6KtWM3vFe/7SUp9eJcn9uBQIPYK9E/w/ESCvYQU69KPmqwUM0eujAMZ2pDqddVl idOm78ZhBpt/rVdS3jVGJIziHK2UAv6k7uG5g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=IyPQMnuUJwZmoYY7klmpu8dLspn3V1rEgZzXQiEbj8A=; b=Omg2aX8undtkDF2lqlL5B59pFl7/V3XA9iKMUnVM/Fxl6zPfN67ImkvNJTQNTEZqZw LptJJcbsDlLae/56nsqDBfzzEGvqICug8gvugYHLBs8A7zMJm9j5Zzcp4QIwFzNjMq8F pJbMcWGXdhtexMW72sRsAewndha9Syga2VVORtLE4Od7yvDVzhpMSuUfexyv7cE8nvIc 1aQtvCb0yzGFL+iaHHdSetjLzCNGPq0izoI5SQxUQDY6/1ORFDfDW6sUsXiQWsSjqvnM Y66CR7JOb4U3lyxc40lxYTllhSyRk0GZhWnzXfXBKTfiGHXw08lwWJad/+iRkCodMsF8 vU5w== X-Gm-Message-State: ALoCoQn7jbQygbeEBNDVWSO1jzFgKf0TpY7Wpei3Mlhdb27Bmr+UML/cg1qvAmNhiW7dtCMiC1Bh X-Received: by 10.229.219.67 with SMTP id ht3mr15366069qcb.21.1430528278087; Fri, 01 May 2015 17:57:58 -0700 (PDT) Received: from gly.ftfl.ca.ftfl.ca (gly.ftfl.Ca. [129.173.34.203]) by mx.google.com with ESMTPSA id 5sm4554934qgg.28.2015.05.01.17.57.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 May 2015 17:57:56 -0700 (PDT) From: Joseph Mingrone To: Jan =?utf-8?Q?Kokem=C3=BCller?= Cc: freebsd-mobile@freebsd.org Subject: Re: suspend/resume moused restart required References: <86lhh9q6qe.fsf@gly.ftfl.ca> <5543DA3C.4070908@gmail.com> Date: Fri, 01 May 2015 21:57:54 -0300 In-Reply-To: <5543DA3C.4070908@gmail.com> ("Jan \=\?utf-8\?Q\?Kokem\=C3\=BCller\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Fri, 01 May 2015 21:55:40 +0200") Message-ID: <868ud7okx9.fsf@gly.ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 00:57:59 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jan Kokem=C3=BCller writes: >> After an upgrade from 10-STABLE (synced a few months ago) to 10-STABLE >> r281907 (Thu Apr 23) the psm mouse (touch pad / pointing stick on a >> Lenovo X220) no longer works after a resume. After a restart of moused >> the mouse works again. Is there a device hint or trick I'm missing? >> I've pasted the contents of /var/log/messages during the >> suspend/resume below. > Is the kernel and userland in sync? Maybe moused just needs a recompile b= ecause > of the changes to the psm driver. I think so. jrm@phe ~ % uname -K 1001512 jrm@phe ~ % uname -U 1001512 > Do you have "hw.psm.synaptics_support" and/or "hw.psm.trackpoint_support" > enabled in /boot/loader.conf? No. In case it's relevant, I've disable the trackpad in the BIOS and only use the pointing stick and the discrete buttons. > Also, could you try to set "debug.psm.loglevel=3D2" in /boot/loader.conf = and post > the dmesg log after a suspend/resume cycle? Similarly, running moused man= ually > in the foreground with "moused -dd -f -p /dev/psm0" might show some useful > info. Maybe the psm data gets out of sync somehow. May 1 21:50:30 phe devd: Executing '/etc/rc.suspend acpi 0x03' May 1 21:50:30 phe acpi: suspend at 20150501 21:50:30 May 1 21:50:33 phe kernel: uhub0: at usbus0, port 1, addr 1 (disconnected) May 1 21:50:33 phe kernel: ugen0.2: at usbus0 (disconnecte= d) May 1 21:50:33 phe kernel: uhub2: at uhub0, port 1, addr 2 (disconnected) May 1 21:50:33 phe kernel: ugen0.3: at usb= us0 (disconnected) May 1 21:50:47 phe kernel: uhub1: at usbus1, port 1, addr 1 (disconnected) May 1 21:50:47 phe kernel: ugen1.2: at usbus1 (disconnecte= d) May 1 21:50:47 phe kernel: uhub3: at uhub1, port 1, addr 2 (disconnected) May 1 21:50:47 phe kernel: pci0: failed to set ACPI power state D2 on \_SB= _.PCI0.EXP1: AE_BAD_PARAMETER May 1 21:50:47 phe kernel: pci0: failed to set ACPI power state D2 on \_SB= _.PCI0.EXP2: AE_BAD_PARAMETER May 1 21:50:47 phe kernel: pci0: failed to set ACPI power state D2 on \_SB= _.PCI0.EXP4: AE_BAD_PARAMETER May 1 21:50:47 phe kernel: pci0: failed to set ACPI power state D2 on \_SB= _.PCI0.EXP5: AE_BAD_PARAMETER May 1 21:50:47 phe kernel: acpi0: cleared fixed power button status May 1 21:50:47 phe kernel: info: [drm] Enabling RC6 states: RC6 on, RC6p o= n, RC6pp on May 1 21:50:47 phe kernel: error: [drm:pid1253:intel_lvds_enable] *ERROR* = timed out waiting for panel to power off May 1 21:50:47 phe kernel: em0: link state changed to DOWN May 1 21:50:47 phe kernel: psm0: system resume hook called. May 1 21:50:47 phe kernel: psm0: current command byte: 0047 (reinitialize). May 1 21:50:47 phe kernel: psm: DISABLE_DEV return code:00fa May 1 21:50:47 phe kernel: psm: ENABLE_DEV return code:00fa May 1 21:50:47 phe kernel: psm: DISABLE_DEV return code:00fa May 1 21:50:47 phe kernel: psm: SET_SAMPLING_RATE (100) 00fa May 1 21:50:47 phe kernel: psm: SET_RESOLUTION (2) 00fa May 1 21:50:47 phe kernel: psm: SET_SCALING11 return code:00fa May 1 21:50:47 phe kernel: psm: SET_STREAM_MODE return code:00fa May 1 21:50:47 phe kernel: psm: SEND_AUX_DEV_STATUS return code:00fa May 1 21:50:47 phe kernel: psm: status 00 02 64 May 1 21:50:47 phe kernel: psm: ENABLE_DEV return code:00fa May 1 21:50:47 phe kernel: psm: SEND_AUX_DEV_STATUS return code:00fa May 1 21:50:47 phe kernel: psm: status 20 02 64 May 1 21:50:47 phe kernel: psm0: system resume hook exiting. May 1 21:50:47 phe kernel: uhub0: on usbus1 May 1 21:50:47 phe kernel: uhub1: on usbus0 May 1 21:50:47 phe devd: Executing '/etc/rc.resume acpi 0x03' May 1 21:50:47 phe acpi: resumed at 20150501 21:50:47 May 1 21:50:48 phe kernel: em0: link state changed to UP May 1 21:50:48 phe devd: Executing '/etc/rc.d/dhclient quietstart em0' May 1 21:50:48 phe kernel: uhub1: 3 ports with 3 removable, self powered May 1 21:50:48 phe kernel: uhub0: 3 ports with 3 removable, self powered May 1 21:50:49 phe kernel: ugen0.2: at usbus0 May 1 21:50:49 phe kernel: uhub2: on usbus0 May 1 21:50:49 phe kernel: ugen1.2: at usbus1 May 1 21:50:49 phe kernel: uhub3: on usbus1 May 1 21:50:50 phe kernel: uhub2: 6 ports with 6 removable, self powered May 1 21:50:51 phe kernel: uhub3: 8 ports with 8 removable, self powered May 1 21:50:51 phe kernel: ugen0.3: at usb= us0 May 1 21:50:51 phe devd: Executing '/usr/local/etc/rc.d/webcamd start ugen= 0.3' May 1 21:50:51 phe devd: Executing '/usr/local/etc/rc.d/webcamd start ugen= 0.3' May 1 21:50:51 phe devd: Executing 'logger Unknown USB device: vendor 0x04= f2 product 0xb217 bus uhub2' May 1 21:50:51 phe root: Unknown USB device: vendor 0x04f2 product 0xb217 = bus uhub2 May 1 21:50:51 phe devd: Executing 'logger Unknown USB device: vendor 0x04= f2 product 0xb217 bus uhub2' May 1 21:50:51 phe root: Unknown USB device: vendor 0x04f2 product 0xb217 = bus uhub2 May 1 21:50:51 phe devd: Executing 'logger Unknown USB device: vendor 0x04= f2 product 0xb217 bus uhub2' May 1 21:50:51 phe root: Unknown USB device: vendor 0x04f2 product 0xb217 = bus uhub2 May 1 21:50:51 phe dhclient: New IP Address (em0): 192.168.2.2 May 1 21:50:51 phe dhclient: New Subnet Mask (em0): 255.255.255.0 May 1 21:50:51 phe dhclient: New Broadcast Address (em0): 192.168.2.255 May 1 21:50:51 phe dhclient: New Routers (em0): 192.168.2.1 Restart moused: May 1 21:51:08 phe kernel: psm: DISABLE_DEV return code:00fa May 1 21:51:08 phe kernel: psm: SEND_AUX_DEV_STATUS return code:00fa May 1 21:51:08 phe kernel: psm: status 00 02 64 May 1 21:51:09 phe kernel: psm: ENABLE_DEV return code:00fa May 1 21:51:09 phe kernel: psm: SEND_AUX_DEV_STATUS return code:00fa May 1 21:51:09 phe kernel: psm: status 20 02 64 May 1 21:51:09 phe kernel: psm: SET_SAMPLING_RATE (100) 00fa May 1 21:51:09 phe kernel: psm: SET_RESOLUTION (2) 00fa May 1 21:51:09 phe kernel: psm: SET_SCALING11 return code:00fa May 1 21:51:09 phe kernel: psm: SEND_AUX_DEV_STATUS return code:00fa May 1 21:51:09 phe kernel: psm: status 20 02 64 May 1 21:51:09 phe kernel: psmintr: Sync bytes now 00c0,00c0 May 1 21:51:57 phe kernel: error: [drm:pid1498:gen6_sanitize_pm] *ERROR* P= ower management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 1a000000, wa= s 12060000 May 1 21:53:54 phe kernel: error: [drm:pid1498:gen6_sanitize_pm] *ERROR* P= ower management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 1a0d0000, wa= s 1a000000 > Can you reproduce the problem when X is not running? The results are the same without X. > You might also try to revert the latest changes to psm.c and mouse.h and = see > which commit causes the problem: > https://svnweb.freebsd.org/base/stable/10/sys/dev/atkbdc/psm.c (r281708, > r281709, r281964). Both kernel and moused need to be recompiled. Thanks, Joseph --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVRCESAAoJEDakDIOw1u+eyIcP/0MDeW4iOOP8AMXDHGwVVamB 4Zj3rOniCyCCbHGeEm0j9dXgJla+r3opfnXXx9TIkmfjN6gnoyu/5xCH8lpm5bd4 T0Je3bT3bS0KRIg/WaykMyJ4DdT9l/yl5ZW2xxOuTpZ7XKOE8ESO6cS+I40ltRIJ Trm5OI1BzBTXd0sUO5leatTp2WBe1xLpI6k3wZNunQ+qA6hVqIz7h4dL7s3FAXa4 1igoIeT352ZvS7WYdoQamq16BH2m2GxGxQMp9LmZtykuzL6Y5Vyx0GG3kZ8ahkZi gKLudnDZtFLdes6iZXeBqq0pvyTYQEqFc6+p3uLm6dDruHpAtVzdv6IT3IPQLUag 2JGvFsKhaxVpEw1dyLGz0djXyvfkYn9XuuDj2BpXTpZJ1kenfQpJm+SSD8eJybzz jPy+LH+iBhIFnH0Cd7BS4Ay/qn7h+ykJPvGMbr9E4NC+FMsgxdsS8IzPU5vAKn5c /9UtYpVn1atQYYfxrRooN9XHiyCK7xuFbX35QF56C0nf2zGpb//cA7Sr7cIYqOBI 9zn8tRwElj/ARh4vrV1yXtfbybg3arrNwoQ31PGeORvMkVlLELGDeU/eOAvHS7pd H8iyrjfEKGy/0vhnh+FaTvHqwk0Nr1TuUkGqiie/ilKkriue2AYcxdCAedhaVyNB kGIgzKt4FK0TNTpf+l35 =Xuxh -----END PGP SIGNATURE----- --=-=-=--