MacBook Air could not start Xorg.

when xserver-xorg updated, X could not start. /etc/X11/xorg.conf is below,

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
     Identifier      "Configured Mouse"
     Driver          "mouse"
     Option          "CorePointer"
     Option          "Device"                "/dev/input/mice"
     Option          "Protocol"              "ImPS/2"
     Option          "Emulate3Buttons"       "true"
EndSection

Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "auto-dev"
        #Option         "CorePointer"

        # exclusive grabbing of device
        Option          "GrabEventDevice"       "1"

        # simulate right button
        Option          "MultiFingerButton"     "2"

        # not using edge scrolling
        Option          "HorizEdgeScroll"       "0"
        Option          "VertEdgeScroll"        "0"

        # use two finger scrolling
        Option          "VertTwoFingerScroll"   "1"
        Option          "HorizTwoFingerScroll"  "1"

        # set to 0 if you don't want horizontal scrolling
        # scroll speed, lower is faster
        Option          "HorizScrollDelta"      "40"
        Option          "VertScrollDelta"       "40"

        # minimum pressure motion factor
        Option          "PressureMotionMinZ"    "10"

        # touch and untouch thresholds, higher numbers
        # if you like to push hard, change to 30 or 40
        Option          "FingerLow"             "16"
        Option          "FingerHigh"            "80"
        Option          "FingerPress"           "256"

        # palm detect
        Option          "PalmDetect"             "0"
        Option          "PalmMinWidth"           "10"
        Option          "PalmMinZ"               "200"

        # borders based on output from synclient
        # controls the edge scrolling
        # turned off by specifing the exact size /henrik
        Option          "LeftEdge"              "0"
        Option          "RightEdge"             "1280"
        Option          "TopEdge"               "0"
        Option          "BottomEdge"            "800"

        # speeds, smaller number for a slower mouse
        Option          "MinSpeed"              "0.8"
        # 0.5 is very slow, 1.5 is very fast
        Option          "MaxSpeed"              "1.2"
        # up to 1.5 works ok
        Option          "AccelFactor"           "0.10"

        # tap times, change to suit your tapping habits
        Option          "MaxTapMove"            "100"
        Option          "MaxTapTime"            "223"
        Option          "MaxDoubleTapTime"      "200"

        # don't change these or two finger tap stops working
        Option          "TapButton2"            "3"
        Option          "TapButton3"            "2"
        #Option          "TapButton2"             "0"
        #Option          "TapButton3"             "0"

        # must be commented out or normal tapping wont work
        Option          "TapButton1"             "0"

        # not using corner buttons
        Option          "RTCornerButton"         "0"
        Option          "RBCornerButton"         "0"
        Option          "LTCornerButton"         "0"
        Option          "LBCornerButton"         "0"

        # needed for disabled while typing fix
        Option          "SHMConfig"              "true"
EndSection

Section "Device"
     Identifier      "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
     Driver          "intel"
     BusID           "PCI:0:2:0"
#    Option          "UseFBDev"              "true"
#        Option "AccelMethod" "exa"
        Option "AccelMethod" "xaa"
EndSection

Section "Monitor"
     Identifier      "MacBook Air Monitor"
     Option          "DPMS"
EndSection

Section "Screen"
     Identifier      "Default Screen"
     Device          "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
     Monitor         "MacBook Air Monitor"
     DefaultDepth    24
     SubSection "Display"
             Modes           "1280x800" "1024x768" "800x600" "640x480"
     EndSubSection
EndSection

Section "ServerLayout"
     Identifier      "Default Layout"
     Screen          "Default Screen"
     InputDevice     "Generic Keyboard"
     InputDevice     "Configured Mouse"
     InputDevice     "Synaptics Touchpad"
EndSection

Then I did below below command, solved.

$ sudo dpkg-reconfigure -phigh xserver-xorg
$ sudo /etc/init.d/gdm restart

Then, keycodes was changed, too.

  • XF86Eject : 204 to 212.

  • SuperR is : 116 to 134.

  • AltR is : 113 to 108.