troubleshooting Question

xorg without udev

Avatar of skullnobrains
skullnobrains asked on
Linux* xorgLinux Distributions
11 Comments1 Solution34 ViewsLast Modified:

i am working on very tiny systems that do not feature udev or hal and trying to get xorg to work

for now, i have a working config based on xfree86-input-keyboard and xfree86-input mouse. and the following config file

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option "XkbLayout" "fr"    # untested + we should be able to use environment

    Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice" # mice event0 event1 & /dev/psaux input/event1
        Option      "ZAxisMapping" "4 5 6 7"    # roller actions

    Section "ServerLayout"
        Identifier   "Layout[all]"
        InputDevice  "Keyboard0" "CoreKeyboard"
        InputDevice  "Mouse0" "CorePointer"
        Option       "AutoAddDevices" "off"

Open in new window

... but i want something more generic than input-mouse and preferably without config files

i have struggled quite a lot with vmmouse and libinput to no avail

here are my issues :

1/ i could not figure out how to reference an inputclass instead of an inputdevice in serverlayout. this is probably documented... somewhere

2/ i am unsure which driver requires udev, hal and the likes. does anyone know ?

3/ i a wondering whether any of the input methods can work without the psmouse kernel module. i can deal with having that module ( either loaded or compiled in ) but it would be convenient to be able to test using a basic generic kernel with no modules.

4/ for some reason, if i do not declare a serverlayout, either xorg refuses to start, or it does start but does not load the input referenced in the packaged config files which all contain "inputclass" stanzas... anyone knows what i am missing ?

5/ using xwayland is an alternative i'd happily consider. does anyone know whether such issues are alleviated in wayland ?

6/ bonus question : do you know a reason to prefer using xorg's vesa driver over the framebuffer and the vesa driver in the kernel ? ( or the contrary )

i am testing in qemu should that matter
the distribution is NONE : this is a linux from scratch. it works like a charm for my current needs but i would like to allow to pack an additional mini-desktop

i am not interested in any comment that instruct me to use udev or hal or dbus or any such tools. NOT using them is a strict requirement here.

thanks a lot for any help you can provide
Duncan Roe
Software Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros