Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 May 2015 21:57:54 -0300
From:      Joseph Mingrone <jrm@ftfl.ca>
To:        Jan =?utf-8?Q?Kokem=C3=BCller?= <jan.kokemueller@gmail.com>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: suspend/resume moused restart required
Message-ID:  <868ud7okx9.fsf@gly.ftfl.ca>
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 %2B0200")
References:  <86lhh9q6qe.fsf@gly.ftfl.ca> <5543DA3C.4070908@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Jan Kokem=C3=BCller <jan.kokemueller@gmail.com> 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: <vendor 0x8087> 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: <Chicony Electronics Co., Ltd.> 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: <vendor 0x8087> 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: <Intel EHCI root HUB, class 9/0, rev 2.0=
0/1.00, addr 1> on usbus1
May  1 21:50:47 phe kernel: uhub1: <Intel EHCI root HUB, class 9/0, rev 2.0=
0/1.00, addr 1> 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: <vendor 0x8087> at usbus0
May  1 21:50:49 phe kernel: uhub2: <vendor 0x8087 product 0x0024, class 9/0=
, rev 2.00/0.00, addr 2> on usbus0
May  1 21:50:49 phe kernel: ugen1.2: <vendor 0x8087> at usbus1
May  1 21:50:49 phe kernel: uhub3: <vendor 0x8087 product 0x0024, class 9/0=
, rev 2.00/0.00, addr 2> 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: <Chicony Electronics Co., Ltd.> 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-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868ud7okx9.fsf>