From owner-freebsd-mobile@FreeBSD.ORG Thu Apr 30 22:12:25 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 0C9AE13B for ; Thu, 30 Apr 2015 22:12:25 +0000 (UTC) Received: from mail128-7.atl41.mandrillapp.com (mail128-7.atl41.mandrillapp.com [198.2.128.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E241C1479 for ; Thu, 30 Apr 2015 22:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=mandrill; d=wixshoutout.com; h=From:Sender:Subject:To:Message-Id:Date:MIME-Version:Content-Type; i=gabyborgesinfo@wixshoutout.com; bh=k6Srb2r9LpNdasnqNqM2DELFhDw=; b=fkfYlDVHAMjnOCXrKScAXS7dV22rM6qPuv4/NlzV0ehSYfLnZ8It7eX09e2JzuKmpw/+2iO9HDwi UIqRiZ3DsFQFTFCwKYWTdR/TznnW6CaXWTw5UcWeDwHHP/2JtbxU2BSGHOVJ1Xb7hYfiVnYJ6y7P b4bJvQG04Y9vsKF1EeI= DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=wixshoutout.com; b=TDku+31nZfpZVthNbpCRGeFtCibFipsGLSy3/oCrTS5G/sQPekx6Z/gwdg2/hF0xBsRaRQrq7Te6 Z/Q2y7j2KaljwF6mZ78K5v5m5aoZEZ3Te0brTDEQAGKLPZ/W8ex3n4gf0HCHrg+ZirikevI2YFmv 3IC6PJdBfzdFlsmo1ys=; Received: from pmta01.mandrill.prod.atl01.rsglab.com (127.0.0.1) by mail128-7.atl41.mandrillapp.com id h8akcg1mquks for ; Thu, 30 Apr 2015 21:57:13 +0000 (envelope-from ) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1430431033; h=From : Sender : Subject : To : Message-Id : Date : MIME-Version : Content-Type : From : Subject : Date : X-Mandrill-User : List-Unsubscribe; bh=dvDKJ49vLq1VnfyBeQZ/Z3Keue1kAejqCx2e6Xqvv/Q=; b=X6STGeFrXftrzccYC2V0pCVdGFb/09PwCi15lWws4dp14HCQtCF40eUz3KiiPBa08QSGs6 O+uz4CgMdH+r3RiLsG7cmIfFZMQdpIkOtVfyhf9Qkoir016+6/nPnUfAZzUjL8vrv7iJVVm9 q/Hp0EKyDPeNpG2zemKnkBIQdpITM= From: Gaby Borges Sender: Gaby Borges Subject: =?utf-8?Q?My=20Website's=20Live!=C2=A0Check=20It=20Out?= To: Received: from [216.139.213.140] by mandrillapp.com id 6cb4fe231eb24ab58c71fb109cd1002c; Thu, 30 Apr 2015 21:57:13 +0000 X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30119679.6cb4fe231eb24ab58c71fb109cd1002c X-Mandrill-User: md_30119679 Message-Id: <30119679.20150430215713.5542a5390c4be4.29458466@mail128-7.atl41.mandrillapp.com> Date: Thu, 30 Apr 2015 21:57:13 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 30 Apr 2015 22:12:25 -0000 Click on the link below to open the message in a browser: http://mandrillapp.com/track/click/30119679/shoutout.wix.com?p=3DeyJzIjoiX1= ZwQ3lfdk5XMnlYZDhPS25aeVhQRVdfSVhvIiwidiI6MSwicCI6IntcInVcIjozMDExOTY3OSxcI= nZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvc2hvdXRvdXQud2l4LmNvbVxcXC9zb1xcXC9h= S3FCOUo1OT9jaWQ9ZDFiYWExZjItMmQ5Ni00NGFiLWFlNDktZGZkZDNiNTU0NzY3XCIsXCJpZFw= iOlwiNmNiNGZlMjMxZWIyNGFiNThjNzFmYjEwOWNkMTAwMmNcIixcInVybF9pZHNcIjpbXCI1MW= NkZjgwNzNmMGEyZGVjMTNiNGJiMmVlOWYzOWIxYjdmZjBkMjJkXCJdfSJ9 You've received this email because you are a subscriber of this site http://mandrillapp.com/track/click/30119679/www.gabyborges.com?p=3DeyJzIjoi= VzlIZjJ0VlVoSE5mYkFpVG5yZjVRT1VJeExBIiwidiI6MSwicCI6IntcInVcIjozMDExOTY3OSx= cInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvd3d3LmdhYnlib3JnZXMuY29tXFxcL1wiLF= wiaWRcIjpcIjZjYjRmZTIzMWViMjRhYjU4YzcxZmIxMDljZDEwMDJjXCIsXCJ1cmxfaWRzXCI6W= 1wiMzE2MDJkMzc0ZGQ5MTgxN2E3ZDQxNjM0MmIwOTczYmQ2ZjU2MTBmOVwiXX0ifQ If you feel you received it by mistake or wish to unsubscribe, click here http://www.wix.com/my-account/contacts/unsubscribe?siteName=3Dgabyborges&me= taSiteId=3D1311cc47-0056-17c9-3296-f4f398b8e535&unsubscribeToken=3Dabcefd4d= 5885911e7f4ea863ecce180388e169a39e4c714f1a99cb3376c2b7062cdaa14697edc5986c7= 763541f35d3f70b21e59108dc6407adee5f0520c8aef8047b92fe2866cbcd19bc8b50c26e2c= 3a445fe65559299dd1ed48d4aea7087f2661e69a673544555e76bcd556f5513360043e42609= 64c1fba8df0cdd0697b66842809b7126c32fea9bb010739a29006317afcf4e7e14a576b7475= d3729666ac2ea2ddf8edf9677563e791f9f85c1bc04df60ad074c35da5c5546d92514e2de0d= 8c27996f08c484b3c10d8c4291e9032982a5ac69a716c53ace5ae4625e9b8739989bf9626a1= 89e1772688eca5256e6ffe4e0d16d132eb774372340417aaf24b74d7f8a8dbee829aaf603c0= 70cd72b1af6863ef44906ef83a712c5acdcd6377be84de24d6a56ef226d0052183d0de7251c= 814a16fa8ae39caa4291988b814b166b7039ebacacb90465e3895a1f7c88cc8b9691b886448= 780d31ee73586300b64df0518017ecfa7e04c86ddacd9b7e51700c72d9b56dffe266b250981= b97ad14ba0752553487feb65536ec4e6663fa6dbf6 From owner-freebsd-mobile@FreeBSD.ORG Fri May 1 04:10:00 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 C69A17BD for ; Fri, 1 May 2015 04:10:00 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 872D118CD for ; Fri, 1 May 2015 04:10:00 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Yo2Gd-00062q-OK for freebsd-mobile@freebsd.org; Fri, 01 May 2015 06:09:35 +0200 Received: from gly.ftfl.ca ([129.173.34.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 May 2015 06:09:35 +0200 Received: from jrm by gly.ftfl.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 May 2015 06:09:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-mobile@freebsd.org From: Joseph Mingrone Subject: suspend/resume moused restart required Date: Fri, 01 May 2015 01:09:13 -0300 Lines: 81 Message-ID: <86lhh9q6qe.fsf@gly.ftfl.ca> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gly.ftfl.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) Cancel-Lock: sha1:hoqBK1szL4+noHnCaGNtsfRXHgA= 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 04:10:00 -0000 --=-=-= Content-Type: text/plain 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. Joseph P.S. The screen brightness controls works after the upgrade. May 1 00:58:45 phe devd: Executing '/etc/rc.suspend acpi 0x03' May 1 00:58:45 phe acpi: suspend at 20150501 00:58:45 May 1 00:58:49 phe kernel: uhub0: at usbus0, port 1, addr 1 (disconnected) May 1 00:58:49 phe kernel: ugen0.2: at usbus0 (disconnected) May 1 00:58:49 phe kernel: uhub3: at uhub0, port 1, addr 2 (disconnected) May 1 00:58:49 phe kernel: ugen0.3: at usbus0 (disconnected) May 1 00:58:59 phe kernel: uhub1: at usbus1, port 1, addr 1 (disconnected) May 1 00:58:59 phe kernel: ugen1.2: at usbus1 (disconnected) May 1 00:58:59 phe kernel: uhub2: at uhub1, port 1, addr 2 (disconnected) May 1 00:58:59 phe kernel: pci0: failed to set ACPI power state D2 on \_SB_.PCI0.EXP1: AE_BAD_PARAMETER May 1 00:58:59 phe kernel: pci0: failed to set ACPI power state D2 on \_SB_.PCI0.EXP2: AE_BAD_PARAMETER May 1 00:58:59 phe kernel: pci0: failed to set ACPI power state D2 on \_SB_.PCI0.EXP4: AE_BAD_PARAMETER May 1 00:58:59 phe kernel: pci0: failed to set ACPI power state D2 on \_SB_.PCI0.EXP5: AE_BAD_PARAMETER May 1 00:58:59 phe kernel: acpi0: cleared fixed power button status May 1 00:58:59 phe kernel: info: [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp on May 1 00:58:59 phe kernel: error: [drm:pid10696:intel_lvds_enable] *ERROR* timed out waiting for panel to power off May 1 00:58:59 phe kernel: em0: link state changed to DOWN May 1 00:58:59 phe kernel: uhub0: on usbus1 May 1 00:58:59 phe kernel: uhub1: on usbus0 May 1 00:58:59 phe devd: Executing '/etc/rc.resume acpi 0x03' May 1 00:58:59 phe acpi: resumed at 20150501 00:58:59 May 1 00:59:00 phe kernel: em0: link state changed to UP May 1 00:59:00 phe devd: Executing '/etc/rc.d/dhclient quietstart em0' May 1 00:59:00 phe kernel: uhub0: 3 ports with 3 removable, self powered May 1 00:59:00 phe kernel: uhub1: 3 ports with 3 removable, self powered May 1 00:59:01 phe kernel: ugen1.2: at usbus1 May 1 00:59:01 phe kernel: uhub2: on usbus1 May 1 00:59:01 phe kernel: ugen0.2: at usbus0 May 1 00:59:01 phe kernel: uhub3: on usbus0 May 1 00:59:02 phe kernel: uhub3: 6 ports with 6 removable, self powered May 1 00:59:02 phe kernel: uhub2: 8 ports with 8 removable, self powered May 1 00:59:03 phe kernel: ugen0.3: at usbus0 May 1 00:59:03 phe devd: Executing '/usr/local/etc/rc.d/webcamd start ugen0.3' May 1 00:59:03 phe devd: Executing '/usr/local/etc/rc.d/webcamd start ugen0.3' May 1 00:59:03 phe devd: Executing 'logger Unknown USB device: vendor 0x04f2 product 0xb217 bus uhub3' May 1 00:59:03 phe root: Unknown USB device: vendor 0x04f2 product 0xb217 bus uhub3 May 1 00:59:03 phe devd: Executing 'logger Unknown USB device: vendor 0x04f2 product 0xb217 bus uhub3' May 1 00:59:03 phe root: Unknown USB device: vendor 0x04f2 product 0xb217 bus uhub3 May 1 00:59:03 phe devd: Executing 'logger Unknown USB device: vendor 0x04f2 product 0xb217 bus uhub3' May 1 00:59:03 phe root: Unknown USB device: vendor 0x04f2 product 0xb217 bus uhub3 May 1 00:59:08 phe dhclient: New IP Address (em0): 192.168.2.2 May 1 00:59:08 phe dhclient: New Subnet Mask (em0): 255.255.255.0 May 1 00:59:08 phe dhclient: New Broadcast Address (em0): 192.168.2.255 May 1 00:59:08 phe dhclient: New Routers (em0): 192.168.2.1 May 1 01:00:33 phe kernel: error: [drm:pid12360:gen6_sanitize_pm] *ERROR* Power management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 1a000000, was 12060000 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVQvxpAAoJEDakDIOw1u+esLwP/07Sk4gnkAdkTWx8/zHp5HmV 0EVkQLav+fQS80DdQeq4Nlh6CIbM7ULFz0elh570M16RAOQ5GTfQv3pwtN1mFxWl bhIE8qtMXzOl6MeAtBuyV3voBDInwexNb9ab5i8ZuEnQSVbqOr9tLxvoCFhTaxMk Us2RZvbAgRo5MfIcEidbo3By2CDul7r6H3Nzyc46Y3jLnrLhpu7ozRm3EA57FoWt SlfWQILCew9OqhaUwQZ9KBdaz6qr69GOKZUtXtEZ1ar4orOsvpGgggempI/1UROZ ghDAcx6dTc/CRDTFBZrpn/TJZWWKMvvev7s5yV1QOIu5AOsj06chwD/wiGMtJwxk 7uyFFkBiVtPzb5m0ogMhL3tnfEEUtnSmBlLp8MvrkGtmvNfMtH9BJD+zRcvVkWg7 1vrw22cuyX83iaTTdzjWHnkIWxvWxe85qY0uZhWh7YQNEy4JYQUlFxzzu2vh+B0V EkvfACtgo0py/4N8HXwQCu86YLLMVzYon9cpzpqj0ZZKW2erX+IGfi2osAeoCdKa Ogso922STBrRYlJZ8ByW1hKlveTw/d7S/l01lulFamkR5qbBzQdCpYSN75GTJo8z hYfcaN4/y250iZuFzstAZgHFdMQmmqP9IINbGW/S/HuTh/i+U+mkaEvMIwW7YwYS ODkiOKebjFJYjyGmTeRi =Iyyz -----END PGP SIGNATURE----- --=-=-=-- 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 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----- --=-=-=-- From owner-freebsd-mobile@FreeBSD.ORG Sat May 2 05:27:16 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 1DAC68B4 for ; Sat, 2 May 2015 05:27:16 +0000 (UTC) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 923FC1EB8 for ; Sat, 2 May 2015 05:27:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id t425R9G5062075; Sat, 2 May 2015 15:27:09 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 2 May 2015 15:27:09 +1000 (EST) From: Ian Smith To: Joseph Mingrone cc: freebsd-mobile@freebsd.org Subject: Re: suspend/resume moused restart required In-Reply-To: <86lhh9q6qe.fsf@gly.ftfl.ca> Message-ID: <20150502151846.E26659@sola.nimnet.asn.au> References: <86lhh9q6qe.fsf@gly.ftfl.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 05:27:16 -0000 On Fri, 1 May 2015 01:09:13 -0300, Joseph Mingrone wrote: > 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. > > Joseph I've no idea whether this may still be applicable - I use it on my T23 on 8.x, which had the same issue back then - but it probably won't hurt: /boot/loader.conf: # 29/9/10 thanks Jung-uk Kim .. so can remove moused restart from rc.resume hint.psm.0.flags="0x6000" If not, there's always 'add moused restart to rc.resume' :) I realise that's not attacking the 'stopped working on -STABLE' issue. cheers, Ian From owner-freebsd-mobile@FreeBSD.ORG Sat May 2 22:43:23 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 C4C99CA2 for ; Sat, 2 May 2015 22:43:23 +0000 (UTC) Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) (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 801DB103D for ; Sat, 2 May 2015 22:43:23 +0000 (UTC) Received: by qgdy78 with SMTP id y78so51514729qgd.0 for ; Sat, 02 May 2015 15:43:22 -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=MfbeI/xmXObX+sE5Tb7M1cA1PR0p+zCsWWLBxvlGot4=; b=Le0iWkYgYr0hvc7aGpNlwCiN0LrxRFtjJjj7jY2uTlahlRQzAmmFa01xF6iZABdFlF cbxWJN6h853cHR2zEpB/Z1y//gN7cjGN1I+glaYK6z7UImxVJ+IMotphrbAqtEa6dFdP d51byX7aZwAS/sIy5Mq1fBrbtnCUbQjPLQdg4= 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=MfbeI/xmXObX+sE5Tb7M1cA1PR0p+zCsWWLBxvlGot4=; b=cKaB8cwIIkNQ2Y3xEfNfYEEpqkKCGmAyDtrV3gGiezzeE+qp8T3PVH46riE9x0swL/ cwN/Ivi0xiPvsuvHUm1p9+vw1jJJIEEKtBXflb1Cy9iaQLMPVThFeeAzu4QDjqcmqAFz KyhvDaLFoj5irWZkuePV7lU6o7hvEtwjLWYBM98fNjanE3xTlZUMngzDE/I35Q3Eif57 Igbw7tba9uQYfSUVg7rrfKjQQCNtgLBJeFGnKcB/vSAX5PiGwDdbNkqwshCsTkyrx8BH SfGEjhPXoGO3jSofYJwa0ySUxLcySUnbgUH/dzh5xJw5WkgycaaUX+m8XlBQO0HJqB6S 8z2g== X-Gm-Message-State: ALoCoQm8MfnkzUW9MvZYiVQOXozLo/yny/iAmffdHLl+w/Z1CP4gTARcU+Vt84uwHLW+LzePWqi5 X-Received: by 10.140.131.21 with SMTP id 21mr20499189qhd.57.1430606602334; Sat, 02 May 2015 15:43:22 -0700 (PDT) Received: from gly.ftfl.ca.ftfl.ca (gly.ftfl.Ca. [129.173.34.203]) by mx.google.com with ESMTPSA id i91sm6518352qgd.46.2015.05.02.15.43.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 May 2015 15:43:20 -0700 (PDT) From: Joseph Mingrone To: Ian Smith Cc: freebsd-mobile@freebsd.org Subject: Re: suspend/resume moused restart required References: <86lhh9q6qe.fsf@gly.ftfl.ca> <20150502151846.E26659@sola.nimnet.asn.au> Date: Sat, 02 May 2015 19:43:18 -0300 In-Reply-To: <20150502151846.E26659@sola.nimnet.asn.au> (Ian Smith's message of "Sat, 2 May 2015 15:27:09 +1000 (EST)") Message-ID: <864mnuob21.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 22:43:24 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ian Smith writes: > I've no idea whether this may still be applicable - I use it on my T23=20 > on 8.x, which had the same issue back then - but it probably won't hurt: > /boot/loader.conf: > # 29/9/10 thanks Jung-uk Kim .. so can remove moused restart from rc.resu= me > hint.psm.0.flags=3D"0x6000" I had tried that with no change. > If not, there's always 'add moused restart to rc.resume' :) > I realise that's not attacking the 'stopped working on -STABLE' issue. That's a good workaround for now. Thanks. Hopefully I'll find some time to try and track down the change that introduced the problem. Thanks for your reply, Joseph --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVRVMGAAoJEDakDIOw1u+eTaUP/RKgWQjNdKG3yATygeOJ3YmO fOfHtAVfBqazA8ewbYykOcMpZTnjhW8Vjpj729XnB6YTl7d5E77BUTLswpIOhWMQ jPXkZZbE+BVKyTivaDPpvnN+gaIdDw6Wt6edXrReU/rm05G5rIkUGp7cZLmuIP5o 82Eez3IG/CTj9AIeu5+dg2UGAaVwZaJhDJ3D3fU396sYf3PU2fx0rApOqSfzEcF1 3iL7jW+giMHY9oo7eZIFibHp2+OCy/mZ4xt/cvQ+/rRi8P4+OmOjOHU3oJ1nUTx6 J1cDhOjiTeIGAnaYANKvRgwwaLjd2WnG26UILbj6FNvjNvBrTOrX4AiwPQ/FGWoh 5Yhn/G2gi2PZqs/3XzUpYgmYY0ODf5qv/SbsRj3nLXhworeTC5cmRCmt7Bkn3bAJ IWPAMFOVbYKVSCAwdmG8Uli5kik0vxOcIrIPsr+/rLXMHDNA2L5nbEichiRAx0TX Y31Hj2WgoHha4nmGUIAeWb8gmmWCq78+sw56p/nZEhsCem1HlT3aDu3I53hrJZaM TdX/tfAcpzv5jUYfHU6HTCFjWgReGji+vnoGLgWDNsftGCCF83Seu6guqZNj0Qp2 gQusOXvVjQZdfLWaMmTqJ+4edXSnQyJIkX1NYVCWahlqOg+gz9gSJ12zYEue37jv BP0sDGM+PHz3D/BrXAel =fVma -----END PGP SIGNATURE----- --=-=-=--