Linux on an Asus A6Q00V laptop

This is about my experiences with installing Debian/GNU Linux on my girlfriend`s (really! I know, this is one of the most written sentences...) laptop. The more specific model number is printed on the sticker where the serial number is listed: A6V-Q014H.

TOC

Hardware configuration

Some features:


Output of 'lspci':

If you prefer the verbose output ('lspci -v') look here.

Distribution and X

The first difficulty was choosing the right distribution. No question, it had to be a Debian-based one. But unfortunately Debian stable, sarge, is too old to support the ATI X700 out of the box. Installing the proprietary ATI fglrx driver was no Problem with the packages of ???, but I didn't like the idea of building a new driver, everytime I build a new kernel.
So i tried Ubuntu 5.10 Breezy Badger, but as a debian-addict I felt strange with the Ubuntu-specific modifications. Additionally X also didn't work, although the X700 chip is said to be supportet by the included xorg driver (see 'man radeon').
Okay, so Debian testing, etch, must be the right thing for us. But now there was the same problem with X under Ubuntu: x-server starts without any errors but the LCD stays black. Noticing that it was dark-black brought the solution: The X700 switches to the wrong output when xorg starts.
Again 'man radeon' helps: adding the following line to xorg.conf tells the chip which outputs to use:

Option		"MonitorLayout" "LVDS, NONE"
 
Here you can download the complete xorg.conf.
Im quite sure theat the above solution also would have worked with Ubuntu. And for all of you who want to have an actual and complete distribution I recommend using Ubuntu because Debian testing lacks at the time of writing this some important KDE packages, e.g. k3b, digikam or amarok.

Kernel

Not much to say; I recommend using at least 2.6.15 for best compatibility. Feel free to use my kernel configuration and the output of 'lsmod'.

Sound

Sound works with with module snd_hda_intel. But to get the headphone-jack working you have to hand over a module parameter for example using 'modconf'. I use two parameters:

model=z71v position_fix=1
the second fixes noise problems -- use it if you experience an improvement. Instead of using 'modconf' you can edit/create /etc/modprobe.d/snd-hda-intel to look like mine:
options snd-hda-intel model=z71v position_fix=1
Now the headphone-jack works, but yet the volume controller of KDE's 'kmix' controls the volume of the headphone-jack and not the PCM volume. To change this, just right-click on kmix's icon in the tray and choose 'PCM' as the default channel.
For 'xine' or 'mplayer' to work correctly with DVD's it may be necessary to activate the down-mixing to stereo-sound. I haven't tried 5.1-output yet because of lacking the hardware.

ACPI and buttons

Most ACPI functions work fine when the kernel module 'asus_acpi' is loaded. LCD-on/off and -brightness (Fn+F7/F5/F6) work out of the box and with KDE a status bar for the brightness level pops up. The other buttons -- all except the WLAN-switch (Fn+F2) -- create ACPI-events which you can read with 'cat /proc/acpi/events', or if the acpi-daemon is running, with 'tail -f /var/log/acpid'.
Now we have to make the ACPI-events trigger an action: install acpid. Inspired by Ubuntu's solution, I think translating ACPI-events to keyboard-events is by far the nicest way for all actions which don't have to run with root privileges. Additionally, if keyboard-events are created, the user can decide what action has to be performed.
But how will we achieve this? Ubuntu-users are on the sunny side now, because Ubuntu already features the nice program 'acpi_fakekey'. We're using Debian and like Ubuntu benefits from the Debian, we try ro benefit from Ubuntu:
Go to packages.ubuntu.com and download the binary package called 'acpi-support' (the experienced user may also build it from the source package). Extract the .deb file, don't install it because you get unmet dependencies when not using Ubuntu. You only need two files:

The first file will be used for detecting the active X-console and the active X-user. The second one is the really interesting one: it just generates the keyboard event you define. Try it out: 'acpi_fakekey 36' schould generate a newline on your terminal since 36 usually is mapped to the X-event 'Return'. We also will use the ACPI scripts you can find in the same .deb file. But we won't need all of them and most of the ones we need have to be edited to meet our requirements. If you don+t feel like editing about 14 files just download my /etc/acpi directory and copy it there. To make everything work, make sure that you have the appropriate XkbModel in your xorg.conf: Or tell KDE in the control-center to use this model. After restarting X and the ACPI daemon, you can test if your efforts were successful: open 'xev', place the mouse cursor in the popped-up window and press for instance the Webbrowser-hotkey. Then xev should tell you in its terminal-output that it received the event 'XF86WWW'. If your buttons work, you can assign functions with your preferred window manager by setting up the keyboard-shortcuts.

You want to know how this solution works? Read ahead.
The following table lists the mapping I configured:

The brightness-keys as well as the LCD on/off switch are not listed because they work out of the box.
The 'XF86Go' event is triggered by pressing the hotkey with the little running man on the upper right. I use this event to launch a terminal. The power- and sleep button don't need to create X-events because it's more useful to trigger the appropriate actions with root privileges and not by creating an X-event. The touchpad-switch-script is insprired by the Ubuntu solution, too, but I added the functionality, that the email-LED at the front of the notebook ist shining when the touchpad is switched off.
The LED's for WLAN and email are switchable by echoing '1' or '0' to /proc/acpi/asus/wled respectively /proc/acpi/asus/mled.

WLAN

The Intel Pro/Wireless 2200 WLAN card (802.11b/g) works nice with the new drivers included in kernel 2.6.15. Also WPA (WPA-PSK, TKIP) works nice (using 'wpa_supplicant') for example in combination with Fritz! Box Phon-WLAN 7050. If you're not successful, you might want to see my /etc/wpa_supplicant.conf, /etc/default/wpasupplicant, /etc/network/interfaces and the output of 'lsmod'.
'kwifimanager' works great even switches the WLAN-LED on the front.
If you think I should spend some more time on explaining this topic, contact me.

Suspend

To be added soon...

Feedback

If you have better solutions, suggestions, questions or just want to give me some feedback, just write me an Email:

webmaster |a| l e u f k e . i n f o
(To avoid spam, this email address is embedded in a picture - please enter it manually into your email program.)

Useful contributions will be printed here with your name mentioned ;-)

Linux On Laptops TuxMobil - Linux on Laptops, Notebooks, PDAs and Mobile Phones


O.K. the hard work is done...
Maybe you need some holidays? Check out our vacation homes at the Baltic Sea and in the Black Forrest: http://leufke.eu

You want to see, who's responsible for the content of this site and/or want to contact the webmaster? Look at the imprint.