Difference between revisions of "Acer Aspire TimelineX 4820TG"

From ArchWiki
Jump to: navigation, search
(CPU Frequency Scaling: enabled by default, and this duplicates other pages)
Line 122: Line 122:
  
 
===Enable CPU Frequency Scaling===
 
===Enable CPU Frequency Scaling===
To enable [https://wiki.archlinux.org/index.php/CPU_Frequency_Scaling CPU Frequency Scaling], install -
+
Enabled by default, see [[CPU Frequency Scaling]] for details.
<pre>
+
pacman -S cpufrequtils
+
</pre>
+
 
+
Load cpufreq utils automatically while booting. Update [https://wiki.archlinux.org/index.php/Rc.conf /etc/rc.conf]
+
<pre>
+
MODULES=(acpi-cpufreq cpufreq-ondemand cpufreq-powersave)
+
</pre>
+
 
+
Enable ACPI. Update [https://wiki.archlinux.org/index.php/Rc.conf /etc/rc.conf]
+
<pre>
+
DAEMONS=(acpid hal)
+
</pre>
+
  
 
===laptop-mode===
 
===laptop-mode===

Revision as of 17:24, 7 November 2012

Acer Aspire TimelineX 4820TG is a 14-inch laptop that packs in an Intel Core i5-430M processor and dedicated ATI Radeon HD 5650 graphics, making it a powerful 14-inch laptop. ArchLinux works mostly works out of box, but there are few tweaks required to make the hardware fully compatible with ArchLinux.

Hardware

[root@arp arp]# lspci

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev ff)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 05)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
01:00.0 VGA compatible controller: ATI Technologies Inc Redwood [Radeon HD 5600 Series] (rev ff)
01:00.1 Audio device: ATI Technologies Inc Redwood HDMI Audio [Radeon HD 5600 Series] (rev ff)
02:00.0 Ethernet controller: Atheros Communications AR8151 v1.0 Gigabit Ethernet (rev c0)
03:00.0 Network controller: Broadcom Corporation BCM43225 802.11b/g/n (rev 01)
7f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
7f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
7f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
7f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
7f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
7f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)

Make sure that you have BIOS_Acer_1.25_A_A.zip installed.

PowerSmart / Battery Optimization

Switchable Graphics

This laptop contains inbuilt Intel HD & Radeon 5650 graphics adapters. The Intel HD graphics adapter is optimized for low power consumption which Radeon 5650 consumes high power.

To use Linux kernel's "Laptop Hybrid Graphics - GPU switching support" add following to /etc/fstab

none            /sys/kernel/debug debugfs defaults 0 0

This will enable /sys/kernel/debug/vgaswitcheroo/switch

[root@arp arp]# cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Pwr:0000:01:00.0

IDN - denotes integrated Intel graphics. DIS - denotes discrete Radeon graphics.

To switch-off Radeon, do following -

[root@arp arp]# echo "DIGD" > /sys/kernel/debug/vgaswitcheroo/switch
[root@arp arp]# echo "OFF"  > /sys/kernel/debug/vgaswitcheroo/switch
[root@arp arp]# cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Off:0000:01:00.0

To switch-on both graphics chips, do following -

[root@arp arp]# echo "DIGD" > /sys/kernel/debug/vgaswitcheroo/switch
[root@arp arp]# echo "DDIS" > /sys/kernel/debug/vgaswitcheroo/switch

Init script for switching off the Radeon card -

[root@arp arp]# cat /etc/rc.d/radeon_off 

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in

   start)
   echo "DIGD" > /sys/kernel/debug/vgaswitcheroo/switch
   echo "OFF"  > /sys/kernel/debug/vgaswitcheroo/switch
   ;;

   stop)
   echo "DIGD" > /sys/kernel/debug/vgaswitcheroo/switch
   echo "DDIS" > /sys/kernel/debug/vgaswitcheroo/switch
   ;;

   restart)
     stat_busy "Restarting radeon_off ..."
     $0 stop
     $0 start
     stat_done
   ;;

   *)
     echo "usage: $0 {start|stop|restart}"
esac

[root@arp arp]# chmod +x /etc/rc.d/radeon_off 

