LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   A new Slackware 12.2 install - a few niggly issues (http://www.linuxquestions.org/questions/slackware-14/a-new-slackware-12-2-install-a-few-niggly-issues-690754/)

statguy 12-15-2008 01:39 PM

A new Slackware 12.2 install - T60 Touchpad and hotkeys not working
 
Thanks to the information provided in an earlier thread I posted, I bit the bullet an installed 12.2 on my ThinkPad T60.

I have been installing extra bits of software. BTW, SlackBuilds.org is amazing. What a great resource.

There are a few things I would appreciate some pointers on. I have done some searching here, but often I don't know what the most appropriate search terms are, so these are probably answered somewhere.

First, when in KDE, I seem to have lost my virtual terminals. Ctrl-Alt_F1 gets me to the "Console" but it does not respond to key strokes.

Second, how can I figure out if ACPI stuff is working correctly on this laptop and how do I get the Fn-key combinations working right?

Third is the TouchPad. I can move the mouse with it OK, but tapping and scrolling doesn't work. In /etc/modprobe.d/psmouse I have the options line commented out. My xorg.conf has the Load "synaptics" statement and I have added a section (from another thread) as follows.

Code:

Section "InputDevice"
        Identifier "Synaptics Touchpad"
        Driver "synaptics"
        Option "Protocol" "auto-dev"
        Option "Device" "/dev/psaux"
        Option "ZAxisMapping" "4 5 6 7"
        # Option "SendCoreEvents" "true"
        # Option "LeftEdge" "1700"
        # Option "RightEdge" "5300"
        # Option "TopEdge" "1700"
        # Option "BottomEdge" "4200"
        # Option "FingerLow" "25"
        # Option "FingerHigh" "30"
        # Option "MaxTapTime" "180"
        # Option "MaxTapMove" "220"
        # Option "VertScrollDelta" "100"
        # Option "MinSpeed" "0.09"
        # Option "MaxSpeed" "0.18"
        # Option "AccelFactor" "0.0015"
        # Option "SHMConfig" "on"
        # Option "Repeater" "/dev/ps2mouse"
        # Option "LTCornerButton" "6"
        # Option "RTCornerButton" "7"
        # Option "LockedDrags" "on"
        # Option "VertEdgeScroll" "on"
        # Option "HorizEdgeScroll" "on"
        # Option "EmulateMidButtonTime" "250"
EndSection

I have re-booted, and still no joy.

Thanks in advance.

kfoster23 12-15-2008 02:49 PM

Ctrl-Alt_F1 will get you to the X11 message console if you are in X11. Try Ctrl-Alt-F2.

statguy 12-15-2008 05:45 PM

Quote:

Originally Posted by kfoster23 (Post 3376547)
Ctrl-Alt_F1 will get you to the X11 message console if you are in X11. Try Ctrl-Alt-F2.

Ctrl-Alt-F2 gives me a blank screen with a blinking cursor.

mRgOBLIN 12-15-2008 06:05 PM

If in runlevel 4 there is a VT on Ctrl-Alt-F6

statguy 12-15-2008 06:37 PM

Quote:

Originally Posted by mRgOBLIN (Post 3376709)
If in runlevel 4 there is a VT on Ctrl-Alt-F6

Perfect. I just didn't try enough TTY sessions.

One down, two to go. :)

vbisis 12-16-2008 12:07 AM

Have a look at http://tuxmobil.org/ibm.html

There are lot of descriptions about how to install linux on that notebook. There are not specially for slackware, but some are for linux in general, so you should probably find something for your problems

statguy 12-16-2008 07:58 AM

Thanks vbisis, I have started looking through those.

BTW, I don't think I mentioned it before, but this was a full install of 12.2. I re-formatted the partition containing my previous OS to make sure no SuSE files were left hanging around.

I have tried one other mod on xorg.conf but the touchpad still does not respond to tapping/scrolling.

As for the Fn-keys, the ACPI system (the thinkpad_acpi package is installed) appears to be receiving the key codes but does nothing with them

Code:

