Acer Aspire 1642WLMi

From Gentoo Linux Wiki

Jump to: navigation, search

Contents

[edit] Preface

Acer Aspire 1642 WLMi is a CentrinoTM built laptop, perfectly working as a desktop or/and workstation. Following list contains its hardware:

  • Intel Pentium M 740 processor, 1733 MHz, FSB 533 MHz, 2 MB L2 Cache
  • Intel Graphics Media Accelerator 900 128 MB shared memory + 15.4 WXGA Acer CrystalBrite TFT LCD 1280x768x32
  • Sound Card HDA Intel (Realtek alc260 chip)
  • Memory: HDD 80 GB, RAM 512MB DDR2, DVD+RW DL recorder
  • Networking:
    • Modem 56K Wake-On-Ring
    • LAN Ethernet 10/100Mbps Wake-On-Lan (Realtek)
    • WLAN IPW2200 802.11b/g Acer SignalUp
  • Input Devices:
    • standard keyboard + hotkeys
    • Synaptics touchpad
  • PCMCIA

Printout of lspci:

Code: lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03) (prog-if 00 [VGA])
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04) (prog-if 00 [Normal decode])
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 04) (prog-if 00 [Normal decode])
00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 04) (prog-if 00 [Normal decode])
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04) (prog-if 00 [UHCI])
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04) (prog-if 00 [UHCI])
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04) (prog-if 00 [UHCI])
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04) (prog-if 00 [UHCI])
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04) (prog-if 20 [EHCI])
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4) (prog-if 01 [Subtractive decode])
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04) (prog-if 8a [Master SecP PriP])
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
06:01.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
06:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
06:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

[edit] Installation notes

Properly working sound card driver comes with kernel >= 2.6.17.

File: /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"

USE="dri tiff bash-completion X -gnome kde opengl doc alsa -arts cups gtk qt3 qt4 cdr dvd dvdr dvdread fortran hal jpeg png gif imlib
 usb java ssl unicode truetype nls"

LINGUAS="pl en"
AUDIO_CARDS="hda-intel"
VIDEO_CARDS="vga i810"
INPUT_DEVICES="keyboard mouse ps2mouse synaptics"

GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.un
i-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors
/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/  ftp://gentoo.po.opole.pl ftp://mi
rror.icis.pcz.pl/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
FEATURES="ccache userpriv usersandbox strict"
CCACHE_SIZE="2G"
#source /usr/portage/local/layman/make.conf

[edit] Configuration

[edit] CPU

CPU Frequency Scalling (Intel SpeedStep) works perfectly for kernel settings as shown below.

Linux Kernel Configuration: 2.6.19-suspend2-r3
 Processor type and features  --->
 Subarchitecture Type (PC-compatible)
  Processor family (Pentium M)
 [*] Generic x86 support
 [ ] HPET Timer Support
     Preemption Model (Voluntary Kernel Preemption (Desktop))
 [*] Local APIC support on uniprocessors
 [*]   IO-APIC support on uniprocessors
 [*] Machine Check Exception
 <*> /dev/cpu/microcode - Intel IA32 CPU microcode support
 <*> /dev/cpu/*/msr - Model-specific register support
 <*> /dev/cpu/*/cpuid - CPU information support
 [*] Math emulation
 [*] MTRR (Memory Type Range Register) support
 [ ] Boot from EFI support
 [*] Use register arguments
 [ ] Enable seccomp to safely compute untrusted bytecode
 Timer frequency (1000 HZ)
 Power management options (ACPI, APM)  --->
  CPU Frequency scaling  --->
 [*] CPU Frequency scaling
 [*]   Enable CPUfreq debugging
 <*>   CPU frequency translation statistics
 [*]     CPU frequency translation statistics details
         Default CPUFreq governor (userspace)  --->
 <*>   'performance' governor
 <*>   'powersave' governor
 ---   'userspace' governor for userspace frequency scaling
 <*>   'ondemand' cpufreq policy governor
 <*>   'conservative' cpufreq governor
 ---   CPUFreq processor drivers
 <*>   ACPI Processor P-States driver
 <*>   Intel Enhanced SpeedStep
 [*]     Use ACPI tables to decode valid frequency/voltage pairs

