すみっこのメモ - FrontPage  Index  Search  Changes  RSS  Login

VAIO type PでUbuntuを使うための個人的な設定メモ

Ubuntu 9.04(jaunty)

8.10をインストールしたあと、sources.listを書き換えて9.04にアップグレードした環境で動作確認。

項目 9.04環境での可否備考
X.Org VESAだと遅い。fbdevで1600x768,16bppだとそこそこ動く。psb対応はまだ。
VGAの外部出力× fbdevでVGA外部出力の方法が不明
バックライトの明るさ調整setpciで直に設定可能
サスペンド
ハイバネート × 電源が切れるところでリブートする。
Wifi 2.6.28だとath9kは標準で含まれている。高負荷時に切れることあり?
有線LAN Marvell用のsky2ドライバで動く
サウンド
ホットキー 音量調整だけ使える
CPUの速度調整(SpeedStep)
MOTION EYE(Webカメラ)何もしなくても/dev/video0として認識される。次のプログラムで動作確認済み->opencv-capture-test.c

sonypiをロード時にエラーが出る?

kernel 2.6.28-6-generic環境だとsonypiをロードする時になぜかモジュールが死んでしまうので、 起動時にsonypiを読み込まないように設定。

/etc/modprobe.d/blacklistの最後に次の1行を追加

blacklist sonypi

/etc/init.d/hotkey-setupで読み込まれないように次のようにコメントアウト

--- hotkey-setup.org	2009-02-02 15:46:32.000000000 +0900
+++ hotkey-setup	2009-02-02 15:39:05.000000000 +0900
@@ -98,7 +98,7 @@
 	;;

 	Sony*)
-	modprobe sonypi; # Needed to get hotkey events
+	#modprobe sonypi; # Needed to get hotkey events
 	modprobe sony-laptop
 	;;

X.Org

/etc/grub/menu.list

とりあえずfbdevで使えるように

  • koptにvga=0x367(1600x768,16bpp)を追加
  • defoptionsのquiet splashを消しておく
  • ファイルを書き換えたら、sudo update-grupして設定を反映。

参考:

/etc/X11/xorg.conf

fvdevとsisusbを併用。

  • xorg.conf-fbdev-sisusb-dual
    • fbdevをvga=0x367で使っているので、サインはVGA側も16bppに設定
    • サインはVGAを接続していない状態でXが起動すると、fbdevだけで動作する
    • X起動後にサインはVGAをつないだ時は、Xを再起動する。/etc/init.d/gdm restartとか。

参考:

中央クリック+スティックポインターでスクロールできるように

新しく/etc/hal/fdi/policy/mouse-wheel.fdiというファイルを作って、内容を次のように記述すると 中央クリック+スティックポインターでスクロールできるようになります。

<match key="info.product" string="PS/2 Generic Mouse">
  <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
  <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
  <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
  <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
  <merge key="input.x11_options.ZAxsisMapping" typ(?)e="string">4 5</merge>
  <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

バックライトの明るさ調整

参考:

とりあえずは、setpciを使って直接設定すると可能

$ sudo setpci -s 00:02.0 F4.B=50
※00(暗い)〜FF(明るい)で輝度調整。

明るさの値を取得する場合は、以下の要領で。

$ sudo setpci -s 00:02.0 F4.B

zbrightという設定用スクリプトが便利

/etc/pm/sleep.d/にスクリプトを置いておくと、サスペンド・レジューム時に実行されるので、 これを使って明るさを保存・復帰させる方法。

Ubuntu 8.04

VAIO type Pに8.04をインストールして動作確認した項目は下記のとおり。

項目可否備考
X.Orgmoblinのxserver-xorg-video-psbが使える
バックライトの明るさ調整
サスペンド×
Wifi○(ath9kの手動インストール必要)
サウンド
ホットキー音量調整だけ使える
CPUの速度調整(SpeedStep)

X.Org

moblinのxserver-xorg-video-psbが使える

moblinのxserver-xorg-video-psbについて

X.Org 7.4用のxserver-xorg-video-psbが現状ない状態?

  • Ubuntu 8.04のX.Orgのバージョンは7.3、Ubuntu 8.10からは7.4が採用されている

linux-ubuntu-modules-2.6.24にはxserver-xorg-video-psbが使うdrm-poulsboがあるのに、2.6.26や2.6.28にはない?

  • どうもxserver-xorg-video-psb以外にカーネル側での対応も必要そうな雰囲気

サスペンド・レジュームができない

  • 現状で確実にフリーズする
  • xserver-xorg-video-psbのせいなのかどうかは不明…

その他VAIO type Pを快適に使うために個人的に設定している項目

CAPSキーをControlキーに変更

コンソール

/etc/default/console-setupファイルに次のようにctrl:nocapsを追加

XKBOPTIONS="grp:alt_shift_toggle,lv3:ralt_switch,grp_led:scroll,ctrl:nocaps"

設定後、次のコマンドを実行して設定を反映

$ sudo /etc/init.d/console-setup start
$ sudo /etc/init.d/keyboard-setup start

X.Org環境で

「設定」->「キーボード」を開いて「レイアウト」->「Layout Option」の「Ctrlキーの位置」で「Capsキーをもう一つのCtrlにする」を選択

直接入力/日本語入力の切り替え

SCIMの設定で、「半角/全角」「Atl+Space」で切り替えるように設定。

  • 「Alt+Space」はウインドウメニューの表示にアサインされているので、これを「キーボード・ショートカット」から無効にしておく。

「無変換」キーでGnome Doを起動するように設定

キーバインドはGnome Doの設定から行う

フォントを大きく設定

  • FirefoxはDefault Full Zoom Levelを入れてデフォルト160%の拡大率に
  • ターミナルのフォントは18ptに設定
  • テキストエディタ系のフォントは20ptに設定
  • 「外観の設定」->「フォント」でウインドウタイトルを12pt、それ以外の項目を14ptに設定
  • 「外観の設定」->「テーマ」->「カスタマイズ」->「ポインタ」でマウスカーソルの大きさを最大に設定

Ubuntuの日本語フォルダ名が気持ち悪い

xdg-user-dirs-gtk-updateを実行して、フォルダの名前を英語表記に変更。

$ LANG=C xdg-user-dirs-gtk-update

lshwの結果

$ sudo lshw

   description: Notebook
   product: VGN-P70H_G
   vendor: Sony Corporation
   version: J003JKKE
   serial: ********-*******
   width: 32 bits
   capabilities: smbios-2.4 dmi-2.4
   configuration: boot=normal chassis=notebook uuid=********-****-****-****-************
 *-core
      description: Motherboard
      product: VAIO
      vendor: Sony Corporation
      physical id: 0
      version: N/A
      serial: N/A
    *-firmware
         description: BIOS
         vendor: INSYDE
         physical id: 0
         version: R1250U3 (12/08/2008)
         size: 1MiB
         capabilities: pci pnp upgrade shadowing cdboot bootselect edd int9keyboard int10video acpi usb smartbattery biosbootspecification netboot
    *-cpu
         description: CPU
         product: Intel(R) Atom(TM) CPU Z520   @ 1.33GHz
         vendor: Intel Corp.
         physical id: 8
         bus info: cpu@0
         version: 6.12.2
         serial: ****-****-****-****-****-****
         slot: N/A
         size: 1333MHz
         capacity: 1333MHz
         width: 32 bits
         clock: 133MHz
         capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 xtpr lahf_lm cpufreq
         configuration: id=0
       *-cache:0
            description: L2 cache
            physical id: 9
            slot: L2 Cache
            size: 512KiB
            capacity: 512KiB
            capabilities: synchronous internal write-back unified
       *-cache:1
            description: L1 cache
            physical id: a
            slot: L1 Cache
            size: 56KiB
            capacity: 56KiB
            capabilities: synchronous internal write-back
       *-logicalcpu:0
            description: Logical CPU
            physical id: 0.1
            width: 32 bits
            capabilities: logical
       *-logicalcpu:1
            description: Logical CPU
            physical id: 0.2
            width: 32 bits
            capabilities: logical
    *-memory
         description: System Memory
         physical id: b
         slot: System board or motherboard
         size: 2GiB
       *-bank
            description: SODIMM
            physical id: 0
            slot: Onboard
            size: 2GiB
            width: 64 bits
    *-pci
         description: Host bridge
         product: System Controller Hub (SCH Poulsbo)
         vendor: Intel Corporation
         physical id: 100
         bus info: pci@0000:00:00.0
         version: 06
         width: 32 bits
         clock: 33MHz
       *-display UNCLAIMED
            description: VGA compatible controller
            product: System Controller Hub (SCH Poulsbo) Graphics Controller
            vendor: Intel Corporation
            physical id: 2
            bus info: pci@0000:00:02.0
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: pm msi bus_master cap_list
            configuration: latency=0
       *-multimedia
            description: Audio device
            product: System Controller Hub (SCH Poulsbo) HD Audio Controller
            vendor: Intel Corporation
            physical id: 1b
            bus info: pci@0000:00:1b.0
            version: 06
            width: 64 bits
            clock: 33MHz
            capabilities: pm pciexpress bus_master cap_list
            configuration: driver=HDA Intel latency=0 module=snd_hda_intel
       *-pci:0
            description: PCI bridge
            product: System Controller Hub (SCH Poulsbo) PCI Express Port 1
            vendor: Intel Corporation
            physical id: 1c
            bus info: pci@0000:00:1c.0
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: pci pciexpress pm bus_master cap_list
            configuration: driver=pcieport-driver
          *-network
               description: Ethernet interface
               product: Marvell Technology Group Ltd.
               vendor: Marvell Technology Group Ltd.
               physical id: 0
               bus info: pci@0000:01:00.0
               logical name: eth0
               version: 10
               serial: 00:1d:ba:**:**:**
               capacity: 1GB/s
               width: 64 bits
               clock: 33MHz
               capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
               configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.22 firmware=N/A latency=0 link=no module=sky2 multicast=yes port=twisted pair
       *-pci:1
            description: PCI bridge
            product: System Controller Hub (SCH Poulsbo) PCI Express Port 2
            vendor: Intel Corporation
            physical id: 1c.1
            bus info: pci@0000:00:1c.1
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: pci pciexpress pm bus_master cap_list
            configuration: driver=pcieport-driver
          *-network
               description: Wireless interface
               product: AR928X Wireless Network Adapter (PCI-Express)
               vendor: Atheros Communications Inc.
               physical id: 0
               bus info: pci@0000:02:00.0
               logical name: wmaster0
               version: 01
               serial: 00:23:4d:**:**:**
               width: 64 bits
               clock: 33MHz
               capabilities: pm msi pciexpress msix bus_master cap_list logical ethernet physical wireless
               configuration: broadcast=yes driver=ath9k ip=***.***.***.*** latency=0 module=ath9k multicast=yes wireless=IEEE 802.11bgn
       *-usb:0
            description: USB Controller
            product: System Controller Hub (SCH Poulsbo) USB UHCI #1
            vendor: Intel Corporation
            physical id: 1d
            bus info: pci@0000:00:1d.0
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: bus_master
            configuration: driver=uhci_hcd latency=0 module=uhci_hcd
       *-usb:1
            description: USB Controller
            product: System Controller Hub (SCH Poulsbo) USB UHCI #2
            vendor: Intel Corporation
            physical id: 1d.1
            bus info: pci@0000:00:1d.1
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: bus_master
            configuration: driver=uhci_hcd latency=0 module=uhci_hcd
       *-usb:2
            description: USB Controller
            product: System Controller Hub (SCH Poulsbo) USB UHCI #3
            vendor: Intel Corporation
            physical id: 1d.2
            bus info: pci@0000:00:1d.2
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: bus_master
            configuration: driver=uhci_hcd latency=0 module=uhci_hcd
       *-usb:3
            description: USB Controller
            product: System Controller Hub (SCH Poulsbo) USB EHCI #1
            vendor: Intel Corporation
            physical id: 1d.7
            bus info: pci@0000:00:1d.7
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: pm debug bus_master cap_list
            configuration: driver=ehci_hcd latency=0 module=ehci_hcd
       *-isa
            description: ISA bridge
            product: System Controller Hub (SCH Poulsbo) LPC Bridge
            vendor: Intel Corporation
            physical id: 1f
            bus info: pci@0000:00:1f.0
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: isa
            configuration: driver=isch_smbus latency=0 module=i2c_isch
       *-ide
            description: IDE interface
            product: System Controller Hub (SCH Poulsbo) IDE Controller
            vendor: Intel Corporation
            physical id: 1f.1
            bus info: pci@0000:00:1f.1
            logical name: scsi0
            version: 06
            width: 32 bits
            clock: 33MHz
            capabilities: ide bus_master emulated
            configuration: driver=pata_sch latency=0 module=pata_sch
          *-disk
               description: ATA Disk
               product: TOSHIBA MK6028GA
               vendor: Toshiba
               physical id: 0.0.0
               bus info: scsi@0:0.0.0
               logical name: /dev/sda
               version: BN10
               serial: *********
               size: 55GiB (60GB)
               capabilities: partitioned partitioned:dos
               configuration: ansiversion=5 signature=********
             *-volume:0
                  description: Linux swap volume
                  physical id: 1
                  bus info: scsi@0:0.0.0,1
                  logical name: /dev/sda1
                  version: 1
                  serial: ********-****-****-****-************
                  size: 2055MiB
                  capacity: 2055MiB
                  capabilities: primary nofs swap initialized
                  configuration: filesystem=swap pagesize=4096
             *-volume:1
                  description: EXT3 volume
                  vendor: Linux
                  physical id: 2
                  bus info: scsi@0:0.0.0,2
                  logical name: /dev/sda2
                  logical name: /
                  logical name: /dev/.static/dev
                  version: 1.0
                  serial: ********-****-****-****-************
                  size: 53GiB
                  capacity: 53GiB
                  capabilities: primary bootable journaled extended_attributes large_files huge_files recover ext3 ext2 initialized
                  configuration: created=2009-01-08 06:23:34 filesystem=ext3 modified=2009-01-24 12:15:42 mount.fstype=ext3 mount.options=ro,errors=remount-ro,data=ordered mounted=2009-01-24 12:15:42 state=mounted
 *-network DISABLED
      description: Ethernet interface
      physical id: 1
      logical name: pan0
      serial: 7e:c1:04:**:**:**
      capabilities: ethernet physical
      configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=yes multicast=yes
Last modified:2009/02/08 02:10:48
Keyword(s):
References:[いろいろメモ]