https://wiki.archlinux.org/api.php?action=feedcontributions&user=Andyg314&feedformat=atomArchWiki - User contributions [en]2024-03-29T12:00:41ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Dell_Mini_10v&diff=290950Dell Mini 10v2013-12-30T17:33:19Z<p>Andyg314: </p>
<hr />
<div>[[Category:Dell]]<br />
[[es:Dell Mini 10v]]<br />
{{Article summary start}}<br />
{{Article summary text|This articles details the installation and configuration of Arch Linux on the Dell Mini 10v. The Dell Mini 10v is a netbook with 10" display from Dell. This article covers the configuration of the graphics card, wireless card and touchpad.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Beginners' Guide}}<br />
{{Article summary wiki|Laptop}}<br />
{{Article summary wiki|Touchpad Synaptics}}<br />
{{Article summary wiki|Acer Aspire One}}<br />
{{Article summary end}}<br />
<br />
== Before you begin ==<br />
This article is intended to assist users with the specifics of installing Arch Linux on the Dell Mini 10v. It is assumed that a user is also following an installation guide such as the [[Beginners' Guide]].<br />
<br />
Dell Mini 10v hardware may vary, however the following list of hardware has been assumed in this article:<br />
<br />
; Audio: Intel Corporation 82801G card<br />
: Realtek ALC272 Chip (from alsamixer)<br />
<br />
; Video: Intel Corporation Mobile 945GME<br />
<br />
; Wired NIC: Realtek RTL8101E/RTL8102E<br />
<br />
; Wireless NIC: Broadcom Corporation BCM4312 802.11b/g<br />
<br />
; Bluetooth: Dell 365 Bluetooth 2.1+EDR<br />
<br />
; Webcam: Syntek Integrated Webcam<br />
<br />
To list hardware, issue this command:<br />
<br />
{{bc|<br />
$ lspci && lsusb<br />
}}<br />
<br />
The Dell Mini 10v does not have an optical drive. This means you will need to install Arch Linux through one of the alternative methods:<br />
<br />
* [[Install from USB stick|USB stick]] (recommended)<br />
* External USB CD-ROM drive.<br />
<br />
To select the required boot media to install Arch Linux, press {{ic|F12}} to open the Boot Menu when booting the Dell Mini 10v.<br />
<br />
== Xorg ==<br />
After reaching the [[Beginners'_Guide#Part_III:_Install_X_and_configure_ALSA|Install X and configure ALSA]] section of the [[Beginners' Guide]], follow these Dell Mini 10v guidelines:<br />
<br />
=== Video Driver ===<br />
Replace vesa with Intel<br />
# pacman -R xf86-video-vesa<br />
# pacman -S xf86-video-intel<br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-gpudriver.conf|<br />
Section "Device"<br />
Identifier "Card0"<br />
Driver "intel"<br />
EndSection<br />
}}<br />
<br />
=== Touchpad ===<br />
The synaptics package is required to use the touchpad. For help refer to the [[Touchpad_Synaptics|Synaptics]] guide. Manual configuration is needed as follows to ignore movements, scrolling and tapping on the bottom section of the touchpad, where the touchpad buttons are located.<br />
<br />
Firstly install the synaptics package:<br />
{{bc|<br />
# pacman -S xf86-input-synaptics<br />
}}<br />
<br />
Add the 'JumpyCursorThreshold' and 'AreaBottomEdge' options to {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}:<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<br />
Section "InputClass"<br />
Identifier "touchpad catchall"<br />
Driver "synaptics"<br />
MatchIsTouchpad "on"<br />
Option "TapButton1" "1"<br />
Option "TapButton2" "2"<br />
Option "TapButton3" "3"<br />
Option "JumpyCursorThreshold" "90"<br />
Option "AreaBottomEdge" "4100"<br />
EndSection<br />
}}<br />
<br />
Once X has been restarted, the bottom part of the touchpad will be disabled, allowing a user to click without unintentional movements of the mouse. See the synaptics manual page for available options:<br />
{{bc|<br />
$ man synaptics<br />
}}<br />
<br />
==Wireless==<br />
The Wireless NIC is supported by the b43 module and is included in kernel from 2.6.32 on. Firmware must be installed for this hardware, as outlined in the [[Wireless_Setup#b43|Wireless Setup]] article. You can find instructions for downloading and installing the correct firmware at this webpage: [http://wireless.kernel.org/en/users/Drivers/b43#fw-b43-lp].<br />
<br />
If you have difficulty with connection, or have unstable connection, try the option<br />
{{bc|1=<br />
qos=0<br />
}}<br />
when loading the b43 module. This can be done with<br />
{{bc|1=<br />
rmmod b43 # remove the module<br />
modprobe b43 qos=0 # reload it with the option<br />
}}<br />
Once confirming that it works, you can create a file /etc/modprobe.d/b43.conf with the following line<br />
{{bc|1=<br />
options b43 qos=0<br />
}}<br />
permanently.<br />
<br />
-- other option - to use broadcom-wl driver from AUR repository<br />
{{bc|<br />
yaourt -S broadcom-wl<br />
}}<br />
<br />
== Power ==<br />
=== Battery status ===<br />
For utilities to monitor the battery status, see the [[Laptop]] article.<br />
<br />
=== Suspend to RAM ===<br />
To suspend to RAM, install both {{Pkg|pm-utils}} and {{Pkg|acpid}}:<br />
<br />
{{bc|<br />
# pacman -S pm-utils acpid<br />
}}<br />
<br />
The acpid package handles events such as pressing the the power button or closing the laptop lid. For more information, see the [[Acpid]] article. To suspend to RAM, edit {{ic|/etc/acpi/handlers.sh}} to tell the acpid package to call the pm-suspend script (part of [[pm-utils]]), when an event such as closing the laptop lid occurs. Below, {{Ic|/usr/sbin/pm-suspend}} has been added to the ''button/lid'' and ''button/power'' sections:<br />
<br />
{{hc|/etc/acpi/handlers.sh|<br />
#!/bin/sh<br />
# Default acpi script that takes an entry for all actions<br />
<br />
.....<br />
<br />
case "$1" in<br />
button/power)<br />
#echo "PowerButton pressed!">/dev/tty5<br />
/usr/sbin/pm-suspend # <<<< ADDED HERE<br />
case "$2" in<br />
PWRF) logger "PowerButton pressed: $2" ;;<br />
*) logger "ACPI action undefined: $2" ;;<br />
esac<br />
;;<br />
<br />
.....<br />
<br />
button/lid)<br />
#echo "LID switched!">/dev/tty5<br />
/usr/sbin/pm-suspend # <<<< ADDED HERE<br />
;;<br />
*)<br />
logger "ACPI group/action undefined: $1 / $2"<br />
;;<br />
esac<br />
}}<br />
<br />
The netbook will now suspend to RAM when the laptop lid is closed or power button pressed. To wake the netbook, open the lid or press the power button once more.<br />
<br />
It may happen that the resume takes more than 5 seconds of black screen before coming back. This may be caused by the b43 firmware loading delay. A close inspection of 'dmesg' should reveal the cause: check the line containing 'b43-phy0' to see if reload it takes a long time. If so, create a file /etc/pm/config.d/modules and add <br />
{{hc|/etc/pm/config.d/modules|2=<br />
SUSPEND_MODULES="b43"<br />
}}<br />
This should reduce the resume time significantly to the extent that the graphical display comes back almost instantaneously.<br />
<br />
== Extras ==<br />
=== Sound and Microphone ===<br />
Sound can be set up as outlined in the [[Beginners'_Guide#Part_III:_Install_X_and_configure_ALSA|ALSA section of Beginners' Guide]]. The microphone and speaker can be unmuted and volume increased by using alsamixer:<br />
<br />
{{bc|<br />
$ alsamixer<br />
}}<br />
<br />
Firstly, press {{ic|Fn}}+{{ic|F5}} to view both Playback and Capture cards. Now press {{ic|M}} to unmute Master, PCM, Mic and Capture. Arrows can be used to select the channel and increase volume.<br />
<br />
To save these ALSA settings, issue this command:<br />
{{bc|<br />
# alsactl store<br />
}}<br />
<br />
=== Webcam ===<br />
The inbuilt webcam works out of the box, with the latest kernel. You may use the {{Pkg|cheese}} package to test the webcam, however this package depends on {{Pkg|gnome-desktop}}. Also check that the normal user is a member of the ''video'' group:<br />
{{bc|<br />
$ groups $USER<br />
}}<br />
<br />
=== Bluetooth ===<br />
Follow the [[Bluetooth]] article for setting up Bluetooth.<br />
<br />
=== SD card reader ===<br />
The SD card reader works out of the box.<br />
<br />
=== Solid-state drive ===<br />
For maximising performace of a SSD, refer to [[Maximizing_performance#Tuning_for_an_SSD|this]] article.<br />
<br />
=== custom kernel installation ===<br />
best kernel for Dell Mini 10v - kernel-netbook https://aur.archlinux.org/packages.php?ID=34625<br />
{{bc|<br />
yaourt -S kernel-netbook<br />
}}<br />
(since kernel.org server is currently down due to server security breach, you have to edit PKGBUILD)<br />
{{bc|<nowiki><br />
# Maintainer: Dieghen89 <dieghen89@gmail.com><br />
<br />
BFQ_IO_SCHEDULER="y"<br />
TUX_ON_ICE="y"<br />
<br />
pkgname=kernel-netbook<br />
true && pkgname=('kernel-netbook' 'kernel-netbook-headers')<br />
makedepends=('dmidecode' 'xmlto' 'docbook-xsl' 'linux-firmware')<br />
optdepends=('hibernate-script: tux on ice default script' 'tuxonice-userui: graphical interface for toi [AUR]')<br />
_basekernel=3.0<br />
pkgver=${_basekernel}.6<br />
pkgrel=1<br />
pkgdesc="Static kernel for netbooks with Intel Atom N270/N280/N450/N550 such as eeepc with the add-on of external firmware (broadcom-wl) and patchset (BFS + TOI + BFQ optional) - Only Intel GPU - Give more power to your netbook!"<br />
options=('!strip')<br />
arch=('i686')<br />
license=('GPL2')<br />
url=('http://code.google.com/p/kernel-netbook')<br />
<br />
####################################<br />
md5sums=('398e95866794def22b12dfbc15ce89c0'<br />
'792f01cc8874d03a84e47fd0e7065df8'<br />
'c0074a1622c75916442e26763ddf47d0'<br />
'bca399a46c7d83affdace85b9c633e36'<br />
'a325f43707984c93672d8f4aaf76fc2b'<br />
'e1064f82d5faab2119af5f6dbeae2cb1'<br />
'5d7307a9b6bf0271ee55cae6c6fe2610'<br />
'afbd01926c57fc5b82ee6034dc9311e5'<br />
'e8c333eaeac43f5c6a1d7b2f47af12e2'<br />
'5974286ba3e9716bfbad83d3f4ee985a'<br />
'a6f0377c814da594cffcacbc0785ec1a'<br />
'2bb172117ede96c14289f9f9bc34f58f'<br />
'aee89fe7f034aea2f2ca95322774c1b5'<br />
'21ce3f7967d7305064bf7eb60030ffea'<br />
'263725f20c0b9eb9c353040792d644e5'<br />
'9d3c56a4b999c8bfbd4018089a62f662'<br />
'9cd62013cee44d529de140821dd75654'<br />
'5b4d6028d85320dc6bc4034991dfab9d')<br />
###################################<br />
# external drivers and firmware #<br />
###################################<br />
<br />
#Broadcom-wl:<br />
broadcom_ver=5.100.82.38<br />
broadcom="hybrid-portsrc_x86_32-v${broadcom_ver//./_}"<br />
#BFS: - http://users.on.net/~ckolivas/kernel/ -<br />
_ckpatchversion=1<br />
_ckpatchname="patch-${_basekernel}.0-ck${_ckpatchversion}"<br />
#BFQ: - http://algo.ing.unimo.it/people/paolo/disk_sched/ -<br />
_bfqpatchversion="1"<br />
_bfqpath="http://algo.ing.unimo.it/people/paolo/disk_sched/patches/3.0.0"<br />
#TuxOnIce:<br />
_toipatch="current-tuxonice-for-3.0.patch.bz2"<br />
<br />
##### Sources #####<br />
source=( #kernel sources and arch patchset<br />
"http://lame.lut.fi/linux/kernel/v3.0/linux-${_basekernel}.tar.bz2"<br />
#"http://lame.lut.fi/linux/kernel/v3.0/patch-${pkgver}.bz2"<br />
"ftp://ftp.archlinux.org/other/linux/patch-${pkgver}.gz"<br />
#external drivers:<br />
"http://www.broadcom.com/docs/linux_sta/${broadcom}.tar.gz"<br />
#"http://switch.dl.sourceforge.net/sourceforge/syntekdriver/stk11xx-$stk11xx_ver.tar.gz"<br />
#BFS patch:<br />
"http://kernelorg.mirrors.tds.net/pub/linux/kernel/people/ck/patches/3.0/${_basekernel}.0-ck${_ckpatchversion}/${_ckpatchname}.bz2"<br />
#BFQ patch:<br />
"${_bfqpath}/0001-block-prepare-I-O-context-code-for-BFQ-v3-for-3.0.patch"<br />
"${_bfqpath}/0002-block-cgroups-kconfig-build-bits-for-BFQ-v3-3.0.patch"<br />
"${_bfqpath}/0003-block-introduce-the-BFQ-v3-I-O-sched-for-3.0.patch"<br />
#TuxOnIce:<br />
"http://tuxonice.net/files/${_toipatch}"<br />
#Arch Logo<br />
"logo_linux_mono.pbm"<br />
"logo_linux_clut224.ppm"<br />
"logo_linux_vga16.ppm"<br />
#Others:<br />
"license.patch"<br />
"semaphore.patch"<br />
"mutex-sema.patch"<br />
"fix-i915.patch"<br />
"change-default-console-loglevel.patch"<br />
"kernel-netbook.preset"<br />
"config")<br />
<br />
build() {<br />
cd ${srcdir}/linux-$_basekernel<br />
<br />
# Patching Time:<br />
<br />
# minorversion patch:<br />
patch -p1 -i "${srcdir}/patch-${pkgver}"<br />
<br />
# fix #19234 i1915 display size<br />
patch -Np1 -i "${srcdir}/fix-i915.patch"<br />
<br />
# set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)<br />
# remove this when a Kconfig knob is made available by upstream<br />
# (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)<br />
patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"<br />
<br />
# replace tux logo with arch one<br />
install -m644 ${srcdir}/logo_linux_clut224.ppm drivers/video/logo/<br />
install -m644 ${srcdir}/logo_linux_mono.pbm drivers/video/logo/<br />
install -m644 ${srcdir}/logo_linux_vga16.ppm drivers/video/logo/<br />
<br />
# --> BFS<br />
msg "Patching source with BFS patch:"<br />
#Adjust localversion<br />
sed -i -e "s/-ck${_ckpatchversion}//g" ${srcdir}/${_ckpatchname}<br />
#patching time<br />
patch -Np1 -i ${srcdir}/${_ckpatchname}<br />
<br />
# --> TOI<br />
if [ $TUX_ON_ICE = "y" ] ; then<br />
msg "Patching source with TuxOnIce patch"<br />
bzip2 -dck ${srcdir}/${_toipatch} \<br />
| sed 's/printk(KERN_INFO "PM: Creating hibernation image:\\n/printk(KERN_INFO "PM: Creating hibernation image: \\n/' \<br />
| patch -Np1 -F4 || { echo "Failed TOI"; return 1 ; }<br />
fi<br />
<br />
# --> BFQ<br />
if [ $BFQ_IO_SCHEDULER = "y" ] ; then<br />
msg "Patching source with BFQ patches"<br />
for i in $(ls ${srcdir}/000*.patch); do<br />
patch -Np1 -i $i<br />
done<br />
fi<br />
<br />
<br />
### Clean tree and copy ARCH config over<br />
msg "Running make mrproper to clean source tree"<br />
make mrproper<br />
<br />
# copy config<br />
cp ../config ./.config<br />
<br />
make prepare<br />
<br />
# make defconfig<br />
# configure kernel <br />
# use menuconfig, if you want to change the configuration<br />
make menuconfig<br />
# make gconfig<br />
yes "" | make config<br />
# build kernel<br />
msg "Now starts something magic:"<br />
make ${MAKEFLAGS} bzImage modules<br />
}<br />
<br />
package_kernel-netbook() {<br />
pkgdesc='Static kernel for netbooks with Intel Atom N270/N280/N450/N550 such as eeepc with the add-on of external firmware (broadcom-wl) - Only Intel GPU - Give more power to your netbook!'<br />
depends=('coreutils' 'module-init-tools')<br />
install=kernel-netbook.install<br />
optdepends=('crda: for wireless regulatory domain support' <br />
'linux-firmware: firmware for rt2860, tigon3, brcmsmac'<br />
'hibernate-script: tux on ice default script'<br />
'tuxonice-userui: graphical interface for toi [AUR]')<br />
groups=(eee)<br />
<br />
cd ${srcdir}/linux-$_basekernel<br />
# install our modules<br />
mkdir -p $pkgdir/{lib/modules,boot}<br />
make INSTALL_MOD_PATH=$pkgdir modules_install<br />
<br />
# Get kernel version<br />
_kernver="$(make kernelrelease)"<br />
<br />
# remove build and source links<br />
rm -r $pkgdir/lib/modules/$_kernver/{source,build}<br />
<br />
# remove the firmware directory<br />
rm -rf ${pkgdir}/lib/firmware<br />
<br />
# install the kernel<br />
install -D -m644 ${srcdir}/linux-$_basekernel/System.map $pkgdir/boot/System.map-netbook<br />
install -D -m644 ${srcdir}/linux-$_basekernel/arch/x86/boot/bzImage ${pkgdir}/boot/vmlinuz-netbook<br />
install -D -m644 ${srcdir}/linux-$_basekernel/.config $pkgdir/boot/kconfig-netbook<br />
<br />
# install preset file for mkinitcpio<br />
sed -i -e "s/ALL_kver=.*/ALL_kver=\'${_kernver}\'/g" ${srcdir}/${pkgname}.preset<br />
install -m644 -D ${srcdir}/${pkgname}.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset<br />
<br />
# set correct depmod command for install<br />
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/$pkgname.install<br />
<br />
##Section: Broadcom-wl<br />
#msg "Compiling broadcom-wl module:"<br />
#cd ${srcdir}/<br />
##patching broadcom as broadcom-wl package on AUR<br />
#patch -p1 < license.patch<br />
#patch -p1 < semaphore.patch<br />
#patch -p1 < mutex-sema.patch<br />
#make -C ${srcdir}/linux-$_basekernel M=`pwd`<br />
#install -D -m 755 wl.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/wl.ko<br />
<br />
# gzip -9 all modules to safe a lot of MB of space<br />
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;<br />
}<br />
<br />
package_kernel-netbook-headers() {<br />
KARCH=x86<br />
pkgdesc='Header files and scripts for building modules for kernel-netbook'<br />
<br />
mkdir -p "${pkgdir}/lib/modules/${_kernver}"<br />
<br />
cd "${pkgdir}/lib/modules/${_kernver}"<br />
ln -sf ../../../usr/src/linux-${_kernver} build<br />
<br />
cd "${srcdir}/linux-${_basekernel}"<br />
install -D -m644 Makefile \<br />
"${pkgdir}/usr/src/linux-${_kernver}/Makefile"<br />
install -D -m644 kernel/Makefile \<br />
"${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"<br />
install -D -m644 .config \<br />
"${pkgdir}/usr/src/linux-${_kernver}/.config"<br />
<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"<br />
<br />
for i in acpi asm-generic config crypto drm generated linux math-emu \<br />
media net pcmcia scsi sound trace video xen; do<br />
cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"<br />
done<br />
<br />
# copy arch includes for external modules<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/x86"<br />
cp -a arch/x86/include "${pkgdir}/usr/src/linux-${_kernver}/arch/x86/"<br />
<br />
# copy files necessary for later builds, like nvidia and vmware<br />
cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"<br />
cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"<br />
<br />
# fix permissions on scripts dir<br />
chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"<br />
<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"<br />
<br />
cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"<br />
<br />
if [ "${CARCH}" = "i686" ]; then<br />
cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"<br />
fi<br />
<br />
cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"<br />
<br />
# add headers for lirc package<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video"<br />
<br />
cp drivers/media/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/"<br />
<br />
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"<br />
cp -a drivers/media/video/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"<br />
done<br />
<br />
# add docbook makefile<br />
install -D -m644 Documentation/DocBook/Makefile \<br />
"${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"<br />
<br />
# add dm headers<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"<br />
cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"<br />
<br />
# add inotify.h<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"<br />
cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"<br />
<br />
# add wireless headers<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"<br />
cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"<br />
<br />
# add dvb headers for external modules<br />
# in reference to:<br />
# http://bugs.archlinux.org/task/9912<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core"<br />
cp drivers/media/dvb/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/"<br />
# and...<br />
# http://bugs.archlinux.org/task/11194<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"<br />
cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"<br />
<br />
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new<br />
# in reference to:<br />
# http://bugs.archlinux.org/task/13146<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"<br />
cp drivers/media/dvb/frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"<br />
cp drivers/media/video/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"<br />
<br />
# add dvb headers<br />
# in reference to:<br />
# http://bugs.archlinux.org/task/20402<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"<br />
cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"<br />
cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"<br />
cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"<br />
<br />
# add xfs and shmem for aufs building<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"<br />
cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"<br />
<br />
# copy in Kconfig files<br />
for i in `find . -name "Kconfig*"`; do<br />
mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`<br />
cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"<br />
done<br />
<br />
chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"<br />
find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;<br />
<br />
# strip scripts directory<br />
find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do<br />
case "$(file -bi "${binary}")" in<br />
*application/x-sharedlib*) # Libraries (.so)<br />
/usr/bin/strip ${STRIP_SHARED} "${binary}";;<br />
*application/x-archive*) # Libraries (.a)<br />
/usr/bin/strip ${STRIP_STATIC} "${binary}";;<br />
*application/x-executable*) # Binaries<br />
/usr/bin/strip ${STRIP_BINARIES} "${binary}";;<br />
esac<br />
done<br />
<br />
# remove unneeded architectures<br />
rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}<br />
}<br />
</nowiki>}}<br />
<br />
create initrd<br />
{{bc|<br />
cd /lib/modules/3.0.6-netbook<br />
mkinitcpio -k 3.0.6-netbook -g /boot/initramfs-netbook.img<br />
}}<br />
edit grub menu.lst<br />
{{bc|1=<br />
# Arch netbook<br />
title Arch netbook<br />
root (hdx,x)<br />
kernel /boot/vmlinuz-netbook root=/dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxx$<br />
initrd /boot/initramfs-netbook.img<br />
}}<br />
<br />
=== Desktop installation ===<br />
gnome works best on Dell mini 10v. KDE seems to be too heavy for Dell mini Atom processor<br />
{{bc|<br />
pacman -Syu gnome gdm<br />
}}<br />
use gdm as login manager<br />
{{bc|<br />
nano /etc/inittab<br />
}}<br />
{{bc|<br />
x:5:respawn:/usr/sbin/gdm -nodaemon<br />
}}</div>Andyg314https://wiki.archlinux.org/index.php?title=Dell_Mini_10v&diff=290949Dell Mini 10v2013-12-30T17:30:07Z<p>Andyg314: </p>
<hr />
<div>[[Category:Dell]]<br />
[[es:Dell Mini 10v]]<br />
{{Article summary start}}<br />
{{Article summary text|This articles details the installation and configuration of Arch Linux on the Dell Mini 10v. The Dell Mini 10v is a netbook with 10" display from Dell. This article covers the configuration of the graphics card, wireless card and touchpad.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Beginners' Guide}}<br />
{{Article summary wiki|Laptop}}<br />
{{Article summary wiki|Touchpad Synaptics}}<br />
{{Article summary wiki|Acer Aspire One}}<br />
{{Article summary end}}<br />
<br />
== Before you begin ==<br />
This article is intended to assist users with the specifics of installing Arch Linux on the Dell Mini 10v. It is assumed that a user is also following an installation guide such as the [[Beginners' Guide]].<br />
<br />
Dell Mini 10v hardware may vary, however the following list of hardware has been assumed in this article:<br />
<br />
; Audio: Intel Corporation 82801G card<br />
: Realtek ALC272 Chip (from alsamixer)<br />
<br />
; Video: Intel Corporation Mobile 945GME<br />
<br />
; Wired NIC: Realtek RTL8101E/RTL8102E<br />
<br />
; Wireless NIC: Broadcom Corporation BCM4312 802.11b/g<br />
<br />
; Bluetooth: Dell 365 Bluetooth 2.1+EDR<br />
<br />
; Webcam: Syntek Integrated Webcam<br />
<br />
To list hardware, issue this command:<br />
<br />
{{bc|<br />
$ lspci && lsusb<br />
}}<br />
<br />
The Dell Mini 10v does not have an optical drive. This means you will need to install Arch Linux through one of the alternative methods:<br />
<br />
* [[Install from USB stick|USB stick]] (recommended)<br />
* External USB CD-ROM drive.<br />
<br />
To select the required boot media to install Arch Linux, press {{ic|F12}} to open the Boot Menu when booting the Dell Mini 10v.<br />
<br />
== Xorg ==<br />
After reaching the [[Beginners'_Guide#Part_III:_Install_X_and_configure_ALSA|Install X and configure ALSA]] section of the [[Beginners' Guide]], follow these Dell Mini 10v guidelines:<br />
<br />
=== Video Driver ===<br />
Replace vesa with Intel<br />
# pacman -R xf86-video-vesa<br />
# pacman -S xf86-video-intel<br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-gpudriver.conf|<br />
Section "Device"<br />
Identifier "Card0"<br />
Driver "intel"<br />
EndSection<br />
}}<br />
<br />
=== Touchpad ===<br />
The synaptics package is required to use the touchpad. For help refer to the [[Touchpad_Synaptics|Synaptics]] guide. Manual configuration is needed as follows to ignore movements, scrolling and tapping on the bottom section of the touchpad, where the touchpad buttons are located.<br />
<br />
Firstly install the synaptics package:<br />
{{bc|<br />
# pacman -S xf86-input-synaptics<br />
}}<br />
<br />
Add the 'JumpyCursorThreshold' and 'AreaBottomEdge' options to {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}:<br />
{{hc|/etc/X11/xorg.conf.d/10-synaptics.conf|<br />
Section "InputClass"<br />
Identifier "touchpad catchall"<br />
Driver "synaptics"<br />
MatchIsTouchpad "on"<br />
Option "TapButton1" "1"<br />
Option "TapButton2" "2"<br />
Option "TapButton3" "3"<br />
Option "JumpyCursorThreshold" "90"<br />
Option "AreaBottomEdge" "4100"<br />
EndSection<br />
}}<br />
<br />
Once X has been restarted, the bottom part of the touchpad will be disabled, allowing a user to click without unintentional movements of the mouse. See the synaptics manual page for available options:<br />
{{bc|<br />
$ man synaptics<br />
}}<br />
<br />
==Wireless==<br />
The Wireless NIC is supported by the b43 module and is included in kernel from 2.6.32 on. Firmware must be installed for this hardware, as outlined in the [[Wireless_Setup#b43|Wireless Setup]] article. This [[http://wireless.kernel.org/en/users/Drivers/b43#fw-b43-lp|webpage]] has instructions for downloading the correct firmware for the wireless NIC.<br />
<br />
If you have difficulty with connection, or have unstable connection, try the option<br />
{{bc|1=<br />
qos=0<br />
}}<br />
when loading the b43 module. This can be done with<br />
{{bc|1=<br />
rmmod b43 # remove the module<br />
modprobe b43 qos=0 # reload it with the option<br />
}}<br />
Once confirming that it works, you can create a file /etc/modprobe.d/b43.conf with the following line<br />
{{bc|1=<br />
options b43 qos=0<br />
}}<br />
permanently.<br />
<br />
-- other option - to use broadcom-wl driver from AUR repository<br />
{{bc|<br />
yaourt -S broadcom-wl<br />
}}<br />
<br />
== Power ==<br />
=== Battery status ===<br />
For utilities to monitor the battery status, see the [[Laptop]] article.<br />
<br />
=== Suspend to RAM ===<br />
To suspend to RAM, install both {{Pkg|pm-utils}} and {{Pkg|acpid}}:<br />
<br />
{{bc|<br />
# pacman -S pm-utils acpid<br />
}}<br />
<br />
The acpid package handles events such as pressing the the power button or closing the laptop lid. For more information, see the [[Acpid]] article. To suspend to RAM, edit {{ic|/etc/acpi/handlers.sh}} to tell the acpid package to call the pm-suspend script (part of [[pm-utils]]), when an event such as closing the laptop lid occurs. Below, {{Ic|/usr/sbin/pm-suspend}} has been added to the ''button/lid'' and ''button/power'' sections:<br />
<br />
{{hc|/etc/acpi/handlers.sh|<br />
#!/bin/sh<br />
# Default acpi script that takes an entry for all actions<br />
<br />
.....<br />
<br />
case "$1" in<br />
button/power)<br />
#echo "PowerButton pressed!">/dev/tty5<br />
/usr/sbin/pm-suspend # <<<< ADDED HERE<br />
case "$2" in<br />
PWRF) logger "PowerButton pressed: $2" ;;<br />
*) logger "ACPI action undefined: $2" ;;<br />
esac<br />
;;<br />
<br />
.....<br />
<br />
button/lid)<br />
#echo "LID switched!">/dev/tty5<br />
/usr/sbin/pm-suspend # <<<< ADDED HERE<br />
;;<br />
*)<br />
logger "ACPI group/action undefined: $1 / $2"<br />
;;<br />
esac<br />
}}<br />
<br />
The netbook will now suspend to RAM when the laptop lid is closed or power button pressed. To wake the netbook, open the lid or press the power button once more.<br />
<br />
It may happen that the resume takes more than 5 seconds of black screen before coming back. This may be caused by the b43 firmware loading delay. A close inspection of 'dmesg' should reveal the cause: check the line containing 'b43-phy0' to see if reload it takes a long time. If so, create a file /etc/pm/config.d/modules and add <br />
{{hc|/etc/pm/config.d/modules|2=<br />
SUSPEND_MODULES="b43"<br />
}}<br />
This should reduce the resume time significantly to the extent that the graphical display comes back almost instantaneously.<br />
<br />
== Extras ==<br />
=== Sound and Microphone ===<br />
Sound can be set up as outlined in the [[Beginners'_Guide#Part_III:_Install_X_and_configure_ALSA|ALSA section of Beginners' Guide]]. The microphone and speaker can be unmuted and volume increased by using alsamixer:<br />
<br />
{{bc|<br />
$ alsamixer<br />
}}<br />
<br />
Firstly, press {{ic|Fn}}+{{ic|F5}} to view both Playback and Capture cards. Now press {{ic|M}} to unmute Master, PCM, Mic and Capture. Arrows can be used to select the channel and increase volume.<br />
<br />
To save these ALSA settings, issue this command:<br />
{{bc|<br />
# alsactl store<br />
}}<br />
<br />
=== Webcam ===<br />
The inbuilt webcam works out of the box, with the latest kernel. You may use the {{Pkg|cheese}} package to test the webcam, however this package depends on {{Pkg|gnome-desktop}}. Also check that the normal user is a member of the ''video'' group:<br />
{{bc|<br />
$ groups $USER<br />
}}<br />
<br />
=== Bluetooth ===<br />
Follow the [[Bluetooth]] article for setting up Bluetooth.<br />
<br />
=== SD card reader ===<br />
The SD card reader works out of the box.<br />
<br />
=== Solid-state drive ===<br />
For maximising performace of a SSD, refer to [[Maximizing_performance#Tuning_for_an_SSD|this]] article.<br />
<br />
=== custom kernel installation ===<br />
best kernel for Dell Mini 10v - kernel-netbook https://aur.archlinux.org/packages.php?ID=34625<br />
{{bc|<br />
yaourt -S kernel-netbook<br />
}}<br />
(since kernel.org server is currently down due to server security breach, you have to edit PKGBUILD)<br />
{{bc|<nowiki><br />
# Maintainer: Dieghen89 <dieghen89@gmail.com><br />
<br />
BFQ_IO_SCHEDULER="y"<br />
TUX_ON_ICE="y"<br />
<br />
pkgname=kernel-netbook<br />
true && pkgname=('kernel-netbook' 'kernel-netbook-headers')<br />
makedepends=('dmidecode' 'xmlto' 'docbook-xsl' 'linux-firmware')<br />
optdepends=('hibernate-script: tux on ice default script' 'tuxonice-userui: graphical interface for toi [AUR]')<br />
_basekernel=3.0<br />
pkgver=${_basekernel}.6<br />
pkgrel=1<br />
pkgdesc="Static kernel for netbooks with Intel Atom N270/N280/N450/N550 such as eeepc with the add-on of external firmware (broadcom-wl) and patchset (BFS + TOI + BFQ optional) - Only Intel GPU - Give more power to your netbook!"<br />
options=('!strip')<br />
arch=('i686')<br />
license=('GPL2')<br />
url=('http://code.google.com/p/kernel-netbook')<br />
<br />
####################################<br />
md5sums=('398e95866794def22b12dfbc15ce89c0'<br />
'792f01cc8874d03a84e47fd0e7065df8'<br />
'c0074a1622c75916442e26763ddf47d0'<br />
'bca399a46c7d83affdace85b9c633e36'<br />
'a325f43707984c93672d8f4aaf76fc2b'<br />
'e1064f82d5faab2119af5f6dbeae2cb1'<br />
'5d7307a9b6bf0271ee55cae6c6fe2610'<br />
'afbd01926c57fc5b82ee6034dc9311e5'<br />
'e8c333eaeac43f5c6a1d7b2f47af12e2'<br />
'5974286ba3e9716bfbad83d3f4ee985a'<br />
'a6f0377c814da594cffcacbc0785ec1a'<br />
'2bb172117ede96c14289f9f9bc34f58f'<br />
'aee89fe7f034aea2f2ca95322774c1b5'<br />
'21ce3f7967d7305064bf7eb60030ffea'<br />
'263725f20c0b9eb9c353040792d644e5'<br />
'9d3c56a4b999c8bfbd4018089a62f662'<br />
'9cd62013cee44d529de140821dd75654'<br />
'5b4d6028d85320dc6bc4034991dfab9d')<br />
###################################<br />
# external drivers and firmware #<br />
###################################<br />
<br />
#Broadcom-wl:<br />
broadcom_ver=5.100.82.38<br />
broadcom="hybrid-portsrc_x86_32-v${broadcom_ver//./_}"<br />
#BFS: - http://users.on.net/~ckolivas/kernel/ -<br />
_ckpatchversion=1<br />
_ckpatchname="patch-${_basekernel}.0-ck${_ckpatchversion}"<br />
#BFQ: - http://algo.ing.unimo.it/people/paolo/disk_sched/ -<br />
_bfqpatchversion="1"<br />
_bfqpath="http://algo.ing.unimo.it/people/paolo/disk_sched/patches/3.0.0"<br />
#TuxOnIce:<br />
_toipatch="current-tuxonice-for-3.0.patch.bz2"<br />
<br />
##### Sources #####<br />
source=( #kernel sources and arch patchset<br />
"http://lame.lut.fi/linux/kernel/v3.0/linux-${_basekernel}.tar.bz2"<br />
#"http://lame.lut.fi/linux/kernel/v3.0/patch-${pkgver}.bz2"<br />
"ftp://ftp.archlinux.org/other/linux/patch-${pkgver}.gz"<br />
#external drivers:<br />
"http://www.broadcom.com/docs/linux_sta/${broadcom}.tar.gz"<br />
#"http://switch.dl.sourceforge.net/sourceforge/syntekdriver/stk11xx-$stk11xx_ver.tar.gz"<br />
#BFS patch:<br />
"http://kernelorg.mirrors.tds.net/pub/linux/kernel/people/ck/patches/3.0/${_basekernel}.0-ck${_ckpatchversion}/${_ckpatchname}.bz2"<br />
#BFQ patch:<br />
"${_bfqpath}/0001-block-prepare-I-O-context-code-for-BFQ-v3-for-3.0.patch"<br />
"${_bfqpath}/0002-block-cgroups-kconfig-build-bits-for-BFQ-v3-3.0.patch"<br />
"${_bfqpath}/0003-block-introduce-the-BFQ-v3-I-O-sched-for-3.0.patch"<br />
#TuxOnIce:<br />
"http://tuxonice.net/files/${_toipatch}"<br />
#Arch Logo<br />
"logo_linux_mono.pbm"<br />
"logo_linux_clut224.ppm"<br />
"logo_linux_vga16.ppm"<br />
#Others:<br />
"license.patch"<br />
"semaphore.patch"<br />
"mutex-sema.patch"<br />
"fix-i915.patch"<br />
"change-default-console-loglevel.patch"<br />
"kernel-netbook.preset"<br />
"config")<br />
<br />
build() {<br />
cd ${srcdir}/linux-$_basekernel<br />
<br />
# Patching Time:<br />
<br />
# minorversion patch:<br />
patch -p1 -i "${srcdir}/patch-${pkgver}"<br />
<br />
# fix #19234 i1915 display size<br />
patch -Np1 -i "${srcdir}/fix-i915.patch"<br />
<br />
# set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)<br />
# remove this when a Kconfig knob is made available by upstream<br />
# (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)<br />
patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"<br />
<br />
# replace tux logo with arch one<br />
install -m644 ${srcdir}/logo_linux_clut224.ppm drivers/video/logo/<br />
install -m644 ${srcdir}/logo_linux_mono.pbm drivers/video/logo/<br />
install -m644 ${srcdir}/logo_linux_vga16.ppm drivers/video/logo/<br />
<br />
# --> BFS<br />
msg "Patching source with BFS patch:"<br />
#Adjust localversion<br />
sed -i -e "s/-ck${_ckpatchversion}//g" ${srcdir}/${_ckpatchname}<br />
#patching time<br />
patch -Np1 -i ${srcdir}/${_ckpatchname}<br />
<br />
# --> TOI<br />
if [ $TUX_ON_ICE = "y" ] ; then<br />
msg "Patching source with TuxOnIce patch"<br />
bzip2 -dck ${srcdir}/${_toipatch} \<br />
| sed 's/printk(KERN_INFO "PM: Creating hibernation image:\\n/printk(KERN_INFO "PM: Creating hibernation image: \\n/' \<br />
| patch -Np1 -F4 || { echo "Failed TOI"; return 1 ; }<br />
fi<br />
<br />
# --> BFQ<br />
if [ $BFQ_IO_SCHEDULER = "y" ] ; then<br />
msg "Patching source with BFQ patches"<br />
for i in $(ls ${srcdir}/000*.patch); do<br />
patch -Np1 -i $i<br />
done<br />
fi<br />
<br />
<br />
### Clean tree and copy ARCH config over<br />
msg "Running make mrproper to clean source tree"<br />
make mrproper<br />
<br />
# copy config<br />
cp ../config ./.config<br />
<br />
make prepare<br />
<br />
# make defconfig<br />
# configure kernel <br />
# use menuconfig, if you want to change the configuration<br />
make menuconfig<br />
# make gconfig<br />
yes "" | make config<br />
# build kernel<br />
msg "Now starts something magic:"<br />
make ${MAKEFLAGS} bzImage modules<br />
}<br />
<br />
package_kernel-netbook() {<br />
pkgdesc='Static kernel for netbooks with Intel Atom N270/N280/N450/N550 such as eeepc with the add-on of external firmware (broadcom-wl) - Only Intel GPU - Give more power to your netbook!'<br />
depends=('coreutils' 'module-init-tools')<br />
install=kernel-netbook.install<br />
optdepends=('crda: for wireless regulatory domain support' <br />
'linux-firmware: firmware for rt2860, tigon3, brcmsmac'<br />
'hibernate-script: tux on ice default script'<br />
'tuxonice-userui: graphical interface for toi [AUR]')<br />
groups=(eee)<br />
<br />
cd ${srcdir}/linux-$_basekernel<br />
# install our modules<br />
mkdir -p $pkgdir/{lib/modules,boot}<br />
make INSTALL_MOD_PATH=$pkgdir modules_install<br />
<br />
# Get kernel version<br />
_kernver="$(make kernelrelease)"<br />
<br />
# remove build and source links<br />
rm -r $pkgdir/lib/modules/$_kernver/{source,build}<br />
<br />
# remove the firmware directory<br />
rm -rf ${pkgdir}/lib/firmware<br />
<br />
# install the kernel<br />
install -D -m644 ${srcdir}/linux-$_basekernel/System.map $pkgdir/boot/System.map-netbook<br />
install -D -m644 ${srcdir}/linux-$_basekernel/arch/x86/boot/bzImage ${pkgdir}/boot/vmlinuz-netbook<br />
install -D -m644 ${srcdir}/linux-$_basekernel/.config $pkgdir/boot/kconfig-netbook<br />
<br />
# install preset file for mkinitcpio<br />
sed -i -e "s/ALL_kver=.*/ALL_kver=\'${_kernver}\'/g" ${srcdir}/${pkgname}.preset<br />
install -m644 -D ${srcdir}/${pkgname}.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset<br />
<br />
# set correct depmod command for install<br />
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/$pkgname.install<br />
<br />
##Section: Broadcom-wl<br />
#msg "Compiling broadcom-wl module:"<br />
#cd ${srcdir}/<br />
##patching broadcom as broadcom-wl package on AUR<br />
#patch -p1 < license.patch<br />
#patch -p1 < semaphore.patch<br />
#patch -p1 < mutex-sema.patch<br />
#make -C ${srcdir}/linux-$_basekernel M=`pwd`<br />
#install -D -m 755 wl.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/wl.ko<br />
<br />
# gzip -9 all modules to safe a lot of MB of space<br />
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;<br />
}<br />
<br />
package_kernel-netbook-headers() {<br />
KARCH=x86<br />
pkgdesc='Header files and scripts for building modules for kernel-netbook'<br />
<br />
mkdir -p "${pkgdir}/lib/modules/${_kernver}"<br />
<br />
cd "${pkgdir}/lib/modules/${_kernver}"<br />
ln -sf ../../../usr/src/linux-${_kernver} build<br />
<br />
cd "${srcdir}/linux-${_basekernel}"<br />
install -D -m644 Makefile \<br />
"${pkgdir}/usr/src/linux-${_kernver}/Makefile"<br />
install -D -m644 kernel/Makefile \<br />
"${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"<br />
install -D -m644 .config \<br />
"${pkgdir}/usr/src/linux-${_kernver}/.config"<br />
<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"<br />
<br />
for i in acpi asm-generic config crypto drm generated linux math-emu \<br />
media net pcmcia scsi sound trace video xen; do<br />
cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"<br />
done<br />
<br />
# copy arch includes for external modules<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/x86"<br />
cp -a arch/x86/include "${pkgdir}/usr/src/linux-${_kernver}/arch/x86/"<br />
<br />
# copy files necessary for later builds, like nvidia and vmware<br />
cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"<br />
cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"<br />
<br />
# fix permissions on scripts dir<br />
chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"<br />
<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"<br />
<br />
cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"<br />
<br />
if [ "${CARCH}" = "i686" ]; then<br />
cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"<br />
fi<br />
<br />
cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"<br />
<br />
# add headers for lirc package<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video"<br />
<br />
cp drivers/media/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/"<br />
<br />
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"<br />
cp -a drivers/media/video/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"<br />
done<br />
<br />
# add docbook makefile<br />
install -D -m644 Documentation/DocBook/Makefile \<br />
"${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"<br />
<br />
# add dm headers<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"<br />
cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"<br />
<br />
# add inotify.h<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"<br />
cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"<br />
<br />
# add wireless headers<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"<br />
cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"<br />
<br />
# add dvb headers for external modules<br />
# in reference to:<br />
# http://bugs.archlinux.org/task/9912<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core"<br />
cp drivers/media/dvb/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/"<br />
# and...<br />
# http://bugs.archlinux.org/task/11194<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"<br />
cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"<br />
<br />
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new<br />
# in reference to:<br />
# http://bugs.archlinux.org/task/13146<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"<br />
cp drivers/media/dvb/frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"<br />
cp drivers/media/video/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"<br />
<br />
# add dvb headers<br />
# in reference to:<br />
# http://bugs.archlinux.org/task/20402<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"<br />
cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"<br />
cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"<br />
cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"<br />
<br />
# add xfs and shmem for aufs building<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"<br />
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"<br />
cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"<br />
<br />
# copy in Kconfig files<br />
for i in `find . -name "Kconfig*"`; do<br />
mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`<br />
cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"<br />
done<br />
<br />
chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"<br />
find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;<br />
<br />
# strip scripts directory<br />
find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do<br />
case "$(file -bi "${binary}")" in<br />
*application/x-sharedlib*) # Libraries (.so)<br />
/usr/bin/strip ${STRIP_SHARED} "${binary}";;<br />
*application/x-archive*) # Libraries (.a)<br />
/usr/bin/strip ${STRIP_STATIC} "${binary}";;<br />
*application/x-executable*) # Binaries<br />
/usr/bin/strip ${STRIP_BINARIES} "${binary}";;<br />
esac<br />
done<br />
<br />
# remove unneeded architectures<br />
rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}<br />
}<br />
</nowiki>}}<br />
<br />
create initrd<br />
{{bc|<br />
cd /lib/modules/3.0.6-netbook<br />
mkinitcpio -k 3.0.6-netbook -g /boot/initramfs-netbook.img<br />
}}<br />
edit grub menu.lst<br />
{{bc|1=<br />
# Arch netbook<br />
title Arch netbook<br />
root (hdx,x)<br />
kernel /boot/vmlinuz-netbook root=/dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxx$<br />
initrd /boot/initramfs-netbook.img<br />
}}<br />
<br />
=== Desktop installation ===<br />
gnome works best on Dell mini 10v. KDE seems to be too heavy for Dell mini Atom processor<br />
{{bc|<br />
pacman -Syu gnome gdm<br />
}}<br />
use gdm as login manager<br />
{{bc|<br />
nano /etc/inittab<br />
}}<br />
{{bc|<br />
x:5:respawn:/usr/sbin/gdm -nodaemon<br />
}}</div>Andyg314