I have built-in kernel CPU features so I don't need to load proper modules. You can additonally install sys-power/cpufrequtils -- it is useful for ACPI configuration, and of course to check your installation. See also Gentoo power managment guide.

Code: cpufrequtils
emerge cpufrequtils

If everything is ok you should see output like this:

Code: cpufrequtils
[~]# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: centrino
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 1.73 GHz
  available frequency steps: 1.73 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
  available cpufreq governors: conservative, ondemand, powersave, userspace, performance
  current policy: frequency should be within 800 MHz and 1.73 GHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 1.73 GHz (asserted by call to hardware).

To control CPU frequency You can use i.e. x11-plugins/wmlaptop or sys-power/cpufreqd.

[edit] Graphics

[edit] Xorg 7.0

Install xserver:

Code: Installing Xorg7.0
emerge xorg-server
emerge mesa-progs

Edit /etc/X11/xorg.conf:

File: /etc/X11/xorg.conf
Section "Module"
Load    "dbe"   # Double buffer extension

    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

Load    "type1"
Load    "freetype"
Load    "glx"
Load    "dri"
Load    "xtrap"

EndSection

#this section can be diffrent from yours
Section "Files"

    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/corefonts"
    FontPath   "/usr/share/fonts/terminus"
    FontPath   "/usr/share/fonts/freefont"
    FontPath   "/usr/share/fonts/default"
    FontPath   "/usr/share/fonts/100dpi/"

EndSection


Section "ServerFlags"

#currently I don't use any settings in this section

EndSection


Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "pl"
    Option "XkbVariant" "pl"

EndSection

Section "InputDevice"

    Identifier  "Mouse0"
 Driver      "mouse"
    Option "Protocol"    "Auto" # Auto detect
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping"   "4 5 6 7"
    Option "Emulate3Buttons"

EndSection

#only if you use Synaptics Touchpad!
Section "InputDevice"
   Driver       "synaptics"
   Identifier   "TouchPad"
   Option       "Device"        "/dev/input/mouse0"
   Option       "Protocol"      "auto-dev"
   Option       "LeftEdge"      "1700"
   Option       "RightEdge"     "5300"
   Option       "TopEdge"       "1700"
   Option       "BottomEdge"    "4200"
   Option       "FingerLow"     "25"
   Option       "FingerHigh"    "30"
   Option       "MaxTapTime"    "120"
   Option       "MaxTapMove"    "220"
#   Option      "MaxDoubleTapTime" "180"
#   Option      "SingleTapTimeout" "180"
#   Option      "ClickTime"     "100"
   Option       "EmulateMidButtonTime" "75"
   Option       "VertScrollDelta" "100"
   Option       "HorizScrollDelta" "100"
   Option       "VertEdgeScroll" "1"
   Option       "HorizEdgeScroll" "1"
   Option       "VertTwoFingerScroll" "0"
   Option       "HorizTwoFingerScroll" "0"
   Option       "MinSpeed"      "0.15"
   Option       "MaxSpeed"      "0.30"
   Option       "AccelFactor"   "0.0015"
   Option       "EdgeMotionMinZ" "80"
   Option       "EdgeMotionMaxZ" "120"
   Option       "EdgeMotionMinSpeed" "80"
   Option       "EdgeMotionMaxSpeed" "120"
   Option       "EdgeMotionUseAlways" "0"
   Option       "UpDownScrolling" "1"
   Option       "LeftRightScrolling" "1"
#   Option      "RTCornerButton" "2"
#   Option      "RBCornerButton" "3"
#   Option      "LTCornerButton" "0"
#   Option      "LBCornerButton" "0"
#   Option      "TapButton1" "3"
#   Option      "TapButton2" "1"
#   Option      "TapButton3" "0"
#   Option      "GuestMouseOff" "0"
#   Option      "LockedDrags" "0"
   Option       "CircularScrolling" "0"
   Option       "CircScrollDelta" "0.1"
