https://wiki.archlinux.org/api.php?action=feedcontributions&user=Thetooth&feedformat=atomArchWiki - User contributions [en]2024-03-28T15:12:26ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X120e&diff=163233Lenovo ThinkPad X120e2011-10-02T00:24:29Z<p>Thetooth: Added trackpad section :D</p>
<hr />
<div>[[Category:IBM (English)]]<br />
{{Article summary start}}<br />
{{Article summary text|Installation instructions for the Lenovo ThinkPad X120e}}<br />
{{Article summary heading|Related articles}}<br />
{{Article summary wiki|IBM ThinkPad X100e}}<br />
{{Article summary end}}<br />
<br />
=Install Notes=<br />
<br />
==Video Drivers==<br />
Users have the choice between the open source [[ATI]] video driver or the closed source [[Catalyst]] video driver.<br />
<br />
In order to use the open source driver you must have at least kernel 2.6.38.<br />
<br />
The open source ATI driver has flawless performance (including suspend). [[Gnome 3]] works well with the open source ATI driver. <br />
<br />
The Catalyst drivers do offer better 3D performance but usually have various minor issues (such as suspend support). Please share your experience if you're using Catalyst with the x120e.<br />
<br />
==Wireless==<br />
The Thinkpad X120e can come with one of two wireless cards.<br />
*The Realtek BGN Wifi card currently is supported by [http://aur.archlinux.org/packages.php?ID=46797 rtl8192ce] from AUR.<br />
**The 2.6.38 kernel includes support for this card, but suffers from intermittent hard locks when associating with an access point. The AUR driver linked here does not suffer from this problem. (The Ubuntu folks seem to have the [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/769812 same issue] with the x120e and the module included in the kernel.)<br />
*The Broadcom ABGN Wifi card is currently supported by [http://aur.archlinux.org/packages.php?ID=19514 broadcom-wl] from AUR. See the [https://wiki.archlinux.org/index.php/Broadcom_wireless Broadcom wireless] wiki page for more info.<br />
<br />
==Audio==<br />
The kernel modules work, but the HDMI audio is the primary device (not the speaker). You can swap that:<br />
<br />
{{Command|cat ~/.asoundrc|output=<br />
pcm.!default {<br />
type hw<br />
card 1<br />
}<br />
<br />
ctl.!default {<br />
type hw <br />
card 1<br />
}<br />
}}<br />
<br />
Note: Alternatively, you can accomplish the same thing by configuring the snd-hda-intel module:<br />
<br />
{{Command|grep snd-hda-intel /etc/modprobe.d/modprobe.conf|output=options snd-hda-intel index=1}}<br />
<br />
By specifying index you no longer have to specify the default in .asoundrc<br />
<br />
==Input==<br />
===TrackPoint Scrolling (wheel emulation)===<br />
To enable scrolling with the TrackPoint while holding down the middle mouse button, create a new file /etc/X11/xorg.conf.d/20-thinkpad.conf with the following content:<br />
<br />
Section "InputClass"<br />
Identifier "Trackpoint Wheel Emulation"<br />
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device"<br />
MatchDevicePath "/dev/input/event*"<br />
Option "EmulateWheel" "true"<br />
Option "EmulateWheelButton" "2"<br />
Option "Emulate3Buttons" "false"<br />
Option "XAxisMapping" "6 7"<br />
Option "YAxisMapping" "4 5"<br />
EndSection<br />
<br />
There are more details about how this works on the [[Xorg#InputClasses|Xorg]] page.<br />
===Disabling the TrackPad===<br />
If you try to use your x120e lying down you will notice its very easy to hit the TrackPad buttons and invert the functionality of the other inputs(fun).<br />
<br />
To disable the buttons and pad add the following to /etc/X11/xorg.conf.d/20-thinkpad.conf:<br />
Section "InputDevice"<br />
Identifier "Synaptics Touchpad"<br />
Driver "synaptics"<br />
Option "SendCoreEvents" "true"<br />
Option "Device" "/dev/psaux"<br />
Option "Protocol" "auto-dev"<br />
Option "HorizScrollDelta" "0"<br />
Option "SHMConfig" "on"<br />
EndSection<br />
<br />
And install the synaptics driver from extra:<br />
# pacman -S xf86-input-synaptics<br />
<br />
You can now toggle the TrackPads functionality using the synclient utility:<br />
$ synclient TouchpadOff=0 ; enables<br />
$ synclient TouchpadOff=1 ; disables<br />
<br />
If you want this to be permanent add the option to your Xorg config:<br />
Option "TouchpadOff" "1"<br />
<br />
==Power Management==<br />
===Enable Thinkpad ACPI===<br />
To have the thinkpad_acpi module load everytime at bootup add it to MODULES=() in /etc/rc.conf<br />
<br />
This module allows you to see and control various aspects of your Thinkpad from /proc/acpi/ibm<br />
<br />
===Disable Bluetooth===<br />
{{Note| You must first have the thinkpad_acpi kernel module loaded}}<br />
To save some power you can disable Bluetooth:<br />
echo "disable" > /proc/acpi/ibm/bluetooth<br />
If you want to disable Bluetooth at every boot just add that line to /etc/rc.local<br />
<br />
===CPU Scaling===<br />
To enable dynamic [[CPU Frequency Scaling]] first add powernow-k8 to MODULES=() in /etc/rc.conf<br />
Next add the following to /etc/rc.local:<br />
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor<br />
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor<br />
If you wish to have the ondemand governor ignore niced (background) processes when deciding whether to increase CPU speed:<br />
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load<br />
<br />
===ATI Video card Powersaving===<br />
Under the opensource ATI video card driver you can control the clockspeed of the GPU.<br />
The recommended setting is:<br />
echo dynpm > /sys/class/drm/card0/device/power_method<br />
This enables dynamic frequency switching based off of GPU load.<br />
Further information on this topic can be found in [[ATI#Powersaving]].<br />
<br />
===SATA Power Policy===<br />
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy<br />
Will tell hard drive to minimize power use.<br />
<br />
===Sound card Powersaving===<br />
Because the sound card in the X120e isn't actually an Intel card (even though it uses the Intel HDA driver) I'm not sure if this actually does anything. Doesn't seem to cause any problems though.<br />
echo 1 > /sys/module/snd_hda_intel/parameters/power_save<br />
<br />
===CPU Undervolting===<br />
{{Warning|Undervolting can lead to instability and consequently data loss, only you are responsible if you break something}} <br />
The Fusion Processor can be undervolted with the PHC-K8 tool. See [[PHC]] for usage information. For the AMD Fusion you'll want to download [http://aur.archlinux.org/packages.php?ID=22953 phc-k8] from AUR.<br />
{{Note|In order to lower CPU power usage you must actually raise the PHC values. (somewhat counter-intuitive)}}<br />
"24 26 52" is what I have my E-350 set to. The three numbers represent 1600mhz, 1200mhz and 800mhz.<br />
{{Warning|The three values listed above are stable on MY processor. Due to variables during production, you're chip may be able to be undervolted more or LESS. Feel free to post the stable values that you reach to this wiki.}}<br />
<br />
===Fan Control===<br />
The X120e's fan spins constantly but luckily can be controlled by the user.<br />
{{Warning|Modify fan settings at your own risk, only you are responsible if you toast your laptop or your lap.}}<br />
{{Note|Even with undervolting the APU produces enough heat to have to occasionally run the fan even at idle.}}<br />
<br />
To enable manual fan control place the following into /etc/modprobe.d/modprobe.conf<br />
options thinkpad_acpi fan_control=1<br />
<br />
At this point the fan will still be safely under the system's control. You can either directly modify the values in /proc/acpi/ibm (NOT RECOMMENDED) or install a fan control daemon such as [[http://aur.archlinux.org/packages.php?ID=24359 thinkfan]].<br />
<br />
==External Resources==<br />
[http://www.thinkwiki.org/wiki/Category:X120e X120e on ThinkWiki]<br />
<br />
[http://www.linux-phc.org/forum/viewtopic.php?f=7&t=269 Undervolting the AMD Fusion with PHC-tool]</div>Thetooth