OpenSUSE 11.2: Suspend and Wake Up by USB keyboard

I upgraded 11.1 to 11.2 on IBM Thinkpad R51 and now I have problem with suspend to RAM with enabled USB WakeUp in /proc/acpi/wakeup like:


echo "USB1" > /proc/acpi/wakeup

cat /proc/acpi/wakeup

Device  S-state   Status   Sysfs node
LID       S3    *enabled   
SLPB      S3    *enabled   
PCI0      S3     disabled  no-bus:pci0000:00
UART      S3     disabled  pnp:00:09
PCI1      S4     disabled  pci:0000:00:1e.0
USB0      S3     disabled  pci:0000:00:1d.0
USB1      S3     enabled   pci:0000:00:1d.1
AC9M      S4     disabled  pci:0000:00:1f.6

If I now run pm-suspend with keyboard connected to USB, notebook suspend and after less 1 second wakeup itself.


cat /var/log/pm-suspend.log
2010-04-07 09:37:01.785155831 +0200: running 'suspend'/'suspend'/'' hooks.
===== 2010-04-07 09:37:01.904246139 running hook: /usr/lib/pm-utils/sleep.d/00clear =====
===== 2010-04-07 09:37:01.923588266 running hook: /usr/lib/pm-utils/sleep.d/01logging =====
suspend initiated: St dub  7 09:37:01 CEST 2010

Linux vdr 2.6.31.12-0.2-default #1 SMP 2010-03-16 21:25:39 +0100 i686 i686 i386 GNU/Linux
kernel command line: 'root=/dev/disk/by-id/ata-IC25N060ATMR04-0_MRG305K3KZBS9H-part2 resume=/dev/disk/by-id/ata-IC25N060ATMR04-0_MRG305K3KZBS9H-part1 splash=silent vga=0x314'
Module                  Size  Used by
snd_pcm_oss            51648  0 
snd_mixer_oss          18496  1 snd_pcm_oss
snd_seq                64784  0 
snd_seq_device          8556  1 snd_seq
snd_intel8x0           35068  0 
snd_ac97_codec        119364  1 snd_intel8x0
ac97_bus                1920  1 snd_ac97_codec
snd_pcm                97444  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              27176  2 snd_seq,snd_pcm
snd                    75076  8 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               9120  1 snd
snd_page_alloc         10248  2 snd_intel8x0,snd_pcm
uhci_hcd               29840  0 
ehci_hcd               57296  0 
ip6t_LOG                6500  12 
xt_tcpudp               3136  26 
xt_pkttype              1632  3 
ipt_LOG                 6308  12 
xt_limit                2628  24 
aes_i586                8576  2 
cryptomgr              95216  0 
udf                    92804  0 
aead                    8640  1 cryptomgr
pcompress               2752  1 cryptomgr
crc_itu_t               1984  1 udf
crypto_blkcipher       14884  1 cryptomgr
crypto_hash            14464  1 cryptomgr
aes_generic            27968  1 aes_i586
crypto_algapi          21220  7 aes_i586,cryptomgr,aead,pcompress,crypto_blkcipher,crypto_hash,aes_generic
lib80211_crypt_ccmp     6016  2 
af_packet              23680  2 
binfmt_misc             9576  1 
cpufreq_conservative     8396  0 
cpufreq_userspace       3332  0 
cpufreq_powersave       1568  0 
acpi_cpufreq            9196  0 
speedstep_lib           5092  0 
ip6t_REJECT             5472  3 
nf_conntrack_ipv6      22100  4 
ip6table_raw            3008  1 
xt_NOTRACK              1632  4 
ipt_REJECT              3168  3 
xt_state                2208  8 
iptable_raw             2848  1 
iptable_filter          3616  1 
ip6table_mangle         4160  0 
nf_conntrack_netbios_ns     2432  0 
nf_conntrack_ipv4      11688  4 
nf_conntrack           83616  5 nf_conntrack_ipv6,xt_NOTRACK,xt_state,nf_conntrack_netbios_ns,nf_conntrack_ipv4
nf_defrag_ipv4          2112  1 nf_conntrack_ipv4
ip_tables              13520  2 iptable_raw,iptable_filter
ip6table_filter         3616  1 
ip6_tables             14960  4 ip6t_LOG,ip6table_raw,ip6table_mangle,ip6table_filter
x_tables               19140  11 ip6t_LOG,xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,xt_NOTRACK,ipt_REJECT,xt_state,ip_tables,ip6_tables
ipv6                  306100  31 ip6t_REJECT,nf_conntrack_ipv6,ip6table_mangle
fuse                   75964  1 
loop                   17324  0 
dm_mod                 84836  0 
pcmcia                 42152  0 
yenta_socket           41388  1 
ipw2200               193740  0 
ohci1394               32880  0 
hid_petalynx            2944  0 
rsrc_nonstatic         13664  1 yenta_socket
libipw                 45936  1 ipw2200
iTCO_wdt               12452  0 
e1000                 134948  0 
ppdev                  10212  0 
pcmcia_core            41748  3 pcmcia,yenta_socket,rsrc_nonstatic
lib80211                7460  3 lib80211_crypt_ccmp,ipw2200,libipw
ieee1394              102340  1 ohci1394
iTCO_vendor_support     3876  1 iTCO_wdt
i2c_i801               12756  0 
usbhid                 51968  0 
parport_pc             40004  0 
shpchp                 36372  0 
thinkpad_acpi          74948  0 
sr_mod                 17316  0 
i2c_core               32628  1 i2c_i801
video                  24600  0 
hid                    46912  2 hid_petalynx,usbhid
pcspkr                  2784  0 
parport                40236  2 ppdev,parport_pc
pci_hotplug            32928  1 shpchp
joydev                 11712  0 
intel_agp              31292  1 
cdrom                  40448  1 sr_mod
rfkill                 22868  1 thinkpad_acpi
sg                     32660  0 
led_class               4836  1 thinkpad_acpi
battery                12772  0 
button                  6544  0 
ac                      4900  0 
irda                  145016  0 
output                  3328  1 video
crc_ccitt               1984  1 irda
rtc_cmos               15280  0 
rtc_core               22908  1 rtc_cmos
rtc_lib                 3168  1 rtc_core
edd                    10376  0 
fan                     5028  0 
ide_pci_generic         4036  0 
piix                    6792  0 
ide_core              124076  2 ide_pci_generic,piix
ata_generic             4868  0 
ata_piix               25288  2 
ahci                   38928  0 
libata                200748  3 ata_generic,ata_piix,ahci
thermal                21020  0 
processor              50384  2 acpi_cpufreq
thermal_sys            18120  4 video,fan,thermal,processor
hwmon                   3676  2 thinkpad_acpi,thermal_sys

             total       used       free     shared    buffers     cached
