Difference between revisions of "Package:Smdev"

 
Line 2: Line 2:
 
|Summary=<code>smdev</code> is a device manager for the Linux kernel. It manages device nodes in the <code>/dev</code> directory.
 
|Summary=<code>smdev</code> is a device manager for the Linux kernel. It manages device nodes in the <code>/dev</code> directory.
 
|CatPkg=sys-fs/smdev
 
|CatPkg=sys-fs/smdev
|Maintainer=Ari Malinen
+
|Maintainer=Causes
 
|Homepage=http://git.suckless.org/smdev/
 
|Homepage=http://git.suckless.org/smdev/
 
}}
 
}}
Smdev is simple device manager. It's alternative to udev, eudev and mdev.
+
Smdev is simple device manager. It handles device hotplug, module autoloading and managing device nodes. It's alternative to udev, eudev and mdev.
  
 
== Install ==
 
== Install ==
 +
It is recommended to make LiveCD or LiveUSB before rebooting first time with <code>smdev</code>. It is possible that your system goes into unbootable state if something goes wrong. If you wish to remove eudev you should do it after you have made sure everything is working with smdev.
 +
 
=== Disable udev USE Flags ===
 
=== Disable udev USE Flags ===
 
First you need to disable <code>udev</code> and <code>gudev</code> use flags.
 
First you need to disable <code>udev</code> and <code>gudev</code> use flags.
Line 15: Line 17:
  
 
=== Configure Input Devices ===
 
=== Configure Input Devices ===
Then enable keyboard and mouse drivers instead of evdev. For touchpad you can use <code>synaptics</code> driver.
+
Then enable <code>keyboard</code> and <code>mouse</code> drivers instead of <code>evdev</code>. For touchpad you can use <code>synaptics</code> driver.
 
{{file|name=/etc/portage/make.conf|lang=bash|desc=|body=
 
{{file|name=/etc/portage/make.conf|lang=bash|desc=|body=
 
INPUT_DEVICES="keyboard mouse"
 
INPUT_DEVICES="keyboard mouse"
Line 34: Line 36:
  
 
=== Configure X.Org ===
 
=== Configure X.Org ===
Configure X.Org to use keyboard/kbd and mouse instead of evdev. Use "InputDevice" instead of "InputClass".
+
Configure X.Org to use <code>kbd</code> (keyboard) and <code>mouse</code> instead of <code>evdev</code>. Use <code>"InputDevice"</code> instead of <code>"InputClass"</code>.
  
 
{{file|name=/etc/X11/xorg.conf.d/30-keyboard.conf|lang=|desc=|body=
 
{{file|name=/etc/X11/xorg.conf.d/30-keyboard.conf|lang=|desc=|body=
Line 69: Line 71:
  
 
=== Add smdev to sysinit runlevel ===
 
=== Add smdev to sysinit runlevel ===
Now you can add smdev to sysinit runlevel.
+
Now you can add smdev to sysinit runlevel. You also need to remove eudev entries from all runlevels.
 
<console>
 
<console>
 +
###i## rc-update add smdev sysinit
 
###i## rc-update del udev sysinit
 
###i## rc-update del udev sysinit
 
###i## rc-update del udev-mount sysinit
 
###i## rc-update del udev-mount sysinit
 
###i## rc-update del udev-postmount boot
 
###i## rc-update del udev-postmount boot
###i## rc-update add smdev sysinit
 
 
</console>
 
</console>
 
{{EbuildFooter}}
 
{{EbuildFooter}}

Latest revision as of 16:49, February 8, 2015

sys-fs/smdev


Current Maintainer(s):Ari Malinen
Source Repository:Repository:Causes Overlay

http://git.suckless.org/smdev/

Summary: smdev is a device manager for the Linux kernel. It manages device nodes in the /dev directory.


News

Drobbins

Perl Updates

Gentoo has bumped perl from 5.20 to 5.22. Be sure to run perl-cleaner --all after the upgrade.
2015-07-25 by Drobbins
Drobbins

ARM Rebuild

ARM systems will use new stage3's that are not compatible with earlier versions.
2015-06-27 by Drobbins
Drobbins

ABI X86 64 and 32

Funtoo Linux has new 32-bit compatibility libraries inherited from Gentoo. Learn about them here.
2015-06-18 by Drobbins
More...

Smdev

Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Smdev is simple device manager. It handles device hotplug, module autoloading and managing device nodes. It's alternative to udev, eudev and mdev.

Install

It is recommended to make LiveCD or LiveUSB before rebooting first time with smdev. It is possible that your system goes into unbootable state if something goes wrong. If you wish to remove eudev you should do it after you have made sure everything is working with smdev.

Disable udev USE Flags

First you need to disable udev and gudev use flags.

/etc/portage/make.conf (bash source code)
USE="$USE -udev -gudev"

Configure Input Devices

Then enable keyboard and mouse drivers instead of evdev. For touchpad you can use synaptics driver.

/etc/portage/make.conf (bash source code)
INPUT_DEVICES="keyboard mouse"

Rebuild World

Now you have to rebuild world for new settings to take effect.

# emerge -uavDN @world
# emerge -av --depclean

Emerge smdev

Now you can emerge smdev.

# emerge -av smdev

Configure X.Org

Configure X.Org to use kbd (keyboard) and mouse 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-mouse.conf
Section "InputDevice"
        identifier "Mouse0"
        driver "mouse"
        option "AutoServerLayout" "on"
        option "device" "/dev/input/mice"
EndSection
/etc/X11/xorg.conf.d/50-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

Add smdev to sysinit runlevel

Now you can add smdev to sysinit runlevel. You also need to remove eudev entries from all runlevels.

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