You are not logged in.

#76 2010-10-24 07:32:01

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Hello guys,

as the asus_laptop module works pretty well there's not much need to use the lenovo-sl-laptop module except when want to control the fan. And this is what I need but not all the other things like hotkeys which lenovo-sl-laptop also provides.

Does someone of you have the knowledge to rewrite the module so that it's only support fan control?

That would be great.

Regards

Offline

#77 2010-10-24 08:17:15

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: Arch on a Thinkpad SL500

orschiro wrote:

The asus_laptop module works pretty well there's not much need to use the lenovo-sl-laptop module except when want to control the fan.

I thought the asus module didn't work well with the bluetooth module. Can anyone claim that bluetooth works well with asus_laptop including rfkill?


▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁

Offline

#78 2010-10-24 09:06:43

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Well currently I'm using only the asus_laptop module and my bluetooth works pretty well, but all I do with it is connecting my phone with my system so that might not prove that everything works.

Offline

#79 2010-10-24 09:16:05

Klepper
Member
From: Nürnberg, Germany
Registered: 2007-08-18
Posts: 21

Re: Arch on a Thinkpad SL500

It's not about bluetooth working or not but being able to switch bluetooth, wwan, wlan on and off. Via rfkill.
That's the reason I still use lenovo-sl-laptop. Although I haven't checked lately if this is supported now on asus-laptop

Last edited by Klepper (2010-10-24 09:16:45)

Offline

#80 2010-11-11 08:37:53

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Hello guys,

does someone of you use suspend and hibernation feature served by pm-utils?

I often have problems when restoring from hibernation/suspend. The screen then remains black or the laptop doesn't boot up again properly.

How did you configure pm-utils?

All I did except the normal configuration is that I added the resume hook, but that's all.

Regards

Offline

#81 2010-11-12 02:31:10

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: Arch on a Thinkpad SL500

Mine worked fine out of the box using the proc sys thing and with pm-utils. On the very rare occasion it hasn't suspended or resumed correctly (powered black screen and no activity) but it's probably the Nvidia driver crashing.


▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁

Offline

#82 2010-11-12 07:04:17

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Hello quantumphaze,

What do you mean by 'proc sys thing'?

My system is configured that way that it suspends when I close the lid. In case I open it again it happens exactly what you describe; black screen and no activity.

Offline

#83 2010-11-12 11:32:30

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: Arch on a Thinkpad SL500

Does it happen all the time? Try a random live CD and see if it is just your install of Arch that is broken.

It last happened to me months ago. It's even rarer than the Nvidia crash

By the way, does anyone also get an Nvidia crash that looks like this?
Image079.jpg


▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁

Offline

#84 2010-11-14 20:42:08

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

I own the one with an Intel card so it's perhaps a problem related to it.

I'll check this out.

Regards

Offline

#85 2011-08-18 02:29:28

peng
Member
Registered: 2011-08-18
Posts: 5

Re: Arch on a Thinkpad SL500

orschiro wrote:

Hello guys,

as the asus_laptop module works pretty well there's not much need to use the lenovo-sl-laptop module except when want to control the fan. And this is what I need but not all the other things like hotkeys which lenovo-sl-laptop also provides.

Does someone of you have the knowledge to rewrite the module so that it's only support fan control?

That would be great.

Regards

I have the same question.There's the  output of the "sensors" command:
acpitz-virtual-0
Adapter: Virtual device
temp1:        +70.0°C  (crit = +110.0°C)

Sometime temp1 up to almost 80°C  when I watching flash on  video website.  My thinkpad sl500 laptop dual-boot Windows XP and Fedora 14,  on Windows XP,  the location beneath my left hand when I typing is not so hot like on Fedora.

