Diff for "InstallUbuntu11.10OnLenovoEFI/GPT/WLAN/Power/BIOS"


Differences between revisions 2 and 3
Revision 2 as of 2012-06-15 23:03:15
Size: 8124
Editor: 174-28-34-96
Comment:
Revision 3 as of 2012-06-16 22:19:33
Size: 7367
Editor: 67-0-189-220
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
 Lenovo's EFI implantation seems to be not perfect on some newer Lenovo notebooks. After successfully installing Ubuntu the notebook is not able to load the bootloader by default. It seems to be a problem with GPT partition tables and non windows bootloaders.
 It took me a hole day to figure out, how to get Ubuntu still working.

 So lets start getting Ubuntu on your Lenovo! http://ubuntuforums.org/images/smilies/icon_wink.gif

 UPDATE: evil_hog found out how to install Ubuntu with GPT partition table! Here now the updated guide.
 (tested on S205, B570)
 Lenovo's EFI implimentation seems not to be perfect on some newer Lenovo notebooks. After successfully installing Ubuntu the notebook is not able to load the bootloader by default. It seems to be a problem with GPT partition tables and non windows bootloaders.
 
  
Line 18: Line 14:
 * Simply boot from your Live CD or a USB Stick.  * Simply boot from your Live CD or a USB Stick(tested on S205, B570).
Line 23: Line 19:
 Once the system is loaded I was trying to fix my WLAN connection because Ubuntu was not able to start it by default.
 Be sure that your hardware switch (if any) is activated.
 
Once the system is loaded I was trying to fix my WLAN connection because Ubuntu was not able to start it by default.
 
Be sure that your hardware switch (if any) is activated.
Line 39: Line 37:
Your WLAN adapter should now be ready to connect http://ubuntuforums.org/images/smilies/icon_smile.gif

  Installing Ubuntu with GPT partition table
Your WLAN adapter should now be ready to connect.

= Installing Ubuntu with GPT partition table =
Line 53: Line 51:
 That's all! No need to downgrade grub anymore.. http://ubuntuforums.org/images/smilies/icon_smile.gif

'''Installation - Step 4 -
Lets permanently fix the WLAN'''
 After we booted into our installed Ubuntu system, it is time to fix the WLAN the right way.
 That's all! No need to downgrade grub anymore.
* Lets permanently fix WLAN
 After we booted into our installed Ubuntu system, it is time to fix WLAN the right way.
Line 88: Line 85:
 When you come to the point that you still cannot connect, try wicd as network manager:



{{{
sudo apt-get install wicd && sudo apt-get remove network-manager*
}}}

After a reboot you should see the wicd icon in the panel and the available wireless networks.

 Enjoy Ubuntu on your Lenovo! images/smilies/new_popcornsmiley.gif

'''3. Tweaks and Fixes'''