Switch the Radeon off while booting. Add following at the end of the file : /etc/rc.sysinit

#Switch-off discrete graphics
/etc/rc.d/radeon_off restart

/bin/dmesg >| /var/log/dmesg.log

Enable CPU Frequency Scaling

Enabled by default, see CPU Frequency Scaling for details.

laptop-mode

Install laptop-mode tools

pacman -S laptop-mode-tools

Activate laptop-mode while booting. Update /etc/rc.conf

DAEMONS=(laptop-mode)

Here is my laptop-mode configuration :

diff -uNr laptop-mode.orig//conf.d/battery-level-polling.conf laptop-mode//conf.d/battery-level-polling.conf
--- laptop-mode.orig//conf.d/battery-level-polling.conf	2011-06-24 04:06:47.000000000 +0530
+++ laptop-mode//conf.d/battery-level-polling.conf	2011-06-25 05:03:48.300015569 +0530
@@ -21,6 +21,6 @@
 #
 # Enable this setting to enable battery level polling.
 #
-ENABLE_BATTERY_LEVEL_POLLING=0
+ENABLE_BATTERY_LEVEL_POLLING=1
diff -uNr laptop-mode.orig//conf.d/bluetooth.conf laptop-mode//conf.d/bluetooth.conf
--- laptop-mode.orig//conf.d/bluetooth.conf	2011-06-24 04:06:47.000000000 +0530
+++ laptop-mode//conf.d/bluetooth.conf	2011-06-25 05:03:41.176680194 +0530
@@ -21,7 +21,7 @@
 DEBUG=0
 
 # Control bluetooth?
-CONTROL_BLUETOOTH=0
+CONTROL_BLUETOOTH=1
 
 # Enable bluetooth on battery
 BATT_ENABLE_BLUETOOTH=0
diff -uNr laptop-mode.orig//conf.d/dpms-standby.conf laptop-mode//conf.d/dpms-standby.conf
--- laptop-mode.orig//conf.d/dpms-standby.conf	2011-06-24 04:06:48.000000000 +0530
+++ laptop-mode//conf.d/dpms-standby.conf	2011-06-25 05:03:19.596676552 +0530
@@ -43,6 +43,6 @@
 # in seconds. The suspend and poweroff timeouts are somewhat
 # larger values derived from these values.
 #
-BATT_DPMS_STANDBY=300
+BATT_DPMS_STANDBY=120
 LM_AC_DPMS_STANDBY=1200
 NOLM_AC_DPMS_STANDBY=1200
diff -uNr laptop-mode.orig//conf.d/hal-polling.conf laptop-mode//conf.d/hal-polling.conf
--- laptop-mode.orig//conf.d/hal-polling.conf	2011-06-24 04:06:48.000000000 +0530
+++ laptop-mode//conf.d/hal-polling.conf	2011-06-25 05:03:03.386679612 +0530
@@ -35,4 +35,4 @@
 AC_DISABLE_HAL_POLLING=0
 
 # Drives to apply HAL polling settings to
-HAL_POLLING_DEVICES="/dev/scd?"
+HAL_POLLING_DEVICES="/dev/sr?"
diff -uNr laptop-mode.orig//conf.d/intel-hda-powersave.conf laptop-mode//conf.d/intel-hda-powersave.conf
--- laptop-mode.orig//conf.d/intel-hda-powersave.conf	2011-06-24 04:06:48.000000000 +0530
+++ laptop-mode//conf.d/intel-hda-powersave.conf	2011-06-27 19:42:01.410168325 +0530
@@ -28,7 +28,7 @@
 NOLM_AC_INTEL_HDA_POWERSAVE=0
 
 # Number of seconds to wait before you want the device to time out
-INTEL_HDA_DEVICE_TIMEOUT=10
+INTEL_HDA_DEVICE_TIMEOUT=20
 
 # Disable controller on Device timeout
 # This saves more power
@@ -36,4 +36,4 @@
 # "click" sound when the device wakes up again
 #
 # Set this to 1 to enable power savings for the controller also
-INTEL_HDA_DEVICE_CONTROLLER=0
+INTEL_HDA_DEVICE_CONTROLLER=1
diff -uNr laptop-mode.orig//conf.d/intel-sata-powermgmt.conf laptop-mode//conf.d/intel-sata-powermgmt.conf
--- laptop-mode.orig//conf.d/intel-sata-powermgmt.conf	2011-06-24 04:06:48.000000000 +0530
+++ laptop-mode//conf.d/intel-sata-powermgmt.conf	2011-06-27 19:42:19.466836003 +0530
@@ -24,5 +24,5 @@
 
 # Handle power management of the Intel SATA deivce under specific circumstances
 BATT_ACTIVATE_SATA_POWER=1
-LM_AC_ACTIVATE_SATA_POWER=0
+LM_AC_ACTIVATE_SATA_POWER=1
 NOLM_AC_ACTIVATE_SATA_POWER=0
diff -uNr laptop-mode.orig//conf.d/usb-autosuspend.conf laptop-mode//conf.d/usb-autosuspend.conf
--- laptop-mode.orig//conf.d/usb-autosuspend.conf	2011-06-24 04:06:48.000000000 +0530
+++ laptop-mode//conf.d/usb-autosuspend.conf	2011-06-25 05:02:25.116679375 +0530
@@ -34,7 +34,7 @@
 # The list of USB driver types that should not use autosuspend.  The driver
 # type is given by "DRIVER=..." in a USB device's uevent file.
 # Example: AUTOSUSPEND_USBID_BLACKLIST="usbhid usb-storage"
-AUTOSUSPEND_USBTYPE_BLACKLIST=""
+AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid usb-storage"
 
 # Trigger auto-suspension of the USB deivce under conditional circumstances
 BATT_SUSPEND_USB=1
diff -uNr laptop-mode.orig//laptop-mode.conf laptop-mode//laptop-mode.conf
--- laptop-mode.orig//laptop-mode.conf	2011-06-24 04:06:47.000000000 +0530
+++ laptop-mode//laptop-mode.conf	2011-06-27 19:41:00.103498235 +0530
@@ -89,7 +89,7 @@
 #
 # Enable laptop mode when on AC power.
 #
-ENABLE_LAPTOP_MODE_ON_AC=0
+ENABLE_LAPTOP_MODE_ON_AC=1
 
 
 #
@@ -270,8 +270,8 @@
 # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
 # for battery and for AC with laptop mode on.
 #
-LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
-LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
+LM_AC_HD_IDLE_TIMEOUT_SECONDS=600
+LM_BATT_HD_IDLE_TIMEOUT_SECONDS=300
 NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
 
 
@@ -285,7 +285,7 @@
 #
 # Power management for HD (hdparm -B values)
 #
-BATT_HD_POWERMGMT=1
+BATT_HD_POWERMGMT=254
 LM_AC_HD_POWERMGMT=254
 NOLM_AC_HD_POWERMGMT=254

Power Usage

The power rating before tweak -

Power usage (ACPI estimate): 24.1W (2.8 hours)

The power rating after "switching off the radeon graphics" and "enabling laptop-mode tools".

Power usage (ACPI estimate): 11.1W (6.5 hours)

Sensors

[arp@arpc ~]$ sudo modprobe coretemp
[arp@arpc ~]$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +53.0°C  (crit = +105.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:       +2147355.6°C  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +49.0°C  (high = +95.0°C, crit = +105.0°C)

coretemp-isa-0002
Adapter: ISA adapter
Core 2:       +53.0°C  (high = +95.0°C, crit = +105.0°C)

Synaptics Touchpad

The Synaptics driver is available from xf86-input-synaptics package [extra] repository

 # pacman -S xf86-input-synaptics

The default configuration is available at /etc/X11/xorg.conf.d/10-synaptics.conf

Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Option "TapButton1" "1"
        Option "TapButton2" "2"
        Option "TapButton3" "3"
        Option "SHMConfig"  "true"
        Option "VertEdgeScroll" "on"
        Option "VertTwoFingerScroll" "on"
        Option "HorizEdgeScroll" "on"
        Option "HorizTwoFingerScroll" "on"
        Option "CircularScrolling" "on"
        Option "CircScrollTrigger" "2"
        Option "EmulateTwoFingerMinZ" "0"
EndSection

For more information check Touchpad_Synaptics