Difference between pages "Package:Smdev" and "Template:File"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
{{Ebuild
<includeonly><div style="margin-bottom: 0.3em; padding: 3px; border: none;"><tt>{{#if:{{{name|}}}|'''{{{name|}}}'''{{#set:Mentions file={{#explode:{{{name}}}|/|-1}}}}}}</tt><span style="color: #888;"> {{#if:{{{lang|}}}| ({{{lang}}} source code)}}</span> {{#if:{{{desc|}}}| - {{{desc}}}}}{{#tag:{{#if:{{{lang|}}}|syntaxhighlight|pre}}|
|Summary=<code>smdev</code> is a device manager for the Linux kernel. It manages device nodes in the <code>/dev</code> directory.
{{{body}}}
|CatPkg=sys-fs/smdev
|lang={{{lang}}}}}
|Maintainer=Causes
</div>{{#if:{{{recipe|}}}|{{#subobject:|step={{{step|}}}|In recipe={{{recipe|}}}|action={{{action}}}|filename={{{name}}}|body={{{body}}}}}</includeonly>
|Homepage=http://git.suckless.org/smdev/
}}
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 <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 ===
First you need to disable <code>udev</code> and <code>gudev</code> use flags.
{{file|name=/etc/portage/make.conf|lang=bash|desc=|body=
USE="$USE -udev -gudev"
}}
 
=== Configure Input Devices ===
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=
INPUT_DEVICES="keyboard mouse"
}}
 
=== Rebuild World ===
Now you have to rebuild world for new settings to take effect.
<console>
###i## emerge -uavDN @world
###i## emerge -av --depclean
</console>
 
=== Emerge smdev ===
Now you can emerge <code>smdev</code>.
<console>
###i## emerge -av smdev
</console>
 
=== Configure X.Org ===
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=
Section "InputDevice"
        Identifier "keyboard0"
        Driver "kbd"
        option "AutoServerLayout" "on"
        Option "XkbLayout" "fi"
EndSection
}}
 
{{file|name=/etc/X11/xorg.conf.d/40-mouse.conf|lang=|desc=|body=
Section "InputDevice"
        identifier "Mouse0"
        driver "mouse"
        option "AutoServerLayout" "on"
        option "device" "/dev/input/mice"
EndSection
}}
 
{{file|name=/etc/X11/xorg.conf.d/50-touchpad.conf|lang=|desc=|body=
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.
<console>
###i## rc-update add smdev sysinit
###i## rc-update del udev sysinit
###i## rc-update del udev-mount sysinit
###i## rc-update del udev-postmount boot
</console>
{{EbuildFooter}}

Revision as of 03:39, February 19, 2015