You are not logged in.
Hi!
I've got two problems with my almost brand new Thinkpad T61:
1.) I do not get the extra-buttons working (except for the three sound-buttons, backward/forward, play, pause, previous and next). How did you manage that? The only button-features I'm missing are brightness up/down and switching between internal/external display
2.) I use acpid for suspending on lid-close with the following code added to /etc/acpi/handler.sh:
if [[ `cat /proc/acpi/button/lid/LID/state | tr -s " " | cut -d" " -f2` = "closed" ]]
then
pm-suspend
fi
It works, except that W-Lan does not work anymore after it. Restarting /etc/rc.d/net-profiles does not work and switching hardware-switch off/on does not work either.
3.) (OK, I lied in the subject...): To get W-LAN working on normal bootup I have to switch the hardware-switch off and on again and then restart /etc/rc.d/net-profiles. I have to do both, or it won't work!
now with 80% more sax-appeal!
"I hacked the Phrak, and all I got was this lousy signature"
Offline
To 2 and/or 3: Does removing the wlan module with rmmod and loading it again with modprobe help too?
Haven't been here in a while. Still rocking Arch.
Offline
@sigi: Sorry, but nope.
now with 80% more sax-appeal!
"I hacked the Phrak, and all I got was this lousy signature"
Offline
Part 1:
First of all, the ThinkWiki website is a great website for various things on the thinkpad. I'm not sure exactly what special buttons you are interested in using, but there is a general guide to special buttons on the thinkpad at http://www.thinkwiki.org/wiki/How_to_ge … ys_to_work
My brightness up/down worked right out of the box on a new T61p, and I haven't had a chance to try switching displays.
For part 2, I have no experience and no insight.
Part 3:
I also had some trouble with automating the network as well. I have the iwl4965 wireless card, and with the driver installed, I had no trouble with getting the kernel to detect and take care of everything. I thought I had everything set up in /etc/rc.conf for the network daemon to work, but something didn't work, and it timed out. All I needed to do to make it work was dhcpcd wlan0 -k to kill the dhcp client, iwconfig with my settings, and restart the dhcp client.
I eventually went with netcfg with autoconfigure and all the wireless networks I encounter with their own profiles. The guide at http://wiki.archlinux.org/index.php/Network_Profiles worked for me.
Hope that helps, and good luck!
Offline
Part1: I came a little bit closer to the solution: The brightness is controlled by /proc/acpi/video/VID1/LCD0/brightness but the acpi-events only write to /proc/acpi/video/VID/LCD0/brightness. Unfortunately I do not know, how to solve this.
I already looked at thinkwiki, did not mention it, as I did not have much time the evening I was writing the OP.
Part2+3: I forgot to mention that I use(d) netcfg. Anyway I just found out that it just works, if I use the normal network-daemon. I'll try networkmanager later, as this laptop was thought for mobile use and so different networks will be used at a chance of 100%. Anyway I find it kind of weird that it just works with network (after booting and after resume (after resume I have to restart the daemon but that's all, no hardware-switch-switching etc.) but not with net-profiles.
now with 80% more sax-appeal!
"I hacked the Phrak, and all I got was this lousy signature"
Offline
Updates:
2+3: OK, now use networkmanager for my networks and everything works fine, not even restarting the daemon, it instantly tries to reconnect after suspend. So this part is solved. Networkmanager even seems to fit my need better than netcfg.
1: I still do not know, how to solve this little problem. Making a symlink from /proc/acpi/video/VID/LCD0/brightness to /proc/acpi/video/VID1/LCD0/brightness does not work, as the file already exists and cannot be deleted. Any other ideas? Probably another not so "dirty" idea?
now with 80% more sax-appeal!
"I hacked the Phrak, and all I got was this lousy signature"
Offline
The following handler.sh may do the trick. It works here (at least I can switch off bluetooth by FN+ f5). put it in /etc/acpi/ and don't forget to backup your original one.
Regards
#!/bin/sh
# Default acpi script that takes an entry for all actions
# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
# modify it to not use /sys
set $*
case "$1" in
ibm/hotkey)
case "$2" in
HKEY)
case "$4" in
00001002) # Lock screen
xscreensaver-command -lock
;;
00001003) # swithing display off
xset dpms force off
;;
00001004) # Suspend to RAM
/usr/sbin/pm-suspend
;;
00001005) # Switch Bluetooth
if [ "$(grep "status.*enabled" /proc/acpi/ibm/bluetooth)" ]; then
echo "disable" > /proc/acpi/ibm/bluetooth
else
echo "enable" > /proc/acpi/ibm/bluetooth
fi
;;
00001007) # Toggle external display
if [ "$(xrandr -q | grep "VGA connected")" ]; then
if [ "$(xrandr -q | grep "VGA connected [0-9]")" ]; then
xrandr --output VGA --off
else
xrandr --output VGA --auto
fi
else
xrandr --output VGA --off
fi
;;
#00001008) # Toggle Trackpoint/Touchpad
# ;;
#00001009) # Eject from dock
# ;;
0000100c) # Hibernate
/usr/sbin/pm-hibernate
;;
#00001014) # Toggle zoom
# ;;
#00001018) # ThinkVantage button
# ;;
esac
;;
esac
;;
button/lid)
case "$2" in
LID)
case "$3" in
00000080) # Lid opened/closed
grep open /proc/acpi/button/lid/LID/state || hibernate -F /etc/hibernate/ususpend-ram.conf
;;
esac
;;
esac
;;
ac_adapter)
case "$2" in
AC)
case "$4" in
00000001) # AC plugged
echo -n performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
;;
00000000) # AC unplugged
echo -n ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
;;
esac
;;
esac
;;
video)
case "$2" in
LCD0)
case "$3" in
00000086) # Brightness up
brightness +
;;
00000087) # Brightness down
brightness -
;;
esac
;;
esac
;;
esac
If Sunday comes, will Monday be far behind?
Offline