Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Package:Smdev"

From Funtoo
Jump to navigation Jump to search
(Created page with "{{Ebuild |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 |Maintainer=Ari...")
 
Line 9: Line 9:
== Install ==
== Install ==
=== Disable udev USE Flags ===
=== Disable udev USE Flags ===
First you need to disable udev and gudev use flags.
First you need to disable <code>udev</code> and <code>gudev</code> use flags.
/etc/portage/make.conf
{{file|name=/etc/portage/make.conf|lang=bash|desc=|body=
USE="$USE -udev -gudev"
USE="$USE -udev -gudev"
}}


=== Configure Input Devices ===
=== Configure Input Devices ===
Then enable keyboard and mouse drivers instead of evdev.
Then enable keyboard and mouse drivers instead of evdev. 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 44: Line 45:
}}
}}


{{file|name=/etc/X11/xorg.conf.d/40-touchpad.conf|lang=|desc=|body=
{{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"
Section "InputDevice"
         Identifier "touchpad0"
         Identifier "touchpad0"
Line 55: Line 65:
         Option "SoftButtonAreas" "65% 0 0 20% 45% 60% 0 20%"
         Option "SoftButtonAreas" "65% 0 0 20% 45% 60% 0 20%"
         Option "AreaTopEdge" "20%"
         Option "AreaTopEdge" "20%"
EndSection
}}
{{file|name=/etc/X11/xorg.conf.d/50-mouse.conf|lang=|desc=|body=
Section "InputDevice"
        identifier "Mouse0"
        driver "mouse"
        option "AutoServerLayout" "on"
        option "device" "/dev/input/mice"
EndSection
EndSection
}}
}}

Revision as of 16:44, October 5, 2014

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's alternative to udev, eudev and mdev.

Install

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.

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

Emerge smdev

Now you can emerge smdev.

root # emerge -av smdev

Configure X.Org

Configure X.Org to use keyboard/kbd 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.

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