Asus UX21E

Ubuntu 11.10 Oneiric Ocelot on UX21E

Actual installation
  • Linux Version: 3.2.30 - generic - pae (32 Bit Version)
  • Bios 212
  • Ubuntu 12.04
With other Linux Kernel Main Support Ressources

Bios

DSDT

  • dsdt.aml: dsdt.aml (from UX21 Bios 209)

Touchpad

General Informations (in German): http://wiki.ubuntuusers.de/touchpad

To determine which touchpad you have use this command:
cat /proc/bus/input/devices | grep -i pad
xinput -list
xinput list-props 12
open dconf-editor, then check /org/gnome/settings-daemon/peripherals/touchpad/touchpad-enabled

Elantech

Sentelic

  • Python script to inactivad sentelic touchpad while typing
    https://github.com/gokmen/Sentelic
  • Inactivat Touch-on-Click

echo -n 0x90 0x80 > /sys/devices/platform/i8042/serio4/setreg
echo -n c > /sys/devices/platform/i8042/serio4/flags

Synaptics

Keybindings

Systemeinstellungen > Tastatur > Tastaturkürzel

$xmodmap -pke
sudo apt-get install cheese
gconftool-2 -s /desktop/gnome/keybindings/custom0/name -t string 'Web Cam'
gconftool-2 -s /desktop/gnome/keybindings/custom0/binding -t string 'XF86WebCam'
gconftool-2 -s /desktop/gnome/keybindings/custom0/action -t string 'cheese'
gconftool-2 -s /desktop/gnome/keybindings/custom2/name -t string 'Touchpad Toggle'
gconftool-2 -s /desktop/gnome/keybindings/custom2/binding -t string 'XF86TouchpadToggle'
gconftool-2 -s /desktop/gnome/keybindings/custom2/action -t string '/etc/acpi/asus-touchpad.sh'

Ethernet - USB-Adapter

The Ethernet USB adapater which comes with the ASUS UX31 and UX21 models is the Asix "USB to Fast Ethernet" adapter, model AX88772B. At the present, the device is not recognized by the currently available kernels.

http://www.asix.com.tw/FrootAttach/d...2.0_Source.zip

Once downloaded, the source needs to be compiled. First unzip the file.

Download essentials
apt-get install build-essential linux-headers-`uname -r`

Next, go into the unzipped directory and compile the source as follows:
cd AX88772B_772A_760_772_178_LINUX_Driver_v4.2.0_Source

make

Install the just compiled module:
sudo make install

Finally load the module:
sudo modprobe asix

That's it. You should be able to connect using a wired connection now.

WLAN

If anyone interested I found a way to make WiFi fast:

Code:
echo "options ath9k nohwcrypt=1" >> /etc/modprobe.d/ath9k.conf

Bluetooth

he bluetooth module is the Atheros AR3012, which requires loading a firmware before it can be used. For now, patching the kernel is required to recognize this module as AR3012 one.

The patch, and it's upstream progress, can be seen here: http://thread.gmane.org/gmane.linux.bluez.kernel/18801

More info: http://ubuntuforums.org/showthread.php?t=1867447&highlight=zenbook

Sensors (temps & fans)

Works by default however to (optionally) read the sensor data requires the package lm-sensors which is installed by:
sudo aptitude install lm-sensors
sudo tee -a /etc/modules <<-EOF
        coretemp
EOF

Power Optimizations

To apply all recommendations by powertop when on battery, put the following script in /etc/pm/power.d:
# Powertop tunables

case $1 in
        true)
                ## VM writeback timeout
                echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

                ## Autosuspend for USB devices
                ### USB2.0-CRW (Generic)
                echo auto > /sys/bus/usb/devices/1-1.7/power/level
                ### Bluetooth USB Host Controller (Atheros Communications)
                echo auto > /sys/bus/usb/devices/1-1.8/power/level

                ## Runtime PM for PCI devices
                ### Atheros Communications Inc. AR9485 Wireless Network Adapter
                echo auto > /sys/bus/pci/devices/0000:02:00.0/power/control
                ### Fresco Logic Device 1009
                echo auto > /sys/bus/pci/devices/0000:03:00.0/power/control
                ### Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
                echo auto > /sys/bus/pci/devices/0000:00:1f.2/power/control

                ### Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
                # echo auto > /sys/bus/pci/devices/0000:00:1d.0/power/control
                # Causes machine to freeze on shutdown, should work with kernels 3.0.11, 3.1.3 or newer

                ### Intel Corporation 2nd Generation Core Processor Family DRAM Controller
                echo auto > /sys/bus/pci/devices/0000:00:00.0/power/control
                ### Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1
                echo auto > /sys/bus/pci/devices/0000:00:16.0/power/control
                ### Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller
                echo auto > /sys/bus/pci/devices/0000:00:1b.0/power/control
                ### Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1
                echo auto > /sys/bus/pci/devices/0000:00:1c.0/power/control
                ### Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2
                echo auto > /sys/bus/pci/devices/0000:00:1c.1/power/control
                ### Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4
                echo auto > /sys/bus/pci/devices/0000:00:1c.3/power/control
                ### Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller
                echo auto > /sys/bus/pci/devices/0000:00:02.0/power/control

                ## SATA link power management
                echo min_power > /sys/class/scsi_host/host0/link_power_management_policy

                # 50% screen brightness on battery
                echo 5 > /sys/bus/pci/devices/0000:00:02.0/backlight/acpi_video0/brightness
        ;;
        false)
                # 90% screen brightness on AC
                echo 9 > /sys/bus/pci/devices/0000:00:02.0/backlight/acpi_video0/brightness
        ;;
esac

exit 0

Startparameter in Grub

  • pcie_aspm=force
    ASPM is not enabled by default, at least not yet. As far as I know this is ongoing work.
    See also: http://www.phoronix.com/scan.php?pag...solution&num=1
  • i915.modeset=1
    Is enabled by default, therefore unnecessary. It was only required for older 3.2-rc kernels (rc5 and below, because of a regression which is now fixed).
  • i915.i915_enable_rc6=1
    Is enabled by default in the 3.2 kernels if VTd is disabled, but not in 3.1. Significant power usage improvements. Causes problems with VTd enabled.
    See also: http://intellinuxgraphics.org/2011Q4.html
  • i915.semaphores=1
    Enabled by default in the 3.2 kernels (only if VTd is disabled). Not enabled in 3.1, causes problems together with VTd, see http://intellinuxgraphics.org/2011Q4.html.
    Edit: will probably get deactivated by default with the final release of Linux 3.2, see https://lkml.org/lkml/2011/12/23/247.
  • i915.i915_enable_fbc=1
    Is enabled by default since kernel 3.1, according to http://intellinuxgraphics.org/2011Q4.html.
  • i915.lvds_downclock=1
    Based on the quote above posted by nomego and the output of "xrandr", the Zenbook uses eDP (Embedded Display Port) instead of LVDS. So this option has no effect.
  • intel_iommu=off
    Alternative to disabling VTd in the BIOS.
  • acpi_oci="Linux"
    Only a cosmetical fix, because a line in dmesg (?) recommended it, but no positive or negative effect known.
    This doesn't signify any problem with Ubuntu or with the Linux kernel. What the message indicates is that your BIOS is querying the operating system to see whether or not Linux is running, and Linux is ignoring this query. The reason for this is that often a BIOS will offer a limited feature set to the operating system when it responds that it is Linux. Linux generally supports all the same features as Windows, so Linux developers consider this query to be a bug in the firmware and instead report that the operating system is Windows so that the full set of features for the machine will be available. The message can be safely ignored.
So, the recommendation should probably be:
- use kernel 3.2-rc6
- disable VTd in the BIOS
- use the kernel option "pcie_aspm=force" (with the final 3.2 release "i915.semaphores=1" will probably be necessary again)

The alternative:
- use kernel 3.1
- disable VTd in the BIOS
- use the kernel option "pcie_aspm=force i915.i915_enable_rc6=1 i915.semaphores=1"
(The Elantech touchpad mouse buttons work under 3.1, that's one reason for the older kernel - and I think the only one.)

I always edit /etc/default/grub and alter the contents of the line that starts with:
GRUB_CMDLINE_LINUX_DEFAULT="pcie_aspm=force"

and then
sudo update-grub
Topic revision: r9 - 21 Aug 2012, MarcPilloud
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Seite genereriert um 22 Dec 2024 - 12:27
Ideas, requests, problems regarding wiki.doebe.li? Send feedback