Differences between revisions 2 and 3
Revision 2 as of 2005-10-18 19:51:06
Size: 2629
Editor: MartinWilck
Comment:
Revision 3 as of 2005-10-18 20:04:59
Size: 3920
Editor: MartinWilck
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
|| VolDown (Fn-leftarrow) || 174 || 114 || 0xe02e||
|| VolUp (Fn-leftarrow) || 176 || 115 || 0xe030||
|| Volume Down (Fn-leftarrow) || 174 || 114 || 0xe02e||
|| Volume Up (Fn-leftarrow) || 176 || 115 || 0xe030||
Line 9: Line 9:
|| User-defined ("Ok") || 159* || 148 || 0x74 ||
|| Etiquette On/Off (Fn-F10) || 182*/183* || 184*/183* || 0xe074/0xe075||
|| User-defined ("Ok") || 159* || 148* || 0x74 ||
|| Etiquette On/Off (Fn-F10) || 182*/183* || 183*/184* || 0xe074/0xe075||

I set the (*) keycodes with the following command at boot time:
{{{ setkeycodes 74 148 75 150 78 155 e074 183 e075 184
}}}
This automatically generates the X11 and kernel keycodes shown in the table.
The "Mail" keycode doesn't have to be set but I did to be consistent with other keyboards ("Mail" = 236).

The X50 section of {{{/etc/lineakkb.def}}} looks as follows:
{{{
[SX50]
  # set the keycodes with the following command:
  # setkeycodes 74 148 75 150 78 155 e074 183 e075 184
  brandname = "Samsung"
  modelname = "Samsung X50"
  [KEYS]
    Internet = 178
    # use Mail = 128 if you don't use setkeycodes for this key
    Mail = 236
    UserDefined1 = 159
    Mute = 160
    VolumeDown = 174
    VolumeUp = 176
    UserDefined2 = 182
    UserDefined3 = 183
  [END KEYS]
[END SX50]
}}}

Here is my {{{$HOME/.lineak/lineakd.conf}}} (keys section):
{{{
Internet = "firefox"
Mail = "mozilla-thunderbird"
Mute = "KMIX_MUTE"
##Mute = "EAK_MUTE"
UserDefined1 = "konsole"
[etiquette mode on] UserDefined2 = /bin/true
[etiquette mode off] UserDefined3 = /bin/true
##VolumeDown = "EAK_VOLDOWN(2,/dev/mixer)"
##VolumeUp = "EAK_VOLUP(2,/dev/mixer)"
VolumeDown = "KMIX_VOLDOWN"
VolumeUp = "KMIX_VOLUP"
}}}

Special keys

Key

X11 keycode

kernel keycode

raw scancode

Mute (Fn-F6)

160

113

0xe020

Volume Down (Fn-leftarrow)

174

114

0xe02e

Volume Up (Fn-leftarrow)

176

115

0xe030

Mail

128 (236*)

90 (155*)

0x78

Internet

178*

150*

0x75

User-defined ("Ok")

159*

148*

0x74

Etiquette On/Off (Fn-F10)

182*/183*

183*/184*

0xe074/0xe075

I set the (*) keycodes with the following command at boot time: {{{ setkeycodes 74 148 75 150 78 155 e074 183 e075 184 }}} This automatically generates the X11 and kernel keycodes shown in the table. The "Mail" keycode doesn't have to be set but I did to be consistent with other keyboards ("Mail" = 236).

The X50 section of /etc/lineakkb.def looks as follows:

[SX50]
  # set the keycodes with the following command: 
  # setkeycodes 74 148 75 150 78 155 e074 183 e075 184
  brandname = "Samsung"
  modelname = "Samsung X50"
  [KEYS]
    Internet    = 178
    # use Mail = 128 if you don't use setkeycodes for this key
    Mail        = 236
    UserDefined1 = 159
    Mute        = 160
    VolumeDown  = 174
    VolumeUp    = 176
    UserDefined2 = 182
    UserDefined3 = 183
  [END KEYS]
[END SX50]

Here is my $HOME/.lineak/lineakd.conf (keys section):

Internet =  "firefox"
Mail = "mozilla-thunderbird"
Mute = "KMIX_MUTE"
##Mute = "EAK_MUTE"
UserDefined1 = "konsole"
[etiquette mode on] UserDefined2 = /bin/true
[etiquette mode off] UserDefined3 = /bin/true
##VolumeDown      = "EAK_VOLDOWN(2,/dev/mixer)"
##VolumeUp        = "EAK_VOLUP(2,/dev/mixer)"
VolumeDown = "KMIX_VOLDOWN"
VolumeUp = "KMIX_VOLUP"

The touchpad

(Etch) The synaptic touchpad was auto-detected but not configured as primary mouse. The driver is in th xfree86-driver-synaptics package. I took some tim eto figure out the ideal driver parameters for my laptop and my fingers with the "synclient" tool. Here is the relevant part from xorg.conf:

Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"

        # Values I found handy on the X50

        Option  "LeftEdge"      "1500"   # I prefer narrow edges
        Option  "RightEdge"     "5000"   # right edge is larger (scroll area)
        Option  "TopEdge"       "1200"
        Option  "BottomEdge"    "4800"

        Option  "FingerLow"     "30"     # Z values range from 40 for slight tap
        Option  "FingerHigh"    "40"     # to 120 for full palm weight

        Option  "MaxTapTime"    "180"
        Option  "MaxTapMove"    "220"
        Option  "MaxDoubleTapTime" "160" # Doubleclick is too hard otherwise

        # Buttons
        Option  "EmulateMidButtonTime" "0" # unnecessary
        Option  "TapButton2" "2"         # 2 fingers-middle button
        Option  "TapButton3" "3"         # 3 fingers right button
        Option  "RTCornerButton" "4"     # scrolling with the scroll arrows
        Option  "RBCornerButton" "5"
        Option  "HorizScrollDelta" "100" # button 6/7 at lower edge
        Option  "VertScrollDelta" "100"  # button 4/5 at right edge

        Option  "EdgeMotionMinZ" "60"    # require some pressure for edge motion
        Option  "EdgeMotionMaxZ" "80"
        Option  "EdgeMotionMinSpeed"  "0" # motion must STOP at MinZ
        Option  "EdgeMotionMaxSpeed"  "1000"
        Option  "EdgeMotionUseAlways" "1" # use it for pointer movement

        Option  "PalmDetect" "1"          # Z = 100-120 is typical for palm
        Option  "PalmMinWidth" "10"
        Option  "PalmMinZ"     "100"

        Option  "SHMConfig"     "on"
EndSection