Ubuntuでチルトホイールを使う。

http://blog.livedoor.jp/ikkoku_do/archives/2007-01.html
http://blogs.dion.ne.jp/fedora_blog/archives/4864757.html
http://retujyou.com/2008/05/22/howto-ubuntu-tilt-wheel-mouse/
その他から。


今まで(主にFxで)チルトスクロールが出来なかったのが解決した。

/proc/bus/input/devices

を開くとデバイスの設定がいろいろ書いてあるので、自分が使っているマウスっぽいものを探す。
自分の場合

I: Bus=0003 Vendor=046d Product=c019 Version=0111
N: Name="Logitech USB Optical Mouse"
P: Phys=usb-0000:00:1d.1-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.1/usb4/4-1/4-1:1.0/input/input2
U: Uniq=
H: Handlers=mouse1 event2 
B: EV=17
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=143
B: MSC=10

重要なのはHandlersの項。


rootで

/etc/X11/xorg.conf

を開き、マウスっぽい箇所を探す。

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
EndSection

これを次のように変更。

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"evdev"
	Option		"CorePointer"
	Option		"Device"	"/dev/input/event2"
	Option		"RelHWHEELOptions"	"invert"
EndSection

変更箇所は、
[evdevというドライバを使う。]
[デバイスは/dev/input/event*(*は上のHandlersの番号)]
[オプションとして左右を逆にする。(Fxで逆になってたから。)]


とりあえず、これでチルトスクロール出来たからよし

xbindkeysとxvkbdは使ってない。


追記
一度マウスを外すと再起動するまで認識しなくなる。
これが原因かどうかは不明。