Linux Mint on HP Compaq TC4400

Geek, Lighting Tech, Maker

Linux Mint on HP Compaq TC4400

I picked up a HP Compaq TC4400 from state surplus the other day and decided to try out linux mint on it.

Its a nice device with a built in tablet.

there are some functions I am in the process of getting working

such as

  • Screen Rotate
  • Scroll wheel
  • Fingerprint Reader
  • Bevel Keys

Bluetooth and wifi work out of box.

Screen Rotation

First you need to create this script

# Screen rotation script by CPYarger. Released unger GPV v.3

if [ $(xrandr --dryrun|awk '/LVDS1 connected/ {print $5}') = "normal" ]; then
xrandr -o right
xsetwacom set "$(xinput --list|grep -i stylus |cut -c -36|cut -c 11-)" Rota$
xsetwacom set "$(xinput --list|grep -i stylus |cut -c -36|cut -c 11-)" mode$
xsetwacom set "$(xinput --list|grep -i eraser |cut -c -36|cut -c 11-)" Rota$
xsetwacom set "$(xinput --list|grep -i eraser |cut -c -36|cut -c 11-)" mode$
xrandr -o normal
xsetwacom set "$(xinput --list|grep -i stylus |cut -c -36|cut -c 11-)" Rota$
xsetwacom set "$(xinput --list|grep -i stylus |cut -c -36|cut -c 11-)" mod$
xsetwacom set "$(xinput --list|grep -i eraser |cut -c -36|cut -c 11-)" Rota$
xsetwacom set "$(xinput --list|grep -i eraser |cut -c -36|cut -c 11-)" mode$


I am having some problems with the pen working properly on landscape mode but it looks like it is an error with xinput. Ahh the joys of debugging inputs…

Now map this script to the Control Alt Delete combo and remap Ctrl alt delete to Ctrl Shift Delete.

You can find the GUI Keymap by going to your mint menu and searching keyboard shortcuts.

!!WARNING!! the Ctrl alt backspace combo is active and will kill your Xsession!!!

Fingerprint Reader

The fingerprint reader is almost as easy to set up.
At the current moment it does not support the Mint Display manager MDM for authentication. But I will be looking into that in the future. This is still useful for authenticating in tablet mode for sudo use.

First you need to add the following repo and install the following packages

sudo add-apt-repository ppa:fingerprint/fingerprint-gui
sudo apt-get update
sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui

now run fingerprint-gui Register your fingerprints and test it out.

scroll button

To get the scroll button working is stupid simple. and you have 2 ways to do it

either write a script to map the keys to their proper functions or to set it up in rc.local Personally I have it set to run this script from rc.local

# Sets the keycodes for the scroll wheel

setkeycodes e006 104
setkeycodes e007 109

Bevel buttons

I have yet to figure out how to get the bevel buttons working. But I will post the info right as soon as I figure it out!!!

No Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.