Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

  1. #1
    Join Date
    May 2011
    Location
    Yogyakarta
    Beans
    7
    Distro
    Ubuntu 11.04 Natty Narwhal

    Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    I've got Thinkpad T420 with the Core i5 2410 2.4 GHZ and Intel HD 3000 (not the dual graphic model)

    Laptop Review:

    + Great Build
    + Super Keyboard
    + Good Performance (for working, not gaming)
    + Quite ok battery life

    - LCD has bad vertical quality (washed out if you look at it slightly from above)

    Weight is around Unibody MBP 15

    Working Out of The Box:

    Suspend
    Hibernate
    All of the fn-function keys
    Trackpoint
    Trackpad
    Bluetooth
    Wifi
    Card Reader
    Intel HD 3000
    DVD Drive
    Sound

    Working But Need Some Hacking:

    Active Protection System:

    what you need: thinkpad_ec (tp_smapi, hdaps) and hdapsd

    tp_smapi from apt is not working, when you do "modprobe tp_smapi" it will return error: device not found

    Solution:

    1.
    Code:
     sudo apt-get install module-assistant
    2.
    Code:
     apt-get source tp-smapi-source #no sudo here
    3.
    Code:
     cd tp-smapi-0.40
    4. open "thinkpad_ec.c" with your favorite code editor

    around line 475 there are:

    Code:
    if (!check_dmi_for_ec()) {
            printk(KERN_WARNING
                   "thinkpad_ec: no ThinkPad embedded controller!\n");
            return -ENODEV;
    }
    Just put comment around it (or you can just comment the return -ENODEV)

    Code:
    /*
    if (!check_dmi_for_ec()) {
            printk(KERN_WARNING
                   "thinkpad_ec: no ThinkPad embedded controller!\n");
            return -ENODEV;
     }*/
    One more thing: around line 459 there are struct:

    Code:
    struct dmi_system_id tp_whitelist[] = {
            TP_DMI_MATCH("IBM", "ThinkPad A30"),
            TP_DMI_MATCH("IBM", "ThinkPad T23"),
            TP_DMI_MATCH("IBM", "ThinkPad X24"),
            TP_DMI_MATCH("IBM", "Thinkpad T420"), // add this line here
            { .ident = NULL }
        };
    5. After done patching the source code you can do this:

    Code:
    cd ../
    
    apt-get --build source tp-smapi-source
    6. It will generate tp-smapi-dkms.deb and tp-smapi-source.deb, for the sake of simplicity just install the dkms:

    Code:
    sudo dpkg -i tp-smapi-dkms_0.40-9_all.deb
    7.
    Code:
    sudo modprobe tp_smapi
    and

    Code:
    sudo modprobe hdaps
    8.
    Code:
     lsmod | grep -i thinkpad_ec
    it should return thinkpad_ec with tp_smapi and hdaps listed.

    9. Edit /etc/rc.local and put:

    Code:
    modprobe tp_smapi
    modprobe hdaps
    10. Install hdaps-gl if you wanted to test the sensor (it needs freeglut dev to compile)

    11. if you don't want to bother with source file, just install the attached tp-smapi.tar.gz (extract it first, and go to step 6).

    That's all for tp-smapi now let's go to hdapsd

    HDAPSD

    hdapsd handle the disk parking features:

    Code:
    sudo apt-get install hdapsd
    Run "sudo hdapsd" and spank your thinkpad real hard, see whether hdapsd return "parking" in your console.

    Another way to test is to run "find /" on the console and move your laptop during the process, it should stop for a while and then resume.

    Power Management:

    Do what mentioned on the link if you want to conserve battery:

    https://help.ubuntu.com/community/Po...t/ReducedPower


    I managed to get between 10 watt - 13 watt when running on battery (from powertop)

    Fingerprint Reader

    fprint in Ubuntu is obsolete

    Code:
    sudo add-apt-repository ppa:fingerprint/fprint
    
    sudo aptitude update
    
    sudo aptitude install libfprint0 libpam-fprintd
    Change you fingerprint login from About Me

    Trackpoint scrolling

    Code:
    cd /usr/share/X11/xorg.conf.d/
    
    sudo vim 20-thinkpad.conf # can use gedit instead of vim but error on emacs :P
    Add this into the new file:

    Code:
    Section "InputClass"
        Identifier    "Trackpoint Wheel Emulation"
        MatchProduct    "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint"
        MatchDevicePath    "/dev/input/event*"
        Option        "EmulateWheel"        "true"
        Option        "EmulateWheelButton"    "2"
        Option        "Emulate3Buttons"    "false"
        Option        "XAxisMapping"        "6 7"
        Option        "YAxisMapping"        "4 5"
    EndSection


    Better Intel HD 3000 Driver

    http://phoronix.com/forums/showthrea...aphics-Drivers


    Not Yet Working:


    External Monitor

    Somehow hot left palm rest (overactive HDD??)

    Bibliography:


    http://www.thinkwiki.org/
    http://lists.freebsd.org/pipermail/f...ch/084573.html
    http://forum.thinkpads.com/viewtopic.php?f=45&t=95974
    https://help.ubuntu.com/community/Po...t/ReducedPower
    Attached Files Attached Files
    Last edited by le_gudeg; May 9th, 2011 at 02:00 AM. Reason: Add new tips

  2. #2
    Join Date
    Sep 2007
    Beans
    5

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    Thanks a lot!!

    I have problems with changing screen resolution after docking the T420. When I get home, I dock my laptop and after booting the resolution of my laptop is back to default (1024x768), instead of the normal 1600x900. Do you have the same problem?

    Regards

    Bram

  3. #3
    Join Date
    May 2011
    Location
    Yogyakarta
    Beans
    7
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    My problem is the laptop just goes hang when I connect the VGA cable and press Fn-F7. The external monitor just didn't show anything, I am using Samsung SyncMaster 2233sw. Fedora 15 is almost released, hope things work more smoothly there.

  4. #4
    Join Date
    Sep 2007
    Beans
    5

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    yes, mine hangs too then.

    But I do not want to change my screen resolution after _each_ reboot (when connected to docking station).

    So far I didn't find a solution on google

  5. #5
    Join Date
    May 2011
    Location
    Yogyakarta
    Beans
    7
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    I hope it will be solved with the newer Intel graphic driver for Linux. It's quite possible that the driver will be backported to 11.04, if not then we have to wait until 11.10 or compile it from sources. Other solutions is to add custom ppa described in http://phoronix.com/forums/showthrea...aphics-Drivers

    I got glitch (no panel and dock) the last time I try the phoronix ppa mentioned on the link above, maybe they already update it now, haven't tried it again.

  6. #6
    Join Date
    May 2011
    Location
    Yogyakarta
    Beans
    7
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    I think the docking station you mentioned also somehow trigger similar event like connecting external VGA cable. If I'm not mistaken the docking station also has extra VGA / DVI port rite? (I don't have the unit now). Maybe you can try to thinker with xorg to set the fixed resolution.

  7. #7
    Join Date
    Sep 2007
    Beans
    5

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    yes it has an external vga/dvi port.

    What do you mean with:

    "Maybe you can try to thinker with xorg to set the fixed resolution."?

    Regards,

    Bram

  8. #8
    Join Date
    May 2011
    Location
    Yogyakarta
    Beans
    7
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    On the older version of Ubuntu it is usually hard to get the correct screen resolution for your monitor so you have to edit the xorg.conf file manually to get it right. But now it can detect automatically most of the time. Instead of using single xorg.conf file now Ubuntu use many small xorg file located in /usr/share/X11/xorg.conf.d/ to handle various settings and devices. Try to get the documentation about xorg.conf.d or search/ask the forums about it. It deserve another thread of its own.

  9. #9
    Join Date
    Apr 2010
    Beans
    9

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    HDAPS might work but power doesn't. (Force discharge, thresholds etc)

  10. #10
    Join Date
    Jul 2007
    Beans
    12

    Re: Ubuntu 11.04 on Thinkpad T420 with HDAPS Working

    followed instructions but now i see:

    'LilArooni ~/tp-smapi-0.40: sudo modprobe tp_smapi
    FATAL: Error inserting tp_smapi (/lib/modules/2.6.38-8-generic/updates/dkms/tp_smapi.ko): No such device"


    LilArooni ~/tp-smapi-0.40: sudo modprobe hdaps
    FATAL: Error inserting hdaps (/lib/modules/2.6.38-8-generic/updates/dkms/hdaps.ko): No such device
    LilArooni ~/tp-smapi-0.40:

    .. any ideas what to do now? t420 with 11.04 here.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •