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

From ThinkWiki
Jump to: navigation, search
(Wireless)
(External Displays)
 
(47 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. :-)
  
Installation was done with a fresh Ubuntu 9.04 (x86, 32 bit).
+
== Keyboard ==
  
==Keyboard==
+
Pretty much all of the Fn+... keys work (not all tested yet). Tested: Lock screen, brightness, sleep, hibernation, battery status, thinklight
  
pretty much all of the fn+... keys work (not all tested yet)
+
To make the Mute button work add the kernel option '''acpi_osi="Linux"''' .
tested: lock screen, brightness, sleep, hibernation, battery status, thinklight
 
  
==Ethernet==
+
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.
 
Works out of the box.
  
==Wireless==
+
== Wireless ==
  
 
Works out of the box.
 
Works out of the box.
  
==Fan==
+
== Bluetooth / WLAN Hardware Switch ==
  
It is spinning lightly (2000-5000 rpm) almost all the time, rather the same situation as on Windows XP.
+
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?
To get the X301 silent and cool, [http://www.gambitchess.org/mediawiki/index.php/ThinkPad_Fan_Control ThinkPad Fan Control] may be a solution. However, a X301 fan profile is still missing. (Perhaps someone might provide a profile?)
 
  
==Power Mgmt==
+
== Ericsson F3507g Mobile Broadband Module ==
  
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 WWAN part works out of the box on amd64 architecture and should work therefore on x86 too.
  
==Display==
+
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:
  
Works fine OOB
+
<pre>
 +
sudo chown uucp.uucp /dev/ttyACMx
 +
</pre>
  
==Suspend and Hibernate==
+
== Bluetooth ==
  
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) -
+
Untested.
The [[Installing_Debian_(stable)_on_an_X300#Suspend_.26_Hibernate]] article suggests removing the e1000e module which i haven't tried but may help.
 
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)
 
  
[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
+
== Fan ==
  
==Sound==
+
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, [http://www.gambitchess.org/mediawiki/index.php/ThinkPad_Fan_Control ThinkPad Fan Control] could be a solution.
  
Works out of the box .
+
----
  
 +
--[[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]
  
Untested remain:
+
You see, that the temperature is nearly the same everywhere, except for the last sensor.
* usage with a sound server (esd)
+
So since these values can be taken as safe, we use them to create our own profile.
* microphone
+
* [http://www.snowtraces.com/x301_fan_my_setting.jpg Mine looks like this]
* headphone
 
  
==Camera==
+
If you stress your cpu with "stress -c 2", while having the standard profile(hw-controlled), the temperature get quite higher.
  
works fine in ekiga (green LED lights up as well)
+
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.
if it doesn't work you might want to try
 
sudo adduser youruser video
 
  
==Graphics Chipset and Driver Information==
+
Be aware that you use the herementioned profile on your own risk, please. My personal opinion: It is still TOO conservative.
  
'''GM45'''
+
==Power Management==
  
The chipset is called: [http://support.intel.com/Products/Notebook/Chipsets/GM45/GM45-overview.htm Mobile Intel® GM45 Express Chipset]
+
Seems to work fine - not fully tested yet.
  
It was initially referred to as IGD_GM "Intel Integrated Graphics Device" in the Intel driver
+
Using a second battery instead of the optical drive works fine too.
  
Next, support for G4X "Intel 4 series chipsets" was added
+
== Display ==
  
IGD_GM was then renamed to it's official name GM45
+
Works out of the box.
  
Finally, the defines IS_GM45 were merged into IS_G4X because they are identical as at 2008-11-06.
+
== 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 )
  
'''Direct Rendering Infrastructure'''
+
== Sound ==
  
DRI is supported with the package libgl1-mesa-dri
+
Works out of the box. Plugging in headphone or microphone will mute the internal devices and switch to external jacks.
  
The DRI driver is i965 [http://dri.freedesktop.org/wiki/Intel http://dri.freedesktop.org/wiki/Intel]
+
Untested remain:
 
+
* Usage with a sound server (esd)
$ 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:
+
== Camera ==
* displayport
 
  
Display port may not yet be supported by the intel driver: http://lists.freedesktop.org/archives/xorg/2008-July/037375.html.
+
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.
There have however been commits since then mentioning displayport.  
 
  
The follow xorg.conf works with an external 24" dell display connected via VGA:
+
== External Displays ==
  
Section "Device"
+
Works out of the box (dual screen and mirror screens). Tested with an Acer AL2223W monitor.
    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.
 
 
 
Bug link: [https://bugs.launchpad.net/bugs/146298 https://bugs.launchpad.net/bugs/146298]
 
 
 
$ glxinfo -l | grep 2048
 
GL_MAX_TEXTURE_SIZE = 2048
 
 
 
 
 
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==
 
  
* 12sec from power to GRUB
+
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:
* 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===
+
<pre>
 +
sudo apt-get install compizconfig-settings-manager
 +
</pre>
  
====Native Upstart boot====
+
Furthermore it is recommended to install fusion icon too:
  
Since i'm using this one i even ditched boot-readahead (still using desktop-readahead though)
+
<pre>
[http://ubuntuforums.org/showpost.php?p=6158642&postcount=38 Described here]
+
sudo apt-get install fusion-icon
 +
</pre>
  
====Concurent loading====
+
== Boot time ==
  
edit ''/etc/init.d/rc'' set ''CONCURRENCY'' from ''none'' to ''shell''
+
About 20s including time spent in BIOS and POST. When using ext4 instead of ext3 it boots even a little bit faster.
CONCURRENCY=shell
 
  
note that after some testing i've switched back to the ''none'' value, as some startups weren't clean
+
== Fingerprint Reader ==
  
====Readahead====
+
Doesn't currently work as it's an AuthenTec and not a Thompson chip. Linux driver is missing. Any news here?
  
install readahead
+
== Trackpoint / Trackpad ==
sudo apt-get install readahead
 
  
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).
+
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:
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
+
<pre>
boot file:
+
<match key="info.product" string="PS/2 Generic Mouse">
  cat boot | xargs -i ls -lk {} | sort -rn -k +5 | awk "{print(\$8)}" > boot.sorted
+
  <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
now delete any line below the wanted threshold from the sorted file (i took "dash" as masker with 104kb)
+
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
since the boot file is ordered, we want to keep that order
+
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
  cat boot | while read line; do grep "$line" boot.sorted >> boot.new; done;
+
<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>
  
same for the desktop file:
+
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":
cat desktop | xargs -i ls -lk {} | sort -rn -k +5 | awk "{print(\$8)}" > desktop.sorted
 
remove lines from sorted file...
 
cat desktop | while read line; do grep "$line" desktop.sorted >> desktop.new; done;
 
  
==Fingerprint Reader==
+
<pre>
 
+
lshal | grep input.product
Doesn't currently work as it's an AthenTec and not a Thompson chip.
+
</pre>
 
 
==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)
 
  
 +
For instance, section How_to_configure_the_TrackPoint recommends "TPPS/2 IBM TrackPoint" for other Thinkpads, but it wasn't present on X301.
  
 
==Credits==
 
==Credits==
 
Article skeleton from the Ubuntu 8.10 on X301 article of Blk - Thanks a lot for your work!
 
Article skeleton from the Ubuntu 8.10 on X301 article of Blk - Thanks a lot for your work!
  
Last Revision 24. April 2009 by User tp42.
+
Former revisions:
 +
:26. May 2009 by tp42
 +
:2. June 2009 by [[User:Patrick.fehr|Patrick.fehr]], 15:21 UTC
 +
 
 +
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