Re: Kernel 3.3.0-4 & bluetooth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux