Difference between revisions of "ASUS A6km"

From ArchWiki
Jump to: navigation, search
(rm'ed duplication of beginners' guide along with out of date info (hwdetect))
m (IrDA: change ifconfig to ip a.)
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:ASUS (English)]]
+
[[Category:ASUS]]
This is my experience of installing and configuring Archlinux x86_64 on a '''Asus A6km''' laptop. The structure conveys the order that things were done, which might help other users to see how the layers can be added to build a very stable distribution.
+
This page describes troubleshooting and configuration specific to the '''Asus A6km''' laptop.
  
 
On this model, a known buggy BIOS problem results in a system hang when any USB device, such as a mouse, is attached at bootup. This can be fixed using a downgraded BIOS version (can be downloaded [http://people.bath.ac.uk/enxspd/laptop/Opensuse103_Laptop.html here]). The installation described uses this 202 BIOS version and so far no problems have been encountered, even the power management modules behave properly.
 
On this model, a known buggy BIOS problem results in a system hang when any USB device, such as a mouse, is attached at bootup. This can be fixed using a downgraded BIOS version (can be downloaded [http://people.bath.ac.uk/enxspd/laptop/Opensuse103_Laptop.html here]). The installation described uses this 202 BIOS version and so far no problems have been encountered, even the power management modules behave properly.
 
'''Latest revision based on 2009.02 core installation'''
 
  
 
See the [[Beginners' Guide]] for installation instructions.
 
See the [[Beginners' Guide]] for installation instructions.
Line 45: Line 43:
 
  01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
 
  01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
  
====Wireless==
+
==Wireless==
  
 
For wireless, can use the b43-fwcutter package to install the firmware, (run ''lsmod'' command to check if the b43 module is running):
 
For wireless, can use the b43-fwcutter package to install the firmware, (run ''lsmod'' command to check if the b43 module is running):
Line 51: Line 49:
 
  # b43-fwcutter -w /lib/firmware /path_to_driver
 
  # b43-fwcutter -w /lib/firmware /path_to_driver
  
the driver can be found [http://linuxwireless.org/en/users/Drivers/b43 here]  
+
the driver can be found [http://linuxwireless.org/en/users/Drivers/b43 here]
  
Once installed running
+
==Audio==
  
# iwconfig
+
The sound card [SiS AC'97] was detected on installation and the correct modules for audio loaded at bootup.
 
+
showed an entry for '''wlan0'''.
+
 
+
The device may need starting:
+
 
+
# ifconfig wlan0 up
+
 
+
From there, configuration to connect to a wireless network required setting up the ESSID and the network key using ''iwconfig'' e.g.
+
 
+
# iwconfig wlan0 essid somename key somekey
+
 
+
and requesting an IP address using the same method as the wired configuration. On reboot, the driver module would be loaded but the configuration would be lost, software, such as ''netcfg'', allowed saving the wireless configuration to file and load the settings on bootup.
+
 
+
=====Netcfg=====
+
 
+
Netcfg package produced a good way to setup an encrypted wireless network connection that connects to a network automatically at bootup, particularly while using a console to set stuff up. Examples of the config files are given in '''/etc/network.d/examples'''. Here's a WEP configuration file minus a few secret bits!
+
 
+
CONNECTION="wireless"
+
DESCRIPTION="A simple WEP encrypted wireless connection"
+
INTERFACE=wlan0
+
SCAN="yes"
+
SECURITY="wep"
+
ESSID="XXXXXXXX"
+
KEY="XXXXXXXXX"
+
IP="dhcp"
+
 
+
After entering the appropriate information, and saving a copy in '''/etc/network.d''' for netcfg to see it, to test run:
+
 
+
# netcfg Filename
+
 
+
To get the connection at bootup, the following was added to '''/etc/rc.local''':
+
 
+
# Start Wireless.......
+
sudo netcfg Filename
+
 
+
===Pacman===
+
 
+
Once the network was setup, Pacman was used to install all the software. [http://wiki.archlinux.org/index.php/Pacman Pacman] is the commandline package management for Archlinux. It is powerful and yet easy to use, once you get the hang of the syntax. First thing to do, an upgrade of pacman package using, 
+
 
+
# pacman -Syu
+
 
+
then
+
 
+
# pacman -Syy
+
 
+
this installed the latest version. Then upgraded the system,
+
 
+
# pacman -Syu
+
 
+
The pacman package checked and installed all the dependencies, setup the packages and gave extra info about the upgrades. These could also be read in the '''/var/log/pacman.log''' file.
+
 
+
During this first system upgrade, there was an error relating to ''klibc'' that required removing a link, see [http://wiki.archlinux.org/index.php/Klibc_error here]
+
 
+
===ABS===
+
See [[ABS]].
+
 
+
===Gnome===
+
 
+
To install the Gnome packages (and extras, see [http://wiki.archlinux.org/index.php/Gnome here]):
+
 
+
# pacman -S gnome gnome-extra
+
 
+
The installation also added gdm (gnome display manager). From here, need to add the following daemons: fam, hal and gdm to the daemons list in '''/etc/rc.conf'''.
+
 
+
DAEMONS=(.....fam hal....gdm)
+
 
+
Hal started the dbus daemon on bootup and some packages suggested adding dbus to the daemons list, this is obviously not necessary if hal is present. After a reboot, gdm loaded the gnome login window. At this point, a user account needed to be present on the system since you cannot login as root at this stage (try ctl+alt+F6 to get to a console and login as root then follow adding a user section below).
+
 
+
When using Nautilus in Gnome to access ftp or samba filesystems, the 'fuse' module needs to be added to the MODULES list. 
+
 
+
====User accounts====
+
 
+
Logged into a console as root, and typed the command:
+
 
+
# adduser
+
 
+
which gave a structured output for creating a user account. During this process, it was possible to add the user to a number of [http://wiki.archlinux.org/index.php/Groups groups]. Available groups can be viewed using:
+
 
+
# cat /etc/group
+
 
+
These groups gave user permissions to access:
+
 
+
* '''optical''' -  CD/DVD drives
+
* '''storage''' - external drives
+
* '''disk''' -  drives other than storage and optical
+
* '''log''' -  log files
+
* '''power''' - allows user to suspend, restart and shutdown the computer
+
* '''audio''' - sound settings
+
* '''video''' - video capture devices
+
* '''wheel''' - allow users to use sudo commands
+
* '''network''' - allow users to change network settings
+
 
+
Outside of the adduser setup, adding a user to another group could be achieved using:
+
 
+
# gpasswd -a [username] group
+
 
+
Once the account was setup, back to logging into Gnome. No problems were encountered with starting gnome for the first time other than getting the audio sorted out.
+
 
+
====Audio====
+
 
+
The sound card [SiS AC'97] was detected on installation and the correct modules for audio loaded at bootup.
+
  
 
See [[ALSA]] for installation/configuration details.
 
See [[ALSA]] for installation/configuration details.
  
==Other hardware==
+
==Touchpad==
 
+
===Touchpad===
+
  
 
To get the touchpad working, install the synaptics package:
 
To get the touchpad working, install the synaptics package:
Line 168: Line 63:
 
  # pacman -S xf86-input-synaptics
 
  # pacman -S xf86-input-synaptics
  
The touchpad started working (with basic features - no scrolling etc.) after a reboot. Apparently this only works when [http://wiki.archlinux.org/index.php/Xorg_input_hotplugging xorg input hotplugging] is enabled.
+
==Webcam==
 
+
===Webcam===
+
  
 
The webcam was detected on installation and the modules loaded at bootup.  
 
The webcam was detected on installation and the modules loaded at bootup.  
Line 177: Line 70:
 
  stkwebcam: Syntek USB2.0 Camera is now controlling video device /dev/video0
 
  stkwebcam: Syntek USB2.0 Camera is now controlling video device /dev/video0
  
The cheese webcam package worked well with the installed drivers. Cheese is installed with Gnome extras packages. '''Can't recall whether this worked on the kernel version installed from the download or after an upgrade!'''
+
The cheese webcam package worked well with the installed drivers. Cheese is installed with Gnome extras packages.
 
+
Kernel version in use at this stage was 2.6.27.
+
  
===Modem===
+
==Modem==
  
 
Not tested so far
 
Not tested so far
  
===IrDA===
+
==IrDA==
  
 
First make sure the device is enabled in the BIOS, then once booted up, start the daemon:
 
First make sure the device is enabled in the BIOS, then once booted up, start the daemon:
Line 212: Line 103:
 
The 'Sony Ericss' entry is a nearby (direct line of sight) mobile phone with infra-red enabled.
 
The 'Sony Ericss' entry is a nearby (direct line of sight) mobile phone with infra-red enabled.
  
There should also be an '''irda0''' entry when running the ''ifconfig'' command.
+
There should also be an '''irda0''' entry when running the {{ic|# ip a}} command.
  
===Card Reader===
+
==Card Reader==
  
 
Not tested so far
 
Not tested so far
  
===Tv Out===
+
==Tv Out==
  
Not tested so far
+
Not tested.
  
 
==Other Software/Utilities==
 
==Other Software/Utilities==
Line 226: Line 117:
 
===Power Management===
 
===Power Management===
  
For cpu scaling, see [[Cpufrequtils]].
+
For cpu scaling, see [[CPU Frequency Scaling]].
  
 
===Suspend to RAM/Disk===
 
===Suspend to RAM/Disk===
  
For suspend-to-ram, follow the instructions in the [http://wiki.archlinux.org/index.php/Suspend_to_RAM Suspend-to-ram] page. Running the command:
+
For suspend-to-ram, follow the instructions in the [[Suspend to RAM]] page.
 
+
# s2ram -n
+
 
+
gave the output:
+
 
+
Machine matched entry 49:
+
    sys_vendor  = 'ASUSTeK Computer Inc. '
+
    sys_product  = 'A6Km      '
+
    sys_version  = ''
+
    bios_version = ''
+
Fixes: 0x0 
+
This machine can be identified by:
+
    sys_vendor  = "ASUSTeK Computer Inc. "
+
    sys_product  = "A6Km      "
+
    sys_version  = "1.0      "
+
    bios_version = "300    "
+
See http://suspend.sf.net/s2ram-support.html for details.
+
 
+
and for suspend-to-disk, after the s2ram setup install the hibernate script:
+
 
+
# pacman -S hibernate-script
+
 
+
then test by running:
+
 
+
# s2disk
+
 
+
both seemed to work well, only the wireless light did not re-light after resuming, but wicd restarted ok, not certain what happens with other network managers.
+
 
+
==/etc/rc.conf file==
+
 
+
This is the up-to-date configuration file for the above installation...
+
 
+
#
+
# /etc/rc.conf - Main Configuration for Arch Linux
+
#
+
+
# -----------------------------------------------------------------------
+
# LOCALIZATION
+
# -----------------------------------------------------------------------
+
#
+
# LOCALE: available languages can be listed with the 'locale -a' command
+
# HARDWARECLOCK: set to "UTC" or "localtime"
+
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
+
# TIMEZONE: timezones are found in /usr/share/zoneinfo
+
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+
# USECOLOR: use ANSI color sequences in startup messages
+
#
+
LOCALE="en_GB.utf8"
+
HARDWARECLOCK="localtime"
+
USEDIRECTISA="no"
+
TIMEZONE="Europe/London"
+
KEYMAP="uk"
+
CONSOLEFONT=
+
CONSOLEMAP=
+
USECOLOR="yes"
+
+
# -----------------------------------------------------------------------
+
# HARDWARE
+
# -----------------------------------------------------------------------
+
#
+
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
+
# MOD_BLACKLIST: Prevent udev from loading these modules
+
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
+
#
+
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
+
#
+
MOD_AUTOLOAD="yes"
+
#MOD_BLACKLIST=() #deprecated
+
MODULES=(r8169 !bcm43xx ndiswrapper fuse powernow-k8 cpufreq_ondemand cpufreq_powersave  ac97_bus snd-mixer-oss snd-pcm-oss
+
snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore)
+
+
# Scan for LVM volume groups at startup, required if you use LVM
+
USELVM="no"
+
+
# -----------------------------------------------------------------------
+
# NETWORKING
+
# -----------------------------------------------------------------------
+
#
+
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
+
#
+
HOSTNAME="asus-archlinux-64"
+
+
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
+
#
+
# Interfaces to start at boot-up (in this order)
+
# Declare each interface then list in INTERFACES
+
#  - prefix an entry in INTERFACES with a ! to disable it
+
#  - no hyphens in your interface names - Bash doesn't like it
+
#
+
# DHCP:    Set your interface to "dhcp" (eth0="dhcp")
+
# Wireless: See network profiles below
+
#
+
# eth0="dhcp"
+
# INTERFACES=(eth0)
+
+
# Routes to start at boot-up (in this order)
+
# Declare each route then list in ROUTES
+
#  - prefix an entry in ROUTES with a ! to disable it
+
#
+
gateway="default gw 192.168.0.1"
+
ROUTES=(!gateway)
+
 
+
# Enable these network profiles at boot-up.  These are only useful
+
# if you happen to need multiple network configurations (ie, laptop users)
+
#  - set to 'menu' to present a menu during boot-up (dialog package required)
+
#  - prefix an entry with a ! to disable it
+
#
+
# Network profiles are found in /etc/network.d
+
#
+
# This now requires the netcfg package
+
#
+
#NETWORKS=(main)
+
+
# -----------------------------------------------------------------------
+
# DAEMONS
+
# -----------------------------------------------------------------------
+
#
+
# Daemons to start at boot-up (in this order)
+
#  - prefix a daemon with a ! to disable it
+
#  - prefix a daemon with a @ to start it up in the background
+
#
+
DAEMONS=(syslog-ng iptables !network netfs crond hal cups fam alsa stbd cpufreq wicd gdm)
+

Revision as of 09:30, 13 March 2013

This page describes troubleshooting and configuration specific to the Asus A6km laptop.

On this model, a known buggy BIOS problem results in a system hang when any USB device, such as a mouse, is attached at bootup. This can be fixed using a downgraded BIOS version (can be downloaded here). The installation described uses this 202 BIOS version and so far no problems have been encountered, even the power management modules behave properly.

See the Beginners' Guide for installation instructions.

Hardware

  • 1.8GHz AMD Turion 64 ML34 Processor
  • 15.4" XGA Widescreen TFT Screen
  • 256MB Nvidia Geforce Go 7300
  • 100GB Hard Drive
  • RTL-8169 Gigabit Ethernet Integrated Card
  • Broadcom Integrated 802.11g wireless card
  • DVD Dual Layer Drive
  • Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro
  • 1.3 Mega Pixel USB Intergrated Camera
  • SiS AC'97 Sound Card

lspci outout:

00:00.0 Host bridge: Silicon Integrated Systems [SiS] Device 0756 (rev 02)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS964 [MuTIOL Media IO] (rev 36)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
00:02.6 Modem: Silicon Integrated Systems [SiS] AC'97 Modem Controller (rev a0)
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] AC'97 Sound Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:09.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
00:0a.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
00:0a.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
00:0a.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
00:0a.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 08)
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)

Wireless

For wireless, can use the b43-fwcutter package to install the firmware, (run lsmod command to check if the b43 module is running):

# b43-fwcutter -w /lib/firmware /path_to_driver

the driver can be found here

Audio

The sound card [SiS AC'97] was detected on installation and the correct modules for audio loaded at bootup.

See ALSA for installation/configuration details.

Touchpad

To get the touchpad working, install the synaptics package:

# pacman -S xf86-input-synaptics

Webcam

The webcam was detected on installation and the modules loaded at bootup.

Linux video capture interface: v2.00
stkwebcam: Syntek USB2.0 Camera is now controlling video device /dev/video0

The cheese webcam package worked well with the installed drivers. Cheese is installed with Gnome extras packages.

Modem

Not tested so far

IrDA

First make sure the device is enabled in the BIOS, then once booted up, start the daemon:

# /etc/rc.d/irda start

One way to test the device is to install the utilities:

# pacman -S irda-utils

and run the command:

# irdadump

the output should look something like this when working:

13:13:59.173537 xid:cmd 851b3728 > ffffffff S=6 s=0 (14) 
13:13:59.263432 xid:cmd 851b3728 > ffffffff S=6 s=1 (14) 
13:13:59.353394 xid:cmd 851b3728 > ffffffff S=6 s=2 (14) 
13:13:59.443431 xid:cmd 851b3728 > ffffffff S=6 s=3 (14) 
13:13:59.533395 xid:cmd 851b3728 > ffffffff S=6 s=4 (14) 
13:13:59.626729 xid:rsp 851b3728 < 26098ceb S=6 s=4 Sony Ericss hint=9124 [ PnP Modem IrCOMM  IrOBEX ] (28) 
13:13:59.633430 xid:cmd 851b3728 > ffffffff S=6 s=5 (14) 
13:13:59.723433 xid:cmd 851b3728 > ffffffff S=6 s=* asus-archlinux-64 hint=0400 [ Computer ] (33) 

The 'Sony Ericss' entry is a nearby (direct line of sight) mobile phone with infra-red enabled.

There should also be an irda0 entry when running the # ip a command.

Card Reader

Not tested so far

Tv Out

Not tested.

Other Software/Utilities

Power Management

For cpu scaling, see CPU Frequency Scaling.

Suspend to RAM/Disk

For suspend-to-ram, follow the instructions in the Suspend to RAM page.