'''3.1 Fix "Fn brightness keys"'''
 After successfully installing Ubuntu you might come to the point that your "Fn brightness keys" are not working.
 I found a simple solution using "xbacklight" for it.
 If you need further assistance with wireless issues visit the networking section of the ubuntu forums [[http://ubuntuforums.org/forumdisplay.php?f=336 |here]] .

 Enjoy Ubuntu on your Lenovo!

= Tweaks and Fixes =

 * Fix "Fn brightness keys

After successfully installing Ubuntu you might come to the point that your "Fn brightness keys" are not working.
 
I found a simple solution using "xbacklight" for it.
Line 132: Line 123:
'''3.2 Fix battery drain (tested on Intel Sandy Bridge systems like B570)'''
 When you switch from Windows based systems you might detect a faster battery drain on your Linux system.
 The problem is that some kernel parameters are disabled by default which put the VGA into a energy saving mode.
 Some people had random system freezes with this great Sandy Bridge feature enabled, however there are a lot of people like me who don't have problems at all. I will recommend you the tweaks which fixed the main battery drain for me.
* Fix battery drain (tested on Intel Sandy Bridge systems like B570)
 
When you switch from Windows based systems you might detect a faster battery drain on your Linux system.
 
The problem is that some kernel parameters are disabled by default which put the VGA into a energy saving mode.
 
Some people had random system freezes with this great Sandy Bridge feature enabled, however there are a lot of people like me who don't have problems at all. I will recommend you the tweaks which fixed the main battery drain for me.
Line 163: Line 157:
 TLP will extend the energy modes on your laptop and power save features.

 There is a PPA available for TLP:
https://launchpad.net/~linrunner/+archive/tlp/+packages
'''(ext
ernal repos can damage the system - be aware)'''

 
TLP will extend the energy modes on your laptop and power save features.

 There is a PPA available for TLP [[https://launchpad.net/~linrunner/+archive/tlp/+packages |here]]
Line 188: Line 179:
'''3.3 Update BIOS without windows'''
 There was a new BIOS available for my Lenovo B570 and I wanted to update it. Lenovo only provides the WinFlash tool to do the updates directly in Windows, but I found a workaround to do it with a bootable USB Stick.

 Step 1: Download your BIOS on the [[http://consumersupport.lenovo.com| Lenovo Consumer site]].

 Step 2: Open the *.exe file with your archive manager and extract the containing *.zip file.
 * Update BIOS without windows

 There was a new BIOS available for my Lenovo B570 and I wanted to update it(Please be aware that upgrading the bio's can be dangerous and should not be done unless there is a problem that will be fixed or better support for new hardware). Lenovo only provides the WinFlash tool to do the updates directly in Windows, but I found a workaround to do it with a bootable USB Stick.

 * Download your BIOS on the [[http://consumersupport.lenovo.com| Lenovo Consumer site]].

 * Open the *.exe file with your archive manager and extract the containing *.zip file.
Line 197: Line 189:
 Step 3: Now build yourself a bootable USB stick with FreeDos. I used the image of the Ultimate BootCD as source for my USB Stick because FreeDos is already built in.  * Now build yourself a bootable USB stick with FreeDos. I used the image of the Ultimate BootCD as source for my USB Stick because FreeDos is already built in.
Line 201: Line 193:
 Step 4: cd into your "lenovo-"bios" folder.  * cd into your "lenovo-"bios" folder.
Line 205: Line 197:
 E.g.: Pflash.exe 44CN43WW.ROM

 Step 5: After flashing the image do a reboot. If the tool is not able to reboot your Lenovo you might have to hold the power button for 10sek. to shut it down manually. Do this only when the flashing process finished succesfully!

 Step 6: Go into the bios and load the default settings, to clear the CMOS. Save and Reboot.

 Sources:
 WLAN Fix: [[http://fakkelbrigade.eu/chris/blog/2010/12/wireless-not-working-in-ubuntu-on-the-lenovo-ideapad-s12/| http://fakkelbrigade.eu/chris/blog/2...o-ideapad-s12/]]
 TLP (German): http://thinkpad-wiki.org/TLP_-_Linux_Stromsparen
 
E.g.: Pflash.exe 44CN43WW.ROM

 * After flashing the image do a reboot. If the tool is not able to reboot your Lenovo you might have to hold the power button for 10sek. to shut it down manually. Do this only when the flashing process finished succesfully!

 * Go into the bios and load the default settings, to clear the CMOS. Save and Reboot.

Introduction

  • Lenovo's EFI implimentation seems not to be perfect on some newer Lenovo notebooks. After successfully installing Ubuntu the notebook is not able to load the bootloader by default. It seems to be a problem with GPT partition tables and non windows bootloaders.

Installation

  • Simply boot from your Live CD or a USB Stick(tested on S205, B570). I prefer the USB Stick because everything will go faster.
  • (optional) - Fixing WLAN temporary for the live session (I would like to recommend that you plug a cable into your router instead of using a wireless connection it is more stable for installations and upgrades):

Once the system is loaded I was trying to fix my WLAN connection because Ubuntu was not able to start it by default.

Be sure that your hardware switch (if any) is activated.

  • The following commands will make it possible that your wlan adapter will work temporary on your live session, but since we have no acer wlan adapter the connection can get unstable, especially on N networks. We will fix the wlan adapter after the installation, this workaround is still useful if you want to access a wifi network over a live session quickly. Open a terminal and type in the following:

sudo modprobe acer_wmi
#Be sure your WLAN is activated by the hardware keys
sudo modprobe -r acer_wmi

Your WLAN adapter should now be ready to connect.

Installing Ubuntu with GPT partition table

  • Launch the Ubuntu installer:
  • You can let the installer load updates during the installation if you are connected to the internet. When it comes to the partition you have to use the "manual mode" so that you can select the partition layout. Don't use any predefined partition layouts. The first partition has to be the EFI partition, it will be formatted as fat16 afterwards. I gave the EFI partition 50 MB. Then I created a ext4 partition for "/" and a swap partition. That's all! No need to downgrade grub anymore.
  • Lets permanently fix WLAN After we booted into our installed Ubuntu system, it is time to fix WLAN the right way. There are restricted drivers available for most of our wlan adapters. So we can install them with the restricted driver installer. Check after a reboot if you are able to connect. If you still cannot connect you might have to blacklist some modules.

lsmod | grep "b43\|ssb\|bcma\|wl"

Your output should be something like this:

wl                   2568210  0
lib80211               14991  2 lib80211_crypt_tkip,wl

If b43, ssb, bcma is loaded you have to blacklist them in:

/etc/modprobe.d/blacklist.conf

I also had to blacklist acer_wmi in order to get network-manager working.

  • After editing the file, save it and reboot. You should finally see the wireless networks.

    If you need further assistance with wireless issues visit the networking section of the ubuntu forums here . Enjoy Ubuntu on your Lenovo!

Tweaks and Fixes

  • Fix "Fn brightness keys

After successfully installing Ubuntu you might come to the point that your "Fn brightness keys" are not working.

I found a simple solution using "xbacklight" for it.

  • Be sure xbacklight is installed:

sudo apt-get install xbacklight

Now you can start a terminal window and type in:

xbacklight - 20

Your screen should dim by 20%.

  • If you want to make it brighter again just type:

xbacklight + 20

This way you can easily change your brightness through the terminal.

  • If you want to use your hardware "Fn" keys simply set the xbacklight commands as hotkeys in the keyboard settings.

* Fix battery drain (tested on Intel Sandy Bridge systems like B570)

When you switch from Windows based systems you might detect a faster battery drain on your Linux system.

The problem is that some kernel parameters are disabled by default which put the VGA into a energy saving mode.

Some people had random system freezes with this great Sandy Bridge feature enabled, however there are a lot of people like me who don't have problems at all. I will recommend you the tweaks which fixed the main battery drain for me.

  • You have to add the following boot parameters to the grub2 configuration section GRUB_CMDLINE_LINUX_DEFAULT located here /boot/grub/grub.cfg: 1.) Activates the RC6 mode of the Intel GPU

i915.i915_enable_rc6=1

2.) Activates PCIe Active State Power Management

pcie_aspm=force

Don't forget to:

sudo update-grub

TLP:

  • If you don't use the "laptop-mode-tools" package or other energy scripts, you can also have a look on TLP.

TLP will extend the energy modes on your laptop and power save features.

  • There is a PPA available for TLP here

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update

Now you can install TLP and some usefull tools:

  • smartmontools (main) - show SMART data with tlp-stat. ethtool (main) - allows to disable Wake On LAN powertop (main) - helps monitoring power consumption

sudo apt-get install --no-install-recommends tlp smartmontools ethtool powertop
  • Update BIOS without windows

    There was a new BIOS available for my Lenovo B570 and I wanted to update it(Please be aware that upgrading the bio's can be dangerous and should not be done unless there is a problem that will be fixed or better support for new hardware). Lenovo only provides the WinFlash tool to do the updates directly in Windows, but I found a workaround to do it with a bootable USB Stick.

  • Download your BIOS on the Lenovo Consumer site.

  • Open the *.exe file with your archive manager and extract the containing *.zip file. In my case inside the 44CN43WW.exe update file, was the 44CN43WW.zip. Extract now the content of the *.zip to a folder e.g. "lenovo-bios".
  • Now build yourself a bootable USB stick with FreeDos. I used the image of the Ultimate BootCD as source for my USB Stick because FreeDos is already built in. Copy the extracted "lenovo-bios" folder to the usb stick. Now boot into FreeDos.

  • cd into your "lenovo-"bios" folder. Before running the update be sure that your battery is full or better you are on A/C. To start the update we need to run Pflash.exe with the BIOS filename, which is the *.rom file.

E.g.: Pflash.exe 44CN43WW.ROM

  • After flashing the image do a reboot. If the tool is not able to reboot your Lenovo you might have to hold the power button for 10sek. to shut it down manually. Do this only when the flashing process finished succesfully!
  • Go into the bios and load the default settings, to clear the CMOS. Save and Reboot.

Originally posted The Ubuntu Forums (ubuntuforums.org)

InstallUbuntu11.10OnLenovoEFI/GPT/WLAN/Power/BIOS (last edited 2012-07-18 10:45:43 by host86-130-25-119)