Acer 3400LMI User Manual

Size:
756.04 Kb
Download

F8­x86_64 on the Acer Ferrari 3400LMi

F8-x86_64on the Acer Ferrari 3400LMi

 

by

 

 

Sven­Göran Bergh

 

 

Table of Contents

 

1 Introduction....................................................................................................

3

1.1

Version.....................................................................................................

3

1.2

Quick reference guide..............................................................................

3

2 Installation......................................................................................................

5

2.1

Potential pitfalls.......................................................................................

5

2.1.1 Graphical installer.............................................................................

5

2.1.2 Disk size.............................................................................................

5

3 Hard drive.......................................................................................................

6

3.1

Upgrading the drive.................................................................................

6

4 IEEE 1394 Firewire........................................................................................

6

4.1

Potential problems...................................................................................

7

4.2

Configuring Firewire................................................................................

8

4.3

Comments................................................................................................

8

5 USB.................................................................................................................

9

6 5-in-1Card reader...........................................................................................

9

7 PC-card...........................................................................................................

9

8 Special keys & buttons...................................................................................

9

8.1

Configuration procedure........................................................................

10

8.1.1 X key-codes......................................................................................

10

8.1.2 Scan-codes.......................................................................................

11

8.1.3 Linux key-codes...............................................................................

12

8.1.4 X key-codesrevisited.......................................................................

13

8.1.5 Configure actions............................................................................

14

9 CPU & ACPI support.....................................................................................

14

9.1

Suspend..................................................................................................

15

9.2

CPU frequency scaling...........................................................................

15

10 Graphics......................................................................................................

15

10.1 Basics...................................................................................................

15

10.1.1 The radeon driver..........................................................................

16

10.1.2 Simple X configuration..................................................................

16

10.2 Dual-Head............................................................................................

16

10.2.1 Virtual screen size.........................................................................

17

10.2.2 The xrandr tool..............................................................................

18

10.2.3 Fn-F5button..................................................................................

18

10.3 3D acceleration....................................................................................

19

10.3.1 Simple benchmark.........................................................................

20

10.3.2 Optimization..................................................................................

20

1

F8­x86_64 on the Acer Ferrari 3400LMi

 

10.3.3 Other observations........................................................................

20

10.4

TV-out...................................................................................................

21

10.4.1 Load detection...............................................................................

21

10.4.2 NTSC or PAL.................................................................................

21

10.4.3 Initialization...................................................................................

21

11 Touch-pad...................................................................................................

22

12 Wireless NIC...............................................................................................

22

12.1

Installing WLAN...................................................................................

23

12.1.1 WLAN tools....................................................................................

23

12.1.2 WLAN firmware.............................................................................

23

12.2

Get started with WLAN........................................................................

24

12.2.1 The manual way.............................................................................

24

12.2.2 The GUI way..................................................................................

26

13 Bluetooth.....................................................................................................

26

13.1

Verify installation.................................................................................

26

13.2

Using a phone modem..........................................................................

27

13.2.1 Prepare the phone.........................................................................

28

13.2.2 Prepare the laptop.........................................................................

28

13.2.3 Static configuration.......................................................................

30

13.2.4 Dynamic routine............................................................................

31

13.2.5 GPRS..............................................................................................

32

13.3

Sending files.........................................................................................

33

13.4

Mouse & keyboard...............................................................................

33

13.5

KBluetooth............................................................................................

33

13.5.1 Installation.....................................................................................

33

13.5.2 Mouse & keyboard........................................................................

34

13.5.3 Scan for devices............................................................................

34

13.5.4 Lock screen...................................................................................

35

13.5.5 Transfer files.................................................................................

36

14 Infrared.......................................................................................................

36

14.1

Configuring IrDA..................................................................................

36

14.2

Testing IrDA.........................................................................................

38

15 Modem........................................................................................................

38

15.1

Installing daemon.................................................................................

39

15.2

Potential issue......................................................................................

41

15.2.1 Connecting....................................................................................

41

15.2.2 Disconnecting................................................................................

41

15.2.3 System hang..................................................................................

42

16 References..................................................................................................

42

Appendix A – /etc/X11/xorg.conf.......................................................................

44

Appendix B – dual-head.sh................................................................................

46

Appendix C – dun-bind.sh.................................................................................

52

Appendix D – /etc/init.d/slmodemd...................................................................

54

2

F8­x86_64 on the Acer Ferrari 3400LMi

1 Introduction

This document is primarily designed for my own records for future use. However, it is always nice if it may help others to get started with Linux on their laptops. The steps to get things to play on the Acer Ferrari 3400 Lmi are described here. Most procedures are general and may be useful for other hardware as well.

! ! ! WARNING ! ! !

However, I must warn those of you that still enjoy the luxury of an independent mind and free will. Stay away! Do not ever lay your hands on the Ferrari.

The same warning applies to the GNU/Linux software platform in general. It was several years ago my self defense was totally broken.

The combination is truly devastating! I have noticed strange things happening to me since I got My Precious...

Please feel free to comment on any topic or possible improvements in this document.

1.1 Version

This is an updated version of this document. This time I have chosen to install Fedora 8 x86_64, and many things has really changed to the better. The first version dealt with FC4­x86_64, and there are no major changes for FC5­x86_64. Consequently, if you are heading for FC4 or FC5 you probably want to have a look at the previous version of this document. While some details may be specific for Fedora, most stuff should translate to other distributions as well.

1.2 Quick reference guide

I've got all of the hardware working. Although, somethings need some extra tweaks. A summary may be found in the table below

3

F8­x86_64 on the Acer Ferrari 3400LMi

Hardware

Status

Details

CPU

OK

Mobile AMD Athlon 64

 

 

3000+

PCI Bridge

OK

VIA VT8237

 

 

[K8T800/K8T890 South]

Display

OK

15” SXGA TFT

 

 

(1400x1050)

Graphics

OK

ATI Mobility Radeon 9700

card

 

128 MB, 8x AGP

RAM

OK

512 MB DRAM (extended

 

 

to 2GB)

Hard drive

OK

Original: Hitachi

 

 

Travelstar 80 GB Ultra

 

 

ATA 100,

 

 

IC25N080ATMR04-0,4200

 

 

rpm

 

 

Upgrade: Seagate

 

 

Momentus, 160 GB,

 

 

ATA/ATAPI-6,5400rpm,

 

 

ST9160821A

NIC (wired)

OK

Broadcom NetXtreme

 

 

BCM5788 Gigabit Ethernet

NIC

OK

Broadcom BCM4306

(wireless)

 

802.11b/g W-LAN

Modem

OK

VIA AC'97 56k Modem.

DVD drive

OK

Matshita DVD-RAM

 

 

UJ-825S(DVD/CD +/- R/W,

 

 

DVD-RAM)

Sound

OK

VIA VT8233/A/8235/8237

 

 

AC97 Audio

Touchpad

OK

Synaptics SynPS/2 with 4

 

 

multi-buttons

ACPI

OK

Suspend to RAM,

 

 

Suspend to disk, etc.

Special

OK

Mail, web, P1, P2, volume,

keys &

 

mute, Fn-*,etc.

buttons

 

 

Notes

No configuration needed. Frequency scaling works out of the box.

No configuration needed.

No configuration needed.

Full functionality with the radeon driver, see below.

No configuration needed.

No configuration needed.

No configuration needed.

Use kernel module b43, see comments below.

Unstable. See below for configuration.

No configuration needed.

No configuration needed.

No configuration needed. Multi-buttonsworks as well.

No configuration needed. Works out of the box.

See below for configuration.

4

F8­x86_64 on the Acer Ferrari 3400LMi

 

Hardware

Status

Details

Notes

PC-card

OK

Texas Instruments

No configuration needed.

 

 

PCI4510 PC card/Cardbus

 

Bluetooth

OK

Cambridge Silicon Radio

No configuration needed,

 

 

 

see comments below.

IEEE 1394

OK

Texas Instruments

No configuration needed,

Firewire

 

PCI4510 IEEE-1394

see comments below.

USB

OK

VIA, 4xUSB 2.0

No configuration needed.

Infrared

OK

 

See below for

 

 

 

configuration.

Card reader OK

5-in-1(MMC, SM, SD, MS

No configuration needed.

 

 

[Pro])

 

2 Installation

No special procedure is needed during the core installation of F8 x86_64. Partition the hard drive as desired and install the components that you like. However, some packages will make life easier when configuring your new laptop. These are mentioned in the corresponding sections below and may be installed afterwards.

2.1 Potential pitfalls

Depending on your setup there are some pitfalls you should know about.

2.1.1 Graphical installer

Fedora Core 5 installation and later runs without any problems, while Fedora Core 4 should be started with:

# linux nofb

This tells the installation to disable the frame buffer so you may use the graphical mode of the installer. Otherwise you will loose the display shortly after the installation enters graphical mode. This only applies to FC4 and earlier.

2.1.2 Disk size

However, depending on your hardware you might notice a strange disk size during the installation of F8. If you see a disk size less than expected you should pass the kernel option libata.ignore_hpa=1 to the installation.

1.When you see the graphical boot screen, press tab.

2.Edit the boot command to look like:

5

F8­x86_64 on the Acer Ferrari 3400LMi

