Arch Linux on the HP dm1z (Installation / Things to remember)
Before reading everything else, I just would like you to note that this isn’t the only way of doing things. This is just how I like to do them, and the options described aren’t the only ones available either. This was meant to be done as quickly as possible.
EDIT (Aug 6, 2011): Added cpufrequtils stuff. Confirmed working.
EDIT(Aug 9, 2011): The drivers are now part of the new linux kernel(3.x)!!!!!1one. You may still have the old install image, so after installation, update ASAP (though this may have been obvious).
Go install Arch. Install it as usual and update it. Install then the following packages:
gcc kernel26-headers wicd
Download this package from the AUR. Build it and install it. After doing
modprobe rt5390sta and/or rebooting, the wireless card should be able to see networks and connect to them.
Note: I prefer wicd because it is very easy to configure compared to NetworkManager and just connecting with wpa_supplicant. Do not forget to remove the ‘network’ daemon and add ‘dbus’ and ‘wicd’ in rc.conf.
Another note: I did it in this order: Install Arch including gcc and kernel26-headers so I could compile the AUR package ASAP and get the wifi working. I wanted to do this because I don’t like being connected via ethernet. Only then did I update the system. Your call.
Another note again: You have to uninstall the package (rt5390 via pacman) and rebuild the AUR package every kernel upgrade. There must be a better way that I don’t know yet.
You can now proceed with the installation and move around without being limited by the length of the ethernet cable 😛
GETTING AUDIO AND VIDEO
The video part is easy. I don’t need Catalyst, so I chose to use the open source drivers instead. Besides, I have my Windows install for 3d-heavy apps.
For getting X11 to work, install
xf86-video-ati xorg-server xorg-xinit, and do
X -configure. That should give you an awesome config to start with. Copy it to
10-monitor.conf. You should now be able to do
startx. The choice of desktop environment is up to you.
The audio is quite annoying. It took me a lot of research to get it to work. I thank it all to the Gentoo user dudes here: http://forums.gentoo.org/viewtopic-t-884144-start-0.html
alsa-plugins. More info here. Unmute the channels with
There will still be no sound though. That’s because the default card the system uses to play sound isn’t exactly what it’s supposed to be using. To fix that, create an
.asoundrc file in your home directory, and paste the code from here(I can’t link to the single post from the Gentoo forum, so I copied it to Pastebin):
The good news is that everything works as expected, and that it automatically mutes the system speaker when a headset is plugged in. The bad news is that I could have done this in kernel space but I had trouble finding the appropriate modules for the cards. I wanted to do this at boot.
After some time on trying to master multi-touch on Linux, I still kind of wanted to be able to click with….you know…the buttons underneath the touchpad. The system is perfectly usable without the system recognizing the buttons properly, but some people would like to have it “the way it has always been (or what it’s supposed to be)”.
Anyway, here: Package for clickpad.
HIBERNATE AND SUSPEND
Simply follow the wiki instructions here: https://wiki.archlinux.org/index.php/Pm-utils .
I ignored every other key except the volume keys. That includes the projector key thingy (the one in F4), the browser thingy, and the media play/pause, forward, and rewind buttons. The brightness keys work flawlessly, even outside of X. The volume keys were the ones that I really wanted to work though, so here’s how I did it:
esekeyd. Then do
learnkeys esekeydrc.conf. Press the volume down button and then the volume up button. Now open esekeydrc.conf with your favorite text editor and uncomment the ones you would like to use. I prefer presses than releases, so I removed the other ones. On the right hand side, add for volume up
amixer -c 1 set Master 3%+ and amixer -c 1 set Master 3%- for volume down. After starting
esekeyd esekeydrc.conf, the volume keys should work. I suggest having this autostarted.
CPUFREQUTILS (CPU FREQUENCY SCALING)
EDIT: Found a “better” way to set this up. Check here.
This took some time since I didn’t want to post stuff here that I can’t confirm whether it works or not. Anyway, go install
powernow-k8 (the driver that works AFAIK) and
cpufreq_ondemand to the modules array in your
rc.conf file. Also,
cpufreq_performance is the default. After this, you can either reboot, or modprobe the two modules I’ve mentioned a few seconds back. If you want to check the current frequency, do cpufreq-info. Try to do that while there’s a CPU-intensive process going on on the system. The ondemand governor should raise the CPU speed depending on the load.
I didn’t really put so much effort here. Just enough that it should work.
More info here. I recommend you check this out since I may be wrong here. And there’s a daemon. I missed that, but since this already works for me, I’ll have a look at it next time.
- an elegant way of properly managing power.