Acer Aspire 8920G
- 1 Introduction
- 2 Hardware
- 3 System Files and Command Outputs
- 4 Troubleshooting
- 5 Tips & Tricks
This is my 1st ever wiki and I hope that by writing this it can benefit another user out there to setup archlinux on their laptop like me. I should also like to explain that I am a novice in the World of Linux and so I shall try and pass on as much knowledge as I possibly can. These are the settings that apply to my machine and my network setup so you must remember that what works for me will not necessarily work ok for you. This machine is running 2.6.31-ARCH and all the hardware is ok other than having to load the wireless driver iwl4965 and nvidia everything else just worked from the core install.
Template:Hardware Template:Hardware Template:Hardware Template:Hardware Template:Hardware Template:Hardware Template:Hardware Template:Hardware Template:Hardware Template:Hardware Template:Hardware Template:Hardware
System Files and Command Outputs
This contains the commands to connect to my Buffalo NAS drive, which I have added incase it helps someone else with one. I connect to the drive which is on a static IP address and has no security set for the shares, so in your case connecting up to your own network shares would of course differ from mine. Template:File
I needed to change this as my network is setup to use static IP addresses and this points to my router to resolve dns. Template:File
This contains the settings I used that apply to my machine and my network, so your rc.conf will be different to mine. Template:File
These are some of the things I needed to download and the configuration files that needed modifying in order to configure the machine to behave as a laptop should... be wireless and consume less power! I assume by this point that you have already got to the stage of a working desktop and just need to dot the i's and cross the t's to polish things off.
Wireless needs the module "iwlwifi-4965-ucode" installing, and if you use wireless security WPA2 etc then you would also be better to load "wicd" to configure and connect to your wireless.
First you need to install "iwlwifi-4965-ucode" Template:Command
Then you need to edit /etc/rc.conf to load the module at startup. Template:Command
Stage two involves getting connected to our wireless network via wicd, so let's install that now. Template:Command
Then you need to edit /etc/rc.conf to load the wicd daemon at startup. If you put a bang(!) in front of a network interface then you are allowing wicd to control the interface. The Interfaces and Routes are optional but you will need to load the Daemon. Then after a reboot in the system notification area you should now be able to use the wicd client to hook up to your Template:Command
I assume by now that you have a working desktop and just need to "tweak" the system for 3-D apps and power management so this is what I changed in my system.
In the /etc/X11/xorg.conf file I made the following changes to allow compiz eye candy and power management. The PowerMizer options are set to lowest performance on battery, with the option of increasing speed if needed and the system will run at full speed when the mains are plugged in. Template:Command
Tips & Tricks
Here are some of the hacks that I have made to my system in addition to the above.
fstab mounting and offline drives
I found that despite mounting my network drives is fstab and having the wicd daemon loading that the network shares would not connect at startup. I think that fstab mounts drives at an early stage and the wicd daemon has not even loaded yet so they fail and the boot process carries on. So I found a solution where I run a script just after I logon to check to see if the drive is online and to connect if it is. I found that if I tried to mount -a and the NAS box was offline that the mount command would retry to connect a few times and this would cause the system to hang until it is finished. So as you will see from the script it first "pings" the NAS box to see if it is online and only then does it issue the mount -a command, if it is offline then it just exits.
Since I use gdm to logon to Gnome I discovered that it could run scripts at certain defined events via PostLogin, PreSession & PostSession. So I added this script that I found on the internet whilst googling and changed it a little to suit my needs. Template:Command
in nano add these lines to the bottom of the script... Template:Command
Now exit nano by using "ctrl-x" and press "y" to save your changes. Then logout of the terminal as you are still running as root! When you next login to Gnome it will run the script and mount the drives if the NAS box is online. Template:Command
...or if running Gnome like me then use gedit as it is much easier on the eye. Template:Command
in gedit add these lines to the bottom of the script... Template:Command
Now exit gedit and save your changes. Then logout of the terminal as you are still running as root! When you next login to Gnome it will run the script and mount the drives if the NAS box is online. Template:Command
Sadly there is a bit of a bug with Linux which stretches back to it's unix roots: The concept of connecting to network drives was not around it seems and when the shutdown scripts execute it does things in reverse... so basically one of the consequences is that networking goes down before the drives have been un-mounted. This causes the system to hang as it would like to shutdown the shares properly to check to see if files are open etc but it cannot connect.
So to fix this we need to un-mount the drives at some stage before the shutdown script gets rolling. I could have added a script to /etc/gdm/PostSession/Default like above, but it seems silly to un-mount the drives if I just logged out of Gnome and let someone else login to use my laptop. So I found a suitable location that works well is /etc/rc.local.shutdown and added these commands... Template:Command in nano add these lines to the bottom of the script... Template:Command Exit out of nano saving changes and voila! The system now shutdown clean and fast.
This is an ongoing concern for me... I am working on trying to have the display dimmer when on battery and full brightness when on mains adapter. If I get this fixed then it shall appear here. Meanwhile I have so far been able to save some power with the PowerMizer settings for nvidia in xorg.conf file above, but is there more? Well yes!
Cpufreq is our first port of call
We need to install acpi and cpufreq, then configure the system for AC and battery.
Install the components
First you need to install "acpid" Template:Command
Then you need to install "cpufrequtils" Template:Command