vmlinuz initrd=initrd.img libata.ignore_hpa=1

3 Hard drive

No hassle what so ever, but my own reflection is that the standard hard drive does not match the “high end gear” profile of this laptop. When the laptop was released 120 MB drives was the latest of the greatest and 100MB drives were off the shelf goods in most stores. However, a smaller drive would have been ok at a higher speed, at least 5400rpm.

3.1 Upgrading the drive

I am addicted to VMware and want extra of everything, size, speed, RAM, etc. Thus, I have replaced the original Hitachi Travelstar 80 GB (4200rpm) drive with a Seagate Momentus 160 GB (5400rpm, ATA/ATAPI­6, ST9160821A). What a difference! The higher speed, as well as the higher storage density, pays off in far better performance. Operating temperature is the same as for the original drive. According to the smartmontools it runs at 40­48 °C during normal load with peaks above 50 °C during heavy load. A highly recommended upgrade!

Depending on the hardware you might notice a strange disk size of your new drive. If you just plan to copy your existing installation to the new drive you need the following two lines in your /etc/modprobe.conf file:

alias scsi_hostadapter libata options libata ignore_hpa=1

If you plan on installing a fresh system on the new drive take a look in the

2 Installation section above. During the installation the proper entries are written to/etc/modprobe.conf.

4 IEEE 1394 Firewire

With FC5 and later there should not be any problems with the IEEE 1394 Firewire support. For me it works just as smooth as the USB support. If you are running kernel version 2.6.14 or later you may skip this section, unless you have specific interest in tweaking you Firewire settings.

A new alternative driver stack for Firewire support (a.k.a Juju) was introduced as experimental in kernel version 2.6.22. In Fedoras kernel configuration 2.6.23.9­85.fc8 the new IEEE1394 driver stack replaces the old drivers. The rest of this section deals with the old driver stack, i.e before Fedora kernel 2.6.23.9­85.fc8. For the most recent information please refer to http://www.linux1394.org.

However, on systems with kernel version 2.6.13 or earlier some might experience problems with the Firewire support due to different default values used in the kernel module. First a short description of the potential problems.

6

F8­x86_64 on the Acer Ferrari 3400LMi

4.1 Potential problems

There are no problems regarding loading modules or mounting an external IEEE 1394 drive, and if you are patient you managed to browse the content as well. The problems starts when you try to transfer larger amounts of data. The process stalls and chokes up the system log with messages like:

kernel: ieee1394: sbp2: aborting sbp2

command

 

 

kernel: scsi1 : destination target

0,

lun

0

 

 

kernel:

command: Write (10): 2a 00 02

e1

bc 58 00 00 10 00

kernel: ieee1394: sbp2: aborting sbp2

command

 

 

kernel: scsi1 : destination target

0,

lun

0

 

 

kernel:

command: Write (10): 2a 00 02

e1

bc 58 00 00 10 00

kernel: ieee1394: sbp2: aborting sbp2

command

 

 

kernel: scsi1 : destination target

0,

lun

0

 

 

kernel:

command: Test Unit

Ready:

00 00 00 00 00 00

kernel: ieee1394: sbp2: reset requested

 

 

 

kernel: ieee1394: sbp2: Generating

sbp2 fetch

agent reset

redneck kernel: ieee1394: sbp2: aborting sbp2

command

kernel: scsi1 : destination target

0,

lun

0

 

 

kernel:

command: Write (10): 2a 00 01

06

d0 df 00 00 03 00

kernel: ieee1394: sbp2: aborting sbp2

command

 

 

kernel: scsi1 : destination target

0,

lun

0

 

 

kernel:

command: Write (10): 2a 00 01

06

d0 df 00 00 03 00

kernel: ieee1394: sbp2: aborting sbp2

command

 

 

kernel: scsi1 : destination target

0,

lun

0

 

 

kernel:

command: Write (10): 2a 00 02

e1

bd b0 00 00 20 00

Seems to me like a hole bunch of timeouts with corresponding bus resets. These suspicions got even stronger after timing a read data transfer:

# time cp ­rp /media/ieee1394disk/430MB_folder ~

real

20m29.516s

user

0m0.052s

sys

0m6.476s

Copying 430 MB takes 20 minutes 29 seconds (comparable to USB 1.0 performance). However, the “actual” time is less than 7 seconds. 20 minutes and 22 seconds are spent waiting. Waiting for what? I do not know, but obviously some bits and pieces fail during the transfer. Furthermore, I do not feel comfortable with the data integrity when I see these kind of results.

After some digging in the kernel documentation and a quick look in the sbp2.c source file it turned out that this problem probably is related to a “buggy IEEE 1394 chip” in the external device. The proposed solution is to load thesbp2 module with the argumentserialize_io=1. It turned out really well, so here are some tips regarding the IEEE 1394 configuration.

