Y.s Diary


 

2011年 04月 10日
FUJITSU FMV-STYLISTIC TB12/S (Linux)
+ [画面の回転]

Slackware は諦めましたので、Ubuntu 10.10 をインストールし直しました。

さて、画面の回転ですが

% xrandr --orientation right

で、時計回りに 90°回転します。

(最初、--rotate とオプションを間違えて、悩んだのは秘密です)

これだけでは、タブレットの座標が変わりませんので

% xinput --set-prop --type=int "Serial Wacom Tablet stylus" "Wacom Rotation" 1
% xinput --set-prop --type=int "Serial Wacom Tablet eraser" "Wacom Rotation" 1

として、画面の回転に合わせます。

  • 時計回りに 180°

    % xrandr --orientation inverted
    % xinput --set-prop --type=int "Serial Wacom Tablet stylus" "Wacom Rotation" 3
    % xinput --set-prop --type=int "Serial Wacom Tablet eraser" "Wacom Rotation" 3
    
  • 時計回りに 270°

    % xrandr --orientation left
    % xinput --set-prop --type=int "Serial Wacom Tablet stylus" "Wacom Rotation" 2
    % xinput --set-prop --type=int "Serial Wacom Tablet eraser" "Wacom Rotation" 2
    
  • 回転無し

    % xrandr --orientation normal
    % xinput --set-prop --type=int "Serial Wacom Tablet stylus" "Wacom Rotation" 0
    % xinput --set-prop --type=int "Serial Wacom Tablet eraser" "Wacom Rotation" 0
    

"Serial Wacom Tablet stylus" と "Serial Wacom Tablet eraser" は、 環境により変わると思われます。

 

This page is written in Japanese.