Acer Aspire One A110AB

Материал из Gentoo Linux Wiki

Перейти к: навигация, поиск

Содержание

[править] Введение

В данной статье описывается настройка системы после установки на нетбуке Acer Aspire One A110-AB

[править] make.conf

Для начала, после установки системы, нужно настроить /etc/make.conf

vim /etc/make.conf

Выставляем там следующие параметры:

Файл: /etc/make.conf
CFLAGS="-O3 -fomit-frame-pointer -mtune=native -msse -msse2 -msse3 -mfpmath=sse -march=pentium"
# флаги компиляции для intel atom

CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"

USE="по вкусу =)"

VIDEO_CARDS="intel" #драйвер видеокарты
ALSA_CARDS="hda-intel" #драйвер звуковой карты
INPUT_DEVICES="keyboard synaptics mouse" #драйвера устройств ввода: клава, тачпад,usb мышь

LINGUAS="ru" #поддержка русского языка
AUTOCLEAN="yes"
MAKEOPTS="-j2"

[править] Ядро

переходим в каталог с ядром

cd /usr/src/linux

конфигурируем следующим образом(для 2.6.27)

make menuconfig
Конфигурация ядра Linux: kernel config
General setup --->
     [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
     (/usr/share/v86d/initramfs) Initramfs source file(s)
 [*]Enable loadable module support --->
      [*] Automatic kernel module loading. #автоматическая загрузка нужных модулей
 -*- Enable the block layer -->
     IO Schedulers --->
         Default I/O scheduler (No-op)
 Bus options (PCI, PCMCIA, EISA, MCA, ISA) --->
     PCCARD (PCMCIA/CardBus) support --->
         < > PCCard (PCMCIA/CardBus) support
 Networking --->
     Wireless --->
         <*> Improved wireless configuration API
         <*> Generic IEEE 802.11 Networking Stack
 Device Drivers --->
     < > ATA/ATAPI/MFM/RLL Support #убираем за ненадобностью
     <*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
     <*>   AHCI SATA support
     <*>   Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
     <*>   Generic ATA support
     <*>   Intel PATA MPIIX support
     <*>   Intel PATA old PIIX support
     [*] Network device support --->
     [*]   Ethernet (1000 Mbit) --->
     <*>     Realtek 8169 gigabit ethernet support
           Wireless LAN --->
     [*]     Wireless LAN (IEEE 802.11)
     [ ]   PCMCIA network device support --->
      Multimedia devices --->
             <*> Video For Linux #для веб-камеры
             <*> DAB adapters
         Character devices --->
     <*>   Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) #вкомпиливаем drm в ядро
     <*>     Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) --->
     Graphics support --->
     <*>   Support for frame buffer devices
     <*>   Userspace VESA VGA graphics support
     <*>   VESA VGA graphics support
     <*>   Intel 830M/845G/852GM/855GM/865G/915G/945G support (EXPERIMENTAL)
           Console display driver support --->
     <*>     Framebuffer Console support
     [*]       Map the console to the primary display device
         Sound --->
     <*>   Sound card support
     < >   Advanced Linux Sound Architecture
     < >   Open Sound System
     <*> MMC/SD card support ---> #поддержка картридера
     <*>   Secure Digital Host Controller Interface support (EXPERIMENTAL)
     <*>   TI Flash Media MMC/SD Interface support (EXPERIMENTAL)
 Device Drivers --->
   [*] Block devices
     < > Normal floppy disk support #отключаем за ненадобностью

Далее компилируем и устанавливаем ядро

make && make modules_install && make install

Перезагружаемся

reboot

[править] X и видео

[править] Установка xorg и драйверов

x11-drm не ставим, он есть я ядре.
xf86-video-intel, mesa, xorg-sever и xorg-x11 ставим поновее

ACCEPT_KEYWORDS="~x86" emerge mesa xorg-server xf86-video-intel xorg-x11

[править] Настройка xorg.conf

Далее настраиваем xorg.conf

Файл: /etc/X11/xorg.conf
# Xorg configuration created by system-config-display
Section "ServerFlags"
	Option "DontZap" "yes"
	Option "DontVTSwitch" "yes"
EndSection

Section "DRI"
     Group        "video"
     Mode        0666
EndSection

Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Mouse1" "AlwaysCore"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	FontPath	"/usr/share/fonts/misc/"
	FontPath        "/usr/share/fonts/Type1/"
	FontPath        "/usr/share/fonts/100dpi/"
	FontPath        "/usr/share/fonts/75dpi/"
	FontPath        "/usr/share/fonts/cyrillic/"
EndSection

Section "Module"
	Load	"glx"
	Load	"dri"
	Load	"drm"
	Load	"freetype"
	Load	"extmod"
	Load	"dbe"
	Load	"record"
	Load	"xtrap"
	Load	"type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "AutoRepeat" "500 30"
	Option	    "XkbModel" "pc105"
        Option      "XkbLayout" "us,ru(winkeys)"
        Option      "XkbVariant" "euro"
        Option      "XkbOptions" "grp:ctrl_shift_toggle"
EndSection

Section "InputDevice"
	Identifier "Mouse0"
        Driver     "synaptics"
        Option     "Device" "/dev/input/mouse0"
	Option     "ZAxisMapping" "4 5 6 7"
        Option     "Protocol" "auto"
	Option     "CorePointer"
EndSection

Section "InputDevice"
	Identifier  "Mouse1"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "no"
EndSection

Section "Monitor"
	Identifier  "Monitor0"
	Modeline  "1024x600" 48.96 1024 1064 1168 1312 600 601 604 622 -HSync +VSync
#	Option	"Above"	"Monitor1"
EndSection

Section "Device"
	Identifier  "Videocard0"
	Driver      "intel"
#	Option      "monitor-LVDS" "Monitor0"
#	Option	    "monitor-VGA" "Monitor1"
	Option	    "Clone" "true"
	Option	"MonitorLayout"	"LVDS,VGA"
	Option "AccelMethod" "exa"
	Option "DRI" "True"
	Option "MigrationHeuristic" "greedy"
	BusID	"PCI:0:2:0"
#	Screen	0
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor	    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1024x600"
		Virtual	1024 768
	EndSubSection
EndSection


Секция Monitor про режим Modeline 1024x600 вообще-то лишняя. Драйвер intel-hd при задании в Screen значения 1024 768 для Virtual сам установит 1024x600 и ничего другого. Стоит задать для Virtual 800 600 и получим только 800x600.

[править] Звук

Установка драйверов звуковой карты

emerge alsa-driver alsa-utils

Правда неплохо бы здесь указать минимальную версию пакета alsa-driver, которая подходит для Acer Aspire One. Ибо звуковые драйвера из ядра 2.6.23.9lw, с которым поставляется linux-версия нетбука, не позволяют выводить звук на внутренние динамики (вывод на внешние динамики работает).


Настройка

alsaconf

Микшер

alsamixer

[править] Веб-камера

Установка драйверов и простого приложения для работы с камерой

ACCEPT_KEYWORDS="~x86" emerge linux-uvc cheese

Подгружаем модуль ядра для работы с камерой

modprobe uvcvideo

Смотрим определилась ли наша камера

Code: dmesg |grep -i video
uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)

Проверка камеры

cheese

[править] Картридер

Проверяем определяется ли он(у меня карточка определялась только если вставить до загрузки системы)

Code: dmesg |grep mmc
mmc0: new SD card at address 1234
mmcblk0: mmc0:1234 SD01G 995328KiB
mmcblk0: p1

Далее можно монтировать как простую флешку

mount /dev/mmcblk0p1 /mnt/sd

Оригинал статьи: http://www.gentoo-wiki.info/Acer_Aspire_One_A110L

поддержка по wiki
На других языках