#   Option      "CircScrollTrigger" "2"
   Option       "SHMConfig"     "on"
   Option       "Emulate3Buttons" "on"
   Option       "ZAxisMapping" "4 5"
EndSection

Section "Monitor"

    Identifier  "lcd"
    HorizSync   31.5 - 90
    VertRefresh 60 - 60
    Option      "DPMS"

EndSection

Section "Device"

    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver     "vga"

EndSection

# Device configured by xorgconfig:

Section "Device"
    Identifier  "915"
    Driver      "i810"
    Option      "NoAccel" "false"
    Option      "DRI" "true"
    Option      "DevicePresence" "true"
    Option      "MonitorLayout" "CRT,LFP"
    Option      "clone" "on"
    Option      "CloneRefresh" "60"
 #   Option     "DDC" "false"
    VideoRam    131072

EndSection


Section "Screen"
    Identifier  "Screen 1"
    Device      "915"
    Monitor     "lcd"
  DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1280x768" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x768" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
#        Modes       "1024x768" "800x600" "640x480"
        Modes       "1280x768" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"

    Screen "Screen 1"
    InputDevice "Mouse0" "CorePointer"
    InputDevice "TouchPad" "AlwaysCore"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

Section "DRI"
    Mode 0666
EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection


To check if you have DRI enabled:

Code: DRI
glxinfo
>> check for line >>
direct rendering: Yes

Glxgears gives me ~950FPS.

[edit] Native resolution

With newer Xorg (>= xorg-server-1.3.0.0 and xf86-video-i810-2.1.0) native resolution works out-of-the-box. In case of older configurations:

Code: Installing 915resolution
echo "sys-apps/915resolution ~x86" >> /etc/portage/package.keywords
emerge 915resolution

Change settings to 5c 1280 768 32 in /etc/conf.d/915resolution:

File: /etc/conf.d/915resolution
# Config file for /etc/init.d/915resolution
# based on the config file included with sys-apps/855resolution
# this example will replace mode "4c" with 1280x768x24
replace=( "5c 1280 768 32" )

Proper settings for Xorg:

File: /etc/X11/xorg.conf
    Subsection "Display"
        Depth       24
        Modes       "1280x768" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection

And start 915resolution at boot:

Code: 915resolution
rc-update add 915resolution boot
Note: Note: To change resolution on-the-fly use i.e. x11-apps/xrandr.

[edit] Memory

Works out-of-the-box. To monitor HDD health I use sys-apps/smartmontools.

Code: smartmontools
emerge smartmontools
rc-update add smartd default

For DVD+RW DL:

Code: dvd+rw
emerge cdrtools dvd+rw-tools

[edit] Networking

[edit] WLAN IPW2200

Works perfect on kernel drivers with net-wireless/wireless-tools and net-wireless/wpa_supplicant. See Wireless Networking. Check also laptop-matrix

Code: ipw2200
emerge wireless-tools ipw2200-firmware
emerge wpa_supplicant

To turn on led button:

Code: ipw2200
echo "options ipw2200 led=1" >> /etc/modules.d/ipw2200
modules-update

[edit] LAN Ethernet Wake-On-Lan

Works perfectly on kernel module 8139too.

Code: eth0
modprobe 8139too
/etc/init.d/net.eth0 start
rc-update add net.eth0 default

I use udev to manage network interfaces. See also Gentoo udev guide. Wake-On-Lan feature has not been tested.

[edit] Modem 56k Wake-On-Ring

Not tested.

[edit] Sound Card Intel HDA

Using alsa-driver from kernel (module snd-hda-intel). All I/O audio ports work perfectly (including internal and external mic). For configuring ALSA see Gentoo Linux ALSA Guide.

[edit] PCI CARD

Not tested.

[edit] Input Devices

