aliencam’s Customized Ubuntu Setup part V: Getting the Tablet to work in Ubuntu Hardy

Posted in Life in General by aliencam | No Comments »

Setting up the Tablet
Thinkpad x61 or x60 tablet only (I think. But it might work for other wacom tablet computers as well.)

This again requires editing the xorg.conf file, so make sure you have at least one backed up copy of it already. If not, see the Middle Mouse Scroll section. Backing up xorg.conf before making edits is VERY IMPORTANT.
in a terminal:
sudo gedit /etc/X11/xorg.conf
then scroll down the the very bottom. Here you will find a section that looks like this:

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Synaptics Touchpad"
EndSection

(of course, the correct line spacing will actually work… unlike wordpress’s)
change that so that it looks like this:

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Synaptics Touchpad"

#added to get tablet working
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "touch" "SendCoreEvents"
EndSection

Then, above that, make a few more lines, and then add in this:

#BEGIN TABLET SECTION
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "stylus"
Option "USB" "on" # USB ONLY
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "Button2" "3" # Added for stylus click
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "eraser"
Option "USB" "on" # USB ONLY
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "Button3" "2" # Added for eraser working
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "cursor"
Option "USB" "on" # USB ONLY
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

# This section is for the TabletPC that supports touch
Section "InputDevice"
Driver "wacom"
Identifier "touch"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "touch"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
Option "USB" "on" # USB ONLY
EndSection
#END TABLET SECTION

Now I would like to note that “touch” does not work yet with this tablet driver. However, It was in the manual, which means that it eventually could work, which would be amazing. It does not cause me any errors to have it in there though, so I figure it won’t hurt. If you wish, remove the section “for the TabletPC that supports touch” and the “touch” line in the server layout section at the bottom.

With this setting, the tip of the pen will act as a regular “left-click”, the button on the pen will act as a “right-click” and the eraser will act as a regular left-click except in applications that support the eraser.

My favorite of such eraser-supporting applications is called xournal. This is a note-taking program that allows a combination of tablet and typing, and lets you annotate PDF files. Very handy for taking notes in my engineering classes. However the eraser does not work correctly by default in this program. In order to get it to work go to Options, and check Use XInput, Discard Core Events, and Eraser Tip. Then, Options > Button 3 Mapping > Highlighter, and back to Options to select Auto-Save Preferences and Save Preferences. Then your pen will work nicely in Xournal from now on.

image of xorg.conf next to tablet writings in xournal

References: The Linux Wacom Project (man wacdump)

aliencam’s Customized Ubuntu Setup. Part I

Posted in Linux, Lists, Ubuntu by aliencam | No Comments »

So, now that you’ve finally gotten Ubuntu 8.04 Hardy Heron installed, all the guides stop here. Well, now what? Most people won’t be happy forever with the default desktop settings, so here is my guide to customizing and setting up Ubuntu 8.04 the way I like it. Each of these tips can be done independently, or pick and choose the ones you like. I’ll be using a fresh installation of Ubuntu 8.04 x86_64, but everything should be the same for both the 32-bit and 64-bit versions. I’ll also be using a Lenovo x61 Tablet laptop, and a few of these customizations will be hardware specific, so don’t do them if you have different hardware from me, but they should work on the majority of Thinkpad laptops. (I will note where things should and shouldn’t work, and for whom)

I will start this off with a screenshot of the default desktop. Up at the top is the Applicatoins, Places, and the System menu, along with a few program shortcuts, the clock, power button, and the notification area. At the bottom is the “show desktop” button, the window list, virtual desktops list, and the trash. (yes, I still call it trash and not recycle bin. Nothing I put in there ever gets re-used. Ubuntu calls it trash too.)
Hardy Heron Default Desktop

Enabling Repositories and Installing Basic Codecs
The first thing I always do when I have a new installation of Ubuntu is to enable more repositories. Essentially, the repositories are servers where many Ubuntu software packages are held. However, when you have a fresh install, only a few of these are enabled, meaning that you can’t see all of the programs or software packages available to you. Change these settings by going to the System menu on the top, then Administration, then Software Sources. You will have to enter your account password here. (see note on “Sudo and the Administrator Password”) I go through all the tabs, and I check nearly every option. Check both under “Third Party Software”, under “Updates” it is your choice to check “Pre-released updates” and “Unsupported Updates” those are both repositories that will send programs that may have updated in the repositories since the distribution became available, but are not nearly beta updates, as they are generally just stable updates that have not yet been completely accepted by the Ubuntu community. And on the “Statistics” tab, it is nice to check the “submit statistical information” box just to help out find which programs are most popular. When you are through, select “Close” and an alert will pop up telling you that your information is out of date. Click reload, and then it should close. (if not, just click cancel the second time)

Now, to install the “Ubuntu Restricted Extras” package, go to Applications, then Add/Remove. At the top, under “Show:” change the option to “All Available Applications” then search for “Ubuntu Restricted Extras”. Check the box next to it, and click apply. This allows you to play MP3s, watch DVDs, view Microsoft Core Fonts, and a few other things. I would also suggest using the media player “VLC” instead of the default totem movie player, as VLC can handle many more formats than the other video players, and I believe it fetches codecies as you need them. More media compatibility is available by following this guide: https://help.ubuntu.com/community/Medibuntu

Note: This is only the first part of the guide, I decided to split it into smaller posts. I will be making a page with the consolidated guide though.

Creative Commons License