I found this script( http://www.thinkwiki.org/wiki/Fan_control_scripts), but it requires the ibm-acpi module.
Since thinkpad sl laptop now work with asus_laptop module, I don't know how to deal with it.

So, anybody provide some clue? Any input is greatly appreciated.

Excuse my lousy English, I've tried my best.

Regards

Last edited by peng (2011-08-18 02:30:49)

Offline

#86 2011-08-18 03:26:30

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Hi peng,

A  while ago I rewrote the module to get it working with the asus_laptop module.

http://robert.orzanna.de/2011/01/05/wor … -versions/

It still should work for you.

Regards

Last edited by orschiro (2011-08-18 09:09:56)

Offline

#87 2011-08-18 07:04:47

peng
Member
Registered: 2011-08-18
Posts: 5

Re: Arch on a Thinkpad SL500

orschiro wrote:

Hi peng,

I while ago I rewrote the module to get it working with the asus_laptop module.

http://robert.orzanna.de/2011/01/05/wor … -versions/

It still should work for you.

Regards

It works!!It works!!!

Thanks so much!!

You guys best!

I'd been in this trouble for such a long time.

because of my lousy English, I‘m afraid of asking for help. Finally, finally!

I'll post my processes later.

Thank you again!
Regards

Offline

#88 2011-08-18 09:09:34

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

You're welcome, glad to help you out.

Cheers

Offline

#89 2011-10-13 03:12:09

peng
Member
Registered: 2011-08-18
Posts: 5

Re: Arch on a Thinkpad SL500

Orschiro, I'm sorry I'm so late to tell you I'd made a mistake. The "lenovo-sl-laptop-adapted" seem doesn't work.
After I compile this http://robert.orzanna.de/wp-content/upl … ted.tar.gz, and run these commands:

$ echo 1 > /sys/devices/platform/lenovo-sl-laptop/hwmon/hwmon1/pwm1_enable
$ echo 70 > /sys/devices/platform/lenovo-sl-laptop/hwmon/hwmon1/pwm1

the CPU still up to 91C.
and then I run the command:

echo 0 > /sys/devices/platform/lenovo-sl-laptop/hwmon/hwmon1/pwm1_enable

the fan suddenly speed up, take the CPU down to like 74C, which just  the temp of CPU before I compile lenovo-sl-laptop-adapted




here is how i compile lenovo-sl-laptop module, may be there's something wrong in it.

tar zxvf /home/Alun/Downloads/lenovo-sl-laptop-adapted.tar.gz -C /usr/local/src   
cd lenovo-sl-laptop-adapted/
make
install -m 744 -D lenovo-sl-laptop.ko /lib/modules/`uname -r`/kernel/lenovo_sl_laptop/lenovo-sl-laptop.ko
depmod
modprobe lenovo-sl-laptop

then run command "lsmod |grep laptop",here is the output:
lenovo_sl_laptop        7698  0
asus_laptop              12301  0
sparse_keymap          2472  1 asus_laptop
rfkill                            13652  4 lenovo_sl_laptop,cfg80211,asus_laptop


Thank you for your work anyway. Sorry again for so late to find out.

Last edited by peng (2011-10-13 03:14:51)

Offline

#90 2011-10-13 03:24:44

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Hello peng,

I do not see anything wrong with it.

With the first command you set the fan speed to a fixed value of 70. Unfortunately that may be too slow for you as your CPU heats up too much. Therefore I recommend you to use a greater value, like 90.

When using echo 0 > ... you are resetting your fan back to an automatic adjustment. That is the reason why the fan speeds up and the CPU is cooled down to an appropriate value.

A while ago I created a package in the AUR. You may consider it to keep up with changes in the code.

http://aur.archlinux.org/packages.php?ID=52256

Regards

Last edited by orschiro (2011-10-13 03:25:18)

Offline

#91 2011-10-13 06:11:47

peng
Member
Registered: 2011-08-18
Posts: 5

Re: Arch on a Thinkpad SL500

Hello,orschiro.
I'm damn sure it works now. ^_^
When I set the fan speed to 200, I can feel the difference:  fan speed up making noise. I kind of love the noise, I got to tell you. ^_^

Now the temp remain like:
acpitz-virtual-0
Adapter: Virtual device
temp1:        +68.0°C  (crit = +110.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +66.0°C  (high = +100.0°C, crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:       +66.0°C  (high = +100.0°C, crit = +100.0°C)


Excellent job you'd been done. Truly honor!



And now we need a fan control scripts to adjust the fan speed according the  temperature. Like:
http://www.thinkwiki.org/wiki/ACPI_fan_control_script

Regards

Offline

#92 2011-10-13 10:59:28

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Hello peng,

Glad to hear it's working.

As for the automatic fan control: I'm not a real bash scripter, however, I put the following code together for you. Save it as fancontrol.sh somewhere on your system, preferably in $home, and make it executable. Be aware that you need to have acpi installed.

#!/bin/bash

FAN=/sys/devices/platform/lenovo-sl-laptop/hwmon/hwmon0/pwm1
TEMP="acpi -t | cut -c16-17"

while true
do

	if [[ "$TEMP" > "50" && "$TEMP" < "60" ]] 
	then 
		echo 80 > $FAN
		sleep 20

	elif [[ "$TEMP" > "60" && "$TEMP" < "70" ]] 
	then
		echo 100 > $FAN
		sleep 20
	
	elif [[ "$TEMP" > "80" && "$TEMP" < "90" ]] 
	then
		echo 200 > $FAN
		sleep 20

	elif [ "$TEMP" < "50" ] 
	then
		echo 70 > $FAN
		sleep 20
	fi

done

After that, add the path to the script to your /etc/rc.local.

/path/to/fancontrol.sh

You may have to adjust the temperature intervals as well as the fan speed to suit your needs.

Regards

Last edited by orschiro (2011-10-13 11:01:31)

Offline

#93 2011-10-14 00:23:53

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: Arch on a Thinkpad SL500

orschiro wrote:

I often have problems when restoring from hibernation/suspend. The screen then remains black or the laptop doesn't boot up again properly.

This is perfectly normal, as these functions are broken every few months in one way or another. Problem is in periods when it's not broken you still can not trust it because you never know when you will have to force a shutdown after a failed wakeup and risk corrupting the file-system and your valuable data. Most often broken is the Intel graphics driver.


You need to install an RTFM interface.

Offline

#94 2012-01-20 06:58:33

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Hello guys,

I would be interested in your actual power consumption that you achieve under normal task load.

Measured with powertop2 I get my consumption down to 15.8 W.

I'm using the following power saving settings:

[/home/robert]$ cat /etc/pm/power.d/00powersave 
#!/bin/sh
# A script to enable laptop power saving features for #! & Debian GNU+linux.
# http://crunchbanglinux.org/forums/topic/11954

# List of modules to unload, space seperated. Edit depending on your hardware and preferences.
modlist=""
# Bus list for runtime pm. Probably shouldn't touch this.
buslist="pci spi i2c"

case "$1" in
    true)
        # Enable some power saving settings while on battery
	# Set governor to powersave level for both CPUs
	echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
	echo "powersave" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

	# Set brightness to a minimum level
	echo "5" > /sys/class/backlight/acpi_video0/brightness
	
	# Other power management settings
	echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
	echo 0 > /proc/sys/kernel/nmi_watchdog		

        # Enable laptop mode
        echo 5 > /proc/sys/vm/laptop_mode

        # Less VM disk activity. Suggested by powertop
        echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

        # Intel power saving
        echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller
        echo 1 > /sys/module/snd_hda_intel/parameters/power_save

        # USB powersaving
        for i in /sys/bus/usb/devices/*/power/autosuspend; do
            echo 1 > $i
        done

        # SATA power saving
        for i in /sys/class/scsi_host/host*/link_power_management_policy; do
            echo min_power > $i
        done

        # Disable hardware modules to save power
        for mod in $modlist; do
            grep $mod /proc/modules >/dev/null || continue
            modprobe -r $mod 2>/dev/null
        done

       # Enable runtime power management. Suggested by powertop.
        for bus in $buslist; do
            for i in /sys/bus/$bus/devices/*/power/control; do
                echo auto > $i
            done
        done
    ;;
    false)
        # Return settings to default on AC power
	# Set governor to performance level for both CPUs
	echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
	echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

	# Set brightness to maximum
	echo "15" > /sys/class/backlight/acpi_video0/brightness

	# Other power management settings
	echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy
	echo 1 > /proc/sys/kernel/nmi_watchdog

        echo 0 > /proc/sys/vm/laptop_mode
        echo 500 > /proc/sys/vm/dirty_writeback_centisecs
        echo N > /sys/module/snd_hda_intel/parameters/power_save_controller
        echo 0 > /sys/module/snd_hda_intel/parameters/power_save
        for i in /sys/bus/usb/devices/*/power/autosuspend; do
            echo 2 > $i
        done
        for i in /sys/class/scsi_host/host*/link_power_management_policy
            do echo max_performance > $i
        done
        for mod in $modlist; do
            if ! lsmod | grep $mod; then
                modprobe $mod 2>/dev/null
            fi
        done
        for bus in $buslist; do
            for i in /sys/bus/$bus/devices/*/power/control; do
                echo on > $i
            done
        done
    ;;
esac

exit 0

Regards

Offline

#95 2012-02-18 21:19:34

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: Arch on a Thinkpad SL500

orschiro: ca. 18W (not sure about accuracy of measurement), not using all of your powersaving options

Another inquiry: Can you still mute your alsa mixers? The mute option in alsamixer is gone and amixer cannot mute any mixers neither!

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
Card: HDA Intel
Chip: Intel Cantiga HDMI

Offline

#96 2012-02-19 00:50:03

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: Arch on a Thinkpad SL500

Powertop no longer shows me the power usage on my SL500. I can also confirm the odd behaviour of ALSA observed by jakobm.


▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁

Offline

#97 2012-02-19 09:13:46

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

Another inquiry: Can you still mute your alsa mixers? The mute option in alsamixer is gone and amixer cannot mute any mixers neither!

What commands did you use?

Normally amixer -q set PCM mute should do the trick. Unfortunately I cannot test it right now because I upgraded from my SL500 to a nice and small X200t. smile

Powertop no longer shows me the power usage on my SL500. I can also confirm the odd behaviour of ALSA observed by jakobm.

The problem with powertop not working is related to the latest changes of the kernel and acpi. You should try powertop2 instead which is a complete remake and should show you the correct power consumption.

Regards

Offline

#98 2012-02-19 12:24:23

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: Arch on a Thinkpad SL500

orschiro wrote:

What commands did you use?

% amixer -D hw:0 set Master mute
amixer: Invalid command!
% amixer -D hw:0 set PCM mute
amixer: Invalid command!

Note: hw:0 is the soundcard in question -- I am using pulse as a work-around at the moment so I need to specify the card explicitly.

screenshot of alsamixer

Offline

#99 2012-02-19 12:28:58

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Arch on a Thinkpad SL500

What if you specify pulse directly then?

amixer -D pulse set Master mute

Offline

#100 2012-02-20 09:44:10

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: Arch on a Thinkpad SL500

Apologies if I was not clear enough: I use pulse which provides me with a option to mute (the pulse mixers -- which have mute switches) as a workaround. I want to go back to a pulse-free audio configuration.

Sadly I do not remember which update caused the missing mute-option in alsa. I guess this is kernel related rather than alsa-*?

Offline

Board footer

Powered by FluxBB