[edit] Hotkeys

I found working solution here. Install x11-misc/hotkeys:

Code: hotkeys
emerge hotkeys

Edit /usr/share/hotkeys/aceraspire1642.def:

File: aceraspire1642.def
<?xml version="1.0"?>

<definition>

  <config model="Acer Aspire 1642 Series Keyboard">

    <VolUp        keycode="176"/>
    <VolDown      keycode="174"/>
    <Mute         keycode="160"/>

                <userdef keycode="245" command="echo Acer Help"><b style="color:black;background-color:#ffff66">Acer</b> help</userdef>
                <userdef keycode="151" command="echo Acer e"><b style="color:black;background-color:#ffff66">Acer</b> e</userdef>
                <userdef keycode="159" command="echo Acer P"><b style="color:black;background-color:#ffff66">Acer</b> P</userdef>
                <userdef keycode="194" command="echo wifi off">wifi on</userdef>
                <userdef keycode="195" command="echo wifi on">wifi off</userdef>
                <userdef keycode="199" command="echo Bluetooth on">bluetooth on</userdef>
                <userdef keycode="200" command="echo Bluetooth off">bluetooth off</userdef>
                <userdef keycode="193" command="echo Acer eSetting">eSetting</userdef>
                <userdef keycode="158" command="echo Acer ePM">ePM</userdef>
                <userdef keycode="196" command="echo Mousepad on">MousePad On</userdef>
                <userdef keycode="121" command="echo Mousepad off">MousePad Off</userdef>
                <userdef keycode="166" command="echo Windows clycle">Windows Cycle</userdef>
           <userdef keycode="171" command="echo Euro">Euro</userdef>
                <userdef keycode="172" command="echo Dollars">Dollars</userdef>
                <PrevTrack keycode="144"/>
                <Play      keycode="162"/>
                <Stop      keycode="164"/>
                <NextTrack keycode="153"/>

    <WebBrowser   keycode="178"/>
    <Email        keycode="236"/>
  </config>

  <contributor>
    <name>Didier CLERC</name>
    <email>didier-clercNOSPAM@linuxbourg.ch</email>
  </contributor>

</definition>

Edit /etc/hotkeys.conf:

File: hotkeys.conf
############################################################
# Global configuration for hotkeys                         #
############################################################

# These are the default values.
# A line starting with # is a comment.

### Specify the default keyboard  (without the .def extension) so you
### don't need to specify -t every time
 Kbd=aceraspire1642
 CDROM=/dev/dvd

 PrevTrack=audacious --rew
 Play=audacious --play-pause
 Stop=audacious --stop
# Pause=audacious --pause
 NextTrack=audacious --fwd
# Rewind=

 WebBrowser=firefox
# Email=mozilla -mail
# Calculator=xcalc
# FileManager=gmc
# MyComputer=gmc
# MyComputer=gmc
# MyDocuments=gmc
# Favorites=gnome-moz-remote --remote=openBookmarks
# Transfer=gtp
# Record=grecord
# Shell=xterm -rv
# ScreenSaver=xscreensaver-command -activate
# NewsReader=mozilla -news
# Communities=mozilla -remote 'openURL(http://slashdot.org)'
# Search=mozilla -remote 'openURL(http://google.com)'
# Idea=mozilla -remote 'openURL(http://sourceforge.net)'
# Shopping=mozilla -remote 'openURL(http://thinkgeek.com)'
# Go=mozilla -remote 'openURL(http://linux.com)'
# Print=lpr
# Rotate=

 osd_font=-arphic-ar pl kaitim big5-bold-i-normal--0-250-0-0-c-0-*-*
### For the color, you can either use the strings in /etc/X11/rgb.txt,
### or use the RGB syntax #RRGGBB, e.g. ##A086FF
 osd_color=LawnGreen
 osd_timeout=3
### osd_position is either 'top' or 'bottom'
 osd_position=bottom
 osd_offset=25

Edit /usr/bin/acerhotkeys.sh:

