View Single Post
Posts: 97 | Thanked: 318 times | Joined on Feb 2012 @ Switzerland
#590
Originally Posted by claustn View Post
Yes I mean that command, just copied and pasted from the post of Minimec to terminal. Maybe I didn't do it as root

Could someone tell me what commands do I have to run?

Let's debug your issue. First after boot, I would check that you have the 'bluetooth-sleep-kernel' by Mautz installed and running.

Code:
devel-su
ls /proc/bluetooth/sleep/
The output should be this...
Code:
asleep btwake btwrite hostwake lpm proto
If you don't start the 'bt-sleep-monitor.sh' script in some startup script or systemd service, you have to start it manually. (I pretend that the script is in the /home/nemo folder)

Code:
chmod +x bt-sleep-monitor.sh   # Needed only once
devel-su
./bt-sleep-monitor.sh &
exit
You should now be able to monitor the script and get the suspend stats
Code:
tail -f /dev/shm/bt-sleep-monitor.log   # <ctrl>c to stop
mcetool --get-suspend-stats
To recover borken bluetooth, you can try
Code:
devel-su
killall bt-sleep-monitor.sh dbus-monitor
/bin/echo 0 > /proc/bluetooth/sleep/lpm
systemctl restart bluetooth
./bt-sleep-monitor.sh &
exit
If it's just the script that hangs...
Code:
devel-su
killall bt-sleep-monitor.sh dbus-monitor
./bt-sleep-monitor.sh &
exit

Would be cool if others could give it a try too...
Kernel can be downloaded here.
The script can be downloaded here... including all relevant informations...
 

The Following 2 Users Say Thank You to minimec For This Useful Post: