Author Topic: [SOLVED] Install pclos on Asus ux31e  (Read 3154 times)

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
[SOLVED] Install pclos on Asus ux31e
« on: May 23, 2012, 09:31:02 PM »
I have been using this machine for almost a month now.   It works great!

-------------

I finally found a notebook to meet my needs. Now I am trying to figure out how to install pclos on it.

I does not have an optical drive, so I downloaded pclinuxos-kde-2012.02.iso on my other machine an used PCLinuxOS Live USB Creator to create a bootable usb.

I also found out that to make the ux31e boot off of the usb, you need to turn it on and immediately press and hold the esc key. You then get a menu that lets you choose between booting off of the ssd or the usb (second option.)

My machine also had a tendency to power off unexpectedly. To fix that I updated the bios to the latest (212) and disabled VT-d in the bios (bios access is the third option in the above menu.)

The os boots off of the usb, I get a splash screen and if I press the esc key I can see various drivers starting ok ... but X fails to start.

The problem is that this machine screen resolution is not listed in the iso's xorg.conf

To fix, you login as root, run XFdrake (it also works in text mode!) and select a 1600x900 monitor and a 1600x900 24bpp display.  After that run startx and you get the GUI.

The wireless network also does not work and requires updated drivers and a reboot, so at this point you must install the OS.  It goes really fast since the machine has an SSD.  After reboot off of the SDD screen resolution is in xorg.conf and the GUI works.

I have tested the machine with 2.6.38.8-bfs (comes with the iso)  2.6.38.8-pae-bfs (machine has 4GB RAM) and 3.2.18-pae-bfs.   The order of installation is important or else you may lose sound.

In grub's menu add to the boot options
Quote
splash=silent i915.i915_enable_rc6=0 i915.semaphores=1 pcie_aspm=force
for every installed kernel.

To get the wireless to work you need to  download the drivers from


Use compat-wireless-3.2.5-1.tar.bz2 for 2.6.38.8 kernels and compat-wireless-3.3-2-n.tar.bz2 for 3.2.18 kernel.

You also will need the rpm's for kernel-3.2.18-pclos1.pae.bfs and kernel-devel-3.2.18-pclos1.pae.bfs.

As root
Code: [Select]
# tar xvf compat-wireless-3.2.5-1.tar.bz2
# cd compat-wireless-3.2.5-1
# ./scripts/driver-select ath9k
# make
# make install
# make unload
# modprobe ath9k
# reboot

After reboot you should have a working wireless.

Start synaptic and upgrade all packages.  

You also must remove dkms-broadcom-wl and dkms-nvidia173 otherwise 3.2.18 won't install.

Install the 3.2.18 kernel rpms.

Reboot with the new kernel.

Install compat-wireless-3.3.2-n.tar.bz2. After reboot wireless should work here as well.

[Note: the machine has a function key Fn F2 to toggle the wireless. It seems to work but its light is reversed: when the light is on the wireless is off]

You also need the below script to make the sleep function work.  The below script works for both kernels.

In /etc/pm/sleep.d/20_xenbook (make it executable, owned by root)
Quote
#!/bin/bash
# file name and location: /etc/pm/sleep.d/20_zenbook
OSVERSION=`echo $(uname -a) | sed "s/[^\ ]\+\ [^\ ]\+\ \([0-9\.]\+\).*/\1/"`
if [ "$1" = "" ] ; then
echo "OSVERSION: ${OSVERSION}"
exit
fi
if [ "$OSVERSION" = "3.2.18" ] ; then
EHCI_BUSES="0000:00:1a.0 0000:00:1d.0"
case "${1}" in
    hibernate|suspend)
        # Switch USB buses off
        for bus in $EHCI_BUSES; do
            echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/unbind
        done
        ;;
    resume|thaw)
        # Switch USB buses back on
        for bus in $EHCI_BUSES; do
            echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/bind
        done
        ;;
esac
fi
if [ "$OSVERSION" = "2.6.38.8" ] ; then
EHCI_BUSES="0000:00:1a.0 0000:00:1d.0"
XHCI_BUSES="0000:03:00.0"
case "${1}" in
    hibernate|suspend)
        # Switch USB buses off
        for bus in $EHCI_BUSES; do
            echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/unbind
        done
        for bus in $XHCI_BUSES; do
            echo -n $bus > /sys/bus/pci/drivers/xhci_hcd/unbind
        done
        ;;
    resume|thaw)
        # Switch USB buses back on
        for bus in $EHCI_BUSES; do
            echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/bind
        done
        for bus in $XHCI_BUSES; do
            echo -n $bus > /sys/bus/pci/drivers/xhci_hcd/bind
        done
        # Hacky workaround to fix display after suspend, not needed for kernels 3.1 or newer
        export DISPLAY=":0"
        export XAUTHORITY=`ps aux | grep X | grep auth | awk '{sub( /^.*-auth / ,""); sub( / .*/,"");print }'`
        xset dpms force off
        xset dpms force on
        ;;
esac
fi

   
I tend to touch the tracpad as I type, which causes a tap and move the cursor to random places.  It seems that running
Quote
syndaemon -i 2.0 -k -t -d
helps with this problem.
 
To make it start on boot add this script to /etc/init.d (executable, owned by root)
Quote
#! /bin/sh
#
# syndaemon
#
# chkconfig: 345 50 50
# description: Disable touchpad tapping while typing
#

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
    gprintf "Starting syndaemon: "
    status syndaemon > /dev/null 2>&1
    [ $? -ne 0 ] && daemon syndaemon -i 2.0 -k -t -d
    success "start"

    echo
    touch /var/lock/subsys/syndaemon
    ;;
  stop)
    gprintf "Stopping syndaemon: "
    killproc syndaemon

    echo
    rm -f /var/lock/subsys/syndaemon
    ;;
  status)
    status syndaemon
    ;;
  restart)
    $0 stop
    $0 start
    ;;
  *)
    gprintf "Usage: $(basename %s) {start|stop|status|restart}\n" "$0"
    exit 1
esac

exit 0
« Last Edit: June 18, 2012, 01:30:35 PM by gilado »

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Install pclos on Asus ux31e
« Reply #1 on: May 23, 2012, 09:37:58 PM »
i find more simple to use a external optical drive, if you have one, makes things simple

what is the specs of that laptop?  video card could need a special option to boot properly
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: Install pclos on Asus ux31e
« Reply #2 on: May 23, 2012, 09:43:43 PM »
Looks like standard i915.  I tried to post the content of dmesg a few times. Every time I try I get connection reset from the forum's server.

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Install pclos on Asus ux31e
« Reply #3 on: May 23, 2012, 09:56:04 PM »
i found this specs

http://www.asus.com/Notebooks/Superior_Mobility/ASUS_ZENBOOK_UX31E/#specifications

seems to be a gpu in the cpu i5 with a hd3000 video card

normally to share hardware specs you can just write lspci and most hardware will be showed but usually won't show the exact information of the video card

from that information it seems that it is using the intel 810 and later video driver
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: Install pclos on Asus ux31e
« Reply #4 on: May 23, 2012, 10:02:02 PM »
Yes X.org.log also says i810 and later but it does not work

Offline gilado

  • Hero Member
  • *****
  • Posts: 524

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: Install pclos on Asus ux31e
« Reply #6 on: May 23, 2012, 11:04:59 PM »
The problem was that this machine screen resolution is not listed in the iso's xorg.conf. I updated the top of this post with instructions as to how to get it going

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: Install pclos on Asus ux31e
« Reply #7 on: May 23, 2012, 11:16:35 PM »
Next the wireless does not work. Other distros reports that it work out of the box. HEre I get this message

Unable to find network interface for selected device (using ath9k driver)

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Install pclos on Asus ux31e
« Reply #8 on: May 24, 2012, 08:02:32 AM »
weird, i use that module for wireless and has been working since i bought it but i can't find the model of your wifi card, can you open konsole and write lspci and post the results to know the exact model of your card

is it enabled the wifi adapter?

can you delete the interface in pcc/network/remove a connection

after that in pcc/network/setup a new network interface
« Last Edit: May 24, 2012, 08:04:14 AM by T6 »
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: Install pclos on Asus ux31e
« Reply #9 on: May 24, 2012, 08:38:00 AM »
AR9485.

Works when booting Windows.

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Install pclos on Asus ux31e
« Reply #10 on: May 24, 2012, 08:51:27 AM »
AR9485.

Works when booting Windows.

which kernel are you using ?

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: Install pclos on Asus ux31e
« Reply #11 on: May 24, 2012, 10:31:22 AM »
live cd (on usb) 2012-02 iso => 2.6.38.8-pclos3.bfs

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Install pclos on Asus ux31e
« Reply #12 on: May 24, 2012, 10:40:54 AM »
live cd (on usb) 2012-02 iso => 2.6.38.8-pclos3.bfs

You should try the new 3.2.18 kernel, available in testing, because support for atheros card has greatly improved in recent kernels, however you cannot install a new kernel on a LiveCD, you will need an installed system.

AS

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: Install pclos on Asus ux31e
« Reply #13 on: May 24, 2012, 04:01:42 PM »
I tried to plug  older usb based wireless adapters in the hope 2.6.38.8 would recognized them and using them I would be able to download a newer kernel... no such luck

Netgear N-300 wireless usb adapter shows up in dmesg as
Quote
usb 3-1: new high speed USB device using ehci_hcd and address 4
usb 3-1: New USB device found, idVendor=0846, idProduct=9020
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-1: Product: Remote Download Wireless Adapter
usb 3-1: Manufacturer: Broadcom
usb 3-1: SerialNumber: 113
But that's it.  I don't know how to make it work

A D-Link button wireless usb adapter provokes this in dmesg
Quote
usb 3-1: new high speed USB device using ehci_hcd and address 5
usb 3-1: New USB device found, idVendor=2001, idProduct=3308
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-1: SerialNumber: 00e04c000001
But again does not show up anywhere else so I don't know how to make it work.

Any other ideas? 

Could I download the newer kernle (what rpms) to a usb drive, install the 2012-02 iso, then install the new kernell from the usb drive?

Thanks

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Install pclos on Asus ux31e
« Reply #14 on: May 24, 2012, 04:14:32 PM »
I tried to plug  older usb based wireless adapters in the hope 2.6.38.8 would recognized them and using them I would be able to download a newer kernel... no such luck

Netgear N-300 wireless usb adapter shows up in dmesg as
Quote
usb 3-1: new high speed USB device using ehci_hcd and address 4
usb 3-1: New USB device found, idVendor=0846, idProduct=9020
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-1: Product: Remote Download Wireless Adapter
usb 3-1: Manufacturer: Broadcom
usb 3-1: SerialNumber: 113
But that's it.  I don't know how to make it work

A D-Link button wireless usb adapter provokes this in dmesg
Quote
usb 3-1: new high speed USB device using ehci_hcd and address 5
usb 3-1: New USB device found, idVendor=2001, idProduct=3308
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-1: SerialNumber: 00e04c000001
But again does not show up anywhere else so I don't know how to make it work.

Any other ideas? 

Could I download the newer kernle (what rpms) to a usb drive, install the 2012-02 iso, then install the new kernell from the usb drive?

Thanks


Let me check about the available support for these devices ...  and yes, eventually it will be possible to download the rpms and install them manually.