Difference between revisions of "Installing Ubuntu Jaunty Jackalope (9.04) on an X301"

From ThinkWiki
Jump to: navigation, search
(←Created page with 'Please improve on this preliminary effort. ==Overview== Now that Intrepid is out the door, get it while it's fresh! ==Keyboard== pretty much all of the fn+... keys wo...')
 
(External Displays)
 
(55 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Please improve on this preliminary effort.
+
== Overview ==
  
==Overview==
+
Installation was done with a fresh Ubuntu 9.04 (x86, 32 Bit) and (amd64, 64 Bit). Overall impression: An installation without severe glitches so far. :-)
  
Now that Intrepid is out the door, get it while it's fresh!
+
== Keyboard ==
 
==Keyboard==
 
  
pretty much all of the fn+... keys work (not all tested yet)
+
Pretty much all of the Fn+... keys work (not all tested yet). Tested: Lock screen, brightness, sleep, hibernation, battery status, thinklight
tested: lock screen, brightness, sleep, hibernation, battery status, thinklight
 
  
==Ethernet==
+
To make the Mute button work add the kernel option '''acpi_osi="Linux"''' .
  
Works OOB
+
The volume buttons surprisingly don't change the volume(the display with the percentage appears,though). At least the on/off toggle button works.
  
==Wireless==
+
== Ethernet ==
  
Works OOB: The Ubuntu 8.10 Kernel (2.6.27) ships with support for the IWL5100 (''iwlagn'' driver)
+
Works out of the box.
  
==Fan==
+
== Wireless ==
  
Works fine. It is spinning lightly almost all the time, but acceptable (like in windows)
+
Works out of the box.
  
==Power Mgmt==
+
== Bluetooth / WLAN Hardware Switch ==
  
Seems to work fine. The gnome power manager reports ~3h30 which sounds about right. The [Fn] + [F3] combination even causes the applet to pop up info :)
+
The Bluetooth / WLAN Hardware Switch on the backside of the X301 does not work properly, yet. Booting the X301 with Bluetooth / WLAN switched off and turning the switch on leads to a not working wireless connection, although "Enable Wireless" is checked in the network-manager applet. However, if I manually disable/enable "Enable Wireless" in the network-manager applet after such a boot process, the wireless connection starts to work correctly. --> Any hints someone hot to get the hardware switch working correctly?
  
==Display==
+
== Ericsson F3507g Mobile Broadband Module ==
  
Works fine OOB
+
The WWAN part works out of the box on amd64 architecture and should work therefore on x86 too.
  
==Suspend and Hibernate==
+
The GPS part works too, when sending the commands manually to the card as described in http://www.thinkwiki.org/wiki/Ericsson_F3507g_Mobile_Broadband_Module . However I couln't connect to /dev/ttyACMx with cu. I first had to change the owner of the devices as follows:
  
