Run a script when bluetooth device is connected

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to run a script automatically right after a certain bluetooth device is connected. To do so, I tried to create a new UDEV rule. The problem I encounter is that my rule doesn't execute upon establishing the connection.
As of now, my rule contains only the MAC address of the device.
ACTION=="add", SUBSYSTEM=="bluetooth", ATTRSaddress=="a0:b1:c2:e3:f4:56", RUN+="/home/myhome/my_script"
How can I find more device details in order to add them to the rule?
linux-mint udev bluetooth
add a comment |Â
up vote
0
down vote
favorite
I'm trying to run a script automatically right after a certain bluetooth device is connected. To do so, I tried to create a new UDEV rule. The problem I encounter is that my rule doesn't execute upon establishing the connection.
As of now, my rule contains only the MAC address of the device.
ACTION=="add", SUBSYSTEM=="bluetooth", ATTRSaddress=="a0:b1:c2:e3:f4:56", RUN+="/home/myhome/my_script"
How can I find more device details in order to add them to the rule?
linux-mint udev bluetooth
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to run a script automatically right after a certain bluetooth device is connected. To do so, I tried to create a new UDEV rule. The problem I encounter is that my rule doesn't execute upon establishing the connection.
As of now, my rule contains only the MAC address of the device.
ACTION=="add", SUBSYSTEM=="bluetooth", ATTRSaddress=="a0:b1:c2:e3:f4:56", RUN+="/home/myhome/my_script"
How can I find more device details in order to add them to the rule?
linux-mint udev bluetooth
I'm trying to run a script automatically right after a certain bluetooth device is connected. To do so, I tried to create a new UDEV rule. The problem I encounter is that my rule doesn't execute upon establishing the connection.
As of now, my rule contains only the MAC address of the device.
ACTION=="add", SUBSYSTEM=="bluetooth", ATTRSaddress=="a0:b1:c2:e3:f4:56", RUN+="/home/myhome/my_script"
How can I find more device details in order to add them to the rule?
linux-mint udev bluetooth
linux-mint udev bluetooth
asked 2 mins ago
slybloty
5763733
5763733
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476094%2frun-a-script-when-bluetooth-device-is-connected%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password