# acpi_listen
ibm/hotkey HKEY 00000080 00001002
ibm/hotkey HKEY 00000080 00001003
ibm/hotkey HKEY 00000080 00001004
ibm/hotkey HKEY 00000080 00001005
ibm/hotkey HKEY 00000080 00001006
ibm/hotkey HKEY 00000080 00001007
ibm/hotkey HKEY 00000080 00001008
ibm/hotkey HKEY 00000080 00001009
button/lid LID 00000080 00000001
button/lid LID 00000080 00000002

The last two codes are from closing the lid and opening the lid. I like to have the screen lock when I close the lid. Other than generating a code, lid closure had no effect.

In any case, the most important key to have working is the one (Fn-F7 for me) that switches between internal and external monitors.

statguy 12-16-2008 03:27 PM

OK, this is starting to drive me crazy. First, I have tried different stuff with the xorg.conf and nothing gets the touch-pad fully functional (it worked fine under SuSE so I now it should be possible under Slack). Here is my entire xorg.conf

Code:

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/share/X11/rgb"
        ModulePath  "/usr/lib/xorg/modules"
        FontPath    "/usr/share/fonts/TTF"
        FontPath    "/usr/share/fonts/OTF"
        FontPath    "/usr/share/fonts/Type1"
        FontPath    "/usr/share/fonts/misc"
        FontPath    "/usr/share/fonts/75dpi/:unscaled"
EndSection

Section "Module"
        Load  "GLcore"
        Load  "xtrap"
        Load  "dri"
        Load  "glx"
        Load  "record"
        Load  "dbe"
        Load  "extmod"
        Load  "type1"
        Load  "freetype"
        Load  "synaptics"
EndSection

Section "ServerFlags"
        Option            "Xinerama" "off"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option            "XkbModel" "thinkpad60"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
        Identifier "Synaptics Touchpad"
        Driver "synaptics"
        Option "Protocol" "auto-dev"
        Option "SendCoreEvents" "true"
        Option "Device" "/dev/input/mouse2"
        #Option "Device" "/dev/psaux"
        #Option "HorizScrollDelta" "0"
        Option "LeftEdge" "1700"
        Option "RightEdge" "5300"
        Option "TopEdge" "1700"
        Option "BottomEdge" "4200"
        Option "FingerLow" "25"
        Option "FingerHigh" "30"
        Option "MaxTapTime" "180"
        Option "MaxTapMove" "220"
        Option "VertScrollDelta" "100"
        Option "HorizScrollDelta" "100"
        Option "MinSpeed" "0.09"
        Option "MaxSpeed" "0.18"
        Option "AccelFactor" "0.0015"
        Option "SHMConfig" "on"
        Option "TapButton1" "1"
        Option "TapButton2" "2"
        Option "TapButton3" "3"
EndSection

Section "Monitor"

        #DisplaySize          330  210        # mm
        Identifier  "Monitor0"
        VendorName  "IBM"
        ModelName    "2887"
EndSection

