Today : Tue, 23 Sep 14 .


Dag Rende


Ubuntu 8.04 on ThinkPad T61

Page: Main.UbuntuHardyOnT61 - Last Modified : Wed, 01 Oct 08

I try to use as much as possible out of the box, with as little tweaking as possible in order to get things working.

Lenovo ThinkPad T61 type 6460-8NG

    * Processor Intel Core 2 Duo T7500  @ 2.20GHz
    * Memory 4GB
    * Hard drive 160GB
    * 15.4" TFT display 1400X1050
    * Nvidia Quadro NVS 140M 512MB 
    * Ultrabay DVD, CD-RW/DVD
    * PRO/Wireless 4965AGN, Intel PRO/1000 Gigabit Ethernet
    * Fingerprint reader STMicroelectronics
    * Hard disk active protection system (HDAPS) using an accelerometer
    * Analog Devices AD1981B AC'97 Soft Audio (Full-duplex)
    * UltraNav TrackPoint and Synaptics touch pad 
    * 4-in-1 Multi-card Reader (SD/MMC/MS/XD)

The following worked without any fiddling:

    * ethernet and wireless (WPA PSK)
    * 1680X1050 display
    * Brightness keys
    * Bluetooth keys
    * Swedish keyboard
    * audio keys
    * audio
    * Enable restricted NVidia driver
    * Desktop effects (Compiz)
    * CD and DVD burning from files or ISO image

The following worked with some simple work:

    * suspend (to RAM), but not hibernate (to disk)
    * Audio volume control buttons
    * fingerprint reader for login, sudo and gnome-screensaver
    * accessing internet through Huawei 3G modem
    * accessing internet through Option GlobeTrotter Max 7.2 ready 3G modem
    * VMWare Player
    * Firewall
    * Skype
    * iPhone sync to iTunes in winxp in vmware
    * Paper size A4
    * Rational Application Developer 7

I also installed or used:

    * VirtualBox
    * Java 6
    * Oracle XE
    * Mozilla Thunderbird 
    * Eclipse

Remaining problems:

  • With the restricted nvidia driver, I can't use my Sony TV as external display any more. It worked fine with 7.10 and 8.04 beta. It is a Sony Bravia KDL-32U2000.
  • Hibernate to disk doesn't work when the restricted nvidia driver is used
  • Can't obtain new fingerprint files with tf-tool - i keep one taken in Ubuntu 7.04

Installation and configuration details

Suspend/resume

To get suspend/resume to work with restricted nvidia driver i got the solution from http://david.goodlad.ca/2008/3/14/suspend-hibernate-on-lenovo-t61.

  • sudo gedit /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-lenovo.fdi
  • replace the two merge elements in:
      <!-- T61 (8895), intel card 32bit works with S3_MODE, but 64bit needs VBE_MODE 
	   T61p (6460), does not work with the NVidia driver-->
      <match key="system.hardware.product" prefix_outof="8895;8897;6457;6460;6464;6465">
	<merge key="power_management.quirk.s3_bios" type="bool">true</merge>
	<merge key="power_management.quirk.vbemode_restore" type="bool">true</merge>
      </match>
     to get:
      <!-- T61 (8895), intel card 32bit works with S3_MODE, but 64bit needs VBE_MODE 
	   T61p (6460), does not work with the NVidia driver-->
      <match key="system.hardware.product" prefix_outof="8895;8897;6457;6460;6464;6465">
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
        <merge key="power_management.quirk.s3_bios" type="bool">false</merge>
        <merge key="power_management.quirk.save_pci" type="bool">true</merge>
      </match>
  • reboot and test Fn-F4 and wake up with Fn

Audio volume control buttons

By default, the sound may be disabled and the volume control buttons on the laptop (up by the ThinkVantage button) and the volume control applet (up by the clock) will not control the speaker volume (they actually control the microphone). To fix this:

   1. Right-click on the volume control applet (by the clock) and select "Open Volume Control"
   2. In the "Switches" tab, make sure "Headphone" and "Speaker" are both checked.
   3. Close the Volume control.
   4. Right-click on the volume control applet again and select "Preferences".
   5. Make sure the device is set to "HDA Intel (Alsa mixer)" and highlight the "Master" and "PCM" options.
   6. Close the preferences.
   7. Select System->Preferences->Sound.
   8. In the "Default Mixer Tracks" section, make sure "Master" is highlighted.
   9. Close the sound preferences. 

You should now hear sound and be able to control the volume using the laptop buttons or volume applet.

