Re: suspend/resume moused restart required

Joseph Mingrone <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
Jan Kokemüller <[email protected]> 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 because
> 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=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.

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 (disconnected)
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 usbus0 (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 (disconnected)
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 on, 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.00/1.00, addr 1> on usbus1
May  1 21:50:47 phe kernel: uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/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 usbus0
May  1 21:50:51 phe devd: Executing '/usr/local/etc/rc.d/webcamd start ugen0.3'
May  1 21:50:51 phe devd: Executing '/usr/local/etc/rc.d/webcamd start ugen0.3'
May  1 21:50:51 phe devd: Executing 'logger Unknown USB device: vendor 0x04f2 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 0x04f2 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 0x04f2 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* Power management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 1a000000, was 12060000
May  1 21:53:54 phe kernel: error: [drm:pid1498:gen6_sanitize_pm] *ERROR* Power management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 1a0d0000, was 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
signature.asc (application/pgp-signature, 818 B)
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.