https://wiki.archlinux.org/api.php?action=feedcontributions&user=Limoto&feedformat=atomArchWiki - User contributions [en]2024-03-29T09:40:43ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Bluetooth_(%C4%8Ce%C5%A1tina)&diff=132776Bluetooth (Čeština)2011-03-05T12:44:59Z<p>Limoto: /* kbluetooth -> bluedevil */</p>
<hr />
<div>[[Category:Česky]]<br />
[[Category:HOWTOs (Česky)]]<br />
[[Category:Networking (Česky)]]<br />
{{i18n|Bluetooth}}<br />
{{Article summary start|Shrnutí}}<br />
{{Article summary text|Článek pokrývá instalaci a použití bluetooth na ArchLinuxu. Jedná se o překlad z anglické verze toho článku.}}<br />
{{Article summary end}}<br />
<br />
== Instalace ==<br />
Pro použití bluetooth musíte mít nainstalován balíček [http://www.bluez.org bluez]:<br />
# pacman -S bluez<br />
<br />
Jakmile je balík bluez nainstalován, musí se spustit bluetooth a dbus daemon:<br />
# /etc/rc.d/dbus start<br />
# /etc/rc.d/bluetooth start<br />
<br />
Dbus daemon se používá ke čtení nastavení a pro párování zařízení. Bluetooth daemon je potřeba pro komunikaci přes protokol Bluetooth. Je důležité, aby byl dbus spušten '''dříve''' než bluetooth. Jesliže dbus neběží a bluetooth daemon byl spuštěn, nastartujte znovu dbus a bluetooth daemona restartujte:<br />
<br />
# /etc/rc.d/bluetooth restart<br />
<br />
Pokud chcete spouštět bluetooth automaticky při startu počítače, přidejte bluetooth mezi pole daemonů v souboru [[Rc.conf (Česky)]] (daemon musí být umístěn až za dbus):<br />
DAEMONS=(... bluetooth)<br />
<br />
== Grafické nadstavby ==<br />
<br />
Následující balíčky vám umožní využívat grafické prostředí k nastavování Bluetooth.<br />
<br />
=== Blueman ===<br />
<br />
{{Package Official|Blueman}} je program pro správu Bluetooth. Je naprogramován v GTK a používá se hlavně v [[GNOME]] nebo [[Xfce]]. Blueman nainstalujete pomocí správce balíčků takto:<br />
# pacman -S blueman<br />
<br />
Ujistěte se, že ''bluetooth'' daemon běží a spusťte příkaz ''blueman-applet''. Pokud chcete, aby se applet spouštěl automaticky při přihlášení přidejte ''blueman-applet'' do ''System -> Preferences -> Startup Applications'' (GNOME) nebo v ''Xfce Menu -> Settings -> Session and Startup'' (Xfce).<br />
<br />
Pozn.: Pokud nepoužíváte nautilus, může vám být užitečné toto:<br />
#!/bin/bash<br />
fusermount -u ~/bluetooth<br />
obexfs -b $1 ~/bluetooth<br />
thunar ~/bluetooth<br />
<br />
bez fusermount -u /mountpoint pravděpodobně skončí s chybovou hláškou způsobenou nesprávným odpojením fuse filesystému.<br />
<br />
Následně budete muset přesunout skript (obex_thunar.sh) do /usr/bin, a potom spustit:<br />
$ chmod +x /usr/bin/obex_thunar.sh<br />
<br />
Jako poslední věc byste měli změnit řádek v Local Services > Transfer > Advanced to obex_thunar.sh %d<br />
<br />
=== gnome-bluetooth ===<br />
<br />
{{Package Official|gnome-bluetooth}} je odnož starého ''bluez-gnome'' a je zameřeno na integraci s desktopovým prostředím GNOME. Nejdříve nainstalujte gnome-bluetooth:<br />
# pacman -S gnome-bluetooth gnome-user-share<br />
<br />
Spusťte příkaz ''bluetooth-applet''. Měla by se vám objevit malá ikonka bluetooth v tray. Kliknutím pravým tlačítkem na ikonu je možné přidávat a spravovat nová zařízení nebo posílat soubory. Pokud chcete, aby se applet spouštěl po přihlášení, přidejte ho do ''System -> Preferences -> Startup Applications''.<br />
<br />
=== bluedevil ===<br />
<br />
Hlavním nástorojem pro správu Bluetooth v KDE4 je program bluedevil. Pro instalaci spusťte:<br />
# pacman -S bluedevil<br />
Ujistěte se, že vám v pozadí běží daemon pro práci s bluetooth. Po spuštění programu by se měla objevit ikona v Dolphinu a v tray. Odteď pomocí ní můžete konfigurovat bluedevil a spravovat bluetooth zářízení. To můžete také z nastavení systému v KDE.<br />
<br />
=== Fluxbox, openbox a další ===<br />
Samozřejmě, že můžete používat předchozí aplikace, i když jako svoje grafické nepoužíváte GNOME, Xfce nebo KDE.<br />
<br />
<br />
Tento seznam by vám měl pomoci porozumět tomu, co jaká aplikace dělá:<br />
* bluetooth-applet -- tray ikona s možností nastavení bluetooth, párováním nových zařízení a správou zařízení zpárovaných<br />
* /usr/lib/gnome-user-share/gnome-user-share -- musí běžet pokud chcete příjímat soubory přes obexBT ze spárovaného zařízení<br />
<br />
pokud se v průběhu přenosu ukazuje chyba nebo pokud se žádný soubor nakonec nepřenese, přidejte následující kus kódu do souboru<br />
<br />
<tt>/etc/dbus-1/system.d/bluetooth.conf</tt><br />
<br />
<policy user="vase_uzivatelske_id"><br />
<allow own="org.bluez"/><br />
<allow send_destination="org.bluez"/><br />
<allow send_interface="org.bluez.Agent"/><br />
</policy><br />
<br />
<br />
* bluetooth-wizard -- užívá se pro párování nových zařízení<br />
* bluetooth-properties -- je přístupný i přes ikonu bluetooth-appletu<br />
* gnome-file-share-properties -- nastavení oprávnění pro příjímání souborů přes bluetooth<br />
* bluez-sendto -- grafické rozhraní pro posílání souborů vzdáleným bluetooth zařízením<br />
<br />
== Manuální konfigurace ==<br />
<br />
Pro manuální konfiguraci bluetooth (<tt>bluez</tt>), budete potřebovat upravit konfigurační soubory v <tt>/etc/bluetooth</tt>. Jedná se o soubory:<br />
audio.conf<br />
input.conf<br />
main.conf<br />
network.conf<br />
rfcomm.conf<br />
<br />
Defaultní konfigurace by měla fungovat bez problémů. Většina výše zmíněných konfiguračních souborů je velice dobře zdokumentovaná, proto by poupravení parametrů neměl být problém. Hlavní nastavení bluetooth je v souboru <tt>main.conf</tt> - tím začněte.<br />
<br />
<br />
== Párování ==<br />
{{Note | Toto řešení nemusí být úplně to nejlepší. Vřelé díky Gattschardo za jeho řešení.''}}<br />
<br />
Většina bluetooth zařízení vyžaduje [http://en.wikipedia.org/wiki/Bluetooth#Pairing párování].<br />
Způsob párování počítače s mobilním telefonem:<br />
* Počítač pošle telefonu žádost o připojení.<br />
* Pin/Klíč, který určí počítač, se musí zadat na telefonu (telefon si ho sám vyžádá)<br />
* Stejný klíč musí být znovu zadán na počítači<br />
<br />
Pro skenování okolních zařízení proveďte příkaz<br />
$ hcitool scan<br />
<br />
Pro spárování zařízení bez použití grafického rozhraní balíku gnome-bluez budete muset použít nástroj zvaný ''bluez-simple-agent'', který je součástí balíku bluez. Dále budete potřebovat několik souvisejících python balíčků - {{Package Official|dbus-python}} a {{Package Official|pygobject}}. Pokud máte vše připraveno, můžete spustit program pro párování (musí být spušten pod uživatelem root).<br />
<br />
$ bluez-simple-agent<br />
<br />
Pokud se vše zdařilo, měla by se vám v konzoli zobrazit hlaška "Agent registered". Následně můžete začít párování ze svého mobilního telefonu. Skript se vás v konzoli zeptá na tzv. passcode, vložte ho a potvrďte enterem - voalá, povedlo se. Teď už můžete ukončit agenta použitím klávesy ''Ctrl+C'' (^C-c). Agenta jsme použili pouze pro párování, nebudeme ho potřebovat při každém připojení zařízení. Pokud váš telefon nemuže naleznout počítač, pokračujte do [[Bluetooth (Česky)#Nelze_nal.C3.A9zt_po.C4.8D.C3.ADta.C4.8D|řešení problémů]].<br />
<br />
Pro příklad spárování přejděte do sekce ''příklady''.<br />
<br />
== Použití Obex pro posílání a příjímání souborů ==<br />
Obexfs vám umožňuje připojit váš telefon jako část vašeho filesystému. Pro použití Obexfs budete potřebovat zařízení, které podporuje službu ObexFTP.<br />
<br />
Pro instalaci spusťte:<br />
# pacman -S obexfs<br />
<br />
a následně připojte svůj telefon spuštěním (jako root): <br />
# obexfs -b <mac_addresa_zarizeni> /mountpoint<br />
<br />
Pro další možnosti připojení filesystému pomocí ObexFS koukněte [http://dev.zuckschwerdt.org/openobex/wiki/ObexFs sem].<br />
<br />
== Příklady ==<br />
<br />
=== Siemens S55 ===<br />
<br />
Ukázka připojení telefonu S55.<br />
* Kroky po instalaci<br />
* <br />
$> hcitool scan<br />
Scanning ...<br />
XX:XX:XX:XX:XX:XX JMENO_ZARIZENI<br />
$> B=XX:XX:XX:XX:XX:XX<br />
Spustil jsem simple-agent v dalším terminálu<br />
$> su -c bluez-simple-agent <br />
Password: <br />
Agent registered<br />
A následně se vrátil k terminálu prvnímu <br />
$> obexftp -b $B -l "Address book"<br />
# Telefon se v této části zeptal na pin. Vložil jsem ho a stisknul OK.<br />
...<br />
<file name="5F07.adr" size="78712" modified="20030101T001858" user-perm="WD" group-perm="" /><br />
...<br />
$> obexftp -b 00:01:E3:6B:FF:D7 -g "Address book/5F07.adr"<br />
Browsing 00:01:E3:6B:FF:D7 ...<br />
Channel: 5<br />
Connecting...done<br />
Receiving "Address book/5F07.adr"... Sending "Address book"... done<br />
Disconnecting...done<br />
$> obexftp -b 00:01:E3:6B:FF:D7 -p a <br />
...<br />
Sending "a"... done<br />
Disconnecting...done<br />
<br />
=== Myš Logitech MX Laser / M555b ===<br />
<br />
Pro rychlé otestování připojení:<br />
<br />
$> hidd --connect XX:XX:XX:XX:XX:XX<br />
<br />
Pro konfiguraci automatického připojení myši použijte svého desktopového průvodce.<br />
Pokud ve vašem prostředí nemáte tuto možnost, koukněte na [[Bluetooth_myš]].<br />
<br />
=== Motorola V900 ===<br />
<br />
Po instalaci programu blueman a spuštění appletu blueman-applet, klikněte na "find me" pod položkou connections -> bluetooth v zařízení motorola.<br />
V programu blueman-applet vyhledejte zařízení, najděte svou motorolu a klikněte na "přidat". Potom kliněte na spárovat a vložte nějaký pin. Až se telefon zeptá, vložte ten samý pin vložte do telefonu motorola. V terminálu:<br />
<br />
cd ~/<br />
mkdir bluetooth-temp<br />
obexfs -n xx:yy:zz:... ~/bluetooth-temp<br />
cd ~/bluetooth-temp<br />
<br />
a můžete brouzdat svým filesystémem na telefonu.<br />
<br />
=== Motorola RAZ ===<br />
<br />
> pacman -S obextool obexfs obexftp openobex bluez<br />
<br />
> lsusb<br />
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 002 Device 002: ID 03f0:171d Hewlett-Packard Wireless (Bluetooth + WLAN) Interface [Integrated Module]<br />
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
<br />
> hciconfig hci0 up<br />
<br />
> hciconfig<br />
hci0: Type: BR/EDR Bus: USB<br />
BD Address: 00:16:41:97:BA:5E ACL MTU: 1017:8 SCO MTU: 64:8<br />
UP RUNNING<br />
RX bytes:348 acl:0 sco:0 events:11 errors:0<br />
TX bytes:38 acl:0 sco:0 commands:11 errors:0<br />
<br />
> hcitool dev<br />
Devices:<br />
hci0 00:16:41:97:BA:5E<br />
<br />
'''Upozornění: Ujistěte se, že máte zaplé bluetooh a telefon máte ve viditelném módu!<br />
'''<br />
<br />
> hcitool scan<br />
Scanning ...<br />
00:1A:1B:82:9B:6D [quirxi]<br />
<br />
> hcitool inq<br />
Inquiring ...<br />
00:1A:1B:82:9B:6D clock offset: 0x1ee4 class: 0x522204<br />
<br />
> l2ping 00:1A:1B:82:9B:6D<br />
Ping: 00:1A:1B:82:9B:6D from 00:16:41:97:BA:5E (data size 44) ...<br />
44 bytes from 00:1A:1B:82:9B:6D id 0 time 23.94ms<br />
44 bytes from 00:1A:1B:82:9B:6D id 1 time 18.85ms<br />
44 bytes from 00:1A:1B:82:9B:6D id 2 time 30.88ms<br />
44 bytes from 00:1A:1B:82:9B:6D id 3 time 18.88ms<br />
44 bytes from 00:1A:1B:82:9B:6D id 4 time 17.88ms<br />
44 bytes from 00:1A:1B:82:9B:6D id 5 time 17.88ms<br />
6 sent, 6 received, 0% loss<br />
<br />
> hcitool JMENO 00:1A:1B:82:9B:6D<br />
[quirxi]<br />
<br />
# hciconfig -a hci0<br />
hci0: Type: BR/EDR Bus: USB<br />
BD Address: 00:16:41:97:BA:5E ACL MTU: 1017:8 SCO MTU: 64:8<br />
UP RUNNING<br />
RX bytes:9740 acl:122 sco:0 events:170 errors:0<br />
TX bytes:2920 acl:125 sco:0 commands:53 errors:0<br />
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80<br />
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3<br />
Link policy:<br />
Link mode: SLAVE ACCEPT<br />
Name: 'BCM2045'<br />
Class: 0x000000<br />
Service Classes: Unspecified<br />
Device Class: Miscellaneous,<br />
HCI Version: 2.0 (0x3) Revision: 0x204a<br />
LMP Version: 2.0 (0x3) Subversion: 0x4176<br />
Manufacturer: Broadcoml / Corporation (15)<br />
<br />
> hcitool info 00:1A:1B:82:9B:6D<br />
Requesting information ...<br />
BD Address: 00:1A:1B:82:9B:6D<br />
Device Name: [quirxi]<br />
LMP Version: 1.2 (0x2) LMP Subversion: 0x309<br />
Manufacturer: Broadcom Corporation (15)<br />
Features: 0xff 0xfe 0x0d 0x00 0x08 0x08 0x00 0x00<br />
<3-slot packets> <5-slot packets> <encryption> <slot offset><br />
<timing accuracy> <role switch> <hold mode> <sniff mode><br />
<RSSI> <channel quality> <SCO link> <HV2 packets><br />
<HV3 packets> <A-law log> <CVSD> <power control><br />
<transparent SCO> <AFH cap. slave> <AFH cap. master><br />
<br />
<br />
'''Upravte si konfigurační soubor main.conf a vložte novou položku pro váš telefon ( Class = 0x100100 ):'''<br />
> vim /etc/bluetooth/main.conf<br />
<br />
# Default device class. Only the major and minor device class bits are<br />
# considered.<br />
#Class = 0x000100<br />
Class = 0x100100<br />
<br />
> /etc/rc.d/dbus start<br />
:: Starting D-BUS system messagebus <br />
[DONE]<br />
<br />
> /etc/rc.d/bluetooth start<br />
:: Stopping bluetooth subsystem: pand dund rfcomm hidd bluetoothd<br />
[DONE]<br />
:: Starting bluetooth subsystem: bluetoothd<br />
<br />
<br />
'''Párování se dělá pouze jednou programem bluez-simple-agent. Jakmile se vaše motorola zeptá na pin, zadejte 0000.'''<br />
> /usr/bin/bluez-simple-agent hci0 00:1A:1B:82:9B:6D<br />
RequestPinCode (/org/bluez/10768/hci0/dev_00_1A_1B_82_9B_6D)<br />
Enter PIN Code: 0000<br />
Release<br />
New device (/org/bluez/10768/hci0/dev_00_1A_1B_82_9B_6D)<br />
<br />
'''Teď můžete brouzdat filesystémem ve svém telefonu pomocí programu obexftp:'''<br />
> obexftp -v -b 00:1A:1B:82:9B:6D -B 9 -l<br />
Connecting..\done<br />
Tried to connect for 448ms<br />
Receiving "(null)"...-<?xml version="1.0" ?><br />
<!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd"><br />
<folder-listing><br />
<parent-folder /><br />
<folder name="audio" size="0" type="folder" modified="20101010T132323Z" user-perm="RW" /><br />
<folder name="video" size="0" type="folder" modified="20101010T132323Z" user-perm="RW" /><br />
<folder name="picture" size="0" type="folder" modified="20101010T132323Z" user-perm="RW" /><br />
</folder-listing><br />
done<br />
Disconnecting..\done<br />
<br />
'''Nebo můžete načíst/mountnout svůj telefon do nějakého adresáře na svém počítači a pracovat s ním jako s normálním filesystémem:'''<br />
<br />
> groupadd bluetooth<br />
> mkdir /mnt/bluetooth<br />
> chown root:bluetooth /mnt/bluetooth<br />
> chmod 775 /mnt/bluetooth<br />
> usermod -a -G bluetooth arno<br />
<br />
> obexfs -b 00:1A:1B:82:9B:6D /mnt/bluetooth/<br />
> l /mnt/bluetooth/<br />
total 6<br />
drwxr-xr-x 1 root root 0 10. Okt 13:25 .<br />
drwxr-xr-x 5 root root 4096 10. Okt 10:08 ..<br />
drwxr-xr-x 1 root root 0 10. Okt 2010 audio<br />
drwxr-xr-x 1 root root 0 10. Okt 2010 picture<br />
drwxr-xr-x 1 root root 0 10. Okt 2010 video<br />
<br />
=== Párování iPhone použitím bluez-simple-agenta ===<br />
<br />
Příklad zařízení pojmenovaného jako hci0 a iPhonu, který byl rozpoznán programem hcitool jako '00:00:DE:AD:BE:EF':<br />
<br />
# bluez-simple-agent hci0 00:00:DE:AD:BE:EF<br />
Passcode:<br />
<br />
== Řešení problémů ==<br />
<br />
=== passkey-agent ===<br />
$> passkey-agent --default 1234<br />
Can't register passkey agent<br />
The name org.bluez was not provided by any .service files<br />
Pravděpodobně jste spustili <tt>/etc/rc.d/bluetooth</tt> dříve než <tt>/etc/rc.d/dbus</tt><br />
$> hciconfig dev<br />
# (no listing)<br />
Zkuste spustit <tt>hciconfig hc0 up</tt><br />
<br />
=== Blueman ===<br />
Jeslitliže blueman-applet skončí s chybou, zkuste odstranit veškerý obsah adresáře ''/var/lib/bluetooth'' a restartovat systém (nebo pouze daemony hal, dbus a bluetooth).<br />
# rm -rf /var/lib/bluetooth<br />
# reboot<br />
<br />
=== gnome-bluetooth ===<br />
Jesliže se vám ukazuje následující chyba, když příjímate soubory v bluetooth-properties:<br />
Bluetooth OBEX start failed: Invalid path<br />
Bluetooth FTP start failed: Invalid path<br />
Pak spusťte příkazy:<br />
# pacman -S xdg-user-dirs<br />
$ xdg-user-dirs-update<br />
Můžete také upravit cesty použitím:<br />
$ vi ~/.config/user-dirs.dirs<br />
<br />
=== Bluetooth USB klíčenka ===<br />
Pokud používáte bluetooth USB klíčenku, měli byste zkontrolovat, jestli ji váš systém rozpoznal. To provedete po zapojení klíčenky do USB prozkoumáním logů v {{Filename|/var/log/messages.log}}. Mělo by tam být něco jako toto (Koukejte po hci):<br />
<br />
# tail -f /var/log/messages.log<br />
May 2 23:36:40 tatooine usb 4-1: new full speed USB device using uhci_hcd and address 9<br />
May 2 23:36:40 tatooine usb 4-1: configuration #1 chosen from 1 choice<br />
May 2 23:36:41 tatooine hcid[8109]: HCI dev 0 registered<br />
May 2 23:36:41 tatooine hcid[8109]: HCI dev 0 up<br />
May 2 23:36:41 tatooine hcid[8109]: Device hci0 has been added<br />
May 2 23:36:41 tatooine hcid[8109]: Starting security manager 0<br />
May 2 23:36:41 tatooine hcid[8109]: Device hci0 has been activated<br />
<br />
Pro seznam podporovaného hardware pokračujte do sekce [[Bluetooth (Česky)#Zdroje|zdroje]] na této stránce.<br />
Pokud vidíte pouze dvě první řádky logu výše, znamená to, že zařízení bylo nalezeno, ale musí se ješte zapnout.<br />
Příklad:<br />
<br />
hciconfig -a hci0<br />
hci0: Type: USB<br />
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0<br />
DOWN <br />
RX bytes:0 acl:0 sco:0 events:0 errors:0<br />
TX bytes:0 acl:0 sco:0 commands:0 errors:<br />
sudo hciconfig hci0 up<br />
hciconfig -a hci0<br />
hci0: Type: USB<br />
BD Address: 00:02:72:C4:7C:06 ACL MTU: 377:10 SCO MTU: 64:8<br />
UP RUNNING <br />
RX bytes:348 acl:0 sco:0 events:11 errors:0<br />
TX bytes:38 acl:0 sco:0 commands:11 errors:0<br />
<br />
Pro kontrolu, jestli bylo zařízení detekováno použijte nástroj {{Codeline|hcitool}}, který je součástí balíku {{Package Official|bluez-utils}}. Následujícím příkazem dostanete seznam dostupných zařízení, identifikátorů a jejich MAC adres.<br />
<br />
$ hcitool dev<br />
Devices:<br />
hci0 00:1B:DC:0F:DB:40<br />
<br />
Pokud byste si přáli zobrazit o zařízení více informací, můžete použít {{Codeline|hciconfig}}.<br />
<br />
$ hciconfig -a hci0<br />
hci0: Type: USB<br />
BD Address: 00:1B:DC:0F:DB:40 ACL MTU: 310:10 SCO MTU: 64:8<br />
UP RUNNING PSCAN ISCAN <br />
RX bytes:1226 acl:0 sco:0 events:27 errors:0<br />
TX bytes:351 acl:0 sco:0 commands:26 errors:0<br />
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80<br />
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 <br />
Link policy: RSWITCH HOLD SNIFF PARK <br />
Link mode: SLAVE ACCEPT <br />
Name: 'BlueZ (0)'<br />
Class: 0x000100<br />
Service Classes: Unspecified<br />
Device Class: Computer, Uncategorized<br />
HCI Ver: 2.0 (0x3) HCI Rev: 0xc5c LMP Ver: 2.0 (0x3) LMP Subver: 0xc5c<br />
Manufacturer: Cambridge Silicon Radio (10)<br />
<br />
=== hcitool scan: Device not found ===<br />
* Na některých počítačích Dell (e.g. Studio 15) musíte přepnout mód Bluetooth z HID na HCI použitím<br />
# hid2hci<br />
<br />
* Občas může pomoci i tento jednoduchý příkaz:<br />
# hciconfig hci0 up<br />
<br />
=== Nelze nalézt počítač ===<br />
Stále váš telefon nechce nálezt zařízení počítače? Zapněte PSCAN a ISCAN:<br />
# zapnutí PSCAN a ISCAN<br />
$ hciconfig hci0 piscan <br />
# mrkněte, jestli se nastavení změnilo<br />
$ hciconfig <br />
hci0: Type: USB<br />
BD Address: 00:12:34:56:78:9A ACL MTU: 192:8 SCO MTU: 64:8<br />
'''UP RUNNING PSCAN ISCAN'''<br />
RX bytes:20425 acl:115 sco:0 events:526 errors:0<br />
TX bytes:5543 acl:84 sco:0 commands:340 errors:0<br />
<br />
{{Note | Zkontrolujte volbu DiscoverableTimeout a PairableTimeout v souboru /etc/bluetooth/main.conf}}<br />
<br />
<br />
Nebo můžete zkusit změnit nastavení ''Class'' v souboru {{Filename|/etc/bluetooth/main.conf}} následovně<br />
# Default device class. Only the major and minor device class bits are<br />
# considered.<br />
#Class = 0x000100 (from default config)<br />
Class = 0x100100<br />
<br />
=== Nautilus nemůže procházet soubory ===<br />
Pokud se nautilus neotevře a ukáže tuto chybu:<br />
Nautilus cannot handle obex: locations. Couldn't display "obex://[XX:XX:XX:XX:XX:XX]/".<br />
Nainstalujte balík gvfs-obexftp:<br />
# pacman -S gvfs-obexftp<br />
<br />
== Zdroje ==<br />
*[http://www.bluez.org Official Linux Bluetooth protocol stack]<br />
*[http://en.opensuse.org/HCL/Bluetooth_Adapters openSUSE Bluetooth Hardware Compatibility List (HCL)]<br />
*[http://www.gentoo.org/doc/en/bluetooth-guide.xml Gentoo wiki is usually good]<br />
*[http://linuxgazette.net/109/oregan3.html Accessing a Bluetooth phone on Linux Gazette]<br />
*[http://www.adamish.com/blog/#a000361 Bluetooth computer visibility]</div>Limotohttps://wiki.archlinux.org/index.php?title=Lm_sensors&diff=59126Lm sensors2009-01-24T21:09:32Z<p>Limoto: Added Czech translation</p>
<hr />
<div>[[Category:Mainboards and BIOS (English)]]<br />
[[Category:CPU (English)]]<br />
[[Category:Daemons and system services (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Lm_sensors}}<br />
{{i18n_entry|Česky|Lm_sensors (Česky)}}<br />
{{i18n_entry|Русский|Настройка Lm_sensors}}<br />
{{i18n_entry|Українська|Lm_sensors_(Українська)}}<br />
{{i18n_entry|简体中文|Lm sensors (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
This document tells you how to install, setup, and use '''lm_sensors''' so that you can monitor CPU and/or motherboard temperature and fan speeds.<br />
<br />
===Installing lm_sensors===<br />
<br />
#Install the package via Pacman<br><pre># pacman -Sy lm_sensors</pre><br />
<br />
===Setting up lm_sensors===<br />
#Use '''sensors-detect''' to detect and generate a list of kernel modules<br><pre># sensors-detect</pre>This will create the configuration and store it in '''/etc/sysconfig/lm_sensors'''<br />
#Automatically load the kernel modules at boot time by adding '''sensors''' to the '''DAEMONS''' array in '''/etc/rc.conf'''<pre>DAEMONS=(syslog-ng crond ... sensors ...)</pre><br />
#To test your setup, load the kernel modules now using the sensors init script<pre># /etc/rc.d/sensors start</pre>Then use the '''sensors''' command<pre>$ sensors</pre>You should see something like this<br />
<pre><br />
lm85-i2c-0-2e<br />
Adapter: SMBus I801 adapter at c800<br />
V1.5: +1.47 V (min = +0.00 V, max = +3.32 V)<br />
VCore: +1.34 V (min = +0.00 V, max = +2.99 V)<br />
V3.3: +3.32 V (min = +0.00 V, max = +4.38 V)<br />
V5: +5.05 V (min = +0.00 V, max = +6.64 V)<br />
V12: +11.94 V (min = +0.00 V, max = +15.94 V)<br />
CPU_Fan: 1760 RPM (min = 0 RPM)<br />
fan2: 0 RPM (min = 0 RPM)<br />
fan3: 0 RPM (min = 0 RPM)<br />
fan4: 0 RPM (min = 0 RPM)<br />
CPU Temp: +51°C (low = -127°C, high = +127°C)<br />
Board Temp:<br />
+46°C (low = -127°C, high = +127°C)<br />
Remote Temp:<br />
+45°C (low = -127°C, high = +127°C)<br />
CPU_PWM: 77<br />
Fan2_PWM: 87<br />
Fan3_PWM: 87<br />
vid: +1.088 V (VRM Version 10.0)<br />
</pre><br />
<br />
===reading SPD values from memory modules===<br />
<br />
to read the SPD timing values from you memory modules "modprobe eeprom" and run that perl script:<br />
[http://www.lm-sensors.org/browser/lm-sensors/trunk/prog/eeprom/decode-dimms.pl SPDdecodeScript]<br />
<br />
<br />
===Using lm_sensors===<br />
*You should now be able to use lm_sensors in front-ends like '''xsensors''', '''gkrellm''', '''xfce4-sensors-plugin''', '''GNOME Computer Temperature Monitor''' applet, and '''ksensors'''.</div>Limotohttps://wiki.archlinux.org/index.php?title=Lm_sensors_(%C4%8Ce%C5%A1tina)&diff=59125Lm sensors (Čeština)2009-01-24T21:09:00Z<p>Limoto: New page: Category:HOWTOs (Česky) {{i18n_links_start}} {{i18n_entry|Česky|Lm_sensors (Česky)}} {{i18n_entry|English|Lm_sensors}} {{i18n_entry|Русский|Настройка Lm_sensors}} {...</p>
<hr />
<div>[[Category:HOWTOs (Česky)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|Lm_sensors (Česky)}}<br />
{{i18n_entry|English|Lm_sensors}}<br />
{{i18n_entry|Русский|Настройка Lm_sensors}}<br />
{{i18n_entry|Українська|Lm_sensors_(Українська)}}<br />
{{i18n_entry|简体中文|Lm sensors (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
Tato stránka popisuje, jak nainstalovat, nastavit a používat '''lm_sensors''', pomocí kterého můžeš monitorovat teplotu CPU, základní desky a rychlost větráčků.<br />
<br />
===Instalace lm_sensors===<br />
<br />
#Nainstaluj balíček pomocí Pacmana<br><pre># pacman -Sy lm_sensors</pre><br />
<br />
===Nastavování lm_sensors===<br />
#Použij '''sensors-detect''' pro detekování a vytvoření seznamu jaderných modulů<br><pre># sensors-detect</pre>Tohle vytvoří konfiguraci a uloží ji v '''/etc/sysconfig/lm_sensors'''<br />
#Nastav automatické načítání modulů při startu přidáním '''sensors''' do pole '''DAEMONS''' v '''/etc/rc.conf'''<pre>DAEMONS=(syslog-ng crond ... sensors ...)</pre><br />
#Pro vyzkoušení tvého nastavení nyní načti moduly použití sensors init skriptu<pre># /etc/rc.d/sensors start</pre>Potom použij příkaz '''sensors'''<pre>$ sensors</pre>Mělo by se vypsat něco podobného tomuto:<br />
<pre><br />
lm85-i2c-0-2e<br />
Adapter: SMBus I801 adapter at c800<br />
V1.5: +1.47 V (min = +0.00 V, max = +3.32 V)<br />
VCore: +1.34 V (min = +0.00 V, max = +2.99 V)<br />
V3.3: +3.32 V (min = +0.00 V, max = +4.38 V)<br />
V5: +5.05 V (min = +0.00 V, max = +6.64 V)<br />
V12: +11.94 V (min = +0.00 V, max = +15.94 V)<br />
CPU_Fan: 1760 RPM (min = 0 RPM)<br />
fan2: 0 RPM (min = 0 RPM)<br />
fan3: 0 RPM (min = 0 RPM)<br />
fan4: 0 RPM (min = 0 RPM)<br />
CPU Temp: +51°C (low = -127°C, high = +127°C)<br />
Board Temp:<br />
+46°C (low = -127°C, high = +127°C)<br />
Remote Temp:<br />
+45°C (low = -127°C, high = +127°C)<br />
CPU_PWM: 77<br />
Fan2_PWM: 87<br />
Fan3_PWM: 87<br />
vid: +1.088 V (VRM Version 10.0)<br />
</pre><br />
<br />
===čtení hodnot SPD z paměťových modulů===<br />
<br />
Pro čtení hodnot časování z SPD paměťových modulů, načti modul eeprom<pre># modprobe eeprom</pre> a spusť tento perl skript:<br />
[http://www.lm-sensors.org/browser/lm-sensors/trunk/prog/eeprom/decode-dimms.pl decode-dimms.pl]<br />
<br />
<br />
===Používání lm_sensors===<br />
*Nyní můžeš používat lm_sensors ve front-endech jako '''xsensors''', '''gkrellm''', '''xfce4-sensors-plugin''', '''GNOME Computer Temperature Monitor''' applet a '''ksensors'''.</div>Limotohttps://wiki.archlinux.org/index.php?title=Disable_PC_speaker_beep&diff=59123Disable PC speaker beep2009-01-24T20:41:38Z<p>Limoto: </p>
<hr />
<div>[[Category:Sound (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Disable the PC speaker beep}}<br />
{{i18n_entry|Česky|Zakázání PC repráčku}}<br />
{{i18n_entry|Русский|Отключение PC Speaker}}<br />
{{i18n_entry|Українська|Вимкнути PC Speaker}}<br />
{{i18n_entry|简体中文|禁用喇叭 (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
= Globally =<br />
* You can completely disable the PC speaker module at startup by adding <code>!pcspkr</code> to the <code>MODULES</code> array in <code>/etc/rc.conf</code>:<br />
MODULES=( ... !pcspkr ... )<br />
<br />
<br />
* If <code>lsmod | grep snd_pcsp</code> returns something, add <code>!snd_pcsp</code>:<br />
MODULES=( ... !snd_pcsp ... )<br />
<br />
= Locally =<br />
* To disable the annoying PC speaker beep in X:<br />
$ xset -b<br />
You can add this command to a startup file, such as <code>~/.xinitrc</code>, to disable it every time X starts.<br />
<br />
<br />
* To disable it in console:<br />
$ setterm -blength 0<br />
Similarly you can add it to <code>~/.bashrc</code>.<br />
<br />
<br />
* Another way is to add this line to <code>~/.inputrc</code>:<br />
set bell-style none<br />
<br />
<br />
* ALSA users can also try muting the PC Speaker:<br />
$ amixer set 'PC Speaker' 0% mute<br />
<br />
<br />
Have a look at these '''man pages''' for further information: ''xset(1), setterm(1), readline(3)''</div>Limotohttps://wiki.archlinux.org/index.php?title=PC_speaker_(%C4%8Cesky)&diff=59122PC speaker (Česky)2009-01-24T20:40:49Z<p>Limoto: New page: Category:Zvuk (Česky) Category:HOWTOs (Česky) {{i18n_links_start}} {{i18n_entry|Česky|Zakázání PC repráčku}} {{i18n_entry|English|Disable the PC speaker beep}} {{i18n_entry...</p>
<hr />
<div>[[Category:Zvuk (Česky)]]<br />
[[Category:HOWTOs (Česky)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|Zakázání PC repráčku}}<br />
{{i18n_entry|English|Disable the PC speaker beep}}<br />
{{i18n_entry|Русский|Отключение PC Speaker}}<br />
{{i18n_entry|Українська|Вимкнути PC Speaker}}<br />
{{i18n_entry|简体中文|禁用喇叭 (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
= Globálně =<br />
* Kompletně zakázat modul repráčku při startu přidáním <code>!pcspkr</code> do pole <code>MODULES</code> v <code>/etc/rc.conf</code>:<br />
MODULES=( ... !pcspkr ... )<br />
<br />
<br />
* Pokud <code>lsmod | grep snd_pcsp</code> něco vypíše, přidej <code>!snd_pcsp</code>:<br />
MODULES=( ... !snd_pcsp ... )<br />
<br />
= Lokálně =<br />
* Pro zakázání obtěžujícího pípání repráčku v X:<br />
$ xset -b<br />
Pokud to chceš zakázat při každém startu X, přidej tento příkaz do nějakého startovacího skripu, jako <code>~/.xinitrc</code>.<br />
<br />
<br />
* Pro zakázání v konzoli:<br />
$ setterm -blength 0<br />
Podobně můžeš příkaz přidat do <code>~/.bashrc</code>.<br />
<br />
<br />
* Jiný způsob je přidání tohoto řádku do <code>~/.inputrc</code>:<br />
set bell-style none<br />
<br />
<br />
* Uživatelé ALSA můžou též zkusit zlumení PC Speakeru:<br />
$ amixer set 'PC Speaker' 0% mute<br />
<br />
<br />
Další informace najdeš v těchto '''manuálových stránkách''': ''xset(1), setterm(1), readline(3)''</div>Limotohttps://wiki.archlinux.org/index.php?title=Improving_performance/Boot_process_(%C4%8Cesky)&diff=30853Improving performance/Boot process (Česky)2007-10-13T20:17:08Z<p>Limoto: </p>
<hr />
<div>[[Category:HOWTOs (Česky)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Speedup boot}}<br />
{{i18n_entry|Česky|Rychlejší boot (Česky)}}<br />
{{i18n_links_end}}<br />
<br />
Tento článek obsahuje pár triků, pomocí kterých můžete zrychlit boot vašeho systému.<br />
<br />
== Úprava bootovacích souborů ==<br />
<br />
=== Mkinitcpio.conf ===<br />
<br />
Otevřete jako root v textovém editoru /etc/mkinitcpio.conf a vymažte všechny položky v HOOKS, které nepotřebujete.<br />
HOOKS="base udev autodetect sata usbinput filesystems"<br />
[[Mkinitcpio | Read more]] about which HOOKS you can remove.<br />
<br />
=== Rc.conf ===<br />
<br />
Otevřete jako root v textovém editoru /etc/rc.conf a nalistujte si sekci věnovanou hardwaru.<br />
Open /etc/rc.conf as root, scroll to the hardware section.<br />
MOD_AUTOLOAD="yes"<br />
Pokud máte zapnuté automatické nahrávání modulů, není důvod proč je vybírat ručně. Proto promažte MODULES jako zde.<br />
<br />
MODULES=()<br />
<br />
V sekci věnované sítím si ověřte, jestli máte nastavené jenom ty sítě, které potřebujete. Také manuální konfigurace je rychlejší než DHCP.<br />
<br />
Poté vypněte všechny služby, které nepotřebujete.<br />
DAEMONS=(alsa network gdm)<br />
Nakonec posňte váš grafický přihlašovací démon na začátek (pokud nějaký máte) a všem službám nastavte spouštění na pozadí.<br />
DAEMONS=(@gdm @alsa @network)<br />
<br />
=== Rc.sysinit ===<br />
<br />
Otevřete jako root v textovém editoru /etc/rc.sysinit a najděte<br />
/sbin/modprobe $mod<br />
Přidáním '&' na konec se budou všechny moduly nahrávat na pozadí.<br />
/sbin/modprobe $mod &<br />
<br />
=== Inittab ===<br />
<br />
Otevřete jako root v textovém editoru /etc/inittab a najděte řádky s obsahem ohledně agetty.<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
Agetty terminály jsou ty, které vidíte při stisknutí Ctrl+Alt+F1-6.<br />
Nyní, pokud potřebujete jenom dva nebo tři, zakomentujte ty ostatní.<br />
<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
#c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
#c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
#c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
#c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
<br />
== Kompilace jádra ==<br />
<br />
Ke zmenšením času potřebného pro boot je odlehčené jádro nutností.<br />
[[Kernel_Compilation_From_Source | Přečtěte si více o kompilování jádra. ]]<br />
<br />
Zde jsou nějaké tipy od XxX Owned XxX ( http://ubuntuforums.org/showpost.php?p=1174954&postcount=507 ).<br />
Varování: Některé z těchto tipů můžou způsobit, že se jádro nezkompiluje správně. Použijte je pouze na vlastní riziko.<br />
<br />
S=Zapnout<br />
U=Vypnout<br />
<br />
Pokud víte o něčem, co zde chybí, nic vám nebrání to sem přidat!<br />
<br />
===General Setup===<br />
<br />
S: Support for paging of anonymous memory. (swap)<br />
<br />
===Loadable Module Support===<br />
<br />
U: Module Versioning Support<br />
U: Source checksum for all modules<br />
<br />
===Block Layer===<br />
<br />
U: Large Block Devices (Uncheck all if possible)<br />
// IO Schedulers // <br />
U: Anticipatory I/O Schedulers<br />
U: Deadline I/O Schedulers<br />
<br />
===Processor type and features===<br />
<br />
U: Symmetric processing support (Unless your processor(s) support(s) it)<br />
U: Generic x86 support<br />
S: HPET Timer Support<br />
S: Voluntary Kernel Preemption (Desktop) (Under Preemption Model)<br />
S: Local APCI support on uniprocessors<br />
S: IOAPCI support on uniprocessors (Under Local APCI support)<br />
S: Off (Under High Memory support if you have under 1 gig of ram)<br />
S: Sparse Memory (Under Memory Model, some computers will not have this option)<br />
S: MTRR support<br />
S: Use register arguements<br />
S: Enable seccomp to compute untrusted bytecode<br />
S: 1000hz (Under Timer Frequency)<br />
// Firmware Drivers // <br />
U: Anything that you don't need.<br />
<br />
===Bus Options===<br />
<br />
S: Message Signaled Interrupts (MSI and MSIX) (PCI_MSI)<br />
<br />
===Network===<br />
<br />
U: Anything/Everything in Amateur Radio, IrDA, and Bluetooth if you don't need it.<br />
// Network Options // <br />
S: Packet socket:mmapped IO<br />
<br />
===Device Drivers===<br />
<br />
// ATA/ATAP/MFR/RLL support // <br />
S: Use PCI DMA by Default<br />
U: IDE Taskfile Acess<br />
// Raid and LVM // <br />
U: Unselect if you do not need it.<br />
// I2O support // <br />
U: Unselect if you do not need it. Most people do not.<br />
<br />
===Network Device support===<br />
U: EQL support<br />
U: Universial TUN/TAP device driver support<br />
U: FDDI Driver support<br />
U: HIPPI driver support<br />
U: SLIP (serial line) support<br />
U: Traffic Support<br />
U: Network console loggin support<br />
// ARCnet support // <br />
U: Unselect if you do not require/need it.<br />
// Ethernet Support (1000 MB) // <br />
U: Uselect the cards that you don't have.<br />
// Ethernet Support (10000 MB) // <br />
U: Unselect what you do not need.<br />
// Token Ring Devices // <br />
U: Unselect if you are not connected to a Token ring network.<br />
// WAN interfaces support // <br />
U: Unselect the some cards/the whole thing if you do not need it.<br />
// ISDN subsystem // <br />
U: ISDN support (If you do not require it)<br />
<br />
===Input device support===<br />
<br />
U: Touchscreen interface<br />
U: Touchscreens (Under the TouchScreens subcatergory)<br />
<br />
===Character Devices===<br />
<br />
U: Any video cards that you do not need.<br />
// Watchdog cards // <br />
U: Watch Dog Timer support<br />
<br />
===Misc Devices===<br />
<br />
U: Device driver for IBM/RSA service drivers<br />
// Video Capture Adapters // <br />
U: Unselect anything that you don't need.<br />
// Radio Adapters // <br />
U: Unselect anything that you don't need.<br />
// Digital Video Broadcasting Devices // <br />
U: DVB for Linux<br />
<br />
===Graphics support===<br />
<br />
U: Unselect any graphics cards that you don't have.<br />
// Logo Configuration // <br />
S: Bootup Logo (and anything under it)<br />
<br />
===File systems===<br />
<br />
U: Unselect any file systems that you are NOT going to use. (Minix, ROM, Quota, etc.)<br />
// DOS/FAT/NT Filesystems // <br />
S: NTFS write support<br />
// Network File Systems // <br />
U: NFS file system support<br />
U: NFS server support<br />
U: NCP file system support<br />
U: Coda file system support<br />
U: Andrew file system support<br />
U: Plan 9 resource sharing support<br />
// Partition Types // <br />
U: Advanced partition selection<br />
// Native Language Support // <br />
U: Unselect all but your native language<br />
<br />
===Instrumentation Support===<br />
<br />
U: Profiling Support<br />
U: Kprobes<br />
<br />
===Kernel Hacking===<br />
<br />
U: Show timing information on printks<br />
U: Magic SysRq Key<br />
U: Kernel Hacking<br />
U: Debug Filesystem<br />
U: Compile the kernel with frame unwind information</div>Limotohttps://wiki.archlinux.org/index.php?title=Improving_performance/Boot_process_(%C4%8Cesky)&diff=30852Improving performance/Boot process (Česky)2007-10-13T20:15:45Z<p>Limoto: </p>
<hr />
<div>[[Category:Česky]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Speedup boot}}<br />
{{i18n_entry|Česky|Rychlejší boot (Česky)}}<br />
{{i18n_links_end}}<br />
<br />
Tento článek obsahuje pár triků, pomocí kterých můžete zrychlit boot vašeho systému.<br />
<br />
== Úprava bootovacích souborů ==<br />
<br />
=== Mkinitcpio.conf ===<br />
<br />
Otevřete jako root v textovém editoru /etc/mkinitcpio.conf a vymažte všechny položky v HOOKS, které nepotřebujete.<br />
HOOKS="base udev autodetect sata usbinput filesystems"<br />
[[Mkinitcpio | Read more]] about which HOOKS you can remove.<br />
<br />
=== Rc.conf ===<br />
<br />
Otevřete jako root v textovém editoru /etc/rc.conf a nalistujte si sekci věnovanou hardwaru.<br />
Open /etc/rc.conf as root, scroll to the hardware section.<br />
MOD_AUTOLOAD="yes"<br />
Pokud máte zapnuté automatické nahrávání modulů, není důvod proč je vybírat ručně. Proto promažte MODULES jako zde.<br />
<br />
MODULES=()<br />
<br />
V sekci věnované sítím si ověřte, jestli máte nastavené jenom ty sítě, které potřebujete. Také manuální konfigurace je rychlejší než DHCP.<br />
<br />
Poté vypněte všechny služby, které nepotřebujete.<br />
DAEMONS=(alsa network gdm)<br />
Nakonec posňte váš grafický přihlašovací démon na začátek (pokud nějaký máte) a všem službám nastavte spouštění na pozadí.<br />
DAEMONS=(@gdm @alsa @network)<br />
<br />
=== Rc.sysinit ===<br />
<br />
Otevřete jako root v textovém editoru /etc/rc.sysinit a najděte<br />
/sbin/modprobe $mod<br />
Přidáním '&' na konec se budou všechny moduly nahrávat na pozadí.<br />
/sbin/modprobe $mod &<br />
<br />
=== Inittab ===<br />
<br />
Otevřete jako root v textovém editoru /etc/inittab a najděte řádky s obsahem ohledně agetty.<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
Agetty terminály jsou ty, které vidíte při stisknutí Ctrl+Alt+F1-6.<br />
Nyní, pokud potřebujete jenom dva nebo tři, zakomentujte ty ostatní.<br />
<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
#c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
#c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
#c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
#c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
<br />
== Kompilace jádra ==<br />
<br />
Ke zmenšením času potřebného pro boot je odlehčené jádro nutností.<br />
[[Kernel_Compilation_From_Source | Přečtěte si více o kompilování jádra. ]]<br />
<br />
Zde jsou nějaké tipy od XxX Owned XxX ( http://ubuntuforums.org/showpost.php?p=1174954&postcount=507 ).<br />
Varování: Některé z těchto tipů můžou způsobit, že se jádro nezkompiluje správně. Použijte je pouze na vlastní riziko.<br />
<br />
S=Zapnout<br />
U=Vypnout<br />
<br />
Pokud víte o něčem, co zde chybí, nic vám nebrání to sem přidat!<br />
<br />
===General Setup===<br />
<br />
S: Support for paging of anonymous memory. (swap)<br />
<br />
===Loadable Module Support===<br />
<br />
U: Module Versioning Support<br />
U: Source checksum for all modules<br />
<br />
===Block Layer===<br />
<br />
U: Large Block Devices (Uncheck all if possible)<br />
// IO Schedulers // <br />
U: Anticipatory I/O Schedulers<br />
U: Deadline I/O Schedulers<br />
<br />
===Processor type and features===<br />
<br />
U: Symmetric processing support (Unless your processor(s) support(s) it)<br />
U: Generic x86 support<br />
S: HPET Timer Support<br />
S: Voluntary Kernel Preemption (Desktop) (Under Preemption Model)<br />
S: Local APCI support on uniprocessors<br />
S: IOAPCI support on uniprocessors (Under Local APCI support)<br />
S: Off (Under High Memory support if you have under 1 gig of ram)<br />
S: Sparse Memory (Under Memory Model, some computers will not have this option)<br />
S: MTRR support<br />
S: Use register arguements<br />
S: Enable seccomp to compute untrusted bytecode<br />
S: 1000hz (Under Timer Frequency)<br />
// Firmware Drivers // <br />
U: Anything that you don't need.<br />
<br />
===Bus Options===<br />
<br />
S: Message Signaled Interrupts (MSI and MSIX) (PCI_MSI)<br />
<br />
===Network===<br />
<br />
U: Anything/Everything in Amateur Radio, IrDA, and Bluetooth if you don't need it.<br />
// Network Options // <br />
S: Packet socket:mmapped IO<br />
<br />
===Device Drivers===<br />
<br />
// ATA/ATAP/MFR/RLL support // <br />
S: Use PCI DMA by Default<br />
U: IDE Taskfile Acess<br />
// Raid and LVM // <br />
U: Unselect if you do not need it.<br />
// I2O support // <br />
U: Unselect if you do not need it. Most people do not.<br />
<br />
===Network Device support===<br />
U: EQL support<br />
U: Universial TUN/TAP device driver support<br />
U: FDDI Driver support<br />
U: HIPPI driver support<br />
U: SLIP (serial line) support<br />
U: Traffic Support<br />
U: Network console loggin support<br />
// ARCnet support // <br />
U: Unselect if you do not require/need it.<br />
// Ethernet Support (1000 MB) // <br />
U: Uselect the cards that you don't have.<br />
// Ethernet Support (10000 MB) // <br />
U: Unselect what you do not need.<br />
// Token Ring Devices // <br />
U: Unselect if you are not connected to a Token ring network.<br />
// WAN interfaces support // <br />
U: Unselect the some cards/the whole thing if you do not need it.<br />
// ISDN subsystem // <br />
U: ISDN support (If you do not require it)<br />
<br />
===Input device support===<br />
<br />
U: Touchscreen interface<br />
U: Touchscreens (Under the TouchScreens subcatergory)<br />
<br />
===Character Devices===<br />
<br />
U: Any video cards that you do not need.<br />
// Watchdog cards // <br />
U: Watch Dog Timer support<br />
<br />
===Misc Devices===<br />
<br />
U: Device driver for IBM/RSA service drivers<br />
// Video Capture Adapters // <br />
U: Unselect anything that you don't need.<br />
// Radio Adapters // <br />
U: Unselect anything that you don't need.<br />
// Digital Video Broadcasting Devices // <br />
U: DVB for Linux<br />
<br />
===Graphics support===<br />
<br />
U: Unselect any graphics cards that you don't have.<br />
// Logo Configuration // <br />
S: Bootup Logo (and anything under it)<br />
<br />
===File systems===<br />
<br />
U: Unselect any file systems that you are NOT going to use. (Minix, ROM, Quota, etc.)<br />
// DOS/FAT/NT Filesystems // <br />
S: NTFS write support<br />
// Network File Systems // <br />
U: NFS file system support<br />
U: NFS server support<br />
U: NCP file system support<br />
U: Coda file system support<br />
U: Andrew file system support<br />
U: Plan 9 resource sharing support<br />
// Partition Types // <br />
U: Advanced partition selection<br />
// Native Language Support // <br />
U: Unselect all but your native language<br />
<br />
===Instrumentation Support===<br />
<br />
U: Profiling Support<br />
U: Kprobes<br />
<br />
===Kernel Hacking===<br />
<br />
U: Show timing information on printks<br />
U: Magic SysRq Key<br />
U: Kernel Hacking<br />
U: Debug Filesystem<br />
U: Compile the kernel with frame unwind information</div>Limotohttps://wiki.archlinux.org/index.php?title=Advanced_Linux_Sound_Architecture_(%C4%8Ce%C5%A1tina)&diff=27755Advanced Linux Sound Architecture (Čeština)2007-08-12T22:56:06Z<p>Limoto: /* Jste stále bez zvuku ? */ s/Dokonca i přes to/Dokonce i přes to/ s/Nastavte úrovně hlasitosti jako jak chcete/Nastavte úrovně hlasitosti ak chcete/</p>
<hr />
<div>[[Category:Sound (Česky)]]<br />
[[Category:HOWTOs (Česky)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|ALSA Setup}}<br />
{{i18n_entry|Deutsch|ALSA Einrichten}}<br />
{{i18n_entry|Nederlands|ALSA instellen}}<br />
{{i18n_entry|Русский|ALSA Setup (Русский)}}<br />
{{i18n_entry|Slovensky|Nastavenie ALSA}}<br />
{{i18n_entry|Czech|ALSA (Česky)}}<br />
{{i18n_entry|中文(简体)|设置ALSA}}<br />
{{i18n_entry|עברית|הגדרת ALSA}}<br />
{{i18n_entry|Рolski|ALSA Setup (Polski)}}<br />
{{i18n_entry|Português do Brasil|Instalação ALSA}}<br />
{{i18n_entry|ไทย|ALSA Setup (ไทย)}}<br />
{{i18n_links_end}}<br />
Tento dokument popisuje jak nastavit systém ALSA, aby fungoval s kernely 2.4 a 2.6.<br />
<br />
Napsané na základě Alsa Setup howto od Arjana Timmermana:<br />
http://www.soulfly.nl/~arjan/archlinux/alsa-setup.html<br />
další informace:<br />
http://bbs.archlinux.org/viewtopic.php?t=2544<br />
Pokud máte počítač Dell vybavený kartou Creative Labs Sound Blaster Live! budete muset skompilovat systém ALSA manuálně.<br />
<br />
==Instalace==<br />
* Nevyhnutné pro kernely 2.4 a 2.6:<br />
<br />
# pacman -Sy alsa-lib alsa-utils<br />
<br />
<br />
* Nevyhnutné pre kernely 2.4:<br />
<br />
# pacman -S alsa-driver<br />
# depmod -a<br />
<br />
<br />
* Doporučené ale ne nevyhnutelné:<br />
<br />
# pacman -S alsa-oss<br />
<br />
<br />
Zapamatujte si, že balíček 'alsa-driver' zahrnuje potřebné moduly založené na Arch stock kernelu! Pokud jste kompilovali svůj vlastní kernel 2.4, tak zřejmě nebudou fungovat a měli by jste skompilovat nový balíček 'alsa-driver' pomocí ABS a nainstalovat tento balíček.<br />
<br />
==Konfigurace==<br />
<br />
''Poznámka: Pokud hotplug detekuje vaši zvukovou kartu správně, nemusíte nahrávat moduly manuálně. Pokud je toto váš případ, potřebujete udělat pouze krok 3 (a 4). Jestli si nejste jistí zda vaše zvuková karta byla detekovaná správně, jako root napište "lsmod". Měli by jste vidět několik nahraných modulů začínajícich na "snd-".''<br />
<br />
* Najděte modul pro svoji zvukovou kartu: http://www.alsa-project.org/alsa-doc/ Modul bude s prefixem 'snd-' (Například: 'snd-via82xx'). Také můžete spustit 'alsaconf' jako root.<br />
<br />
* Nahrajte moduly:<br />
<br />
# modprobe snd-NAME-OF-MODULE<br />
# modprobe snd-pcm-oss<br />
<br />
<br />
* Přidejte hlasitost zvukové karty a zapněte zvuk:<br />
<br />
# amixer set Master 75 unmute<br />
# amixer set PCM 75 unmute<br />
<br />
<br />
Nebo to můžete udělat graficky použitím příkazu 'alsamixer'<br><br />
POZNÁMKA Pokud používáte 'alsamixer', ujistěte se, že zapnete zvuk ('''unmute''') (Stiskněte klávesu M) také přidejte úroveň hlasitosti.<br />
<br />
<br />
* Test vášho systému na soubory wav:<br />
<br />
# aplay mywav.wav<br />
<br />
<br />
* Přidejte <code>snd-pcm-oss</code> a 'snd-NAME-OF-MODULE' do seznamu modulů (MODULES) v '/etc/rc.conf'<br />
<br />
* [[Umožnění více programům přehrávat zvuk v tom samém čase]]<br />
<br />
==Jste stále bez zvuku ?==<br />
<br />
Dokonce i přes to, že máte ovládače nahrané správně a hlasitost je v pořádku, nic není vypnuté, neslyšíte nic! Přidání následujícího řádku do <code>/etc/modprobe.conf</code> spraví tento problém (minimálně s ovladačem <code>via82xx</code> ).<br />
<br />
options snd-NAME-OF-MODULE ac97_quirk=0<br />
<br />
<br />
===Nastavení povolení===<br />
* Přidejte svého užívatele do skupiny Audio:<br />
<br />
# gpasswd -a jméno_uživatele audio<br />
<br />
<br />
* Odhlaste se a znovu přihlašte, aby jste zajistili, že skupina audio je nahraná.<br />
<br />
===Obnovení nastavení Alsa Mixer při startu systému===<br />
* Spusťte 'alsactl' pro vytvoření '/etc/asound.state'<br />
<br />
alsactl store<br />
<br />
<br />
* Upravte '/etc/rc.conf' a přidejte 'alsa' do seznamu daemons, aby zvuk nabíhal při bootování<br />
<br />
===Nastavení KDE===<br />
* spustite KDE:<br />
<br />
# startx<br />
<br />
<br />
* Nastavte úrovně hlasitosti jak chcete pro daného uživatele (každý užívatel má svoje vlastní nastavení):<br />
<br />
# alsamixer<br />
<br />
<br />
* <b>KDE 3.3</b> Jděte do K Menu > Multimedia > KMix<br />
** Vyberte nastavení> Konfigurace KMix...<br />
** Odškrtěte možnost "Restore volumes on logon" (Obnovit hlasitost při prihlásení)<br />
** Stiskněte OK, a měli by jste mít vše nastavené. Teď všechny úrovně hlasitosti budou stejné z příkazového řádku a KDE.</div>Limotohttps://wiki.archlinux.org/index.php?title=Kernel_Compilation&diff=27749Kernel Compilation2007-08-12T16:17:20Z<p>Limoto: added czech internalization and moved the stub flag to end</p>
<hr />
<div>[[Category:Arch kernels (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Kernel Compilation}}<br />
{{i18n_entry|Česky|Kompilace jádra (Česky)}}<br />
{{i18n_links_end}}<br />
<br />
You can choose to compile the kernel [[Kernel Compilation From Source|the traditional way using /usr/src]], or via [[Kernel Compilation with ABS|ABS]]. A small minority of Arch users prefer the /usr/src way, however using ABS is helpful for automating certain tasks. The choice is yours, neither way is inherently better than the other.<br />
<br />
{{stub}}</div>Limotohttps://wiki.archlinux.org/index.php?title=Kernel_(%C4%8Ce%C5%A1tina)&diff=27748Kernel (Čeština)2007-08-12T16:17:02Z<p>Limoto: New page: Category:Arch kernels (English) Category:HOWTOs (English) {{i18n_links_start}} {{i18n_entry|English|Kernel Compilation}} {{i18n_entry|Česky|Kompilace jádra (Česky)}} {{i18n_link...</p>
<hr />
<div>[[Category:Arch kernels (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Kernel Compilation}}<br />
{{i18n_entry|Česky|Kompilace jádra (Česky)}}<br />
{{i18n_links_end}}<br />
Můžete si vybrat, zda jádro zkompilujete [[Kernel Compilation From Source|tradičním způsobem přes /usr/src]] nebo [[Kernel Compilation with ABS|pomocí ABS]]. Malá menšina uživatelů Archu preferuje způsob přes /usr/src, nicméně používání ABS je užitečné pro automatizování jistých úkolů. Výběr je na vás, žádný způsob není neodmyslitelně lepší než jiný. <br />
<br />
{{stub}}</div>Limotohttps://wiki.archlinux.org/index.php?title=Improving_performance/Boot_process_(%C4%8Cesky)&diff=27745Improving performance/Boot process (Česky)2007-08-12T15:59:45Z<p>Limoto: New page: Category:HOWTOs (English) {{i18n_links_start}} {{i18n_entry|English|Speedup boot}} {{i18n_entry|Česky|Rychlejší boot (Česky)}} {{i18n_links_end}} Tento článek obsahuje pár trik...</p>
<hr />
<div>[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Speedup boot}}<br />
{{i18n_entry|Česky|Rychlejší boot (Česky)}}<br />
{{i18n_links_end}}<br />
<br />
Tento článek obsahuje pár triků, pomocí kterých můžete zrychlit boot vašeho systému.<br />
<br />
== Úprava bootovacích souborů ==<br />
<br />
=== Mkinitcpio.conf ===<br />
<br />
Otevřete jako root v textovém editoru /etc/mkinitcpio.conf a vymažte všechny položky v HOOKS, které nepotřebujete.<br />
HOOKS="base udev autodetect sata usbinput filesystems"<br />
[[Mkinitcpio | Read more]] about which HOOKS you can remove.<br />
<br />
=== Rc.conf ===<br />
<br />
Otevřete jako root v textovém editoru /etc/rc.conf a nalistujte si sekci věnovanou hardwaru.<br />
Open /etc/rc.conf as root, scroll to the hardware section.<br />
MOD_AUTOLOAD="yes"<br />
Pokud máte zapnuté automatické nahrávání modulů, není důvod proč je vybírat ručně. Proto promažte MODULES jako zde.<br />
<br />
MODULES=()<br />
<br />
V sekci věnované sítím si ověřte, jestli máte nastavené jenom ty sítě, které potřebujete. Také manuální konfigurace je rychlejší než DHCP.<br />
<br />
Poté vypněte všechny služby, které nepotřebujete.<br />
DAEMONS=(alsa network gdm)<br />
Nakonec posňte váš grafický přihlašovací démon na začátek (pokud nějaký máte) a všem službám nastavte spouštění na pozadí.<br />
DAEMONS=(@gdm @alsa @network)<br />
<br />
=== Rc.sysinit ===<br />
<br />
Otevřete jako root v textovém editoru /etc/rc.sysinit a najděte<br />
/sbin/modprobe $mod<br />
Přidáním '&' na konec se budou všechny moduly nahrávat na pozadí.<br />
/sbin/modprobe $mod &<br />
<br />
=== Inittab ===<br />
<br />
Otevřete jako root v textovém editoru /etc/inittab a najděte řádky s obsahem ohledně agetty.<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
Agetty terminály jsou ty, které vidíte při stisknutí Ctrl+Alt+F1-6.<br />
Nyní, pokud potřebujete jenom dva nebo tři, zakomentujte ty ostatní.<br />
<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
#c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
#c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
#c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
#c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
<br />
== Kompilace jádra ==<br />
<br />
Ke zmenšením času potřebného pro boot je odlehčené jádro nutností.<br />
[[Kernel_Compilation_From_Source | Přečtěte si více o kompilování jádra. ]]<br />
<br />
Zde jsou nějaké tipy od XxX Owned XxX ( http://ubuntuforums.org/showpost.php?p=1174954&postcount=507 ).<br />
Varování: Některé z těchto tipů můžou způsobit, že se jádro nezkompiluje správně. Použijte je pouze na vlastní riziko.<br />
<br />
S=Zapnout<br />
U=Vypnout<br />
<br />
Pokud víte o něčem, co zde chybí, nic vám nebrání to sem přidat!<br />
<br />
===General Setup===<br />
<br />
S: Support for paging of anonymous memory. (swap)<br />
<br />
===Loadable Module Support===<br />
<br />
U: Module Versioning Support<br />
U: Source checksum for all modules<br />
<br />
===Block Layer===<br />
<br />
U: Large Block Devices (Uncheck all if possible)<br />
// IO Schedulers // <br />
U: Anticipatory I/O Schedulers<br />
U: Deadline I/O Schedulers<br />
<br />
===Processor type and features===<br />
<br />
U: Symmetric processing support (Unless your processor(s) support(s) it)<br />
U: Generic x86 support<br />
S: HPET Timer Support<br />
S: Voluntary Kernel Preemption (Desktop) (Under Preemption Model)<br />
S: Local APCI support on uniprocessors<br />
S: IOAPCI support on uniprocessors (Under Local APCI support)<br />
S: Off (Under High Memory support if you have under 1 gig of ram)<br />
S: Sparse Memory (Under Memory Model, some computers will not have this option)<br />
S: MTRR support<br />
S: Use register arguements<br />
S: Enable seccomp to compute untrusted bytecode<br />
S: 1000hz (Under Timer Frequency)<br />
// Firmware Drivers // <br />
U: Anything that you don't need.<br />
<br />
===Bus Options===<br />
<br />
S: Message Signaled Interrupts (MSI and MSIX) (PCI_MSI)<br />
<br />
===Network===<br />
<br />
U: Anything/Everything in Amateur Radio, IrDA, and Bluetooth if you don't need it.<br />
// Network Options // <br />
S: Packet socket:mmapped IO<br />
<br />
===Device Drivers===<br />
<br />
// ATA/ATAP/MFR/RLL support // <br />
S: Use PCI DMA by Default<br />
U: IDE Taskfile Acess<br />
// Raid and LVM // <br />
U: Unselect if you do not need it.<br />
// I2O support // <br />
U: Unselect if you do not need it. Most people do not.<br />
<br />
===Network Device support===<br />
U: EQL support<br />
U: Universial TUN/TAP device driver support<br />
U: FDDI Driver support<br />
U: HIPPI driver support<br />
U: SLIP (serial line) support<br />
U: Traffic Support<br />
U: Network console loggin support<br />
// ARCnet support // <br />
U: Unselect if you do not require/need it.<br />
// Ethernet Support (1000 MB) // <br />
U: Uselect the cards that you don't have.<br />
// Ethernet Support (10000 MB) // <br />
U: Unselect what you do not need.<br />
// Token Ring Devices // <br />
U: Unselect if you are not connected to a Token ring network.<br />
// WAN interfaces support // <br />
U: Unselect the some cards/the whole thing if you do not need it.<br />
// ISDN subsystem // <br />
U: ISDN support (If you do not require it)<br />
<br />
===Input device support===<br />
<br />
U: Touchscreen interface<br />
U: Touchscreens (Under the TouchScreens subcatergory)<br />
<br />
===Character Devices===<br />
<br />
U: Any video cards that you do not need.<br />
// Watchdog cards // <br />
U: Watch Dog Timer support<br />
<br />
===Misc Devices===<br />
<br />
U: Device driver for IBM/RSA service drivers<br />
// Video Capture Adapters // <br />
U: Unselect anything that you don't need.<br />
// Radio Adapters // <br />
U: Unselect anything that you don't need.<br />
// Digital Video Broadcasting Devices // <br />
U: DVB for Linux<br />
<br />
===Graphics support===<br />
<br />
U: Unselect any graphics cards that you don't have.<br />
// Logo Configuration // <br />
S: Bootup Logo (and anything under it)<br />
<br />
===File systems===<br />
<br />
U: Unselect any file systems that you are NOT going to use. (Minix, ROM, Quota, etc.)<br />
// DOS/FAT/NT Filesystems // <br />
S: NTFS write support<br />
// Network File Systems // <br />
U: NFS file system support<br />
U: NFS server support<br />
U: NCP file system support<br />
U: Coda file system support<br />
U: Andrew file system support<br />
U: Plan 9 resource sharing support<br />
// Partition Types // <br />
U: Advanced partition selection<br />
// Native Language Support // <br />
U: Unselect all but your native language<br />
<br />
===Instrumentation Support===<br />
<br />
U: Profiling Support<br />
U: Kprobes<br />
<br />
===Kernel Hacking===<br />
<br />
U: Show timing information on printks<br />
U: Magic SysRq Key<br />
U: Kernel Hacking<br />
U: Debug Filesystem<br />
U: Compile the kernel with frame unwind information</div>Limotohttps://wiki.archlinux.org/index.php?title=Improving_performance/Boot_process&diff=27744Improving performance/Boot process2007-08-12T15:58:24Z<p>Limoto: </p>
<hr />
<div>[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Speedup boot}}<br />
{{i18n_entry|Česky|Rychlejší boot (Česky)}}<br />
{{i18n_links_end}}<br />
<br />
This article contains some tips on how you can improve your boot performance.<br />
<br />
== Tweaking Boot Files ==<br />
<br />
=== Mkinitcpio.conf ===<br />
<br />
Open /etc/mkinitcpio.conf as root and delete the HOOKS you don't need.<br />
HOOKS="base udev autodetect sata usbinput filesystems"<br />
[[Mkinitcpio | Read more]] about which HOOKS you can remove.<br />
<br />
=== Rc.conf ===<br />
<br />
Open /etc/rc.conf as root, scroll to the hardware section.<br />
MOD_AUTOLOAD="yes"<br />
If you autoload your modules, there is no point of manually selecting modules. <br />
So clear out MODULES like this.<br />
MODULES=()<br />
<br />
In the network section, make sure you only load the network interface you need. Manually configuring your network is also faster then using dhcp.<br />
<br />
Then find remove all DAEMONS you don't need.<br />
DAEMONS=(alsa network gdm)<br />
Then move your Xdm to front, and background all DAEMONS.<br />
DAEMONS=(@gdm @alsa @network)<br />
<br />
=== Rc.sysinit ===<br />
<br />
Open /etc/rc.sysinit as root and find<br />
/sbin/modprobe $mod<br />
By adding a '&' to the end, all modules will be loaded in background.<br />
/sbin/modprobe $mod &<br />
<br />
=== Inittab ===<br />
<br />
Open /etc/inittab as root and find the agetty terminal lines.<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
Agetty terminals are what you see when you press Ctrl+Alt+F1-6<br />
Now, if you only need 2 or 3 then comment out the rest.<br />
<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
#c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
#c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
#c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
#c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
<br />
== Compile a kernel ==<br />
<br />
To decrease boot time, a stripped kernel is a must.<br />
[[Kernel_Compilation_From_Source | Read more about compiling a kernel. ]]<br />
<br />
Here are some tips from XxX Owned XxX ( http://ubuntuforums.org/showpost.php?p=1174954&postcount=507 ).<br />
Warning: Some of these tips may cause your kernel to not compile properly. Use them at you own risk.<br />
<br />
S=Select<br />
U=Unselect<br />
<br />
Feel free to add some!<br />
<br />
===General Setup===<br />
<br />
S: Support for paging of anonymous memory. (swap)<br />
<br />
===Loadable Module Support===<br />
<br />
U: Module Versioning Support<br />
U: Source checksum for all modules<br />
<br />
===Block Layer===<br />
<br />
U: Large Block Devices (Uncheck all if possible)<br />
// IO Schedulers // <br />
U: Anticipatory I/O Schedulers<br />
U: Deadline I/O Schedulers<br />
<br />
===Processor type and features===<br />
<br />
U: Symmetric processing support (Unless your processor(s) support(s) it)<br />
U: Generic x86 support<br />
S: HPET Timer Support<br />
S: Voluntary Kernel Preemption (Desktop) (Under Preemption Model)<br />
S: Local APCI support on uniprocessors<br />
S: IOAPCI support on uniprocessors (Under Local APCI support)<br />
S: Off (Under High Memory support if you have under 1 gig of ram)<br />
S: Sparse Memory (Under Memory Model, some computers will not have this option)<br />
S: MTRR support<br />
S: Use register arguements<br />
S: Enable seccomp to compute untrusted bytecode<br />
S: 1000hz (Under Timer Frequency)<br />
// Firmware Drivers // <br />
U: Anything that you don't need.<br />
<br />
===Bus Options===<br />
<br />
S: Message Signaled Interrupts (MSI and MSIX) (PCI_MSI)<br />
<br />
===Network===<br />
<br />
U: Anything/Everything in Amateur Radio, IrDA, and Bluetooth if you don't need it.<br />
// Network Options // <br />
S: Packet socket:mmapped IO<br />
<br />
===Device Drivers===<br />
<br />
// ATA/ATAP/MFR/RLL support // <br />
S: Use PCI DMA by Default<br />
U: IDE Taskfile Acess<br />
// Raid and LVM // <br />
U: Unselect if you do not need it.<br />
// I2O support // <br />
U: Unselect if you do not need it. Most people do not.<br />
<br />
===Network Device support===<br />
U: EQL support<br />
U: Universial TUN/TAP device driver support<br />
U: FDDI Driver support<br />
U: HIPPI driver support<br />
U: SLIP (serial line) support<br />
U: Traffic Support<br />
U: Network console loggin support<br />
// ARCnet support // <br />
U: Unselect if you do not require/need it.<br />
// Ethernet Support (1000 MB) // <br />
U: Uselect the cards that you don't have.<br />
// Ethernet Support (10000 MB) // <br />
U: Unselect what you do not need.<br />
// Token Ring Devices // <br />
U: Unselect if you are not connected to a Token ring network.<br />
// WAN interfaces support // <br />
U: Unselect the some cards/the whole thing if you do not need it.<br />
// ISDN subsystem // <br />
U: ISDN support (If you do not require it)<br />
<br />
===Input device support===<br />
<br />
U: Touchscreen interface<br />
U: Touchscreens (Under the TouchScreens subcatergory)<br />
<br />
===Character Devices===<br />
<br />
U: Any video cards that you do not need.<br />
// Watchdog cards // <br />
U: Watch Dog Timer support<br />
<br />
===Misc Devices===<br />
<br />
U: Device driver for IBM/RSA service drivers<br />
// Video Capture Adapters // <br />
U: Unselect anything that you don't need.<br />
// Radio Adapters // <br />
U: Unselect anything that you don't need.<br />
// Digital Video Broadcasting Devices // <br />
U: DVB for Linux<br />
<br />
===Graphics support===<br />
<br />
U: Unselect any graphics cards that you don't have.<br />
// Logo Configuration // <br />
S: Bootup Logo (and anything under it)<br />
<br />
===File systems===<br />
<br />
U: Unselect any file systems that you are NOT going to use. (Minix, ROM, Quota, etc.)<br />
// DOS/FAT/NT Filesystems // <br />
S: NTFS write support<br />
// Network File Systems // <br />
U: NFS file system support<br />
U: NFS server support<br />
U: NCP file system support<br />
U: Coda file system support<br />
U: Andrew file system support<br />
U: Plan 9 resource sharing support<br />
// Partition Types // <br />
U: Advanced partition selection<br />
// Native Language Support // <br />
U: Unselect all but your native language<br />
<br />
===Instrumentation Support===<br />
<br />
U: Profiling Support<br />
U: Kprobes<br />
<br />
===Kernel Hacking===<br />
<br />
U: Show timing information on printks<br />
U: Magic SysRq Key<br />
U: Kernel Hacking<br />
U: Debug Filesystem<br />
U: Compile the kernel with frame unwind information</div>Limotohttps://wiki.archlinux.org/index.php?title=Improving_performance/Boot_process&diff=27743Improving performance/Boot process2007-08-12T15:57:24Z<p>Limoto: added czech internalization</p>
<hr />
<div>[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Speedup boot}}<br />
{{i18n_entry|Česky|Rychlejší boot}}<br />
{{i18n_links_end}}<br />
<br />
This article contains some tips on how you can improve your boot performance.<br />
<br />
== Tweaking Boot Files ==<br />
<br />
=== Mkinitcpio.conf ===<br />
<br />
Open /etc/mkinitcpio.conf as root and delete the HOOKS you don't need.<br />
HOOKS="base udev autodetect sata usbinput filesystems"<br />
[[Mkinitcpio | Read more]] about which HOOKS you can remove.<br />
<br />
=== Rc.conf ===<br />
<br />
Open /etc/rc.conf as root, scroll to the hardware section.<br />
MOD_AUTOLOAD="yes"<br />
If you autoload your modules, there is no point of manually selecting modules. <br />
So clear out MODULES like this.<br />
MODULES=()<br />
<br />
In the network section, make sure you only load the network interface you need. Manually configuring your network is also faster then using dhcp.<br />
<br />
Then find remove all DAEMONS you don't need.<br />
DAEMONS=(alsa network gdm)<br />
Then move your Xdm to front, and background all DAEMONS.<br />
DAEMONS=(@gdm @alsa @network)<br />
<br />
=== Rc.sysinit ===<br />
<br />
Open /etc/rc.sysinit as root and find<br />
/sbin/modprobe $mod<br />
By adding a '&' to the end, all modules will be loaded in background.<br />
/sbin/modprobe $mod &<br />
<br />
=== Inittab ===<br />
<br />
Open /etc/inittab as root and find the agetty terminal lines.<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
Agetty terminals are what you see when you press Ctrl+Alt+F1-6<br />
Now, if you only need 2 or 3 then comment out the rest.<br />
<br />
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux<br />
#c3:2345:respawn:/sbin/agetty 38400 vc/3 linux<br />
#c4:2345:respawn:/sbin/agetty 38400 vc/4 linux<br />
#c5:2345:respawn:/sbin/agetty 38400 vc/5 linux<br />
#c6:2345:respawn:/sbin/agetty 38400 vc/6 linux<br />
<br />
== Compile a kernel ==<br />
<br />
To decrease boot time, a stripped kernel is a must.<br />
[[Kernel_Compilation_From_Source | Read more about compiling a kernel. ]]<br />
<br />
Here are some tips from XxX Owned XxX ( http://ubuntuforums.org/showpost.php?p=1174954&postcount=507 ).<br />
Warning: Some of these tips may cause your kernel to not compile properly. Use them at you own risk.<br />
<br />
S=Select<br />
U=Unselect<br />
<br />
Feel free to add some!<br />
<br />
===General Setup===<br />
<br />
S: Support for paging of anonymous memory. (swap)<br />
<br />
===Loadable Module Support===<br />
<br />
U: Module Versioning Support<br />
U: Source checksum for all modules<br />
<br />
===Block Layer===<br />
<br />
U: Large Block Devices (Uncheck all if possible)<br />
// IO Schedulers // <br />
U: Anticipatory I/O Schedulers<br />
U: Deadline I/O Schedulers<br />
<br />
===Processor type and features===<br />
<br />
U: Symmetric processing support (Unless your processor(s) support(s) it)<br />
U: Generic x86 support<br />
S: HPET Timer Support<br />
S: Voluntary Kernel Preemption (Desktop) (Under Preemption Model)<br />
S: Local APCI support on uniprocessors<br />
S: IOAPCI support on uniprocessors (Under Local APCI support)<br />
S: Off (Under High Memory support if you have under 1 gig of ram)<br />
S: Sparse Memory (Under Memory Model, some computers will not have this option)<br />
S: MTRR support<br />
S: Use register arguements<br />
S: Enable seccomp to compute untrusted bytecode<br />
S: 1000hz (Under Timer Frequency)<br />
// Firmware Drivers // <br />
U: Anything that you don't need.<br />
<br />
===Bus Options===<br />
<br />
S: Message Signaled Interrupts (MSI and MSIX) (PCI_MSI)<br />
<br />
===Network===<br />
<br />
U: Anything/Everything in Amateur Radio, IrDA, and Bluetooth if you don't need it.<br />
// Network Options // <br />
S: Packet socket:mmapped IO<br />
<br />
===Device Drivers===<br />
<br />
// ATA/ATAP/MFR/RLL support // <br />
S: Use PCI DMA by Default<br />
U: IDE Taskfile Acess<br />
// Raid and LVM // <br />
U: Unselect if you do not need it.<br />
// I2O support // <br />
U: Unselect if you do not need it. Most people do not.<br />
<br />
===Network Device support===<br />
U: EQL support<br />
U: Universial TUN/TAP device driver support<br />
U: FDDI Driver support<br />
U: HIPPI driver support<br />
U: SLIP (serial line) support<br />
U: Traffic Support<br />
U: Network console loggin support<br />
// ARCnet support // <br />
U: Unselect if you do not require/need it.<br />
// Ethernet Support (1000 MB) // <br />
U: Uselect the cards that you don't have.<br />
// Ethernet Support (10000 MB) // <br />
U: Unselect what you do not need.<br />
// Token Ring Devices // <br />
U: Unselect if you are not connected to a Token ring network.<br />
// WAN interfaces support // <br />
U: Unselect the some cards/the whole thing if you do not need it.<br />
// ISDN subsystem // <br />
U: ISDN support (If you do not require it)<br />
<br />
===Input device support===<br />
<br />
U: Touchscreen interface<br />
U: Touchscreens (Under the TouchScreens subcatergory)<br />
<br />
===Character Devices===<br />
<br />
U: Any video cards that you do not need.<br />
// Watchdog cards // <br />
U: Watch Dog Timer support<br />
<br />
===Misc Devices===<br />
<br />
U: Device driver for IBM/RSA service drivers<br />
// Video Capture Adapters // <br />
U: Unselect anything that you don't need.<br />
// Radio Adapters // <br />
U: Unselect anything that you don't need.<br />
// Digital Video Broadcasting Devices // <br />
U: DVB for Linux<br />
<br />
===Graphics support===<br />
<br />
U: Unselect any graphics cards that you don't have.<br />
// Logo Configuration // <br />
S: Bootup Logo (and anything under it)<br />
<br />
===File systems===<br />
<br />
U: Unselect any file systems that you are NOT going to use. (Minix, ROM, Quota, etc.)<br />
// DOS/FAT/NT Filesystems // <br />
S: NTFS write support<br />
// Network File Systems // <br />
U: NFS file system support<br />
U: NFS server support<br />
U: NCP file system support<br />
U: Coda file system support<br />
U: Andrew file system support<br />
U: Plan 9 resource sharing support<br />
// Partition Types // <br />
U: Advanced partition selection<br />
// Native Language Support // <br />
U: Unselect all but your native language<br />
<br />
===Instrumentation Support===<br />
<br />
U: Profiling Support<br />
U: Kprobes<br />
<br />
===Kernel Hacking===<br />
<br />
U: Show timing information on printks<br />
U: Magic SysRq Key<br />
U: Kernel Hacking<br />
U: Debug Filesystem<br />
U: Compile the kernel with frame unwind information</div>Limoto