(got from http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.10_%28Gutsy_Gibbon%29_Release_Candidate_on_a_ThinkPad_T61#Enabling_Audio_controls)

Fingerprint authentication

The news here is that fingerprint works to unlock the gnome-screensaver.

Thinkfinger-tools is in the Synaptic list, so it is easy to install. Unfortunately acquiring a new fingerprint doesn't work in ubuntu 7.10 and ubuntu 8.04. It worked for me in ubuntu 7.04. As verifying a fingerprint work fine, I saved a bir file from the 7.04 time that I bring to new OS versions. One way to get a bir file (an encoded fingerprint) is to use a ubuntu 7.04 live cd for the tf-tool -acquire step below and save the resulting file.

This is how I did it:

  • used synaptic to install libpam-thinkfinger and thinkfinger-tools
  • I edited the file /etc/pam.d/common-auth so that it looked like:
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the
# traditional Unix authentication mechanisms.
#
auth    sufficient      pam_thinkfinger.so
auth    required        pam_unix.so try_first_pass nullok_secure
  • I run
    sudo tf-tool --add-user dag
    to store my fingerprint signature.
  • I logged out, and typed my user id followed by enter. Now the text reads "password or swipe finger" (a little truncated), and it worked!
  • To be able to unlock the gnome-screensaver with the finger, the additional steps has to be performed (taken from http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger#gnome-screensaver):
  • create a new group with
    sudo groupadd fingerprint
  • create the file /etc/udev/rules.d/60-thinkfinger.rules containing:
#
# udev rules file for the thinkfinger fingerprint scanner
# 
# gives access to the fingerprint reader to those in the "fingerprint" group
#
# Taken from:
#  http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger
# which was taken and modified from:
#  http://article.gmane.org/gmane.linux.drivers.thinkfinger/329
#

# SGS Thomson Microelectronics Fingerprint Reader
SYSFS{idVendor}=="0483", SYSFS{idProduct}=="2016", SYMLINK+="input/thinkfinger-%k", MODE="0660", GROUP="fingerprint"

# the also-needed uinput device
KERNEL=="uinput", MODE="0660", GROUP="fingerprint"
  • Add yourself to the group:
 sudo gpasswd -a $USERNAME fingerprint
  • Make yourself group of the bir-file:
 sudo chown root:$USERNAME /etc/pam_thinkfinger/$USERNAME.bir
  • Give him read-only access to his bir-file:
 sudo chmod 640 /etc/pam_thinkfinger/$USERNAME.bir
  • Give "execute only" access to everyone for the /etc/pam_thinkfinger/ directory:
 sudo chmod o+x /etc/pam_thinkfinger (WARNING: this opens up security a little). 
  • Make udev tak the new rules with:
 sudo udevcontrol reload_rules
  • Logout and login again to activate the new group membership
  • Now try Fn-F2 to lock the screen and move the mouse and try the finger to unlock

It works much better than in Ubuntu 7.10 - it seems to work in all cases I have tested:

  • log in
  • sudo on command line
  • running synaptic or other gnome command that requires root privs
  • gnome-screensaver - using Fn-F2 to just lock, and Fn-F4 to suspend, but in this case sometimes I get just the prompt "Password:" and sometimes the prompt "Password or sweep finger:".

Huawei E220 3G modem

Got the slution from the swedish page http://ubuntu-bossieman.blogspot.com/search/label/Huawei.

It uses only standard stuff in the NetworkManager Applet.

  • Disable PIN on your SIM card, for example by inserting it in your mobile and using the menus.
  • Return the SIM to the modem and insert it into the laptop usb connector.
  • Click the NetworkManager Applet .
  • Select Manual configuration...
  • Click Unlock and enter your password.
  • Double click Point to point connection to get this dialog:
  • Select Connection type GPRS/UMTS
  * Enter your operators Access Point name
  • Click Modem tab:
  • Enter /dev/tyyUSB0
  • Click Options tab:
.
  • Check all three boxes
  • Click OK.
  • To test the 3G connection, disable networking by unchecking the Enable networking box in the NetworkManager Applet menu.
  • Now try clicking the Point to point connection item It should remain checked. Open a web browser and try.

If the box get unchecked after some seconds, check /var/log/messages to find out the cause of error.

Option GlobeTrotter Max 7.2 ready 3G modem

This is a PC-card modem with retractable antenna that extends only 5 mm out of the PC-card slot.

I tried to get the original version of this card to work but failed hard. It blinked red-blue and got lsusb and other things to lock up requiring reboot.

Then I found a firmware upgrade on http://www.option.com named SuperFire_GlobeTrotter_FW2.5.11Hd_OptionStandard.zip and now the card played well on linux and I with help of the forums at http://www.pharscape.org/index.php?option=com_forum I got it all working.

Here is all I did to get it working:

Downloaded hso-1.1.tar.gz from the forum http://www.pharscape.org/component/option,com_forum/Itemid,68/page,viewforum/f,14/

 tar zxf hso-1.1.tar.gz
 cd hso
 make
 sudo make install

 cd

Downloaded hso-udev.tar.gz from the folrum http://www.pharscape.org/component/option,com_forum/Itemid,68/page,viewforum/f,14/

 mkdir hso-udev
 cd hso-udev
 tar zxf ../hso-udev.tar.gz
 make
 sudo make install
 sudo cp hso.udev /etc/udev/rules.d/z20_hso-udev.rules
 sudo udevcontrol reload_rules
 cd

Prevented the old option driver to be loaded

 sudo gedit /etc/modprobe.d/blacklist

Added to bottom of file:

 blacklist option

Now I opened a terminal window and did tail -f /var/log/messages and inserted my Option GT Max card and checked in the log that the last lines after a while were something like:

 ... HSO: Found Control port /dev/ttyHS0
 ... HSO: Found Application port /dev/ttyHS1
 ... HSO: Found Diagnostic port /dev/ttyHS2

To connect I installed the HSOConnect package found on the forum http://www.pharscape.org/component/option,com_forum/Itemid,68/page,viewforum/f,15/

I just downloaded hsolink_1.0.46-1_i386.deb and hsoconnect_1.1.61_all.deb and double clicked them in order from Nautilus.

I started HSOConnect with the Applications>Internet>HSOConnect and set my APN using the Profile>Edit connection menu. In my case I used APN "bredband.tre.se".

Then I unchecked the Enable Networking menu in the Network Manager and clicked the Connect button. I opened a firefox and had to disable the File>Work Offline meny item, but then it worked!

VMware Player

  • synaptic installed g++
  • downloaded
 VMware-player-2.0.3-80004.i386.tar.gz
 vmware-any-any-update-115-K2.6.24-WirelessBridge.tar.gz
  • unpacked both
  • cmds:
    cd vmware-player-distrib
    sudo ./vmware-install.pl
  • answered yes to all except running vmware-config.pl
    cd ..
    cd vmware-any-any-update-116-K2.6.24-WirelessBridge/
    sudo ./runme.pl 
  • answered yes to question about running vmware-config.pl
  • started it with menu Applications>System tools>VMware Player

Firewall

The uncomplicated firewall ufw work fine. I turned it on with:

 sudo ufw enable

then I opened a port into my ssh server with the command:

 sudo ufw allow ssh

or the equivalent command:

 sudo ufw allow 22

The firewall remains enabled after reboot and the allow/deny settings too.

Whenever I want, I can deny use of ssh with:

 sudo ufw deny ssh

Skype

The installation is not the problem - it is to get the mic working.

  • I downloaded the file skype-debian_2.0.0.68-1_i386.deb from the skype site and double clicked it in Nautilus and clicked install.
  • To get the mic working I had to open the Preferences and make sure both microphone and capture are checked.

    The Alsamixer is buggy (as of 080428) so if you check Capture, close Alsamixer and open it again, both Capture and Capture1 is selected. But it works anyway.
  • Test mic sound capture using the Applications>Sound & Video>Sound Recording application.
  • Now start Skype and test with the Skype Test Call.

iPhone sync to iTunes in winxp in vmware

When an iPhone is connected with usb, a dialog asks for photos to be imported. This works fine, but I want to sync music and other media to the iPhone. And now at last vmware supports the non-standard apple usb protocol. Here is how I got this working.

Install vmplayer

  • synaptic install g++
  • download
        VMware-player-2.0.3-80004.i386.tar.gz
        vmware-any-any-update-115-K2.6.24-WirelessBridge.tar.gz
  • unpack both
  • cmds:
        cd vmware-player-distrib
        sudo ./vmware-install.pl
        answered yes to all except running vmware-config.pl
        cd ..
        cd vmware-any-any-update-116-K2.6.24-WirelessBridge/
        sudo ./runme.pl 
        answered yes to question about running vmware-config.pl
        start it with menu Applications>System tools>VMware Player

Install winxp in vmplayer

  • commands:
        mkdir myvm
        cd myvm
        qemu-img create -f vmdk WindowsXPPro.vmdk 10G
        gedit WindowsXPPro.vmx
	#!/usr/bin/vmware
	config.version = "8"
	virtualHW.version = "3"
	ide0:0.present = "TRUE"
	ide0:0.filename = "WindowsXPPro.vmdk"
	memsize = "256"
	MemAllowAutoScaleDown = "FALSE"
	ehci.present="TRUE"
	ide1:0.present = "TRUE"
	# use the path to your iso of xp install cd
	ide1:0.fileName = "/home/dag/fromnet/winxpcd.iso"
	ide1:0.deviceType = "cdrom-image"
	floppy0.present = "FALSE"
	ethernet0.present = "TRUE"
	usb.present = "TRUE"
	sound.present = "TRUE"
	sound.virtualDev = "es1371"
	displayName = "Windows XP Pro"
	guestOS = "winxppro"
	nvram = "WindowsXPPro.nvram"
	MemTrimRate = "-1"
	ide0:0.redo = ""
	ethernet0.addressType = "generated"
	ethernet0.connectionType = "nat"
	uuid.location = "56 4d ed 98 49 29 3d 56-9f d7 a8 3f 25 13 0e af"
	uuid.bios = "56 4d ed 98 49 29 3d 56-9f d7 a8 3f 25 13 0e af"
	ethernet0.generatedAddress = "00:0c:29:13:0e:af"
	ethernet0.generatedAddressOffset = "0"
	tools.syncTime = "TRUE"
	ide1:0.startConnected = "TRUE"
	uuid.action = "create"
	checkpoint.vmState = "WindowsXPPro.vmss"
	extendedConfigFile = "WindowsXPPro.vmxf"
	virtualHW.productCompatibility = "hosted"
	tools.upgrade.policy = "manual"
	tools.remindInstall = "TRUE"
  • Start vmplayer with: vmplayer WindowsXPPro.vmx
  • Make sure the cdrom button is in enabled state. Now vmplayer starts and the winxp installer boots and starts asking its questions.
  • install vmware-tools:
  • download linux vmware workstation 6.0.3 tar, och and extract vmware-distrib/lib/isoimages/windows.iso from it.
  • in the vmx file, change
   ide1:0.fileName = "/home/dag/fromnet/winxpcd.iso" 
   to be 
   ide1:0.fileName = "/home/dag/fromnet/windows.iso"
  • inside xp, run setup from the cd image.
  • Download and install winxp service pack 2 - it is required by the iTunes iPhone connector.
  • Download and install installera iTunes.
  • start iTunes
  • Connect the iPhone and refuse the linux dialog about photo import.
  • now the iPhone turns up in iTunes!

Paper size A4

I want English linux, even though I'm Swedish. But then I get the dreaded "Load Letter" error on many printers, as Letter is default paper size in English speaking countries.

Some programs store your current setting, but not all. Here are my measures to make the problem smaller. I use locale en_US and want paper size A4:

  • synaptic install language-support-sv
  • make sure the value of LC_ALL is a file name found in /usr/lib/locale (I have export LC_ALL=en_US.utf8 in my .profile).
  • sudo cp -p /usr/lib/locale/sv_SE.utf8/LC_PAPER /usr/lib/locale/en_US.utf8/LC_PAPER
  • Add "export LC_PAPER=a4" to .profile
  • Write "a4" /etc/papersize (found this by doing strace -o evince.log evince and look for the string "paper" in the evince.log)

Rational Application Developer 7

I found the steps to follow in http://alexcozzi.blogspot.com/2007/01/rational-application-developer-7-on.html.

I have unpacked the RAD 7 files into the fromnet/rad7 directory, as directories disk1 .. disk10 and a directory containing a license file RADlic.jar.

  • install a required library
	sudo apt-get install libstdc++5
  • make /bin/sh point at bash:
	cd /bin; sudo ln -sf bash sh
  • install RAD7:
	cd fromnet/rad7/disk1
	chmod +x install_linux.bin InstallerImage_linux/setupLinux.bin
	export BROWSER=/usr/bin/firefox
	sudo ./launchpad.sh
  • replace the shell in the scripts:
	sudo perl -p -i -e "s/\/sh$/\/bash/" /opt/IBM/SDP70/runtimes/base_v61/bin/*.sh
  • replace the shell in the script for the profile management:
	sudo perl -p -i -e "s/\/sh$/\/bash/" /opt/IBM/SDP70/runtimes/base_v61/bin/ProfileManagement/*.sh
  • enable write access to the profile, so that you can develop using your user account:
	sudo chmod -R a+w /opt/IBM/SDP70/runtimes/base_v61/profiles/AppSrv01
  • restore the original link:
	cd /bin; sudo ln -sf dash sh
  • install license
	sudo /opt/IBM/InstallationManager/launcher_shortcut
   and select manage licenses to install activation kit

You will find it in the menu Applications > Programming > IBM Rational Application Developer.



Powered by PmWiki
Skin by CarlosAB

looks borrowed from http://haran.freeshell.org/oswd/sinorca
More skins here