Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Udev rule not loading on boot. #16

Open
jbylicki opened this issue Feb 21, 2019 · 3 comments
Open

Udev rule not loading on boot. #16

jbylicki opened this issue Feb 21, 2019 · 3 comments

Comments

@jbylicki
Copy link

Hey,
I'm using Manjaro with XFCE (installed from manjaro-architect) with R.A.T 3 mouse and everytime on every boot the script starts working only after typing sudo udevadm control --reload and sudo udevadm trigger. From the README I understood that those commands should be a one-time operation, but I did not find any way to avoid executing them on every boot (including making a systemd service and shell script to be launched).

This is the case on at least 3 kernels and about 10-15 versions of Manjaro.

More system info:
CPU: i7-6700k
GPU: Gigabyte GeForce GTX 1060 6GB
RAM: 8GB Patriot Viper DDR4 3000MHz
MoBo: ASRock Fatal1ty Z170 Gaming K4
Keyboard: QPAD MK-50
OS: Dualboot Manjaro+Windows (on 2 separate drives) (please don't kill me)

If you need any more information please let me know.

Thanks in advance!

@jbylicki jbylicki changed the title Script not working on boot. Udev rule not loading on boot. Feb 21, 2019
@tuxkernel
Copy link

Open a terminal and type:

vdir /etc/udev/rules.d/90-ratctl.rules

Maybe is related to the owner (must be root and not your user name). Change it, if is necessary.

If you want run the script on boot, is not necessary create a bash script. Just go to System > Preferences > Startup applications. Add. Then fill this fields (Example):

Name: ratctl
Command: python3 /path/to/ratctl.py
Comment: Tool for configure Mad Catz R.A.T 3 under GNU/Linux.

Tuxkernel...

@MayeulC
Copy link
Owner

MayeulC commented Jun 28, 2019

Well, that is... strange, to say the least.
Those commands are only necessary to avoid rebooting the first time (or maybe even just unplugging & re-plugging the mouse), they shouldn't even be necessary in the first place.

could you paste the output of ls -l /etc/udev.d/ ? Maybe you put them in the wrong place, or with the wrong permissions? Though then it shouldn't work at all 🤔

Maybe just maybe that directory isn't mounted at boot when those rules are checked. Or maybe they aren't present in the initramfs and are not executed later for some reason?
I would need more info on this one, though I am probably not the best person for providing an answer.

Try to first have a look at the udev log. If really needed, you could try to enable debug logging, but I am not sure that will be easy to read, nor that it will be helpful.

@tuxkernel
Copy link

Exactly @MayeulC , that's very strange. @czarnobylu try a new reinstallation, checking paths and upload your outputs. Tell us if was successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants