ルギア君の戯言

雑多な記事。

RCBT-MX

これこれ→


なんで、こんなものを買ったのかというツッコミはナシの方向で。

Windows XP

こちらは問題なく使えた。いや、別の人の話によれば Linux でも裏の Connect ボタンを使う接続は大丈夫 (ある意味当たり前) なんだけど。つなぐものがつなぐ物で…(ry


とりあえず、MSスタックで。東芝スタックは“あれ”ではあるがインストールできるらしい。

Xperia をつないでみた

ただ、Xperia と MS スタックで共通する対応プロファイルが FTP だけなのでそれでファイルを送信してみた。


…できた。ただ 1 個ずつ送信するのかよ、おい。もともとそういう仕様なのだろうか。

DRC-BT30

ソニーのヘッドセット。


MS スタックが A2DP に対応していないので使い物にならなかった。

Wii リモコン (ぁ

これは (ry


MS スタックとは相性が悪いという噂を見つけたが、案の定 (ry

結論

…何に使えばいいんだ (ぁ

Linux (Momonga Linux)

[root@arpa-castle ~]# rpm -q kernel-2.6.35.13 udev bluez bluedevil
kernel-2.6.35.13-1m.mo7.x86_64
udev-151-8m.mo7.x86_64
bluez-4.86-2m.mo7.x86_64
bluedevil-1.1-2m.mo7.x86_64

とりあえずこんな環境。

[root@arpa-castle ~]# cat /lib/udev/rules.d/70-hid2hci.rules 
# do not edit this file, it will be overwritten on update

ACTION!="add|change", GOTO="hid2hci_end"
SUBSYSTEM!="usb", GOTO="hid2hci_end"

# (省略)

# Logitech devices (hidraw)
KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"

# (省略)

で、何が問題なのかというと、

# lsusb -v
Bus 004 Device 002: ID 046d:0b06 Logitech, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0         8
  idVendor           0x046d Logitech, Inc.
  idProduct          0x0b06 
  bcdDevice            1.00
  iManufacturer           1 Logitech
  iProduct                2 Logitech BT Mini-Receiver
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval             255
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             3
  wHubCharacteristic 0x0004
    Ganged power switching
    Compound device
    Ganged overcurrent protection
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x0c
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0103 power enable connect
   Port 3: 0000.0103 power enable connect
Device Status:     0x0000
  (Bus Powered)

Bluetooth アダプタの分が繋がってない…。


で、これを試してみる。噂によれば、SetPoint の Linux 版…ということだが…。
http://www.hidpoint.com/hidpoint/download.html

ま、まず、 Fedora 14 用 / 64 bit を落としてくる。
だが、32bit バイナリを要求されるので、インストールする。

# cd
# mkdir i686
# cd i686
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/libgcc-4.6.1-0.20110422.1m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/nss-softokn-freebl-3.12.9-2m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/glibc-common-2.13.90-7m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/glibc-2.13.90-7m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/zlib-1.2.5-5m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/libpng-1.2.44-4m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/libtiff-3.9.5-1m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/libjpeg-8c-1m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/libstdc++-4.6.1-0.20110422.1m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/libX11-1.4.3-2m.mo7.i686.rpm
# wget http://dist.momonga-linux.org/pub/momonga/development/i686/os/Packages/glib2-2.28.6-1m.mo7.i686.rpm
# rpm -ivh --force --nodeps libgcc-4.6.1-0.20110422.1m.mo7.i686.rpm \
> libstdc++-4.6.1-0.20110422.1m.mo7.i686.rpm \
> glibc-common-2.13.90-7m.mo7.i686.rpm \
> glibc-2.13.90-7m.mo7.i686.rpm \
> nss-softokn-freebl-3.12.9-2m.mo7.i686.rpm \
> zlib-1.2.5-5m.mo7.i686.rpm \
> libpng-1.2.44-4m.mo7.i686.rpm \
> libtiff-3.9.5-1m.mo7.i686.rpm \
> libjpeg-8c-1m.mo7.i686.rpm \
> libX11-1.4.3-2m.mo7.i686.rpm \
> glib2-2.28.6-1m.mo7.i686.rpm
# yum reinstall libtiff.x86_64 libstdc++.x86_64 glib2.x86_64 

途中で面倒だなぁと思っていたら、レポジトリの設定が間違ってたw
他にインストールして yum reinstall を

cairo
gnome-libs

についてもやる。もっといっぱいあるかと思ったけど、これで最後だった。

そしたら

# yum install gtk2.i686 libXxf86vm.i686 libSM.i686 libxcb.i686 pixman.i686 gdk-pixbuf.i686

それと、yum check の出力がなくなるまでインストール。

# setenforce 0
# cd (インストーラのあるところ)
# ./hidpoint1-0.bin

まあ、SELinux を一時的に無効化するので、注意ね。でも gtk2 が assertion failed を起こして結局インストール出来なかったよ。


すごい大量に i686 パッケージをインストールしたなー。まあ、いっかー。(あと file が Conflict する gd と flac と audiofile をゴニョゴニョやると wine.i686 もインストールできる)

Linux (openSUSE 11.4)

root@arpa-castle:/> rpm -q kernel-desktop bluez bluedevil udev
kernel-desktop-2.6.37.1-1.2.2.i586
bluez-4.88-2.1.i586
bluedevil-1.0.2-3.8.1.i586
udev-166-5.1.i586

なんか異様なまでに新しいな。bluedevil だけ若干古いみたいだ。

root@arpa-castle:/lib/udev/rules.d> cat 70-hid2hci.rules 
# do not edit this file, it will be overwritten on update

ACTION=="remove", GOTO="hid2hci_end"
SUBSYSTEM!="usb", GOTO="hid2hci_end"

# (省略)

# Logitech devices
KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[35e]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"
KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[4abc]|c71[34bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"

ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end"

# (省略)

ん、なんか若干違うぞ。udev のバージョンが違うからではあるだろうが。あー、でも

046d:c70[35e]

は関係なさそうだなー。


結局 lsusb の出力は Momonga と同じだった。


HIDPoint なんだが、11.4 用がないので、とりあえず 11.3 用をチョイス。


libpng が Version 1.4 に上がっているためやはり動かず。


んー。シンボリックリンクかー。面倒だからイカ略。