-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to test on Gentoo? #47
Comments
Hi @onimatrix81, I haven't tested on Gentoo yet, but if you're not using an initrd, I think the following guide should get you started:
Please let me know if you encounter any problems. Thanks! |
This describes installing libudev-compat twice. Is that intended? |
@jvvv Good catch; I updated the comment. |
Okay. I got some test results here right now if all these logs make sense to you. I quit Xorg and logged my normal user out, then stopped udev. Here's the output of ps afx at that time: http://pastebin.com/jKPZkyRG No errors to be seen anywhere so I started X as my normal user. Heh, at this point mouse does work fine, but it's that it STILL works. If i plug in another usb mouse, it won't work. The vdevd log of this can be found here: https://bpaste.net/show/f6d3861b29a8 (heh, pastebin felt no love for this 2 meg 15k line log :) ) Anyways, feeling pretty good here as the file doesn't contain ERRORs or even WARNs :) |
Thought maybe it was the dbus acting up, so I tried again killing xorg, logging out, killing vdevd, stopping dbus, starting vdevd, starting dbus, starting xorg as normal user, but the results are still the same. |
Yeah, I probably should've also included the info that i use evdev with xorg. Sidenote: I tested with an usb-memorystick and it worked just fine. Wife's digital camera on the other hand did not, but that's another story :). |
Yeah, "it's me again" :). Xorg logs might be also of some importance. Xorg.0.log ( http://pastebin.com/6TtG3ymn ) shows how evdev enables the devices it does enable and how it doesn't recognize the ones plugged in with just vdevd. |
I got me some sort of working openrc init script and I can start vdev instead of udev&udev-trigger at boot. Now I think this mouse/keyboard problem is with the libudev-compat scripts not creating correct files and whatnot into /dev/metadata/udev. This is what i have in /run/udev (link to /dev/metadata/udev) when running vdevd http://pastebin.com/sFDifjet and here's the /run/udev when running udev http://pastebin.com/SZNThQ3V Most of the /run/udev/links/ is missing =). |
@onimatrix81 Wow, your tests are quite extensive! Thank you so much for your diligence!
Does your wife's digital camera usually show up as a removable USB disk, or as an MTP device? I haven't added support for the latter yet, but it's a known issue (#36).
It shouldn't make a difference--it looks like your Xorg is set up to communicate with udev, as per the lines:
Dbus shouldn't be on the critical path for propagating input device events, but you never know, given how many services route messages through it these days...
That is concerning. Thank you for providing the /run/udev listings for both udev and vdev. The code that generates everything in /dev/metadata/udev (which is symlinked to /run/udev) is in One of three things can be happening here: the helpers could be failing to create their symlinks (which can be confirmed by inspecting /dev for missing links), the links file is somehow being destroyed or corrupted, or The third case is easy to verify: if you remove the |
Looking more closely at your logs, it looks like a lot of your installation's helper scripts are simply not running. The action files look like they're installed correctly, but can you verify that all the helpers are installed to
|
Hello again. Got my mouse working allright now! =)) I diddled with this and that ^n and here we are. As a matter of fact I had hacked so much stuff I started over and build me todays git version of vdevd/libudev-compat and it worked pretty much out of the box (edited the config file and added async=false to few of the .act files). During all this, I'd pretty much say "don't" to whoever is going to try to test vdevd on a system started with udev in the init. After creating a openrc init script to replace udev alltogether, things went smooth(er). Anyways, now that I got MOST of stuff working I can start reporting some more "real" bugs I find and less pebkac material =). |
Hi @onimatrix81
Yeah, getting vdev installed is a pretty involved process :/. Udev is pretty deeply ingrained into modern GNU/Linux these days. Soon, I hope to start packaging vdev, which will lower the barrier to entry somewhat. Thanks again for all your hard work! |
Nooo. I knew I put it the wrong way. What I meant is that you don't boot your system with udev, stop it and run vdevd, it's too much hassle. You have to start vdev when you boot, not udev, or it'll get extra complicated. I personally am going to keep testing on and suggest other people with extra time do the same! |
@onimatrix81 Thanks for your support! |
I have an ebuild for Gentoo in my personal repository. https://github.com/grknight/gentoo/tree/master/sys-fs/vdev |
@grknight This is really cool! |
Is there anybody who has got vdevd working on their gentoo systems? At the moment I have got vdevd, hwdb and udevlib-compat compiled fine and now I'm painfully slowly going to test not starting udev in sysinit and putting vdevd there.
I don't use an initrd myself and I was wondering if I could just switch from udev to vdev on the fly and if it is so, how to do that? /etc/init.d/udev stop (stop udev) followed by make -C libudev-compat install (replace the libudev sos in /lib64) and vdevd -c /etc/vdev/vdevd.conf /dev (start vdev) doesn't quite work, but I won't elaborate on the problems if I'm going all wrong about this.
The text was updated successfully, but these errors were encountered: