You are not logged in.
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
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
Offline
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
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
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
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
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?
▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁
Offline
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
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
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
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
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
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
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
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
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
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
Powertop no longer shows me the power usage on my SL500. I can also confirm the odd behaviour of ALSA observed by jakobm.
▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁
Offline
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.
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
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.
Offline
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