HP EliteBook 2530p

This blog post is about setting up a HP EliteBook 2530p for use with Ubuntu GNU/Linux 12.04 'precise'.

Hardware Information

Here are some details on the hardware of the 2530p:

Check Ubuntu Friendly for a report.


The SIM slot is located behind the battery. When the notebook is laying on the table turned up side down, you need to insert the SIM with the contacts facing upwards (you can push it in until it is about 0.7 mm away from the case). Then reinsert the battery

The 3G chip is a HP un2400 based on a Gobi1000 as lsusb reveals:

Bus 001 Device 003: ID 03f0:201d Hewlett-Packard un2400 Gobi Wireless Modem (QDL mode)

Good instruction to set it up can be found on http://sanitarium.se/wiki/HP_un2400_3G_modem_in_Linux and on https://nowhere.dk/articles/ubuntu-natty-making-a-gobi-2000-wireless-modem-work

mkdir -p ~/Downloads/un2400
cd ~/Downloads/un2400

# OPTION 1 - Get the firmware from the wiki sanitarium.se:
wget http://sanitarium.se/files/un2400-linux.tbz2
tar -xf un2400-linux.tbz2
rm un2400-linux.tbz2
  # move the firmware files to /lib/firmware/gobi
sudo mkdir -p /lib/firmware/gobi
sudo install amss.mbn /lib/firmware/gobi
sudo install apps.mbn /lib/firmware/gobi

# OPTION 2 - Get the firmware from HP
  # Download the .exe installer from http://goo.gl/Z4ysq to ~/Downloads/un2400
sudo aptitude install cabextract
cabextract <file (in my case: sp48568.exe)>
WHICH=0 # <- adjust to your region/network operator, see http://goo.gl/q05RU
sudo install Qualcomm/QCImages/Source/Packages/$WHICH/amss.mbn  /lib/firmware/gobi
sudo install Qualcomm/QCImages/Source/Packages/$WHICH/apps.mbn /lib/firmware/gobi

sudo apt-get install gobi-loader
# make sure the require kernel modules are loaded
sudo modprobe qcserial
sudo modprobe hp-wmi
# verify that we have a virtual serial terminal now:
ls /dev/ttyUSB*
# load modules on startup:
sudo -s
echo qcserial >> /etc/modules
echo hp-wmi >> /etc/modules

Reboot and you should be able to connect to your 3G network using the Network Manager applet.

You can also use cutecom to communicate with the modem directly (9600 baud, CR line ending, Software handshake, /dev/ttyUSB0 - you may need to change the permissions first). Sending AT+CLAC shows many supported AT commands: full list on pastebin. More useful AT commands may be found on my other blog post Huawei E352s-5 ....

Sometimes the modem doesn't work anymore when you loose connection to the network, which can happen in trains for example. In this case running this script to virtually unplug and plug back in the modem might help.


The WLAN network adapter is an Intel 5100

The drive used to be iwlagn it's now called (or merged into) iwlwifi. I tried setting up an AP with the card but failed; it may not be possible. I followed these German tutorials: 1 and 2. You can use iw phy phy0 info to check the available interface modes (no master mode available).

OK so you can't create an AP and thus cannot share a 3G connection over WiFi directly. But you can still set up your machine as a NAT router and thus allow others (on the wired network) to access the internet via 3G. (See this.)

While network manager is handling the modem, you cannot access the virtual serial port /dev/ttyUSB0 anymore:

philipp@HP-EliteBook-2530p:~$ sudo lsof | grep ttyUSB
modem-man   834       root   25u      CHR              188,0      0t0     279883 /dev/ttyUSB0
philipp@HP-EliteBook-2530p:~$ ps ax | grep modem
  834 ?        Ss     0:17 /usr/sbin/modem-manager
philipp@HP-EliteBook-2530p:~$ modem-manager --help
  modem-manager [OPTION...]

DBus system service to communicate with modems.

You can get a Python file that uses modem-manager to query a couple of parameters from the modem (when it's not connected:

wget http://cgit.freedesktop.org/ModemManager/ModemManager/plain/test/mm-test.py
chmod +x mm-test.py
./mm-test.py --no-scan --private


Well hibernation has been around for a long time and now Cannonical made the stupid decision to disable hibernation by default on Ubuntu 12.04. So here is how you can re-enable hibernation:

First, test if hibernation works using sudo pm-hibernate . Second, enable hibernation using

sudo tee /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla << EOF
[Re-enable hibernate by default]

Replacing the DVD drive with a HDD