Closing the lid puts the machine to sleep, i often managed to resume from ram but i also got frozen (mouse moveable but switching to console doesn't work, screen remains black except for the pointer (i have a black screensaver)) - caution here (solution below) -
+
<pre>
The [[Installing_Debian_(stable)_on_an_X300#Suspend_.26_Hibernate]] article suggests removing the e1000e module which i haven't tried but may help.
+
sudo chown uucp.uucp /dev/ttyACMx
The 2.6.28-rc3-git1 kernel features a suspend fix for the iwl-agn (wireless) driver, so if that was an issue, it might be gone with the next kernel (not shipped with ubuntu 8.10)
+
</pre>
  
[http://ubuntuforums.org/showthread.php?t=959712&page=2 This script] offers a solution to the black-freeze-on-resume problem. my suspend now works flawlessly
+
== Bluetooth ==
  
==Sound==
+
Untested.
  
Works out of the box on the generic kernel, i've run into some trouble with my custom kernel - feel free to report on what i'm missing.
+
== Fan ==
alsamixer reports the Conexant chip being used so i've selected that one in the snd-hda-intel driver (selecting them all didn't help either)
 
  
i haven't extensively tested this feature untested remain:
+
It is spinning at 50% (around 5000 rpm) almost all the time on default, rather the same situation as on Windows XP.
* usage with a sound server (esd)
+
To get the X301 silent and cool, [http://www.gambitchess.org/mediawiki/index.php/ThinkPad_Fan_Control ThinkPad Fan Control] could be a solution.
* microphone
 
* headphone
 
  
-works correct so far with pulseaudio
+
----
  
-headphone port works
+
--[[User:Patrick.fehr|Patrick.fehr]] 15:17, 2 June 2009 (UTC)
 +
A profile has been sent to them. Here is my information:
 +
* [http://www.snowtraces.com/x301_fan_long_time.jpg After 1 hour normal work(pdf's/openoffice/email/browsing)]
 +
* [http://www.snowtraces.com/x301_fan_long_time2.jpg After 2 hours normal work]
 +
* [http://www.snowtraces.com/x301_fan_long_time2.jpg After 3 hours normal work]
  
If no sound in applications such as Firefox, check the following:  User name may be missing from audio group. Add it with:
+
You see, that the temperature is nearly the same everywhere, except for the last sensor.
 +
So since these values can be taken as safe, we use them to create our own profile.
 +
* [http://www.snowtraces.com/x301_fan_my_setting.jpg Mine looks like this]
  
sudo vi /etc/group
+
If you stress your cpu with "stress -c 2", while having the standard profile(hw-controlled), the temperature get quite higher.
  
and add your user name to the audio group:
+
See my input on the tpfan Site: [https://answers.launchpad.net/tp-fan/+question/72479 Here] You can see, that I prepared data for all the sensors, also for when the temperature came back down after the stress-test.
  
audio:x:29:[USERNAME]
+
Be aware that you use the herementioned profile on your own risk, please. My personal opinion: It is still TOO conservative.
  
 +
==Power Management==
  
In addition the PCM channel may be on zero. Slide it to maximum.  Do this by double clicking the speaker icon and then clicking "mixer".  Push the slider to max. Alternatively in a terminal session run:
+
Seems to work fine - not fully tested yet.
 
alsamixer
 
  
Select PCM and set to maximum output.
+
Using a second battery instead of the optical drive works fine too.
  
==Camera==
+
== Display ==
  
works fine in ekiga (green LED lights up as well)
+
Works out of the box.
if it doesn't work you might want to try
 
sudo adduser youruser video
 
  
==Graphics Chipset and Driver Information==
+
== Suspend and Hibernate ==
  
'''GM45'''
+
Both work out of the box.  But there might be a problem with the X Server crashing after resume (see: https://bugs.launchpad.net/bugs/340328 )
  
The chipset is called: [http://support.intel.com/Products/Notebook/Chipsets/GM45/GM45-overview.htm Mobile Intel® GM45 Express Chipset]
+
== Sound ==
  
It was initially referred to as IGD_GM "Intel Integrated Graphics Device" in the Intel driver
+
Works out of the box. Plugging in headphone or microphone will mute the internal devices and switch to external jacks.
  
Next, support for G4X "Intel 4 series chipsets" was added
+
Untested remain:
 +
* Usage with a sound server (esd)
  
IGD_GM was then renamed to it's official name GM45
+
== Camera ==
  
Finally, the defines IS_GM45 were merged into IS_G4X because they are identical as at 2008-11-06.
+
Works out of the box (tested with [http://projects.gnome.org/cheese/ Cheese]) but on repeated use it often fails or blocks. Reloading the uvcvideo kernel module resets the camera.
  
 +
== External Displays ==
  
'''Direct Rendering Infrastructure'''
+
Works out of the box (dual screen and mirror screens). Tested with an Acer AL2223W monitor.
 
 
DRI is supported with the package libgl1-mesa-dri
 
 
 
The DRI driver is i965 [http://dri.freedesktop.org/wiki/Intel http://dri.freedesktop.org/wiki/Intel]
 
 
 
$ grep AIGLX:\ Loaded /var/log/Xorg.0.log
 
(II) AIGLX: Loaded and initialized /usr/lib/dri/i965_dri.so
 
 
 
The DRM driver is i915
 
 
 
$ lsmod | grep drm
 
drm                  110304  3 i915
 
 
 
==External Displays==
 
 
 
vga port works as expected. you can activate it through xrandr or the screen resolution preferences.
 
 
 
with xrandr HDMI-1 shows up as well, but i couldn't test it yet (no adaptor/displayport device)
 
 
 
untested:
 
* displayport
 
 
 
Display port may not yet be supported by the intel driver: http://lists.freedesktop.org/archives/xorg/2008-July/037375.html.
 
There have however been commits since then mentioning displayport.
 
 
 
The follow xorg.conf works with an external 24" dell display connected via VGA:
 
 
 
Section "Device"
 
    Identifier      "Intel GM45 Express"
 
    Driver          "intel"
 
    Option          "monitor-VGA"  "DELL2407WFPHC"
 
    Option          "monitor-LVDS"  "Laptop"
 
EndSection
 
Section "Monitor"
 
    Identifier      "DELL2407WFPHC"
 
    Option          "PreferredMode"  "1920x1200"
 
#  Option          "Left Of" "Laptop" # causes crash on intel 2.5
 
EndSection
 
Section "Monitor"
 
    Identifier      "Laptop"
 
EndSection
 
Section "Monitor"
 
    Identifier      "HDMI-1"
 
    Option          "Ignore"  "true"
 
EndSection
 
Section "Screen"
 
    Identifier      "Default Screen"
 
    Device          "Intel GM45 Express"
 
    Monitor        "Laptop"
 
    DefaultDepth    24
 
    SubSection "Display"
 
        Depth      24
 
        Virtual    3360 2100
 
    EndSubSection
 
EndSection
 
Section "ServerLayout"
 
    Identifier      "Default Layout"
 
    Screen          "Default Screen"
 
EndSection
 
  
 
==Compiz / 3D Acceleration==
 
==Compiz / 3D Acceleration==
  
Works OOB, requires p
+
Works. But the performance of the Intel driver is not optimal.
  
The Intel i965 driver supports 8192x8192 resolution in the Intrepid packages, however the mesa dri driver libgl1-mesa-dri currently only supports 2048x2048. This means is your combined resolution is greater than that (i.e you have an external display attached), mesa eyecandy will be disabled.  
+
Compiz is installed by default when using the Desktop CD. However the Compiz configuration and settings manager is missing. To install it do the following:
  
Bug link: [https://bugs.launchpad.net/bugs/146298 https://bugs.launchpad.net/bugs/146298]
+
<pre>
 +
sudo apt-get install compizconfig-settings-manager
 +
</pre>
  
$ glxinfo -l | grep 2048
+
Furthermore it is recommended to install fusion icon too:
GL_MAX_TEXTURE_SIZE = 2048
 
  
 +
<pre>
 +
sudo apt-get install fusion-icon
 +
</pre>
  
There is crude patch which has had mostly positive feedback, but no-one seems to be sure: [http://lists.freedesktop.org/archives/xorg/2008-April/034707.html http://lists.freedesktop.org/archives/xorg/2008-April/034707.html]. I've not tested it yet. It's also not clear when it will be fixed upstream.
+
== Boot time ==
  
==Boot time==
+
About 20s including time spent in BIOS and POST. When using ext4 instead of ext3 it boots even a little bit faster.
  
* 12sec from power to GRUB
+
== Fingerprint Reader ==
* 22sec to GDM, 18sec with tweaked readahead
 
* 29sec from GDM into fully loaded session, 28sec with readahead (seems awfully slow to me.. fluxbox takes like 2sec..)
 
  
===Improvements===
+
Doesn't currently work as it's an AuthenTec and not a Thompson chip. Linux driver is missing. Any news here?
  
====Native Upstart boot====
+
== Trackpoint / Trackpad ==
  
Since i'm using this one i even ditched boot-readahead (still using desktop-readahead though)
+
To make the trackpoint central button + mouse up/down to work as the scroll whell, you need to add this content to /etc/hal/fdi/policy/mouse-wheel.fdi:
[http://ubuntuforums.org/showpost.php?p=6158642&postcount=38 Described here]
 
  
====Concurent loading====
+
<pre>
 +
<match key="info.product" string="PS/2 Generic Mouse">
 +
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 +
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 +
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
 +
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
 +
<merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
 +
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
 +
</match>
 +
</pre>
  
edit ''/etc/init.d/rc'' set ''CONCURRENCY'' from ''none'' to ''shell''
+
If this doesn't work for you, get a list of all the devices and try with different ones instead on "PS/2 Generic Mouse":
CONCURRENCY=shell
 
  
note that after some testing i've switched back to the ''none'' value, as some startups weren't clean
+
<pre>
 +
lshal | grep input.product
 +
</pre>
  
====Readahead====
+
For instance, section How_to_configure_the_TrackPoint recommends "TPPS/2 IBM TrackPoint" for other Thinkpads, but it wasn't present on X301.
  
install readahead
+
==Credits==
sudo apt-get install readahead
+
Article skeleton from the Ubuntu 8.10 on X301 article of Blk - Thanks a lot for your work!
 
 
profile your GNOME login (instructions: [http://ubuntuforums.org/showthread.php?t=565651], then filter out all files under 100kb (guessed number, feel free to experiment).
 
i filtered out small files since access times on SSD is very good, throughput not.
 
The linked page states about loading in ''Xsession.d'', forget about that and put your profiled files in ''/etc/readahead/boot'' and ''/etc/readahead/desktop''. This will cause the boot process to profit and the desktop-files to load earlier (before X starts)
 
to create a ''boot'' file, append "profile" to the GRUB prompt
 
 
 
filter out the small files
 
boot file:
 
cat boot | xargs -i ls -lk {} | sort -rn -k +5 | awk "{print(\$8)}" > boot.sorted
 
now delete any line below the wanted threshold from the sorted file (i took "dash" as masker with 104kb)
 
since the boot file is ordered, we want to keep that order
 
cat boot | while read line; do grep "$line" boot.sorted >> boot.new; done;
 
  
same for the desktop file:
+
Former revisions:
cat desktop | xargs -i ls -lk {} | sort -rn -k +5 | awk "{print(\$8)}" > desktop.sorted
+
:26. May 2009 by tp42
remove lines from sorted file...
+
:2. June 2009 by [[User:Patrick.fehr|Patrick.fehr]], 15:21 UTC
cat desktop | while read line; do grep "$line" desktop.sorted >> desktop.new; done;
 
 
 
==Fingerprint Reader==
 
 
 
Doesn't currently work as it's an AthenTec and not a Thompson chip.
 
 
 
==Minimalistic installation instructions==
 
 
 
The system you are installing when following these instructions will be a good starting point if you want a clean ubuntu system without all the bloat (which you may of course add yourself). For a simple installation just download and install the desktop version of ubuntu 8.10 (beta)
 
 
 
 
 
==Credits==
 
Article skeleton from the Ubuntu 8.10 on X301 article of Blk - Thanks a lot for your work.
 
  
 +
Last Revision:
 +
:11. September 2009 by Guggenmusiker, 14:52 CET
 
[[Category:X301]]
 
[[Category:X301]]

Latest revision as of 14:59, 11 September 2009

Overview

Installation was done with a fresh Ubuntu 9.04 (x86, 32 Bit) and (amd64, 64 Bit). Overall impression: An installation without severe glitches so far. :-)

Keyboard

Pretty much all of the Fn+... keys work (not all tested yet). Tested: Lock screen, brightness, sleep, hibernation, battery status, thinklight

To make the Mute button work add the kernel option acpi_osi="Linux" .

The volume buttons surprisingly don't change the volume(the display with the percentage appears,though). At least the on/off toggle button works.

Ethernet

Works out of the box.

Wireless

Works out of the box.

Bluetooth / WLAN Hardware Switch

The Bluetooth / WLAN Hardware Switch on the backside of the X301 does not work properly, yet. Booting the X301 with Bluetooth / WLAN switched off and turning the switch on leads to a not working wireless connection, although "Enable Wireless" is checked in the network-manager applet. However, if I manually disable/enable "Enable Wireless" in the network-manager applet after such a boot process, the wireless connection starts to work correctly. --> Any hints someone hot to get the hardware switch working correctly?

Ericsson F3507g Mobile Broadband Module

The WWAN part works out of the box on amd64 architecture and should work therefore on x86 too.

The GPS part works too, when sending the commands manually to the card as described in http://www.thinkwiki.org/wiki/Ericsson_F3507g_Mobile_Broadband_Module . However I couln't connect to /dev/ttyACMx with cu. I first had to change the owner of the devices as follows:

sudo chown uucp.uucp /dev/ttyACMx

Bluetooth

Untested.

Fan

It is spinning at 50% (around 5000 rpm) almost all the time on default, rather the same situation as on Windows XP. To get the X301 silent and cool, ThinkPad Fan Control could be a solution.


--Patrick.fehr 15:17, 2 June 2009 (UTC) A profile has been sent to them. Here is my information:

You see, that the temperature is nearly the same everywhere, except for the last sensor. So since these values can be taken as safe, we use them to create our own profile.

If you stress your cpu with "stress -c 2", while having the standard profile(hw-controlled), the temperature get quite higher.

See my input on the tpfan Site: Here You can see, that I prepared data for all the sensors, also for when the temperature came back down after the stress-test.

Be aware that you use the herementioned profile on your own risk, please. My personal opinion: It is still TOO conservative.

Power Management

Seems to work fine - not fully tested yet.

Using a second battery instead of the optical drive works fine too.

Display

Works out of the box.

Suspend and Hibernate

Both work out of the box. But there might be a problem with the X Server crashing after resume (see: https://bugs.launchpad.net/bugs/340328 )

Sound

Works out of the box. Plugging in headphone or microphone will mute the internal devices and switch to external jacks.

Untested remain:

  • Usage with a sound server (esd)

Camera

Works out of the box (tested with Cheese) but on repeated use it often fails or blocks. Reloading the uvcvideo kernel module resets the camera.

External Displays

Works out of the box (dual screen and mirror screens). Tested with an Acer AL2223W monitor.

Compiz / 3D Acceleration

Works. But the performance of the Intel driver is not optimal.

Compiz is installed by default when using the Desktop CD. However the Compiz configuration and settings manager is missing. To install it do the following:

sudo apt-get install compizconfig-settings-manager

Furthermore it is recommended to install fusion icon too:

sudo apt-get install fusion-icon

Boot time

About 20s including time spent in BIOS and POST. When using ext4 instead of ext3 it boots even a little bit faster.

Fingerprint Reader

Doesn't currently work as it's an AuthenTec and not a Thompson chip. Linux driver is missing. Any news here?

Trackpoint / Trackpad

To make the trackpoint central button + mouse up/down to work as the scroll whell, you need to add this content to /etc/hal/fdi/policy/mouse-wheel.fdi:

<match key="info.product" string="PS/2 Generic Mouse">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
 <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

If this doesn't work for you, get a list of all the devices and try with different ones instead on "PS/2 Generic Mouse":

lshal | grep input.product

For instance, section How_to_configure_the_TrackPoint recommends "TPPS/2 IBM TrackPoint" for other Thinkpads, but it wasn't present on X301.

Credits

Article skeleton from the Ubuntu 8.10 on X301 article of Blk - Thanks a lot for your work!

Former revisions:

26. May 2009 by tp42
2. June 2009 by Patrick.fehr, 15:21 UTC

Last Revision:

11. September 2009 by Guggenmusiker, 14:52 CET