Konfigurera Wacom-enheten Konfigurera WacomWacom
-enheten

När Tablet PC-paketen har installerats konfigurerar du ritplattan. För närvarande kan du inte konfigurera Wacom-enheter med SaX2 i SUSE Linux Enterprise. I stället måste du redigera en systemkonfigurationsfil. Endast systemadministratören kan göra ändringar i filen /etc/X11/xorg.conf.

[Warning]En felaktig X-konfiguration kan skada maskinvaran

Säkerhetskopiera originalfilen innan du redigerar filen /etc/X11/xorg.conf. Redigera inte andra avsnitt i filen eftersom det kan skada maskinvaran.

För Wacom-enheter lägger du till några rader i /etc/X11/xorg.conf (se Exempel E.1, “Konfiguration av Wacom-enheter”).

Exempel E.1. Konfiguration av Wacom-enheter

  1. Lägg till följande InputDevice-avsnitt:

      Section "InputDevice" 1
        Driver       "wacom"
        Identifier   "Mouse[5]"
        Option       "Device" "/dev/ttyS0"
        Option       "ForceDevice" "ISDV4"
        Option       "InputFashion" "Tablet"
        Option       "Mode" "Absolute"
        Option       "SendCoreEvents" "on"
        Option       "Type" "cursor"
      EndSection
      
      Section "InputDevice" 2
        Driver       "wacom"
        Identifier   "Mouse[7]"
        Option       "Device" "/dev/ttyS0"
        Option       "ForceDevice" "ISDV4"
        Option       "InputFashion" "Pen"
        Option       "Mode" "Absolute"
        Option       "Type" "stylus"
      EndSection
      
      Section "InputDevice" 3
        Driver       "wacom"
        Identifier   "Mouse[9]"
        Option       "Device" "/dev/ttyS0"
        Option       "ForceDevice" "ISDV4"
        Option       "InputFashion" "Eraser"
        Option       "Mode" "Absolute"
        Option       "Type" "eraser"
      EndSection
         
    1

    Konfiguration av markören för inmatningsenheten som är ansluten till /dev/ttyS0. Om du använder HP Compaq tc4200 provar du /dev/ttyS2 i stället. Enheten tilldelas identifieraren "Mouse[5]" för att undvika problem i kommande SaX2-versioner.

    2

    Konfiguration av pennan.

    3

    Konfiguration av pennans radergummi. Den här delen av pennan kan användas i vissa program för att radera inmatningar.

  2. Lägg till följande rader i avsnittet ServerLayout:

      InputDevice  "Mouse[5]" "SendCoreEvents"
      InputDevice  "Mouse[7]" "SendCoreEvents"
      InputDevice  "Mouse[9]" "SendCoreEvents"
         

    Efter dessa ändringar bör /etc/X11/xorg.conf se ut så här:

       [...]
       
       Section "InputDevice"  1
         Driver       "mouse"
         Identifier   "Mouse[3]"
         Option       "Buttons" "5"
         Option       "Device" "/dev/input/mice"
         Option       "Name" "ImPS/2 Generic Wheel Mouse"
         Option       "Protocol" "explorerps/2"
         Option       "Vendor" "Sysp"
         Option       "ZAxisMapping" "4 5"
       EndSection
       
       Section "InputDevice"  2
         Driver       "wacom"
         Identifier   "Mouse[5]"
         Option       "Device" "/dev/ttyS0"
         Option       "ForceDevice" "ISDV4"
         Option       "InputFashion" "Tablet"
         Option       "Mode" "Absolute"
         Option       "SendCoreEvents" "on"
         Option       "Type" "cursor"
       EndSection
       
       Section "InputDevice"  3
         Driver       "wacom"
         Identifier   "Mouse[7]"
         Option       "Device" "/dev/ttyS0"
         Option       "ForceDevice" "ISDV4"
         Option       "InputFashion" "Pen"
         Option       "Mode" "Absolute"
         Option       "Type" "stylus"
       EndSection
       
       Section "InputDevice" 4
         Driver       "wacom"
         Identifier   "Mouse[9]"
         Option       "Device" "/dev/ttyS0"
         Option       "ForceDevice" "ISDV4"
         Option       "InputFashion" "Eraser"
         Option       "Mode" "Absolute"
         Option       "Type" "eraser"
       EndSection
       
       [...]
       
       Section "ServerLayout"
         Identifier   "Layout[all]"
         InputDevice  "Keyboard[0]" "CoreKeyboard"
         InputDevice  "Mouse[1]" "CorePointer"
         InputDevice  "Mouse[3]" "SendCoreEvents"
         InputDevice  "Mouse[5]" "SendCoreEvents"  5
         InputDevice  "Mouse[7]" "SendCoreEvents"  
         InputDevice  "Mouse[9]" "SendCoreEvents"  
         Option       "Clone" "off"
         Option       "Xinerama" "off"
         Screen       "Screen[0]"
       EndSection
      
    1

    Standardmuskonfiguration.

    2

    Ny konfiguration för markören.

    3

    Ny konfiguration för pennan.

    4

    Ny konfiguration för pennans radergummi.

    5

    Inmatningsenheterna "Mouse[5]", "Mouse[7]" och "Mouse[9]" läggs till för X-serverenheterna.

    Den här exempelkonfigurationen bör fungera på de flesta Tablet PC-datorer. Mer information och anvisningar finns på Linux Wacom-webbplatsen: http://linuxwacom.sourceforge.net/index.php/howto/x11.

  3. När du har slutfört konfigurationen av X Window System startar du om X-servern genom att logga ut eller lämna användargränssnittet och kör sedan init 3 && init 5 i en virtuell konsol.