Jump to content

smdev guide (eudev alternative)


causes
 Share

Recommended Posts

Smdev

Smdev is simple device manager. It's alternative to udev, eudev and mdev. I maintain smdev ebuilds on my overlay[1]. I have working keyboard, mouse, touchpad, trackpoint, sound, graphics, wifi, hotplug and module autoloading with the default config and initscript that comes with the ebuild.

 

[1] https://github.com/causes-/causelay/blob/master/sys-fs/smdev/smdev-0.2.2.ebuild

 

Migrate guide from eudev

Here is migrate guide away from eudev.

 

First you need to disable udev and gudev use flags.

/etc/portage/make.conf

USE="$USE -udev -gudev"

 

Then enable keyboard, mouse and synaptics INPUT_DEVICES instead of evdev.

/etc/portage/make.conf

INPUT_DEVICES="keyboard mouse synaptics"

 

Rebuild world.

# emerge -uavDN @world

# emerge -av --depclean

 

Configure X.Org to use keyboard/kbd, mouse and synaptics instead of evdev. Use "InputDevice" instead of "InputClass".

/etc/X11/xorg.conf.d/30-keyboard.conf

Section "InputDevice"
        Identifier "keyboard0"
        Driver "kbd"
        option "AutoServerLayout" "on"
        Option "XkbLayout" "fi"
EndSection
 

/etc/X11/xorg.conf.d/40-touchpad.conf
Section "InputDevice"
        Identifier "touchpad0"
        Driver "synaptics"
        option "AutoServerLayout" "on"

        Option "HorizTwoFingerScroll" "1"
        Option "VertTwoFingerScroll" "1"

        Option "SoftButtonAreas" "65% 0 0 20% 45% 60% 0 20%"
        Option "AreaTopEdge" "20%"
EndSection
 

/etc/X11/xorg.conf.d/50-mouse.conf
Section "InputDevice"
        identifier "Mouse0"
        driver "mouse"
        option "AutoServerLayout" "on"
        option "device" "/dev/input/mice"
EndSection

 

Add smdev to sysinit runlevel.

rc-update del udev sysinit
rc-update del udev-mount sysinit
rc-update del udev-postmount boot
rc-update add smdev sysinit

 

Now you are ready to reboot.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...