Linux on the X220

Discussion in 'Lenovo' started by ksvjdsvagff, May 3, 2011.

Thread Status:
Not open for further replies.
  1. OtherSongs

    OtherSongs Notebook Evangelist

    Reputations:
    113
    Messages:
    640
    Likes Received:
    1
    Trophy Points:
    31
    I can believe "12 hrs of battery without ANY tweaks on the x230 in Ubuntu 12.04 with the 9--cell"

    Battery life hugely depends on screen brightness setting.

    I've got a X220 w/6-cell and am very pleased. Battery life of ~7 hours with somewhat dim brightness/contrast setting w/Win7.
     
  2. ALLurGroceries

    ALLurGroceries https://chromebookbuyer.com Super Moderator

    Reputations:
    9,616
    Messages:
    6,962
    Likes Received:
    783
    Trophy Points:
    281
    OtherSongs: Are you running linux?
     
  3. OtherSongs

    OtherSongs Notebook Evangelist

    Reputations:
    113
    Messages:
    640
    Likes Received:
    1
    Trophy Points:
    31
    Not yet on either my slightly older X220, or my very new T530 laptops.

    But I expect to try a dual Win7/Linux boot with both laptops.

    1st priority has been and continues to be, getting set up with boot SSD on both laptops.

    X220 works great with boot mSATA SSD only, and no HDD (pulled it out on X220 thereby saving ~6oz (drive + metal sled + plastic rails)); and leaving HDD bay open for occasional clone of boot SSD to temp HDD backup).

    Next few days I'll do a 2 SSD setup on my T530, boot drive in the main bay and secondary SSD in the DVD bay.

    Still undecided as to which flavor(s) of Linux I'll try with a dual boot Win/Linux setup with one or both of my laptops. Odds are that I'll 1st try dual boot (Win7/Linux) with my T530.

    When Crucial's new M500 512GB mSATA drives come out in a few months, I'll move to that on my X220 and then play around with a dual Win7/Linux boot setup on my X220 as I'll then have enough drive space on it to do that.
     
  4. ALLurGroceries

    ALLurGroceries https://chromebookbuyer.com Super Moderator

    Reputations:
    9,616
    Messages:
    6,962
    Likes Received:
    783
    Trophy Points:
    281
    I located the problem with expresscard hotplugging (after 8 kernel builds!), and I'm working on a patch.
     
  5. 600X

    600X Endless bus ride

    Reputations:
    677
    Messages:
    812
    Likes Received:
    107
    Trophy Points:
    56
    12h on a 9c without any optimizations is NOT possible on 12.04. I tried it myself. However, 9h are possible if you install TLP. With my broken 6c, I get around 5h on Ubuntu with TLP installed.

    BTW, the M500 won't fit into the X220, the X220 has an mSATA Slot.
     
  6. ALLurGroceries

    ALLurGroceries https://chromebookbuyer.com Super Moderator

    Reputations:
    9,616
    Messages:
    6,962
    Likes Received:
    783
    Trophy Points:
    281
    Here's a quick and dirty patch for expresscard hotplugging... this is against 3.7.7:

    Code:
    diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c
    index ebb3e5f..b427aad 100644
    --- a/drivers/pci/pcie/portdrv_pci.c
    +++ b/drivers/pci/pcie/portdrv_pci.c
    @@ -225,7 +225,7 @@ static int __devinit pcie_portdrv_probe(struct pci_dev *dev,
     	 * it by default.
     	 */
     	dev->d3cold_allowed = false;
    -	if (!pci_match_id(port_runtime_pm_black_list, dev))
    +	if (pci_match_id(port_runtime_pm_black_list, dev))
     		pm_runtime_put_noidle(&dev->dev);
     
     	return 0;
    
    Also here's my 3.7.7 config: config-3.7.7.txt
     
  7. OtherSongs

    OtherSongs Notebook Evangelist

    Reputations:
    113
    Messages:
    640
    Likes Received:
    1
    Trophy Points:
    31
    Crucial's new M500 512GB mSATA SSD drive is what I said. See my above quote.

    And with regard to the 2.5" Crucial M500 SSD drive, it's hard for me to believe that it won't have a 7mm thick option. Odds are that one can just ditch the HDD?
     
  8. 600X

    600X Endless bus ride

    Reputations:
    677
    Messages:
    812
    Likes Received:
    107
    Trophy Points:
    56
    OK sorry, must have misread.
     
  9. ALLurGroceries

    ALLurGroceries https://chromebookbuyer.com Super Moderator

    Reputations:
    9,616
    Messages:
    6,962
    Likes Received:
    783
    Trophy Points:
    281
    In the just released 3.8 kernel there's a bug in the e1000e driver that prevents the card from waking up after the ethernet cable is plugged in for the first time after being unplugged:
    Linux-Kernel Archive: [REGRESSION 3.8-r1] broken pci irq/pm state for e1000e device
    SourceForge.net: Intel Ethernet Drivers and Utilities:

    It comes back after a suspend/resume. If you want to run 3.8, plan on using my expresscard hotplugging patch (posted earlier) and fixing this ethernet problem by reverting commit 42eca2302146fed51335b95128e949ee6f54478f

    Here's my 3.8 config: http://www.mediafire.com/file/n53m73fdhumn3t8/config-3.8.0.txt
     
  10. vlitzer

    vlitzer Newbie

    Reputations:
    0
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    5
    Thanks man.
    Can I use that config for instance while following this instructions?
    Lindqvist -- a blog about Linux and Science. Mostly.: 342. Compiling Kernel 3.8 on Debian Testing/Wheezy
    Im planning to do it on a crunchbang installation.

    thanks in advance

    EDIT: or maybe its better to use a 3.7 for avoiding the 3.8 bug?
     
Loading...
Thread Status:
Not open for further replies.

Share This Page