Section "Monitor"
        Identifier  "aticonfig-Monitor[0]-0"
        Option            "VendorName" "ATI Proprietary Driver"
        Option            "ModelName" "Generic Autodetecting Monitor"
        Option            "DPMS" "true"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option    "NoAccel"                    # [<bool>]
        #Option    "SWcursor"                  # [<bool>]
        #Option    "Dac6Bit"                    # [<bool>]
        #Option    "Dac8Bit"                    # [<bool>]
        #Option    "BusType"                    # [<str>]
        #Option    "CPPIOMode"                  # [<bool>]
        #Option    "CPusecTimeout"              # <i>
        #Option    "AGPMode"                    # <i>
        #Option    "AGPFastWrite"              # [<bool>]
        #Option    "AGPSize"                    # <i>
        #Option    "GARTSize"                  # <i>
        #Option    "RingSize"                  # <i>
        #Option    "BufferSize"                # <i>
        #Option    "EnableDepthMoves"          # [<bool>]
        #Option    "EnablePageFlip"            # [<bool>]
        #Option    "NoBackBuffer"              # [<bool>]
        #Option    "DMAForXv"                  # [<bool>]
        #Option    "FBTexPercent"              # <i>
        #Option    "DepthBits"                  # <i>
        #Option    "PCIAPERSize"                # <i>
        #Option    "AccelDFS"                  # [<bool>]
        #Option    "DDCMode"                    # [<bool>]
        #Option    "IgnoreEDID"                # [<bool>]
        #Option    "DisplayPriority"            # [<str>]
        #Option    "PanelSize"                  # [<str>]
        #Option    "ForceMinDotClock"          # <freq>
        #Option    "ColorTiling"                # [<bool>]
        #Option    "VideoKey"                  # <i>
        #Option    "RageTheatreCrystal"        # <i>
        #Option    "RageTheatreTunerPort"        # <i>
        #Option    "RageTheatreCompositePort"        # <i>
        #Option    "RageTheatreSVideoPort"        # <i>
        #Option    "TunerType"                  # <i>
        #Option    "RageTheatreMicrocPath"        # <str>
        #Option    "RageTheatreMicrocType"        # <str>
        #Option    "ScalerWidth"                # <i>
        #Option    "RenderAccel"                # [<bool>]
        #Option    "SubPixelOrder"              # [<str>]
        #Option    "ShowCache"                  # [<bool>]
        #Option    "DynamicClocks"              # [<bool>]
        #Option    "VGAAccess"                  # [<bool>]
        #Option    "ReverseDDC"                # [<bool>]
        #Option    "LVDSProbePLL"              # [<bool>]
        #Option    "AccelMethod"                # <str>
        #Option    "DRI"                        # [<bool>]
        #Option    "ConnectorTable"            # <str>
        #Option    "DefaultConnectorTable"        # [<bool>]
        #Option    "DefaultTMDSPLL"            # [<bool>]
        #Option    "TVDACLoadDetect"            # [<bool>]
        #Option    "ForceTVOut"                # [<bool>]
        #Option    "TVStandard"                # <str>
        #Option    "IgnoreLidStatus"            # [<bool>]
        #Option    "DefaultTVDACAdj"            # [<bool>]
        #Option    "Int10"                      # [<bool>]
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName  "Radeon Mobility X1400"
        BusID      "PCI:1:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID      "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    1
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    4
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    8
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    15
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    16
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device    "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection

Just looking back at that, the "Driver radeon" line looks a bit suspicious, but I don't know if that could be related.

Next, for the ACPI.

Code:

$ lsmod | grep think
thinkpad_acpi          61184  0
rfkill                12184  2 thinkpad_acpi
led_class              7684  1 thinkpad_acpi
nvram                  11660  1 thinkpad_acpi
hwmon                  6300  2 thinkpad_acpi,thermal_sys

Code:

$ ls -l /proc/acpi/
total 0
dr-xr-xr-x 3 root root 0 2008-12-16 16:21 ac_adapter/
dr-xr-xr-x 3 root root 0 2008-12-16 16:21 battery/
dr-xr-xr-x 5 root root 0 2008-12-16 16:21 button/
-r-------- 1 root root 0 2008-12-16 16:21 dsdt
dr-xr-xr-x 3 root root 0 2008-12-16 16:21 embedded_controller/
-r-------- 1 root root 0 2008-12-16 08:27 event
-r-------- 1 root root 0 2008-12-16 16:21 fadt
dr-xr-xr-x 2 root root 0 2008-12-16 16:21 ibm/
-r--r--r-- 1 root root 0 2008-12-16 16:21 info
dr-xr-xr-x 3 root root 0 2008-12-16 16:21 power_resource/
dr-xr-xr-x 4 root root 0 2008-12-16 16:21 processor/
-rw-r--r-- 1 root root 0 2008-12-16 16:21 sleep
dr-xr-xr-x 4 root root 0 2008-12-16 16:21 thermal_zone/
dr-xr-xr-x 4 root root 0 2008-12-16 16:21 video/
-rw-r--r-- 1 root root 0 2008-12-16 16:21 wakeup

Code:

$ ls -l /proc/acpi/ibm
total 0
-rw-r--r-- 1 root root 0 2008-12-16 16:22 beep
-rw-r--r-- 1 root root 0 2008-12-16 16:22 bluetooth
-rw-r--r-- 1 root root 0 2008-12-16 16:22 cmos
-rw-r--r-- 1 root root 0 2008-12-16 16:22 driver
-rw-r--r-- 1 root root 0 2008-12-16 16:22 fan
-rw-r--r-- 1 root root 0 2008-12-16 16:22 hotkey
-rw-r--r-- 1 root root 0 2008-12-16 16:22 led
-rw-r--r-- 1 root root 0 2008-12-16 16:22 light
-rw-r--r-- 1 root root 0 2008-12-16 16:22 thermal
-rw-r--r-- 1 root root 0 2008-12-16 16:22 video
-rw-r--r-- 1 root root 0 2008-12-16 16:22 volume

