* [Bluez-users] Btsco refuse to hibernate @ 2006-02-21 20:46 Administrator TOOTAI 2006-02-21 21:01 ` Brad Midgley 2006-02-21 23:05 ` John McCabe-Dansted 0 siblings, 2 replies; 11+ messages in thread From: Administrator TOOTAI @ 2006-02-21 20:46 UTC (permalink / raw) To: Bluetooth, Suspend2 list Hi all, I face a problem using Suspend2+hibernate with snd-bt-sco and latest 2.6.15-4 from Debian SID. Feb 21 21:29:32 nomade kernel: Stopping tasks failed. Feb 21 21:29:32 nomade kernel: Tasks that refused to be refrigerated and haven't since exited: Feb 21 21:29:32 nomade kernel: - snd-bt-scod (#2708) signalled and todo list empty. Thanks for any hint. -- Daniel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-21 20:46 [Bluez-users] Btsco refuse to hibernate Administrator TOOTAI @ 2006-02-21 21:01 ` Brad Midgley 2006-02-21 23:05 ` John McCabe-Dansted 1 sibling, 0 replies; 11+ messages in thread From: Brad Midgley @ 2006-02-21 21:01 UTC (permalink / raw) To: bluez-users Hi This is a known problem. It sounds like stopping the btsco userspace app first doesn't necessarily help (but it might). We might just be missing something small... we need help here from someone who is motivated to dig into the problem. Brad > I face a problem using Suspend2+hibernate with snd-bt-sco and latest > 2.6.15-4 from Debian SID. > > Feb 21 21:29:32 nomade kernel: Stopping tasks failed. > Feb 21 21:29:32 nomade kernel: Tasks that refused to be refrigerated and > haven't since exited: > Feb 21 21:29:32 nomade kernel: - snd-bt-scod (#2708) signalled and todo > list empty. > > Thanks for any hint. > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-21 20:46 [Bluez-users] Btsco refuse to hibernate Administrator TOOTAI 2006-02-21 21:01 ` Brad Midgley @ 2006-02-21 23:05 ` John McCabe-Dansted 2006-02-22 16:55 ` Administrator TOOTAI 1 sibling, 1 reply; 11+ messages in thread From: John McCabe-Dansted @ 2006-02-21 23:05 UTC (permalink / raw) To: bluez-users I found that killing all running kmix processes allowed me to shutdown. this can be done by typing from the command line: killall kmix killall -9 kmix Does this help? What desktop are you using? (E.g. KDE or Gnome) On 2/22/06, Administrator TOOTAI <admin@tootai.net> wrote: > Hi all, > > I face a problem using Suspend2+hibernate with snd-bt-sco and latest > 2.6.15-4 from Debian SID. > > Feb 21 21:29:32 nomade kernel: Stopping tasks failed. > Feb 21 21:29:32 nomade kernel: Tasks that refused to be refrigerated and > haven't since exited: > Feb 21 21:29:32 nomade kernel: - snd-bt-scod (#2708) signalled and todo > list empty. -- John C. McCabe-Dansted Master's Student ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-21 23:05 ` John McCabe-Dansted @ 2006-02-22 16:55 ` Administrator TOOTAI 2006-02-22 17:39 ` Brad Midgley 2006-02-23 0:02 ` John McCabe-Dansted 0 siblings, 2 replies; 11+ messages in thread From: Administrator TOOTAI @ 2006-02-22 16:55 UTC (permalink / raw) To: bluez-users John McCabe-Dansted a =E9crit : >I found that killing all running kmix processes allowed me to shutdown. >this can be done by typing from the command line: > killall kmix > killall -9 kmix > >Does this help? What desktop are you using? (E.g. KDE or Gnome) > =20 > I killed all stuff concerning sound, it change nothing. Brad: who could be able to help us to solve the problem? If I good=20 remember, 2.6.14 or earlier 2.6.15 had'nt have the problem. Could it be=20 related to the modification made in btsco version 1.9 (begining of month)= ? >On 2/22/06, Administrator TOOTAI <admin@tootai.net> wrote: > =20 > >>Hi all, >> >>I face a problem using Suspend2+hibernate with snd-bt-sco and latest >>2.6.15-4 from Debian SID. >> >>Feb 21 21:29:32 nomade kernel: Stopping tasks failed. >>Feb 21 21:29:32 nomade kernel: Tasks that refused to be refrigerated an= d >>haven't since exited: >>Feb 21 21:29:32 nomade kernel: - snd-bt-scod (#2708) signalled and tod= o >>list empty. >> =20 >> --=20 Daniel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-22 16:55 ` Administrator TOOTAI @ 2006-02-22 17:39 ` Brad Midgley 2006-02-22 18:30 ` Administrator TOOTAI 2006-02-23 0:02 ` John McCabe-Dansted 1 sibling, 1 reply; 11+ messages in thread From: Brad Midgley @ 2006-02-22 17:39 UTC (permalink / raw) To: bluez-users Hi > I killed all stuff concerning sound, it change nothing. > > Brad: who could be able to help us to solve the problem? If I good > remember, 2.6.14 or earlier 2.6.15 had'nt have the problem. Could it be > related to the modification made in btsco version 1.9 (begining of month)? This has been a longstanding bug... maybe your setup changed recently to cause it to show up. The change last week shouldn't affect this. The only significant change was between .40 and .41 and was there to enforce card ordering iirc. Brad ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-22 17:39 ` Brad Midgley @ 2006-02-22 18:30 ` Administrator TOOTAI 0 siblings, 0 replies; 11+ messages in thread From: Administrator TOOTAI @ 2006-02-22 18:30 UTC (permalink / raw) To: bluez-users Brad Midgley a =E9crit : >Hi > > =20 > >>I killed all stuff concerning sound, it change nothing. >> >>Brad: who could be able to help us to solve the problem? If I good >>remember, 2.6.14 or earlier 2.6.15 had'nt have the problem. Could it be >>related to the modification made in btsco version 1.9 (begining of mont= h)? >> =20 >> > >This has been a longstanding bug... maybe your setup changed recently to >cause it to show up. > =20 > I'm running SID, so it change always ;-) >The change last week shouldn't affect this. The only significant change >was between .40 and .41 and was there to enforce card ordering iirc. > =20 > Ok, so we have to wait. But what? or who? Should we ask on Suspend2=20 list? I know nothing about programing, will anyway try to check. It's in=20 kernel/btsco.c I have to take a look? --=20 Daniel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-22 16:55 ` Administrator TOOTAI 2006-02-22 17:39 ` Brad Midgley @ 2006-02-23 0:02 ` John McCabe-Dansted 2006-02-23 21:41 ` Administrator TOOTAI 1 sibling, 1 reply; 11+ messages in thread From: John McCabe-Dansted @ 2006-02-23 0:02 UTC (permalink / raw) To: bluez-users; +Cc: Administrator TOOTAI On 2/23/06, Administrator TOOTAI <admin@tootai.net> wrote: > John McCabe-Dansted a =E9crit : > > >I found that killing all running kmix processes allowed me to shutdown. > >this can be done by typing from the command line: > > killall kmix > > killall -9 kmix > > > >Does this help? What desktop are you using? (E.g. KDE or Gnome) > > > > > I killed all stuff concerning sound, it change nothing. Hmm, have you tryied killing virtually all processes (e.g. by going to runlevel 1) Have you tried applying the patch below and replacing your hci_usb module (probably only useful if you are using a bluetooth usb dongle)? ... Signed-Off-By: Johannes Berg <johannes@sipsolutions.net> --- linux-2.6.git.orig/drivers/bluetooth/hci_usb.c +++ linux-2.6.git/drivers/bluetooth/hci_usb.c @@ -1043,10 +1043,65 @@ hci_free_dev(hdev); } +static int hci_usb_suspend(struct usb_interface *intf, pm_message_t messag= e) +{ + struct hci_usb *husb =3D usb_get_intfdata(intf); + int i; + unsigned long flags; + struct list_head killed; + + if (!husb || intf =3D=3D husb->isoc_iface) + return 0; + + INIT_LIST_HEAD(&killed); + + for (i =3D 0; i < 4; i++) { + struct _urb_queue *q =3D &husb->pending_q[i]; + struct _urb *_urb, *_tmp; + while ((_urb =3D _urb_dequeue(q))) { + /* reset queue since _urb_dequeue sets it to NULL *= / + _urb->queue =3D q; + usb_kill_urb(&_urb->urb); + list_add(&_urb->list, &killed); + } + spin_lock_irqsave(&q->lock, flags); + list_for_each_entry_safe(_urb, _tmp, &killed, list) { + list_move_tail(&_urb->list, &q->head); + } + spin_unlock_irqrestore(&q->lock, flags); + } + return 0; +} + +static int hci_usb_resume(struct usb_interface *intf) +{ + struct hci_usb *husb =3D usb_get_intfdata(intf); + int i, err =3D 0; + unsigned long flags; + if (!husb || intf =3D=3D husb->isoc_iface) + return 0; + + for (i =3D 0; i < 4; i++) { + struct _urb_queue *q =3D &husb->pending_q[i]; + struct _urb *_urb; + spin_lock_irqsave(&q->lock, flags); + list_for_each_entry(_urb, &q->head, list) { + err =3D usb_submit_urb(&_urb->urb, GFP_ATOMIC); + if (err) break; + } + spin_unlock_irqrestore(&q->lock, flags); + if (err) + return -EIO; + } + return 0; +} + static struct usb_driver hci_usb_driver =3D { .name =3D "hci_usb", .probe =3D hci_usb_probe, .disconnect =3D hci_usb_disconnect, + .suspend =3D hci_usb_suspend, + .resume =3D hci_usb_resume, .id_table =3D bluetooth_ids, }; -- John C. McCabe-Dansted Master's Student ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-23 0:02 ` John McCabe-Dansted @ 2006-02-23 21:41 ` Administrator TOOTAI 2006-02-24 0:04 ` John McCabe-Dansted 0 siblings, 1 reply; 11+ messages in thread From: Administrator TOOTAI @ 2006-02-23 21:41 UTC (permalink / raw) To: bluez-users John McCabe-Dansted a =E9crit : > On 2/23/06, Administrator TOOTAI <admin@tootai.net> wrote: >=20 >>John McCabe-Dansted a =E9crit : >> >> >>>I found that killing all running kmix processes allowed me to shutdown= . >>>this can be done by typing from the command line: >>> killall kmix >>> killall -9 kmix >>> >>>Does this help? What desktop are you using? (E.g. KDE or Gnome) >>> >>> >> >>I killed all stuff concerning sound, it change nothing. >=20 >=20 > Hmm, have you tryied killing virtually all processes (e.g. by going to > runlevel 1) No. I made <lsof | grep snd> then kill all programs showed. >=20 > Have you tried applying the patch below and replacing your hci_usb > module (probably only useful if you are using a bluetooth usb dongle)? There is no bluetooth device attached, just the module is loaded. >=20 [...] --=20 Daniel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-23 21:41 ` Administrator TOOTAI @ 2006-02-24 0:04 ` John McCabe-Dansted 2006-02-24 14:49 ` Administrator TOOTAI 0 siblings, 1 reply; 11+ messages in thread From: John McCabe-Dansted @ 2006-02-24 0:04 UTC (permalink / raw) To: bluez-users > No. I made <lsof | grep snd> then kill all programs showed. Cool. I didn't realize you could do that. In my case though, e.g. xmms doesn't stop the machine hibernating even though it uses /dev/snd. > > > > Have you tried applying the patch below and replacing your hci_usb > > module (probably only useful if you are using a bluetooth usb dongle)? > > There is no bluetooth device attached, just the module is loaded. I am not sure what you mean. Surely you must have some sort of bluetooth adapter, even if it is built into the motherboard? If you really don't have any bluetooth devices, you may as well stop snd-bt-sco from loading next time you boot, e.g. by typing sudo mv /lib/modules/`uname -r`/extra/snd-bt-sco.ko{,.bak} -- John C. McCabe-Dansted Master's Student ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-24 0:04 ` John McCabe-Dansted @ 2006-02-24 14:49 ` Administrator TOOTAI 2006-02-24 23:39 ` John McCabe-Dansted 0 siblings, 1 reply; 11+ messages in thread From: Administrator TOOTAI @ 2006-02-24 14:49 UTC (permalink / raw) To: bluez-users John McCabe-Dansted a =E9crit : > [...] > >>>Have you tried applying the patch below and replacing your hci_usb >>>module (probably only useful if you are using a bluetooth usb dongle)? >>> =20 >>> >>There is no bluetooth device attached, just the module is loaded. >> =20 >> > >I am not sure what you mean. Surely you must have some sort of >bluetooth adapter, even if it is built into the motherboard? > >If you really don't have any bluetooth devices, you may as well stop >snd-bt-sco from loading next time you boot, e.g. by typing > sudo mv /lib/modules/`uname -r`/extra/snd-bt-sco.ko{,.bak} > =20 > Ah, I can do this ;-)? Sure I have I have a bluetooth device, my sentence is to be understand=20 like "at the time I want to hibernate, no bluetooth device is attached." = :-) --=20 Daniel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Bluez-users] Btsco refuse to hibernate 2006-02-24 14:49 ` Administrator TOOTAI @ 2006-02-24 23:39 ` John McCabe-Dansted 0 siblings, 0 replies; 11+ messages in thread From: John McCabe-Dansted @ 2006-02-24 23:39 UTC (permalink / raw) To: bluez-users On 2/25/06, Administrator TOOTAI <admin@tootai.net> wrote: > John McCabe-Dansted a =E9crit : > >If you really don't have any bluetooth devices, you may as well stop > >snd-bt-sco from loading next time you boot, e.g. by typing > > sudo mv /lib/modules/`uname -r`/extra/snd-bt-sco.ko{,.bak} > > > > > Ah, I can do this ;-)? > > Sure I have I have a bluetooth device, my sentence is to be understand > like "at the time I want to hibernate, no bluetooth device is attached." = :-) I just remembered, hibernated doesn't work for me either when snd_bt_sco is *loaded*. However, if there are no processes are using it, you should be able to remove it using the rmmod command, i.e. rmmod -w snd_bt_sco. For this reason I have added: killall kmix killall btsco (sleep 1 killall -9 kmix killall -9 btsco) rmmod -w snd_bt_sco & To the start of my /usr/sbin/hibernate file. This allows me to reliably hibernate (with kubuntu 5.10, you may have to kill a different set of processes, though I doubt that you will have to kill all processes listed by <lsof | grep snd>) . I have also added modprobe snd_bt_sco to the end of this file so as to reload the module when coming out of hiber= nate. -- John C. McCabe-Dansted Master's Student ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-02-24 23:39 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-02-21 20:46 [Bluez-users] Btsco refuse to hibernate Administrator TOOTAI 2006-02-21 21:01 ` Brad Midgley 2006-02-21 23:05 ` John McCabe-Dansted 2006-02-22 16:55 ` Administrator TOOTAI 2006-02-22 17:39 ` Brad Midgley 2006-02-22 18:30 ` Administrator TOOTAI 2006-02-23 0:02 ` John McCabe-Dansted 2006-02-23 21:41 ` Administrator TOOTAI 2006-02-24 0:04 ` John McCabe-Dansted 2006-02-24 14:49 ` Administrator TOOTAI 2006-02-24 23:39 ` John McCabe-Dansted
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).