Can't get udev rule to workUdev not running scriptsudev rule not workingLogitech MX800 not working properly in 14.04Simple udev rule does not workSYMLINK in udev rule

Ideas for medieval currency

Pay everything now or gradually?

Is there any possible way to automatically update the locators when developer changes the locators

Does Star Trek provide an answer for the size and shape of the universe?

Could a chess engine do retro analysis?

GIMP using command line

Exactly what does "diatonic" mean?

What is the point of teaching Coding and robotics to kids as young as 6 years old?

If the second hand goes backwards, starting from 12:00, how long does it take to meet with the minute hand?

Why the highlighted outline in animated cartoons?

Which titled players (IM or GM) have also been successful politicians?

Sold item on eBay, buyer wants it to be delivered to another country, and pay by bank transfer

What is the difference between "more" and "less" commands?

How much time does it take for a complete Earth revolution around the Sun

In academic writing why do some recommend to avoid "announcing" the topic?

How should "murciélago" be pronounced?

Find the determinant of A

What are the possible punishments for an impeached USA president?

How do you say "to play Devil's advocate" in German?

Writing style in academic English

how to write a condition for all elements of a list

Is Communism intrinsically Authoritarian?

C++ namespace collision in copy constructor

What can I do at Hong Kong Airport for 13 hours?



Can't get udev rule to work


Udev not running scriptsudev rule not workingLogitech MX800 not working properly in 14.04Simple udev rule does not workSYMLINK in udev rule






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1


















I'm trying to run a script when my mouse connects.



#!/bin/sh

echo New mouse speed applied
id=17
speed=1
xinput set-prop $id "Coordinate Transformation Matrix" $speed, 0, 0, 0, $speed, 0, 0, 0, 1
firefox #Starting this so I'll see instantly if it worked


The udev rule:



ACTION=="add", SUBSYSTEMS=="usb", ATTRSidProduct=="0405", ATTRSidVendor=="145f", RUN+="/home/matthes/.mousespeed.sh"


The script works, I tested it manually.



$ udevadm info -a -p /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:145F:0405.001A/input/input43/mouse4

looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-3':
KERNELS=="1-3"
SUBSYSTEMS=="usb"
[...]
ATTRSidProduct=="0405"
ATTRSidVendor=="145f"
[...]
ATTRSproduct=="Trust Gaming Mouse"
[...]


idProduct and idVendor are correct too, I can't figure out why it won't work. Thanks for any help!










share|improve this question




















  • 1





    Possibly for the same reason as here Udev not running scripts i.e. xinput can't connect to a running xserver

    – steeldriver
    Sep 20 at 14:50











  • @steeldriver nope, not working sadly. I think it should at least start firefox, right?

    – matthesinator
    Sep 20 at 14:55











  • How should it know which xserver / display to start firefox on?

    – steeldriver
    Sep 20 at 14:59











  • I'll take that as a no. I did it as in your link, added both exports, but that didn't help

    – matthesinator
    Sep 20 at 15:00











  • The correct way is to use xorg.conf, could you add prop listing of that device from xinput.

    – user.dz
    Oct 13 at 23:06

















1


















I'm trying to run a script when my mouse connects.



#!/bin/sh

echo New mouse speed applied
id=17
speed=1
xinput set-prop $id "Coordinate Transformation Matrix" $speed, 0, 0, 0, $speed, 0, 0, 0, 1
firefox #Starting this so I'll see instantly if it worked


The udev rule:



ACTION=="add", SUBSYSTEMS=="usb", ATTRSidProduct=="0405", ATTRSidVendor=="145f", RUN+="/home/matthes/.mousespeed.sh"


The script works, I tested it manually.



$ udevadm info -a -p /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:145F:0405.001A/input/input43/mouse4

looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-3':
KERNELS=="1-3"
SUBSYSTEMS=="usb"
[...]
ATTRSidProduct=="0405"
ATTRSidVendor=="145f"
[...]
ATTRSproduct=="Trust Gaming Mouse"
[...]


idProduct and idVendor are correct too, I can't figure out why it won't work. Thanks for any help!










share|improve this question




















  • 1





    Possibly for the same reason as here Udev not running scripts i.e. xinput can't connect to a running xserver

    – steeldriver
    Sep 20 at 14:50











  • @steeldriver nope, not working sadly. I think it should at least start firefox, right?

    – matthesinator
    Sep 20 at 14:55











  • How should it know which xserver / display to start firefox on?

    – steeldriver
    Sep 20 at 14:59











  • I'll take that as a no. I did it as in your link, added both exports, but that didn't help

    – matthesinator
    Sep 20 at 15:00











  • The correct way is to use xorg.conf, could you add prop listing of that device from xinput.

    – user.dz
    Oct 13 at 23:06













1













1









1


1






I'm trying to run a script when my mouse connects.



#!/bin/sh

echo New mouse speed applied
id=17
speed=1
xinput set-prop $id "Coordinate Transformation Matrix" $speed, 0, 0, 0, $speed, 0, 0, 0, 1
firefox #Starting this so I'll see instantly if it worked


The udev rule:



ACTION=="add", SUBSYSTEMS=="usb", ATTRSidProduct=="0405", ATTRSidVendor=="145f", RUN+="/home/matthes/.mousespeed.sh"


The script works, I tested it manually.



$ udevadm info -a -p /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:145F:0405.001A/input/input43/mouse4

looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-3':
KERNELS=="1-3"
SUBSYSTEMS=="usb"
[...]
ATTRSidProduct=="0405"
ATTRSidVendor=="145f"
[...]
ATTRSproduct=="Trust Gaming Mouse"
[...]


idProduct and idVendor are correct too, I can't figure out why it won't work. Thanks for any help!










share|improve this question














I'm trying to run a script when my mouse connects.



#!/bin/sh

echo New mouse speed applied
id=17
speed=1
xinput set-prop $id "Coordinate Transformation Matrix" $speed, 0, 0, 0, $speed, 0, 0, 0, 1
firefox #Starting this so I'll see instantly if it worked


The udev rule:



ACTION=="add", SUBSYSTEMS=="usb", ATTRSidProduct=="0405", ATTRSidVendor=="145f", RUN+="/home/matthes/.mousespeed.sh"


The script works, I tested it manually.



$ udevadm info -a -p /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:145F:0405.001A/input/input43/mouse4

looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-3':
KERNELS=="1-3"
SUBSYSTEMS=="usb"
[...]
ATTRSidProduct=="0405"
ATTRSidVendor=="145f"
[...]
ATTRSproduct=="Trust Gaming Mouse"
[...]


idProduct and idVendor are correct too, I can't figure out why it won't work. Thanks for any help!







scripts mouse udev






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 20 at 14:17









matthesinatormatthesinator

111 bronze badge




111 bronze badge










  • 1





    Possibly for the same reason as here Udev not running scripts i.e. xinput can't connect to a running xserver

    – steeldriver
    Sep 20 at 14:50











  • @steeldriver nope, not working sadly. I think it should at least start firefox, right?

    – matthesinator
    Sep 20 at 14:55











  • How should it know which xserver / display to start firefox on?

    – steeldriver
    Sep 20 at 14:59











  • I'll take that as a no. I did it as in your link, added both exports, but that didn't help

    – matthesinator
    Sep 20 at 15:00











  • The correct way is to use xorg.conf, could you add prop listing of that device from xinput.

    – user.dz
    Oct 13 at 23:06












  • 1





    Possibly for the same reason as here Udev not running scripts i.e. xinput can't connect to a running xserver

    – steeldriver
    Sep 20 at 14:50











  • @steeldriver nope, not working sadly. I think it should at least start firefox, right?

    – matthesinator
    Sep 20 at 14:55











  • How should it know which xserver / display to start firefox on?

    – steeldriver
    Sep 20 at 14:59











  • I'll take that as a no. I did it as in your link, added both exports, but that didn't help

    – matthesinator
    Sep 20 at 15:00











  • The correct way is to use xorg.conf, could you add prop listing of that device from xinput.

    – user.dz
    Oct 13 at 23:06







1




1





Possibly for the same reason as here Udev not running scripts i.e. xinput can't connect to a running xserver

– steeldriver
Sep 20 at 14:50





Possibly for the same reason as here Udev not running scripts i.e. xinput can't connect to a running xserver

– steeldriver
Sep 20 at 14:50













@steeldriver nope, not working sadly. I think it should at least start firefox, right?

– matthesinator
Sep 20 at 14:55





@steeldriver nope, not working sadly. I think it should at least start firefox, right?

– matthesinator
Sep 20 at 14:55













How should it know which xserver / display to start firefox on?

– steeldriver
Sep 20 at 14:59





How should it know which xserver / display to start firefox on?

– steeldriver
Sep 20 at 14:59













I'll take that as a no. I did it as in your link, added both exports, but that didn't help

– matthesinator
Sep 20 at 15:00





I'll take that as a no. I did it as in your link, added both exports, but that didn't help

– matthesinator
Sep 20 at 15:00













The correct way is to use xorg.conf, could you add prop listing of that device from xinput.

– user.dz
Oct 13 at 23:06





The correct way is to use xorg.conf, could you add prop listing of that device from xinput.

– user.dz
Oct 13 at 23:06










0






active

oldest

votes













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175497%2fcant-get-udev-rule-to-work%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175497%2fcant-get-udev-rule-to-work%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?