Re: Kernel 3.3.0-4 & bluetooth



On 04/02/2012 08:27 AM, Kernel Guardian wrote:
Roger,
I had similar problem with Asus u30jc and bluetooth. I must use custom
scripts for suspend and hibernate.
For some reason, unknown to me, pm-suspend can't power off all
devices. Bluetooth device, BT-270 (broadcom) is attached on USB (by
Asus design). During entry in sleeping mode pm can't turning off this
device. Maybe, in your case, pm can't detach your mouse from
bluetooth.
maybe you would find some useful infos from my script. I find
debugging pm sleep and hibernate mode to difficult because it is very
hard to collect useful informations from pm.

========== /etc/pm/sleep.d/custom-ehci-hcd =====================
#!/bin/sh
#inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
# tidied by tqzzaa :)

VERSION=1.1.1a
DEV_LIST=/tmp/usb-dev-list
DRIVERS_DIR=/sys/bus/pci/drivers
DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd
HEX="[[:xdigit:]]"
MAX_BIND_ATTEMPTS=2
BIND_WAIT=0.1

unbindDev() {
echo -n> $DEV_LIST 2>/dev/null
for driver in $DRIVERS; do
DDIR=$DRIVERS_DIR/${driver}_hcd
for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do
echo -n "$dev"> $DDIR/unbind
echo "$driver $dev">> $DEV_LIST
done
done
}

bindDev() {
if [ -s $DEV_LIST ]; then
while read driver dev; do
DDIR=$DRIVERS_DIR/${driver}_hcd
while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do
echo -n "$dev"> $DDIR/bind
if [ ! -L "$DDIR/$dev" ]; then
sleep $BIND_WAIT
else
break
fi
MAX_BIND_ATTEMPTS=$((MAX_BIND_ATTEMPTS-1))
done
done< $DEV_LIST
fi
rm $DEV_LIST 2>/dev/null
}

case "$1" in
hibernate|suspend) unbindDev;;
resume|thaw) bindDev;;
esac
Thanks, I'll mess around with it.
There must be a real solution though since the previous several kernel versions did not have this problem.
roger
==========================end of script ======================================
On 2 April 2012 03:39, Roger K. Wells<ROGER.K.WELLS@xxxxxxxx> wrote:
no response. This is real though. Just not using a bluetooth mouse& all's
well.
cheers
roger wells

-------- Original Message --------
Subject: Kernel 3.3.0-4& bluetooth
Date: Sat, 31 Mar 2012 16:40:25 -0400
From: Roger Wells<rwells23@xxxxxxx>
Reply-To: roger.k.wells@xxxxxxxxxxxx
To: Community support for Fedora users<users@xxxxxxxxxxxxxxxxxxxxxxx>



Hello,

Machine: Lenovo Thinkpad x220 plus MS Bluetooth Notebook Mouse 5000
(both about 3 months old)
uname -srov: Linux 3.3.0-4.fc16.x86_64 #1 SMP Tue Mar 20 18:05:40 UTC
2012 GNU/Linux
Desktop: Gnome 3

Problem: When I suspend (by closing the lid) the suspend LED starts
blinking as usual but never stops.
Power switch is the only option. If I do not use the
Bluetooth Mouse there is no problem and
machine suspends normally. Note: X200 Bluetooth radio
is still on just the mouse is off.
With kernel 3.2.9-2 (just choosing it from the initial
grub menu) this problem does not occur.

I removed the mouse from the Bluetooth configuration and re-paired it to
no avail.
Any suggestions about what I might check next would be appreciated.
Actually, if nothing else, just how to make 3.2.9-2 the default kernel
until this situation passes would be nice.

thanks,
Roger Wells

--
Roger Wells, P.E.
SAIC
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger.k.wells@xxxxxxxx


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


--
Roger Wells, P.E.
SAIC
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger.k.wells@xxxxxxxx

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Relevant Pages

  • Kernel crash report - maybe triggered by the bluetooth system
    ... of bug in the kernel, in my opinion related to the bluetooth system. ... I use bluetooth VERY rarely, as a matter of fact I used it yesterday for the ... # CPUFreq processor drivers ... # PCI IDE chipsets support ...
    (Linux-Kernel)
  • Regression: Problem in using USB Bluetooth Dongle (Worked fine in 2.6.24.x)
    ... At least until kernel version 2.6.24, I was able to use my USB ... bluetooth dongle to download contacts from my phone. ... # AX.25 network device drivers ...
    (Linux-Kernel)
  • XFS kernel BUG at fs/buffer.c:470! with 2.6.28.4
    ... This time I hit kernel bug without any particular operation, ... machine and after this crash I lose again configuration file of opened ... output container bluetooth cfg80211 wmi battery ac button pcspkr psmouse ... # CPUFreq processor drivers ...
    (Linux-Kernel)
  • [BUG 2.6.16.16] 64bit + Ethernet + Bluetooth = no go
    ... This weekend, I switched over to 64bit distro, recompiled latest kernel and this ... Bluetooth and ethernet no longer work together. ... hci0 is down and uninitialized. ...
    (Linux-Kernel)
  • Re: [Bluez-devel] 2.6.23.8: kernel panic
    ... I have compiled linux kernel 2.6.23.8 for a single board computer based ... on ARM architecture. ... Bluetooth subsystem, creating repeatly a lot of RFCOMM connections to ... This problem is caused by the workqueue in hci_sysfs.c, the del_conn is scheduled after the add_conn with same bluetooth address. ...
    (Linux-Kernel)