You are not logged in.

#1 2014-12-20 20:29:00

mocambo
Member
Registered: 2014-12-20
Posts: 4

Starting BT mouse automatically ?

Every time I boot my laptop on I must do following to use my BT logitech mouse:
1. # hciattach -s 152000 /dev/ttyS1 billionton
2. Turn bluetooth ON in blueman

Every time I suspend/resume my laptop I must do following:
1. # killall hciattach
2. # hciattach -s 152000 /dev/ttyS1 billionton

Can I do somehow these tings automatically ?

Thank you in advance !

Im using:
Linux 3.10.62
Xfce 4.11.8
bluez 5.26
bluez-utils 5.26

Offline

#2 2014-12-22 16:55:19

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Starting BT mouse automatically ?

You can use systemd to run a command on boot. (https://wiki.archlinux.org/index.php/systemd)

You can also run a script when the system resumes by putting it in /etc/pm/sleep.d/ e.g.

#!/bin/sh

if [ "$1" == "resume" ] || [ "$1" == "thaw" ]
then
        sleep 5
        export DISPLAY=:0
        su -c - as_user /path/to/script
fi

Andrew

Offline

#3 2014-12-22 19:57:15

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Starting BT mouse automatically ?

I had a Genius's BT mouse and always it took about 1 minute to hook to bluetooth to connect. Moving the mouse should re-initiate the connection.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB