From owner-freebsd-mobile@FreeBSD.ORG Fri May 1 19:55:43 2015 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9FC25975 for ; Fri, 1 May 2015 19:55:43 +0000 (UTC) Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) (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 67F561536 for ; Fri, 1 May 2015 19:55:43 +0000 (UTC) Received: by iedfl3 with SMTP id fl3so108105438ied.1 for ; Fri, 01 May 2015 12:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=zOkktJwM3fGoY7GhryCxirGjtCk8pC6TelNezfivRL8=; b=IaIpaZ7psPnefUdYlw4m/qgpiASSJU+vdHG0QMB+5pxM4wkiEyEoC2EpAC0MGmpOKO mSmar9PpJNQhFkWFLlZWKwlQ7Shh9hUzVJeWhKQRpT7m76intDyEF4DpvBvB0VXGjIOV VG4EZnDW4DSNeTolnONpMKZ/3mKMU1JQiiK8NpMk3lbDWOVuBYCqjMnwqSUi6G2J0V2d 6q93NSmwQnCFBQBsj4y8/YPvLQe8UmrDtsF7MHVOqnPVmdgCi89eJrhOGp2zcYD0yKc0 LfZjDscdevdGrNkQEL0b9u/r17xDhMZfqqoJ4YEUdFhi/vbI8JvVG4cW7TluIJXnZHo+ j3pw== X-Received: by 10.107.164.209 with SMTP id d78mr14454559ioj.73.1430510142905; Fri, 01 May 2015 12:55:42 -0700 (PDT) Received: from ?IPv6:2001:470:1f15:b1f:b17b:bba7:e9d8:f2b9? ([2001:470:1f15:b1f:b17b:bba7:e9d8:f2b9]) by mx.google.com with ESMTPSA id r4sm3654000igh.9.2015.05.01.12.55.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 May 2015 12:55:42 -0700 (PDT) Message-ID: <5543DA3C.4070908@gmail.com> Date: Fri, 01 May 2015 21:55:40 +0200 From: =?UTF-8?B?SmFuIEtva2Vtw7xsbGVy?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-mobile@freebsd.org CC: jrm@ftfl.ca Subject: Re: suspend/resume moused restart required References: <86lhh9q6qe.fsf@gly.ftfl.ca> In-Reply-To: <86lhh9q6qe.fsf@gly.ftfl.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 01 May 2015 19:55:43 -0000 Hi, > 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 because of the changes to the psm driver. Do you have "hw.psm.synaptics_support" and/or "hw.psm.trackpoint_support" enabled in /boot/loader.conf? Also, could you try to set "debug.psm.loglevel=2" in /boot/loader.conf and post the dmesg log after a suspend/resume cycle? Similarly, running moused manually in the foreground with "moused -dd -f -p /dev/psm0" might show some useful info. Maybe the psm data gets out of sync somehow. Can you reproduce the problem when X is not running? 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. Cheers, Jan