Mem:       1030604     252728     777876          0      40600     143384
-/+ buffers/cache:      68744     961860
Swap:      1550232          0    1550232

===== 2010-04-07 09:37:01.942739308 running hook: /usr/lib/pm-utils/sleep.d/02rtcwake =====
rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...
===== 2010-04-07 09:37:01.951573673 running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== 2010-04-07 09:37:01.978587168 running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== 2010-04-07 09:37:02.035067820 running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
===== 2010-04-07 09:37:02.055464271 running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
===== 2010-04-07 09:37:02.065507448 running hook: /etc/pm/sleep.d/40freevo =====
freevo: no process found
Shutting down sound driver..done
===== 2010-04-07 09:37:03.390463377 running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
ejecting PCMCIA cards...
===== 2010-04-07 09:37:03.403550798 running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== 2010-04-07 09:37:03.441898977 running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== 2010-04-07 09:37:03.447321455 running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== 2010-04-07 09:37:03.455067972 running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== 2010-04-07 09:37:03.489930231 running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== 2010-04-07 09:37:03.498094957 running hook: /usr/lib/pm-utils/sleep.d/95packagekit =====
===== 2010-04-07 09:37:03.505283582 running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== 2010-04-07 09:37:03.515262785 running hook: /usr/lib/pm-utils/sleep.d/99info =====
2010-04-07 09:37:03.521604933: done running suspend/suspend hooks.
INFO: going to suspend. In case of problems with the selected suspend options,
INFO: please read /usr/share/doc/packages/pm-utils/README.smart-suspend-to-RAM
INFO: machine is in s2ram database, using it.
+ /usr/sbin/s2ram
Switching from vt2 to vt1
fbcon fb0 state 1
fbcon fb0 state 0
switching back to vt2
+ RET=0
+ set +x
2010-04-07 09:37:13.649657218 +0200: running 'suspend'/'resume'/'reverse' hooks.
===== 2010-04-07 09:37:13.709246097 running hook: /usr/lib/pm-utils/sleep.d/99info =====
===== 2010-04-07 09:37:13.725263222 running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== 2010-04-07 09:37:13.732958616 running hook: /usr/lib/pm-utils/sleep.d/95packagekit =====
method return sender=:1.62 -> dest=:1.61 reply_serial=2
===== 2010-04-07 09:37:14.302197923 running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== 2010-04-07 09:37:14.313049586 running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== 2010-04-07 09:37:14.341646249 running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== 2010-04-07 09:37:14.348747993 running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== 2010-04-07 09:37:14.358419337 running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== 2010-04-07 09:37:14.373694748 running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
inserting PCMCIA cards...
===== 2010-04-07 09:37:14.518374639 running hook: /etc/pm/sleep.d/40freevo =====
Starting sound driver:  intel8x0..done
===== 2010-04-07 09:37:15.690316664 running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
===== 2010-04-07 09:37:15.702115093 running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
===== 2010-04-07 09:37:15.761562887 running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== 2010-04-07 09:37:15.783039926 running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== 2010-04-07 09:37:15.792856262 running hook: /usr/lib/pm-utils/sleep.d/02rtcwake =====
===== 2010-04-07 09:37:15.801040266 running hook: /usr/lib/pm-utils/sleep.d/01logging =====
===== 2010-04-07 09:37:15.811083166 running hook: /usr/lib/pm-utils/sleep.d/00clear =====
2010-04-07 09:37:15.826332317: done running suspend/resume hooks.

If disconnect all usb devices from notebook suspend works great.
If disabled USB wakeup in /proc/acpi/wakeup suspend works great, but I cannot wake up pc by USB keyboard.
If set suspend uhci_hcd module (SUSPEND_MODULES=“uhci_hcd”) in /etc/pm/config.d/modules suspend works well but cannot wake up by USB keyboard.
In OpenSUSE 11.1 works without problems

Thank for help

In case of such regressions, this is the place to go.

https://bugzilla.novell.com

Read the FAQ first.

Thank I reported to Buglist

https://bugzilla.novell.com/show_bug.cgi?id=594283