Toshiba Tecra M4: erinevus redaktsioonide vahel

Allikas: Pingviini viki
Mine navigeerimisribaleMine otsikasti
Kaar3l (arutelu | kaastöö)
Uus lehekülg: 'Selline laptop Kasutusel Linux Mint Lucid Kõik töötab peaaegu out of box. Seadistamist vajavad vaid touchscreen, ekraani keeramine. Õpetus mille järgi touchscreen koos keera…'
 
Kaar3l (arutelu | kaastöö)
Resümee puudub
62. rida: 62. rida:
  set_inverted
  set_inverted
  elif [ "$orientation" = "inverted" ]; then  
  elif [ "$orientation" = "inverted" ]; then  
set_left
set_left
  elif [ "$orientation" = "left" ]; then
  elif [ "$orientation" = "left" ]; then
  set_normal
  set_normal
242. rida: 242. rida:
     EndSubSection
     EndSubSection
  EndSection
  EndSection
=Parema klahv=
Minu ei töötanud xorg variandid. Pidin kasutama teist meetodit.
xinput --list
Väljastas:
⎡ Virtual core pointer                    id=2 [master pointer  (3)]
⎜  ↳ Virtual core XTEST pointer              id=4 [slave  pointer  (2)]
⎜  ↳ DualPoint Stick                        id=10 [slave  pointer  (2)]
⎜  ↳ AlpsPS/2 ALPS DualPoint TouchPad        id=11 [slave  pointer  (2)]
⎜  ↳ Serial Wacom Tablet                    id=12 [slave  pointer  (2)]
⎜  ↳ Macintosh mouse button emulation        id=13 [slave  pointer  (2)]
⎣ Virtual core keyboard                  id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard            id=5 [slave  keyboard (3)]
    ↳ Power Button                            id=6 [slave  keyboard (3)]
    ↳ Video Bus                              id=7 [slave  keyboard (3)]
    ↳ Power Button                            id=8 [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            id=9 [slave  keyboard (3)]
Minu touchscreeni id=12. Ava terminal:
gedit .bashrc
Sinna lisa:
xsetwacom set 12 Button1 1
xsetwacom set 12 Button2 3
xsetwacom set 12 Button3 3
Ja lõpuks:
chmod +x .bashrc

Redaktsioon: 6. november 2011, kell 11:59

Selline laptop

Kasutusel Linux Mint Lucid

Kõik töötab peaaegu out of box. Seadistamist vajavad vaid touchscreen, ekraani keeramine.

Õpetus mille järgi touchscreen koos keeramisega tööle saada: http://ubuntuforums.org/showthread.php?t=1780154

Rotatemise nupp:

.Xmodmap fail

keycode 134 = F21
keycode  10 = 1 exclam Prior Prior onesuperior exclamdown
keycode  11 = 2 quotedbl Next Next twosuperior oneeighth
keycode  12 = 3 section Prior Prior threesuperior sterling
keycode  13 = 4 dollar Next Next onequarter currency

rotate script:

#!/bin/bash

#### rotate.sh - A script for tablet PCs to rotate the display.

## This software is licensed under the CC-GNU GPL.
## http://creativecommons.org/licenses/GPL/2.0/

## http://wiki.archlinux.org/index.php/Tablet_PC
## REQUIRES: linuxwacom (http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=Main_Page)

#### Function(s)
function set_normal {
 xrandr -o normal
 xsetwacom --set 12 Rotate NONE
 orientation="normal"
}

function set_left {
 xrandr -o left
 xsetwacom --set 12 Rotate CCW
 orientation="left"
} 

function set_right {
 xrandr -o right
 xsetwacom --set 12 Rotate CW
 orientation="right"
}

function set_inverted {
 xrandr -o inverted
 xsetwacom --set 12 Rotate half
 orientation="inverted"
}

#### Variable(s)
orientation="$(xrandr --query --verbose | grep '(normal left inverted right) 0mm x 0mm' | awk '{print $5}')"

#### Main
if [ "$orientation" = "normal" ]; then
	set_right
elif [ "$orientation" = "right" ]; then
	set_inverted
elif [ "$orientation" = "inverted" ]; then 
	set_left
elif [ "$orientation" = "left" ]; then
	set_normal
fi

#### EOF

xorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 285.05.09  (buildmeister@swio-display-x86-rhel47-02.nvidia.com)  Fri Sep 23 19:18:19 PDT 2011


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Inputdevice     "stylus"
    Inputdevice     "eraser"
    Inputdevice     "cursor"
EndSection 

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection


Section "InputDevice"
    Driver        "wacom"
    Identifier    "stylus"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "stylus"
    Option        "ForceDevice"    "Serial"
EndSection

Section "InputDevice"
    Driver        "wacom"
    Identifier    "eraser"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "eraser"
    Option        "ForceDevice"    "Serial"
EndSection

Section "InputDevice"
    Driver        "wacom"
    Identifier    "cursor"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "cursor"
    Option        "ForceDevice"    "Serial"
EndSection 

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
     HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option         "NoLogo" "1"
    Option         "RandRRotation" "true"
#    Option         "Coolbits" "1"
#    RegistryDwords "PowerMizerEnable=0x1; PerfLevelSrc=0x3333"
    VendorName     "NVIDIA Corporation"
EndSection 

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Moni# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 285.05.09  (buildmeister@swio-display-x86-rhel47-02.nvidia.com)  Fri Sep 23 19:18:19 PDT 2011 


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Inputdevice     "stylus"
    Inputdevice     "eraser"
    Inputdevice     "cursor"
EndSection

Section "Files"
EndSection 

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection


Section "InputDevice"
    Driver        "wacom"
    Identifier    "stylus"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "stylus"
    Option        "ForceDevice"    "Serial"
    Option        "Button1" "1"
    Option        "Button2" "3"
EndSection

Section "InputDevice"
    Driver        "wacom"
    Identifier    "eraser"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "eraser"
    Option        "ForceDevice"    "Serial"
EndSection

Section "InputDevice"
    Driver        "wacom"
    Identifier    "cursor"
    Option        "Device"         "/dev/ttyS0"
    Option        "Type"           "cursor"
    Option        "ForceDevice"    "Serial"
EndSection 

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option         "NoLogo" "1"
    Option         "RandRRotation" "true"
#    Option         "Coolbits" "1"
#    RegistryDwords "PowerMizerEnable=0x1; PerfLevelSrc=0x3333"
    VendorName     "NVIDIA Corporation"
EndSection 

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Parema klahv

Minu ei töötanud xorg variandid. Pidin kasutama teist meetodit.

xinput --list

Väljastas:

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ DualPoint Stick                         	id=10	[slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad        	id=11	[slave  pointer  (2)]
⎜   ↳ Serial Wacom Tablet                     	id=12	[slave  pointer  (2)]
⎜   ↳ Macintosh mouse button emulation        	id=13	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=9	[slave  keyboard (3)]

Minu touchscreeni id=12. Ava terminal:

gedit .bashrc

Sinna lisa:

xsetwacom set 12 Button1 1
xsetwacom set 12 Button2 3
xsetwacom set 12 Button3 3

Ja lõpuks:

chmod +x .bashrc