Difference between pages "Package:Smdev" and "Test"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
{{Ebuild
{{#ask: [[Category:News]] [[Publication Status::Published]]
|Summary=<code>smdev</code> is a device manager for the Linux kernel. It manages device nodes in the <code>/dev</code> directory.
| order=descending
|CatPkg=sys-fs/smdev
| sort=Publication Date
|Maintainer=Causes
| format=feed
|Homepage=http://git.suckless.org/smdev/
| title=Funtoo Linux News
| description=Latest Funtoo Linux news
|type=atom
| limit=20
}}
}}
Smdev is simple device manager. It handles device hotplug, module autoloading and managing device nodes. It's alternative to udev, eudev and mdev.


== Install ==
{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='amd64-bulldozer']/@builds}}
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.
;Builds: {{#external_value:builds}}


=== Disable udev USE Flags ===
asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf
First you need to disable <code>udev</code> and <code>gudev</code> use flags.
<div style="align: center;">
{{file|name=/etc/portage/make.conf|lang=bash|desc=|body=
[[{{#show: Organization:Brownrice Internet| ?Logo|link=none}}|350px|class=img-orglogo|link=Organization:Brownrice Internet]]<br/>
USE="$USE -udev -gudev"
[[Organization:Brownrice Internet|Learn about Funtoo-friendly organization: Brownrice Internet]]</div>
}}
asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf
{{fullurl:News:The Many Builds of Funtoo Linux}}
{{#widget:AddThis}}


=== Configure Input Devices ===
I like the {{f|/etc/make.conf}} file, which can also be referred to as {{f|/etc/portage/make.conf}}. It is a groovy file. Another cool file is {{f|/etc/fstab}}.
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 ===
=== make.conf mentions ===
Now you have to rebuild world for new settings to take effect.
<console>
###i## emerge -uavDN @world
###i## emerge -av --depclean
</console>


=== Emerge smdev ===
{{#ask: [[Mentions file::make.conf]]
Now you can emerge <code>smdev</code>.
| format=category
<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=
{{console|body=
Section "InputDevice"
# ##i##bluetoothctl
        identifier "Mouse0"
[##g##NEW##!g##] Controller 00:02:72:C9:62:65 antec [default]
        driver "mouse"
##bl##[bluetooth]##!bl###power on
        option "AutoServerLayout" "on"
Changing power on succeeded
        option "device" "/dev/input/mice"
##bl##[bluetooth]##!bl### ##i##agent on
EndSection
Agent registered
##bl##[bluetooth]##!bl### ##i##scan on
Discovery started
##bl##[bluetooth]##!bl### ##i##devices
Device 00:1F:20:3D:1E:75 Logitech K760
##bl##[bluetooth]##!bl### ##i##pair 00:1F:20:3D:1E:75
Attempting to pair with 00:1F:20:3D:1E:75
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: yes
##r##[agent]##!r## Passkey: 454358
##r##[agent]##!r## Passkey: ##i##4##!i##54358
##r##[agent]##!r## Passkey: ##i##45##!i##4358
##r##[agent]##!r## Passkey: ##i##454##!i##358
##r##[agent]##!r## Passkey: ##i##4543##!i##58
##r##[agent]##!r## Passkey: ##i##45435##!i##8
##r##[agent]##!r## Passkey: ##i##454358##!i##
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Paired: yes
Pairing successful
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: no
##bl##[bluetooth]##!bl### ##i##connect 00:1F:20:3D:1E:75
Attempting to connect to 00:1F:20:3D:1E:75
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: yes
Connection successful
##bl##[bluetooth]##!bl### ##i##quit
[##r##DEL##!r##] Controller 00:02:72:C9:62:65 antec [default]
#
}}
}}
{{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 23:59, February 8, 2015

{{#ask: Publication Status::Published | order=descending | sort=Publication Date | format=feed | title=Funtoo Linux News | description=Latest Funtoo Linux news |type=atom | limit=20 }}

Exception parsing XML: String could not be parsed as XML.

Builds

asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf

[[{{#show: Organization:Brownrice Internet| ?Logo|link=none}}|350px|class=img-orglogo|link=Organization:Brownrice Internet]]

Learn about Funtoo-friendly organization: Brownrice Internet

asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf https://www.funtoo.org/News:The_Many_Builds_of_Funtoo_Linux

I like the /etc/make.conf file, which can also be referred to as /etc/portage/make.conf. It is a groovy file. Another cool file is /etc/fstab.

make.conf mentions

{{#ask: Mentions file::make.conf | format=category }}

root # bluetoothctl 
[NEW] Controller 00:02:72:C9:62:65 antec [default]
root ##bl##[bluetooth]##!bl###power on
Changing power on succeeded
root ##bl##[bluetooth]##!bl### agent on
Agent registered
root ##bl##[bluetooth]##!bl### scan on
Discovery started
root ##bl##[bluetooth]##!bl### devices
Device 00:1F:20:3D:1E:75 Logitech K760
root ##bl##[bluetooth]##!bl### pair 00:1F:20:3D:1E:75
Attempting to pair with 00:1F:20:3D:1E:75
[CHG] Device 00:1F:20:3D:1E:75 Connected: yes
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
[CHG] Device 00:1F:20:3D:1E:75 Paired: yes
Pairing successful
[CHG] Device 00:1F:20:3D:1E:75 Connected: no
root ##bl##[bluetooth]##!bl### connect 00:1F:20:3D:1E:75
Attempting to connect to 00:1F:20:3D:1E:75
[CHG] Device 00:1F:20:3D:1E:75 Connected: yes
Connection successful
root ##bl##[bluetooth]##!bl### quit
[DEL] Controller 00:02:72:C9:62:65 antec [default]
root #