7

F8­x86_64 on the Acer Ferrari 3400LMi

4.2 Configuring Firewire

If you experience the problems mentioned above, and you are running kernel version 2.6.13 or earlier, put the following line in your /etc/modprobe.config:

options sbp2 serialize_io=1 max_speed=2

The serialize_io=1 option tells the scsi drivers to only send one scsi command at a time. Unfortunately, this setting has a small impact on performance, but it is the fix that makes things work.

In kernel version 2.6.14 the default value for serialize_io was changed from0 to1. Thus, if you are running kernel version 2.6.14 or later you should not need do do anything, unless you want to optimize performance (see comments below) or fiddle with the other settings.

The max_speed option might be useful in rare occasions if you want to limit the maximum transfer rate to support “even more buggy” external hardware. Valid values for themax_speed option are:

0 100 mb

1200 mb

2 400 mb (default)

3800 mb

When timing the very same read transfer as above I now get the following result:

# time cp ­rp /media/ieee1394disk/430MB_folder ~

real

0m24.871s

user

0m0.076s

sys

0m6.400s

That is what I call improvement! Going from over 20 minutes down to roughly 25 seconds.

4.3 Comments

After some further exercises with other external hard drives it turned out that the problem described in the previous section indeed seems to be related to the IEEE 1394 chip in the external drives. With some hardware it is quite possible to use the faster serialize_io=0 option. The performance benefit is in the range 20­25%, so consider your options. If you only use IEEE 1394 for your own hardware and it works well with the faster setting, go for it. Otherwise, compatibility with other hardware might be more valuable. Personally, I think it was a wise decision to change the default setting in thesbp2 module. After all those “buggy IEEE 1394 chips” seem to be quite common, and prior to start

8

F8­x86_64 on the Acer Ferrari 3400LMi

optimizing performance you just want things to work.

5 USB

USB support works as expected. I have noticed no problems what­so­ever with the USB ports. Especially with the desktop enhancements introduced with FC5 it works like a charm. Absolutely no configuration needed.

6 5-in-1Card reader

The 5­in­1 card reader utilizes the USB interface and is operational right after installation. Analogous to the USB ports there is no hassle at all.

7 PC-card

I have only used the PC­card slot for a Compact Flash memory adapter and it just works. True plug­and­play.

8 Special keys & buttons

The special keys & buttons are some what confusing. Some of the special buttons do not need any additional configuration to work. Others need a key code mapping, while some even lack a scan code. The chain of scan codes and key codes translations starts in the core Linux kernel and ends in your X configuration. Some examples of confusion:

The Mail button gets a pre­configured key code of 155 by Linux, but with X loaded the key code is236. The buttonsWWW,Fn­F4,Fn­F5,Fn­F8,Fn­up andFn­down show similar behavior.

The buttons P1,P2,Fn­F1,Fn­F2,Fn­F3 do not have pre­configured key codes, while their respective scan codes aree074,e073,e025,e026 ande027. However, in single user mode they all lack scan­codes. I do not know why.

However, do not despair. It is possible to get all of the special keys & buttons working. Here is a short summary of my current status on this issue.

9

F8­x86_64 on the Acer Ferrari 3400LMi

Button

Mail

WWW

P1

P2

Fn­F1

Fn­F2

Fn­F3

Fn­F4

Fn­F5

Fn­F6

Fn­F7

Fn­F8

Fn­Home

Fn­End

Fn­up

Fn­down

Fn­left

Fn­right

Bluetooth

WLAN

Work yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes

Config

 

setkeycodes Xmodmap KDE

Comments

xx E-mailbutton, ex: launch Thunderbird

xx WWW button, ex: launch Firefox

x x x User button, ex: launch NetBeans x x x User button, ex: launch VMware x x x User button, ex:

x x x User button, ex: x x x User button, ex:

Sleep-buttonrecognized by ACPI.

xx Toggle external display, XF86Display Dim display, no configuration needed

Toggle touch-pad,no configuration needed

xx Toggle mute

Go home (XF86Home)

Go to end (XF86End)

xx Volume raise

xx Volume lower

Brightness lighter, no configuration needed Brightness darker, no configuration needed No configuration needed

No configuration needed

8.1 Configuration procedure

It is a tedious procedure to find out the proper scan­codes, Linux key­codes and X key­codes. Yes, on top of the scan­codes there are both Linux and X key­codes to keep track of. I probably have it all confused, but here is how I did it:

8.1.1 X key-codes

1.Start by finding out what key­codes X already knows of. Here xev is a valuable friend. The buttons that had key codes configured by default for

10