Code:

$ cat /proc/acpi/ibm/hotkey
status:        enabled
mask:          0x008c7fff
commands:      enable, disable, reset, <mask>

So, everything I am expecting to see is there, yet the keys, lid close events, etc., although registered do nothing.

BCarey 12-16-2008 03:43 PM

Regarding your mouse problem, what does "cat /proc/bus/input/devices" show? If you issue (as root) "rmmod psmouse" followed by "modprobe psmouse" does it work then (you'll probably need to restart X)?

Brian

statguy 12-16-2008 03:51 PM

Thanks for the reply. Unfortunately, unloading and re-loading the module didn't work. Here is the output you requested.

Code:

# cat /proc/bus/input/devices
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab54
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=046d Product=c00f Version=0110
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/input/input2
U: Uniq=
H: Handlers=mouse1 event2
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input4
U: Uniq=
H: Handlers=event4
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button (CM)"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=3
B: KEY=4000 0 0 0 0

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=/video/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=3
B: KEY=3f000b 0 0 0 0 0 0 0

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=/video/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:06/device:07/input/input7
U: Uniq=
H: Handlers=kbd event7
B: EV=3
B: KEY=3f000b 0 0 0 0 0 0 0

I: Bus=0019 Vendor=17aa Product=5054 Version=4101
N: Name="ThinkPad Extra Buttons"
P: Phys=thinkpad_acpi/input0
S: Sysfs=/devices/virtual/input/input9
U: Uniq=
H: Handlers=kbd event9
B: EV=33
B: KEY=18840000 0 2 100100 0 0 0 1101b 2005 0 1004000 e0000 0 0 0
B: MSC=10
B: SW=8

I: Bus=0011 Vendor=0002 Product=0007 Version=81b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input11
U: Uniq=
H: Handlers=mouse2 event8
B: EV=b
B: KEY=6420 0 70000 0 0 0 0 0 0 0 0
B: ABS=11000003

I: Bus=0011 Vendor=0002 Product=000a Version=0000
N: Name="TPPS/2 IBM TrackPoint"
P: Phys=synaptics-pt/serio0/input0
S: Sysfs=/devices/platform/i8042/serio1/serio3/input/input12
U: Uniq=
H: Handlers=mouse3 event10
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3


BCarey 12-16-2008 03:56 PM

In the ServerLayout section of your xorg.conf you are still using the generic mouse identified as "Mouse0". You need to change it to:
Code:

InputDevice    "Synaptics Touchpad" "CorePointer"
Brian

statguy 12-16-2008 04:10 PM

Quote:

Originally Posted by BCarey (Post 3377815)
In the ServerLayout section of your xorg.conf you are still using the generic mouse identified as "Mouse0". You need to change it to:
Code:

InputDevice    "Synaptics Touchpad" "CorePointer"
Brian

Brilliant. Scrolling is now working with the touchpad (and not broken on my USB mouse either). Button 2 and 3 tapping are not working yet, but button one tapping is.

Any thoughts on the buttons or my ACPI issues?

BCarey 12-16-2008 05:48 PM

Hopefully someone who understands better will come along for the acpi stuff, but in the meantime: What do you have in your /etc/acpi directory? You need to set up an events directory which calls scripts located in an action directory.

Brian

statguy 12-16-2008 06:08 PM

Here is the requested directory listing.

Code:

# ls /etc/acpi/
acpi_handler.sh*  events/

It is clearly quite empty. None of the stuff I've read yet has mentioned a need for manual configuration there.

BCarey 12-16-2008 06:19 PM

You might check http://rlworkman.net/conf/acpi/ and http://dotimes.com/articles/t61-slac...kpad-acpi.html for some examples of what to put in your /etc/acpi directory.

Brian


All times are GMT -5. The time now is 07:50 AM.