https://www.thinkwiki.org/w/api.php?action=feedcontributions&user=Berndtnm&feedformat=atomThinkWiki - User contributions [en]2024-03-28T16:04:29ZUser contributionsMediaWiki 1.31.12https://www.thinkwiki.org/w/index.php?title=Talk:SMAPI_support_for_Linux&diff=12985Talk:SMAPI support for Linux2005-12-06T22:34:36Z<p>Berndtnm: </p>
<hr />
<div>Great, great work! Really! This completely rocks. I just stopped my battery from charging at 77% and restarted charging a bit later, no problems whatsoever. BTW, this is on kernel 2.6.14.3.<br />
<br />
--[[User:Spiney|spiney]] 21:25, 5 Dec 2005 (CET)<br />
----<br />
None of the fuctions is working on my T40, kernel 2.6.14-mm2.<br />
<br />
--[[User:Lammic|lammic]], 2005.12.05<br />
<br />
Works for me on a T41 running 2.6.12-10-686 (Ubuntu 5.10).<br />
<br />
--[[User:berndtnm|berndtnm]], 2005.12.06</div>Berndtnmhttps://www.thinkwiki.org/w/index.php?title=Talk:SMAPI_support_for_Linux&diff=12981Talk:SMAPI support for Linux2005-12-06T22:34:00Z<p>Berndtnm: </p>
<hr />
<div>Great, great work! Really! This completely rocks. I just stopped my battery from charging at 77% and restarted charging a bit later, no problems whatsoever. BTW, this is on kernel 2.6.14.3.<br />
<br />
--[[User:Spiney|spiney]] 21:25, 5 Dec 2005 (CET)<br />
----<br />
None of the fuctions is working on my T40, kernel 2.6.14-mm2.<br />
<br />
--[[User:Lammic|lammic]], 2005.12.05<br />
<br />
Works for me on a T41 running 2.6.12-10-686 (Ubuntu 5.10).</div>Berndtnmhttps://www.thinkwiki.org/w/index.php?title=How_to_make_use_of_Power_Management_features&diff=823How to make use of Power Management features2004-11-20T23:27:59Z<p>Berndtnm: /* using a hibernation partition */</p>
<hr />
<div>==APM==<br />
<br />
===general===<br />
You need to enable the APM Power Management support in the kernel and install the [[apmd]] to handle the events triggered by the kernel driver.<br />
The configuration for what to do at the different events is done in the proxy script which is usually found in /etc/apmd_proxy.<br />
See <tt>man apmd</tt> for further information on this.<br />
<br />
===Screen blanking (Standby)===<br />
Todo...<br />
<br />
===Suspend to RAM (Sleep)===<br />
Todo...<br />
<br />
===Suspend to disk (Hibernate)===<br />
The Phoenix BIOS allows you two ways to hibernate with APM: using a special partition or using a hibernation file on a dos type partition.<br />
<br />
====using a hibernation partition====<br />
The partition to be used for hibernation must be a primary partition that is at least as big as your laptop's memory including its video ram. First set the partition type of this partition to a0 (IBM Thinkpad hibernation) with fdisk, and then use [[tphdisk]] to write a hibernation file directly to this partition.<br />
<br />
Only follow these instructions, if you understand them. You will overwrite a partition on your hard disk and might loose valuable data - consider yourself warned. For example, assume that /dev/hda2 is the partition that is to be converted to a hibernation partition. Become root and type '''/sbin/fdisk /dev/hda'''. At the fdisk prompt type '''t''' to change the partition type, then type '''2''' to indicate that you want to change the type of partition 2, and then enter the partition type: '''a0'''. Now type '''w''' to write the partition table back to disk and exit. After that use [[tphdisk]] to initialize the hibernation partition. First estimate the size of your laptop's memory (main and video). For the sake of this example, let us assume that the main memory is 1024 MB and the video card has 128 MB of memory. Then the command '''tphdisk 1152 > /dev/hda2''' will initialize the hibernation partition. Note that this will only work if the partition is big enough. After a reboot, Fn+F12 will work as expected.<br />
<br />
I have successfully used this method on a T40 (2373GEU) that runs Fedora Core 3.<br />
<br />
====using a hibernation file on a dos partition====<br />
The partition to put the file on must be a dos or vfat partition. Fat32 formatted partitions have been reported successful as well as Fat16 formatted ones. The file is either created with phdisk.exe, if you happen to have a floppy drive and a bootable dos floppy disk that you can start it from.<br />
Under Linux [[tphdisk]] will do this job for you.<br />
<br />
Todo... (how to create the file, partition size)<br />
<br />
==ACPI==<br />
<br />
===general===<br />
Todo...<br />
<br />
===Screen blanking (Standby)===<br />
Todo...<br />
<br />
===Suspend to RAM (Sleep)===<br />
ACPI Sleep and suspend-to-ram with recent 2.6.x kernels usually works fine, too.<br />
<br />
Todo...<br />
<br />
===Suspend to disk (Hibernate)===<br />
There are two drivers for this available:<br />
* swsusp, which is in the kernel and<br />
* [http://developer.berlios.de/projects/softwaresuspend/ SoftwareSuspend2] which is more feature rich, but not yet in the kernel, so you have to patch it in yourself<br />
Both are reported to work fine as long as you use open-source graphic drivers. A comparison of the features can be found on [http://softwaresuspend.berlios.de/features.html this page].<br />
<br />
====using swsusp====<br />
Todo...<br />
<br />
====using SoftwareSuspend2====<br />
Todo...<br />
<br />
==Dynamic Frequency Scaling (SpeedStep)==<br />
<br />
===configuring the kernel===<br />
<br />
====2.4 kernels====<br />
Todo...<br />
<br />
====2.6 kernels====<br />
Todo...<br />
<br />
If you have a Coppermine-piix-smi based Thinkpads like from the A2x, X2x and T2x series you might want to look at [[How to get SpeedStep working on Coppermine-piix4-smi based Thinkpads | this page]].<br />
<br />
===configuring SpeedStep daemons===<br />
*[[How to configure cpufreqd | cpufreqd]]<br />
*[[Hot to configure powersaved | powersaved]]<br />
<br />
==Harddisk Power Management==<br />
Todo...<br />
<br />
===enabling the harddisks power management features===<br />
<br />
#!/bin/sh<br />
# I' using this on FC2 and FC3<br />
# cpu throttling off as FC does thisout-of-the-box<br />
# turning swap off is only for those that feel comfortable<br />
# doing something this nasty.<br />
#<br />
# pcfe, 2004-11-15<br />
<br />
# cpu throttling<br />
# cat /proc/acpi/processor/CPU0/throttling for more info<br />
ACAD_THR=0<br />
BATT_THR=2<br />
<br />
# spindown time for HD (man hdparm for valid values)<br />
# I prefer 2 hours for acad and 2 min for batt<br />
ACAD_HD=244<br />
BATT_HD=24<br />
<br />
# Power management level<br />
# 255 (off) on AC<br />
# 128 (medium) on batt<br />
# lowered to 32, pcfe, 2004-06-23<br />
# upped to 64, pcfe, 2004-07-14<br />
# upped to 96, pcfe, 2004-10-20<br />
ACAD_PM=255<br />
BATT_PM=96<br />
<br />
# ac/battery event handler<br />
<br />
status=`awk '/^state: / { print $2 }' /proc/acpi/ac_adapter/AC/state`<br />
<br />
case $status in<br />
"on-line")<br />
logger "Running /sbin/laptop_mode stop"<br />
/sbin/laptop_mode stop<br />
logger "Setting HD spindown for AC mode with hdparm -S $ACAD_HD /dev/hda."<br />
/sbin/hdparm -S $ACAD_HD /dev/hda > /dev/null 2>&1<br />
logger "Setting HD powersaving for AC mode with hdparm -B $ACAD_PM /dev/hda."<br />
/sbin/hdparm -B $ACAD_PM /dev/hda > /dev/null 2>&1<br />
#logger "Turning on swap."<br />
#/sbin/swapon -a<br />
#echo -n $ACAD_CPU:$ACAD_THR > /proc/acpi/processor/CPU0/limit<br />
exit 0<br />
;;<br />
"off-line")<br />
#logger "Turning off swap."<br />
#/sbin/swapoff -a<br />
logger "Running /sbin/laptop_mode start"<br />
/sbin/laptop_mode start<br />
logger "Setting HD spindown for battery mode with hdparm -S $BATT_HD /dev/hda."<br />
/sbin/hdparm -S $BATT_HD /dev/hda > /dev/null 2>&1<br />
logger "Setting HD powersaving for battery mode with hdparm -B $BATT_PM /dev/hda."<br />
/sbin/hdparm -B $BATT_PM /dev/hda > /dev/null 2>&1<br />
#echo -n $BATT_CPU:$BATT_THR > /proc/acpi/processor/CPU0/limit<br />
exit 0<br />
;;<br />
esac<br />
<br />
===Laptop-mode===<br />
Todo...<br />
<br />
==DynamicClocks in the Radeon Xorg driver==<br />
The xorg X server have support for a power saving feature from ATI called PowerPlay. Xorg calls this feature DynamicClocks. It can be enabled in the server by adding '''Option "DynamicClocks" "on"''' in the '''Device''' section in /etc/X11/xorg.conf<br />
<br />
Section "Device"<br />
Identifier "Videocard0"<br />
Driver "radeon"<br />
VendorName "IBM Thinkpad"<br />
BoardName "ATI Radeon Mobility M9"<br />
'''Option "DynamicClocks" "on"'''<br />
EndSection<br />
<br />
<br />
With this option enabled, the X11 server should print (/var/log/Xorg.0.log):<br />
<br />
(**) RADEON(0): Option "DynamicClocks" "on"<br />
(II) RADEON(0): Dynamic Clock Scaling Enabled<br />
<br />
http://www.ati.com/products/pdf/powerplaywp2.pdf<br />
<br />
<br />
==other Hardware==<br />
Todo...(if any - other ways of saving power and such)</div>Berndtnmhttps://www.thinkwiki.org/w/index.php?title=Template:Industry_News&diff=909Template:Industry News2004-11-20T22:02:35Z<p>Berndtnm: oops, wrong date</p>
<hr />
<div>09.11.2004: New [[fglrx]] driver version 3.14.6 <br/><br />
26.09.2004: [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-RECALL IBM recalls 56 Watt Thinkpad AC Adaptors]</div>Berndtnmhttps://www.thinkwiki.org/w/index.php?title=Template:Industry_News&diff=821Template:Industry News2004-11-20T22:01:36Z<p>Berndtnm: new fglrx version</p>
<hr />
<div>04.11.2004: New [[fglrx]] driver version 3.14.6 <br/><br />
26.09.2004: [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-RECALL IBM recalls 56 Watt Thinkpad AC Adaptors]</div>Berndtnmhttps://www.thinkwiki.org/w/index.php?title=Fglrx&diff=1083Fglrx2004-11-20T21:51:54Z<p>Berndtnm: /* Status */</p>
<hr />
<div>== ATI drivers for Linux ==<br />
Linux ATI driver for Radeon, FireGL and Mobility boards<br />
<br />
How much is the speed gain versus the opensource drivers?<br />
<br />
=== Project Homepage / Availability ===<br />
http://www.ati.com/support/drivers/linux/radeon-linux.html<br />
<br />
=== Status ===<br />
Current version: 3.14.6<br />
<br />
=== Packages ===<br />
*[[:Category:Debian | Debian]] Packages: http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html<br />
*[[:Category:SuSE | SuSE]] Packages: ftp://ftp.suse.com/pub/suse/i386/supplementary/X/ATI/<br />
<br />
=== Useful links === <br />
* [http://www.rage3d.com/content/articles/atilinuxhowto/ ATI Radeon Linux How-To]<br />
<br />
[[Category:Drivers]] [[Category:Debian]] [[Category:SuSE]]</div>Berndtnm