File: acerhotkeys.sh
#!/bin/sh
#-----------------------------------------------
#<b style="color:black;background-color:#ffff66">Acer</b> Aspire 1694WLMi hotkey
s
#-----------------------------------------------
SKC=/usr/bin/setkeycodes

#help (symb ?) (Fn+F1 )
#dmesg: setkeycodes e025 <keycode>
#define KEY_HELP                138
$SKC e025 138

#<b style="color:black;background-color:#ffff66">Acer</b> eSetting (Fn+F2)
#dmesg: setkeycode e026 <keycode>
#define KEY_SETUP               141
$SKC e026 141


#<b style="color:black;background-color:#ffff66">Acer</b> ePowerManagement (Fn+F
3)
#dmesg: setkeycodes e027 <keycode>
#define KEY_MENU                139
$SKC e027 139

#Sleep (symb Zz) (Fn+F4) doesn't work
#no dmesg or xev
#define KEY_SLEEP               142

##Display Choice (symb [  ]|[#]) (Fn+F5)
#dmesg: setkeycode e029 <keycode>
#define KEY_CYCLEWINDOWS        154
$SKC e029 154

##Black screen (symb[*]>[ ]) (Fn+F6) works (turn off/on the LCD)
#no dmesg or xev

##Mousepad (Fn+F7) works (turn off/on the mousepad)
#dmesg: setkeycodes e072 <keycode> (off->on)
#define KEY_CHAT->->216
$SKC e072 216
#dmesg: setkeycodes e071 <keycode> (off->on)
#define KEY_SPORT  220
$SKC e071 220
##extra € (near direction keys,above left key)
#dmesg: setkeycodes e033 <keycode>
#define KEY_PROG3               202
$SKC e033 202

##extra $ (near direction keys,above right key)
#dmesg: setkeycodes e034 <keycode>
#define KEY_PROG4               203
$SKC e034 203

##Brightness Up (Fn+Right) make LCD brighter
#dmesg: setkeycodes e06e <keycode>
#define KEY_BRIGHTNESSUP        225
$SKC e06e 225

##<b style="color:black;background-color:#ffff66">acer</b> P
#dmesg: setkeycodes e073 <keycode>
#define KEY_PROG1               148
$SKC e073 148

##<b style="color:black;background-color:#ffff66">acer</b> e
#dmesg: setkeycodes e074 <keycode>
#define KEY_PROG2               149
$SKC e074 149

##Blue LED Switchbutton (bluetooth)
#dmesg: setkeycodes e057 <keycode> (off-> on, the blue light turns on)
#define KEY_SENDFILE 145$
$SKC e057 145
#dmesg: setkeycodes e058 <keycode> (on-> off, the blue light turns off)
#define KEY_DELETEFILE 146
$SKC e058 146

##Orange LED Switchbutton (wifi)
#dmesg: setkeycodes e055 <keycode> (/sys/bus/pci/drivers/ipw2200/0000\:06\:03.0/
rf_kill goes from 2 to 0 or from 3 to 1)
#define KEY_CONNECT   218
$SKC e055 218
#dmesg: setkeycodes e056 <keycode> (/sys/bus/pci/drivers/ipw2200/0000\:06\:03.0/
rf_kill goes from 0 to 2 or from 1 to 3)
#define KEY_FINANCE   219
$SKC e056 219

Change permissions for this script:

Code: acerhotkeys
chmod 755 /usr/bin/acerhotkeys.sh

Edit /etc/conf.d/local.start:

File: /etc/conf.d/local.start
# /etc/conf.d/local.start

# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output
  /usr/bin/acerhotkeys.sh

Start acerhotkeys.sh, add hotkeys to your window manager's autostart application and start this program.

[edit] Fn+F4 sleep action

Note: Note: Tested only with sys-kernel/tuxonice-sources & sys-power/hibernate-script.

Edit /etc/acpi/default.sh to add "sleep" action:

File: /etc/acpi/default.sh
#!/bin/sh
# Default acpi script that takes an entry for all actions set $*
# Take care about the way events are reported
ev_type=`echo "$1" | cut -d/ -f1`
if [ "$ev_type" = "$1" ];
then event="$2";
else event=`echo "$1" | cut -d/ -f2`
fi
case "$ev_type" in
button)
case "$event" in
power) logger "acpid: received a shutdown request"
/sbin/init 0 break ;;
sleep) logger "acpid: received a suspend2disk request (Fn-F4)"
 /usr/sbin/hibernate
break;;
*) logger "acpid: action $2 is not defined" ;;
esac ;;
*) logger "ACPI group $1 / action $2 is not defined"
;; esac

and restart acpid.

Code: acpi
/etc/init.d/acpid restart

[edit] Fn+F5 rotate action

Emerge app-misc/i810switch and edit /usr/share/hotkeys/aceraspire1642.def:

File: /usr/share/hotkeys/aceraspire1642.def
<userdef keycode="166" command="sudo i810rotate">Windows Cycle</userdef>

Because i810switch need access to /dev/mem you need to edit /etc/sudoers (with visudo):

File: /etc/sudoers
USER ALL(root) NOPASSWD: /usr/bin/i810switch

I got Bios "Power On Boot" option set to "both" so maybe this is why I can't turn off lcd with i810switch.

[edit] Synaptics Touchpad

See Synaptics Touchpad. Use flags:

File: make.conf
INPUT_DEVICES="keyboard mouse ps2mouse synaptics"

Emerge x11-drivers/synaptics:

Code: emerge synaptics
emerge synaptics

Edit xorg.conf:

File: xorg.conf
Section "InputDevice"
   Driver       "synaptics"
   Identifier   "TouchPad"
   Option       "Device"        "/dev/input/mouse0"
   Option       "Protocol"      "auto-dev"
   Option       "LeftEdge"      "1700"
   Option       "RightEdge"     "5300"
   Option       "TopEdge"       "1700"
   Option       "BottomEdge"    "4200"
 Option       "FingerLow"     "25"
   Option       "FingerHigh"    "30"
   Option       "MaxTapTime"    "120"
   Option       "MaxTapMove"    "220"
#   Option      "MaxDoubleTapTime" "180"
#   Option      "SingleTapTimeout" "180"
#   Option      "ClickTime"     "100"
   Option       "EmulateMidButtonTime" "75"
   Option       "VertScrollDelta" "100"
   Option       "HorizScrollDelta" "100"
   Option       "VertEdgeScroll" "1"
   Option       "HorizEdgeScroll" "1"
   Option       "VertTwoFingerScroll" "0"
   Option       "HorizTwoFingerScroll" "0"
   Option       "MinSpeed"      "0.15"
   Option       "MaxSpeed"      "0.30"
   Option       "AccelFactor"   "0.0015"
   Option       "EdgeMotionMinZ" "80"
   Option       "EdgeMotionMaxZ" "120"
   Option       "EdgeMotionMinSpeed" "80"
   Option       "EdgeMotionMaxSpeed" "120"
   Option       "EdgeMotionUseAlways" "0"
   Option       "UpDownScrolling" "1"
   Option       "LeftRightScrolling" "1"
#   Option      "RTCornerButton" "2"
#   Option      "RBCornerButton" "3"
#   Option      "LTCornerButton" "0"
#   Option      "LBCornerButton" "0"
#   Option      "TapButton1" "3"
#   Option      "TapButton2" "1"
#   Option      "TapButton3" "0"
#   Option      "GuestMouseOff" "0"
#   Option      "LockedDrags" "0"
   Option       "CircularScrolling" "0"
   Option       "CircScrollDelta" "0.1"
#   Option      "CircScrollTrigger" "2"
   Option       "SHMConfig"     "on"
   Option       "Emulate3Buttons" "on"
   Option       "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"

    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse0" "CorePointer"
    InputDevice "TouchPad" "AlwaysCore"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Personal tools
In other languages