You are not logged in.

#1 2008-08-06 16:19:20

Flying Saxman
Member
From: Northern Hesse
Registered: 2007-02-26
Posts: 252

To the Thinkpad T61-Users out there: Pleeze Help me with two problems!

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!

Offline

#2 2008-08-06 16:48:37

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: To the Thinkpad T61-Users out there: Pleeze Help me with two problems!

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. smile

Offline

#3 2008-08-07 13:55:48

Flying Saxman
Member
From: Northern Hesse
Registered: 2007-02-26
Posts: 252

Re: To the Thinkpad T61-Users out there: Pleeze Help me with two problems!

@sigi: Sorry, but nope.

Offline

#4 2008-08-08 00:28:06

thebigbrainiac
Member
Registered: 2008-08-01
Posts: 1

Re: To the Thinkpad T61-Users out there: Pleeze Help me with two problems!

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

#5 2008-08-08 17:38:02

Flying Saxman
Member
From: Northern Hesse
Registered: 2007-02-26
Posts: 252

Re: To the Thinkpad T61-Users out there: Pleeze Help me with two problems!

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.

Offline

#6 2008-08-10 07:56:03

Flying Saxman
Member
From: Northern Hesse
Registered: 2007-02-26
Posts: 252

Re: To the Thinkpad T61-Users out there: Pleeze Help me with two problems!

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?

Offline

#7 2008-10-28 12:27:59

melcloud
Member
From: Melbourne
Registered: 2008-09-23
Posts: 3

Re: To the Thinkpad T61-Users out there: Pleeze Help me with two problems!

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

Board footer

Powered by FluxBB