View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1537
|
Posted: Wed Dec 04, 2024 12:05 pm Post subject: mouse and keyboard not working with mdev |
|
|
I have siwtched from udev to mdev on my virtual machine(on kvm, virtio graphics card)
I then installed xorg-driver and dwm,:
Code: | [ebuild R ] x11-wm/dwm-6.5::gentoo USE="-savedconfig -xinerama" 0 KiB
[ebuild R ] x11-base/xorg-drivers-21.1-r2::gentoo INPUT_DEVICES="synaptics vmmouse -elographics -evdev -joystick -libinput -void -wacom*" VIDEO_CARDS="-amdgpu -ast -dummy -fbdev (-freedreno) (-geode) -i915 -intel -mga -nouveau (-nvidia) (-omap) -qxl -r128 -radeon -radeonsi -siliconmotion (-tegra) (-vc4) -vesa (-via) (-virtualbox) -vmware" 0 KiB
[ebuild R ] x11-base/xorg-server-21.1.14:0/21.1.14::gentoo USE="minimal xorg -debug -elogind (-selinux) -suid (-systemd) -test -udev -unwind -xcsecurity -xephyr -xnest -xvfb" 0 KiB |
additionally I'm using a startup script I had written:
Code: | #!/bin/sh
mount /dev/vda1 /
mount -t proc proc /proc
mount -t sysfs sysfs /sys
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
mount -o remount,rw,noatime /
mkdir /dev/pts
ln -sf /proc/self/fd /dev/fd
mount -t devpts /dev/pts
ifconfig eth0 192.168.122.15/24
route add default gw 192.168.122.1
/etc/startup/ssh
/etc/startup/env
export alias reboot="busybox reboot -f"
exec /bin/busybox init |
when i started dwm using startx /usr/bin/dwm I have no mouse and no keyboard, any help would be appreciated.
thanks |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1734 Location: South America
|
Posted: Wed Dec 04, 2024 12:56 pm Post subject: |
|
|
Adel Ahmed wrote: | Code: | [ebuild R ] x11-base/xorg-server-21.1.14:0/21.1.14::gentoo USE="minimal xorg -debug -elogind (-selinux) -suid (-systemd) -test -udev -unwind -xcsecurity -xephyr -xnest -xvfb" 0 KiB |
|
Xorg uses udev for autodetecting the input devices and drivers that it should use. Since you are using mdev, you can't use this feature, so you must explicitly tell all that to Xorg with an xorg.conf file.
See man xorg.conf. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1537
|
Posted: Wed Dec 04, 2024 4:10 pm Post subject: |
|
|
I'm drawing a complete blank on how this should be done
I created thsi config file:
Code: | Section "InputDevice"
Identifier "Keyboard0"
Driver "inputtest"
Option "Device" "/dev/input/event1"
EndSection
Section "InputDevice"
Identifier "mouse"
Driver "synaptics"
Option "Protocol" "auto"
Option "Device" "/dev/input/event2"
Option "ZAxisMapping" "4 5 6 7"
EndSection
|
xorg log:
[ 12.382] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 12.382] (==) |-->Input Device "Keyboard0"
[ 12.382] (==) |-->Input Device "Keyboard0"
[ 12.382] (==) No Layout section. Using the first mouse device.
[ 12.382] (==) No Layout section. Using the first keyboard device.
Code: |
then it seems no driver can be loaded:
[code][ 12.405] (II) LoadModule: "evdev"
[ 12.405] (WW) Warning, couldn't open module evdev
[ 12.405] (EE) Failed to load module "evdev" (module does not exist, 0)
[ 12.405] (EE) No input driver matching `evdev'
[ 12.405] (II) Falling back to input driver `libinput'
[ 12.405] (II) LoadModule: "libinput"
[ 12.405] (WW) Warning, couldn't open module libinput
[ 12.405] (EE) Failed to load module "libinput" (module does not exist, 0)
[ 12.405] (II) LoadModule: "kbd"
[ 12.405] (WW) Warning, couldn't open module kbd
[ 12.405] (EE) Failed to load module "kbd" (module does not exist, 0)
[ 12.405] (EE) No input driver matching `kbd'
[ 12.405] (II) Falling back to input driver `libinput'
[ 12.405] (II) LoadModule: "libinput"
[ 12.405] (WW) Warning, couldn't open module libinput
[ 12.405] (EE) Failed to load module "libinput" (module does not exist, 0)[/code]
I cannot use libinput or evdev, as they require the udev flag in xorg-server |
|
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1734 Location: South America
|
Posted: Wed Dec 04, 2024 4:42 pm Post subject: |
|
|
What input devices does KVM emulate and what should the corresponding X11 input drivers be? I should have made that my first question.
If you want to stay in a supported configuration, and the correct drivers would be either evdev or libinput (likely), then you are out of luck: both require libudev, so you wouldn't be able to have both mdev and a GUI. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1537
|
Posted: Wed Dec 04, 2024 6:04 pm Post subject: |
|
|
keyboard is a ps2 keyboard
ps2 mouse & evtouch usb graphics tablet
I do not mind not being in a supported configuration |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1734 Location: South America
|
Posted: Wed Dec 04, 2024 7:51 pm Post subject: |
|
|
My preferred unsupported configuration would probably be installing libudev-zero, which is not in Gentoo's repository, reinstalling x11-base/xorg-server-21.1.14 with the udev USE flag set (even if you don't actually have udev), setting INPUT_DEVICES=evdev in /etc/portage/make.conf, and reinstalling affected packages with --changed-use. Which will include x11-base/xorg-drivers. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
|