Linux в Acer Aspire One
Материал из Xgu.ru
(Перенаправлено с acer)
- Короткий URL: acer
Содержание |
[править] Тактико-технические характеристики
clint@sergey:~/doc$ lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02) 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 02) 03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
[править] Инсталляция Linux
[править] Жёсткий диск
[править] Сеть
[править] Wi-Fi
sudo wget -c http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6-current.tar.gz sudo tar xvzf madwifi-hal-0.10.5.6-current.tar.gz cd madwifi-hal-0.10.5.6-r4068-20090705/ sudo make sudo make install
Адаптер:
clint@sergey:~$ lspci -v -s 03:00.0 03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01) Subsystem: Foxconn International, Inc. Device e008 Flags: bus master, fast devsel, latency 0, IRQ 18 Memory at 55200000 (64-bit, non-prefetchable) [size=64K] Capabilities: <access denied> Kernel driver in use: ath_pci Kernel modules: ath_pci, ath5k
Собирался модуль из:
clint@sergey:~$ ls -l /usr/src/ | grep madwifi drwxr-xr-x 14 root root 800 Сен 28 19:41 madwifi-hal-0.10.5.6-r3861-20080903 -rw-r--r-- 1 root src 4418145 Сен 23 19:46 madwifi-hal-0.10.5.6-r3861-20080903.tar.gz
clint@sergey:~$ grep -r ath /etc/modules ath_pci clint@sergey:~$ grep -r ath /etc/modprobe.d/* /etc/modprobe.d/blacklist:blacklist ath5k
Настройка в качестве клиента стационарной точки доступа:
iface ath0 inet static pre-up ifconfig ath0 up; wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf -B; sleep 3 # address 10.0.17.100 netmask 255.255.0.0 gateway 10.0.35.1 dns-nameservers 10.0.17.1
clint@sergey:~$ cat /etc/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant update_config=1 network={ ssid="Cherep" psk="********" proto=RSN key_mgmt=WPA-PSK pairwise=TKIP id_str="" }
clint@sergey:~$ sudo ifup -v ath0 Configuring interface ath0=ath0 (inet) ifconfig ath0 up; wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf -B; sleep 3 run-parts --verbose /etc/network/if-pre-up.d run-parts: executing /etc/network/if-pre-up.d/hostapd run-parts: executing /etc/network/if-pre-up.d/wireless-tools run-parts: executing /etc/network/if-pre-up.d/wpasupplicant ifconfig ath0 10.0.17.100 netmask 255.255.0.0 up route add default gw 10.0.35.1 ath0 run-parts --verbose /etc/network/if-up.d run-parts: executing /etc/network/if-up.d/avahi-daemon run-parts: executing /etc/network/if-up.d/mountnfs run-parts: executing /etc/network/if-up.d/ntpdate run-parts: executing /etc/network/if-up.d/openssh-server run-parts: executing /etc/network/if-up.d/wpasupplicant
В режиме точки доступа
clint@sergey:~$ cat /sbin/home #!/bin/sh set -x modprobe -r -v ath_pci ath_rate_sample #sleep 4 modprobe ath_pci autocreate=ap sysctl -f ifconfig ath0 192.168.77.77 up iwconfig ath0 essid clinika rate 54M route add default gw 192.168.77.88 hostapd -B /etc/hostapd/hostapd.conf_back
clint@sergey:~$ egrep -v "^\ *$|^#" /etc/hostapd/hostapd.conf_back | less interface=ath0 driver=madwifi logger_syslog=-1 logger_syslog_level=1 logger_stdout=-1 logger_stdout_level=2 debug=0 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=clinika hw_mode=g channel=6 beacon_int=100 dtim_period=2 max_num_sta=1 rts_threshold=2347 fragm_threshold=2346 macaddr_acl=0 auth_algs=3 ignore_broadcast_ssid=0 wme_enabled=1 wme_ac_bk_cwmin=4 wme_ac_bk_cwmax=10 wme_ac_bk_aifs=7 wme_ac_bk_txop_limit=0 wme_ac_bk_acm=0 wme_ac_be_aifs=3 wme_ac_be_cwmin=4 wme_ac_be_cwmax=10 wme_ac_be_txop_limit=0 wme_ac_be_acm=0 wme_ac_vi_aifs=2 wme_ac_vi_cwmin=3 wme_ac_vi_cwmax=4 wme_ac_vi_txop_limit=94 wme_ac_vi_acm=0 wme_ac_vo_aifs=2 wme_ac_vo_cwmin=2 wme_ac_vo_cwmax=3 wme_ac_vo_txop_limit=47 wme_ac_vo_acm=0 eap_message=hello eapol_key_index_workaround=1 use_pae_group_addr=1 eap_server=0 own_ip_addr=192.168.77.77 wpa=1 wpa_passphrase=******** wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP wpa_group_rekey=600 wpa_strict_rekey=1 wpa_gmk_rekey=86400
На клиенте для подключения к этой точке доступа:
iface wlan0 inet static pre-up ip link set wlan0 up pre-up iwconfig wlan0 mode managed essid clinika pre-up iwpriv wlan0 set AuthMode=WPAPSK pre-up iwpriv wlan0 set WPAPSK=******** pre-up iwpriv wlan0 set EncrypType=TKIP address 192.168.77.88 netmask 255.255.255.0 post-up iptables -t nat -A POSTROUTING -s 192.168.77.77 -j MASQUERADE
[править] Изображение
[править] Xorg.conf
cat /etc/X11/xorg.conf
Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Synaptics Mouse" "AlwaysCore" InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" ModulePath "/usr/lib/xorg/modules" FontPath "/usr/share/fonts/X11/misc" FontPath "/usr/share/fonts/X11/cyrillic" FontPath "/usr/share/fonts/X11/100dpi/:unscaled" FontPath "/usr/share/fonts/X11/75dpi/:unscaled" FontPath "/usr/share/fonts/X11/Type1" FontPath "/usr/share/fonts/X11/100dpi" FontPath "/usr/share/fonts/X11/75dpi" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" EndSection Section "Module" Load "glx" Load "extmod" Load "record" Load "dri2" Load "dbe" Load "dri" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbLayout" "us,ru" Option "XkbOptions" "grp:ctrl_shift_toggle" EndSection Section "InputDevice" Identifier "Synaptics Mouse" Option "Protocol" "auto-dev" Driver "synaptics" # cat /proc/bus/input/devices Option "Device" "/dev/my-acer-synaptics" #Option "Device" "/dev/input/event10" Option "SHMConfig" "on" Option "HorizScrollDelta" "45" Option "HorizEdgeScroll" "on" Option "VertEdgeScroll" "on" Option "VertScrollDelta" "45" Option "TapButton1" "1" Option "TapButton2" "3" Option "TapButton3" "2" Option "SendCoreEvents" "on" Option "LeftEdge" "1700" Option "RightEdge" "5300" Option "TopEdge" "1700" Option "BottomEdge" "4200" Option "AccelFactor" "0.0015" #Option "CircularScrolling" "on" # Option "CircScrollTrigger" "0" #Option "FingerLow" "25" #Option "FingerHigh" "30" #Option "MaxTapTime" "180" #Option "MaxTapMove" "220" #Option "VertScrollDelta" "100" #Option "MinSpeed" "0.09" #Option "MaxSpeed" "0.18" # Option "CorePointer" # Option "Device" "/dev/input/mice" # Option "Protocol" "ImPS/2" # Option "Emulate3Buttons" "true" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" Option "DPMS" DisplaySize 195 113 EndSection Section "Device" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional #Option "NoAccel" # [<bool>] #Option "SWcursor" # [<bool>] #Option "ColorKey" # <i> #Option "CacheLines" # <i> #Option "Dac6Bit" # [<bool>] #Option "DRI" # [<bool>] #Option "NoDDC" # [<bool>] #Option "ShowCache" # [<bool>] #Option "XvMCSurfaces" # <i> #Option "PageFlip" # [<bool>] Identifier "Card0" Option "Clone" "true" Option "DRI" "true" Option "MigrationHeuristic" "greedy" Option "AccelMethod" "EXA" Option "NoDDC" Driver "intel" VendorName "Intel Corporation" BoardName "Mobile 945GME Express Integrated Graphics Controller" BusID "PCI:0:2:0" Option "ForceEnablePipeA" "true" Option "FramebufferCompression" "off" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "ServerFlags" # Option "DontZap" "true" # Option "DontVTSwitch" "true" EndSection Section "DRI" Mode 0666 EndSection Section "Extensions" Option "Composite" "enable" EndSection
[править] Внешний монитор
[править] Клавиатура, мышь, тачпад
[править] Клавиатура
[править] Мышь
[править] Тачпад
Может возникнуть ситуация, когда при загрузке ОС устройство Synaptics Touchpad определяется каждый раз под разным именем в каталоге /dev. Можно настроить udev так, чтобы он создавал на это устройство символическую ссылку с постоянным именем, которое потом можно использовать в xorg.conf. Для этого
sudo vim /lib/udev/rules.d/50-udev.rules
91 #MY-touchpad-sym-link-in-dev 92 93 KERNEL=="event[0-9]*", SUBSYSTEM=="input", ATTRS{protocol}=="SynPS/2", SYMLINK+="my-acer-synaptics" 94 95 # input devices 96 KERNEL=="mice", NAME="input/%k" 97 KERNEL=="mouse[0-9]*", NAME="input/%k" 98 KERNEL=="event[0-9]*", NAME="input/%k" 99 KERNEL=="js[0-9]*", NAME="input/%k" 100 KERNEL=="ts[0-9]*", NAME="input/%k" 101 KERNEL=="uinput", NAME="input/%k" 102
Подробную информацию о устройстве можно получить при помощи команды:
cat /proc/bus/input/devices I: Bus=0011 Vendor=0002 Product=0007 Version=01b1 N: Name="SynPS/2 Synaptics TouchPad" P: Phys=isa0060/serio2/input0 S: Sysfs=/class/input/input9 U: Uniq= H: Handlers=mouse1 event9 B: EV=b B: KEY=6420 0 70000 0 0 0 0 0 0 0 0 B: ABS=11000003
затем,
sudo udevinfo -a -p `udevinfo -q path -n /dev/input/event9 ` looking at device '/class/input/input9/event9': KERNEL=="event9" SUBSYSTEM=="input" DRIVER=="" looking at parent device '/devices/platform/i8042/serio2': KERNELS=="serio2" SUBSYSTEMS=="serio" DRIVERS=="psmouse" ATTRS{description}=="i8042 AUX1 port" ATTRS{modalias}=="serio:ty01pr00id00ex00" ATTRS{bind_mode}=="auto" ATTRS{protocol}=="SynPS/2" ATTRS{rate}=="80" ATTRS{resolution}=="200" ATTRS{resetafter}=="5" ATTRS{resync_time}=="0" looking at parent device '/devices/platform/i8042': KERNELS=="i8042" SUBSYSTEMS=="platform" DRIVERS=="i8042" ATTRS{modalias}=="platform:i8042" looking at parent device '/devices/platform': KERNELS=="platform" SUBSYSTEMS=="" DRIVERS==""
[править] Звук
[править] USB-модем
[править] Дополнительная информация
- http://www.acer.com/aspireone/ — домашний сайт Acer Aspire One
- Modding the Acer Aspire One (англ.) — Как расширить память и как добавить жёсткий диск
- Acer Aspire One BIOS Recovery