mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* usb driver problem when suspending from acpid
@ 2003-08-10  9:26 Micha Feigin
  2003-08-10 19:38 ` Nigel Cunningham
  0 siblings, 1 reply; 2+ messages in thread
From: Micha Feigin @ 2003-08-10  9:26 UTC (permalink / raw)
  To: Kernel list

I am running a 2.4.21 kernel with acpi + swsusp patches (had the same
behavior with swsusp 1.0.* and 1.1-rc)

When calling the hibernation script that appears on the swsusp site to
unload all modules and services and then suspend to disk (S4) from the
command line (anywhere: xterm, console whatever) everything works fine.
When calling the script from acpid in response to the power button being
pressed, the script locks on the second suspend attempt when trying to
unload the usbcore module (rmmod never returns and can't be killed using
kill -9, presumably since its stuck on a system call)

I have tracked the lock point to thefile  drivers/usb/hub.c. The
offending function is usb_hub_cleanup which locks up on the call to 
wait_for_completion(&khubd_exited);

I don't know if this could be related, but when calling the script with
--verbose option it also fails since it can't find a tty to print the
errors to. It tries to open /dev/tty<something> and fails, although I am
not sure what the difference is since the script switches away from X
when it starts.
I have made a few attempts at the kernel source but couldn't solve the
problem.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-10 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-10  9:26 usb driver problem when suspending from acpid Micha Feigin
2003-08-10 19:38 ` Nigel Cunningham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®