2008年6月8日日曜日

Ubuntu 8.04 + CF-Y7Dで液晶の輝度調整

ここを参考にしたらできた。素晴らしい〜。

$ sudo apt-get install xbacklight
$ sudo xrandr --output LVDS --set BACKLIGHT_CONTROL native
$ xbacklight -set 80

ちょこっと設定したらFnキーと組み合わせることができそうだ。



gnome-randr-applet

xrandrをいろいろ使うらしいので、
$ sudo apt-get install gnome-randr-applet
解像度とか簡単に変えることが可能になるアプレットみたい。

libc6-devインストール

configureを実行するとのきなみ失敗するので、何故かと思ったらstdio.hが無い。。。
$ sudo apt-get install libc6-dev


Let's Note + Ubuntu 8.04 pcc-acpiモジュール

以下から、pcc-acpi-0.9-4.src.rpmをダウンロード


$ sudo apt-get install rpm
$ sudo apt-get install patch
$ mkdir tmp1
$ cd tmp1
$ rpm2cpio ~/pcc-acpi-0.9-4.src.rpm | cpio -id
$ tar xfj pcc-acpi-0.9.tar.bz2
$ cd pcc-acpi-0.9
$ patch < ../pcc-acpi-0.9-add-missing-input-unregister-device.diff
$ patch < ../pcc-acpi-0.9-2.6.23-acpievent-fix.diff
$ patch < ../fseidel_fix_newacpidevmanagement.patch
$ make
$ sudo make install
$ modprobe pcc-acpi
dmesgをすると次のメッセージが表示される。
[ 8964.350486] input: PCC Extra Driver as /devices/virtual/input/input10


$ tar xfz hotkey-handler-1.4.tar.gz
$ sudo cp -r hotkey-handler-1.4/* /etc/acpi/
$ cd /etc/acpi
$ sudo tar xfz /tmp/ac-power-handler-1.0.tar.gz

$ sudo apt-get install hotkeys

$ cd
$ mkdir .hotkeys
$ cp pcc.def .hotkeys/





Ubuntu 8.04 CTRLとCAPSを入れ替え

XkbOptions ctrl:swapcapsを追加するだけではダメだった。xorg.confを次のように設定したら切り替わった。

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp,jp"
# Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
Option "XkbOptions" "ctrl:swapcaps"
# Option "XkbVariant" "106,"
EndSection


sensors-appletを追加

ファンを管理したいので、とりあえずそれらしいものをインストールしてみる。
$ sudo apt-get install sensors-applet

アプレットでHardware Sensor Monitorを追加。
CPU温度 65〜67度。ちょっと熱いな。これが普通なんだろうか....?



Let's Note CF-Y7D のUbuntu 8.04のcpuinfo、lspciなど

参考までに。
他に知りたい情報があればリクエストください。

$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:04.0 Signal processing controller: Intel Corporation Unknown device 2a08 (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
05:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 13)
06:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
06:00.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)

$ lspci -vn
00:00.0 0600: 8086:2a00 (rev 03)
Subsystem: 10f7:8338
Flags: bus master, fast devsel, latency 0
Capabilities:

00:02.0 0300: 8086:2a02 (rev 03) (prog-if 00 [VGA controller])
Subsystem: 10f7:8338
Flags: bus master, fast devsel, latency 0, IRQ 20
Memory at fc000000 (64-bit, non-prefetchable) [size=1M]
Memory at 90000000 (64-bit, prefetchable) [size=256M]
I/O ports at 1800 [size=8]
Capabilities:

00:02.1 0380: 8086:2a03 (rev 03)
Subsystem: 10f7:8338
Flags: bus master, fast devsel, latency 0
Memory at fc100000 (64-bit, non-prefetchable) [size=1M]
Capabilities:

00:04.0 1180: 8086:2a08 (rev 03)
Subsystem: 10f7:8338
Flags: fast devsel, IRQ 7
Memory at fc600000 (64-bit, non-prefetchable) [size=16K]
Capabilities:

00:1a.0 0c03: 8086:2834 (rev 03) (prog-if 00 [UHCI])
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0, IRQ 20
I/O ports at 1820 [size=32]

00:1a.1 0c03: 8086:2835 (rev 03) (prog-if 00 [UHCI])
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at 1840 [size=32]

00:1a.7 0c03: 8086:283a (rev 03) (prog-if 20 [EHCI])
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0, IRQ 17
Memory at fc608800 (32-bit, non-prefetchable) [size=1K]
Capabilities:

00:1b.0 0403: 8086:284b (rev 03)
Subsystem: 10f7:8338
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at fc604000 (64-bit, non-prefetchable) [size=16K]
Capabilities:

00:1c.0 0604: 8086:283f (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
Capabilities:

00:1c.2 0604: 8086:2843 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
Memory behind bridge: fc300000-fc3fffff
Capabilities:

00:1c.3 0604: 8086:2845 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
Capabilities:

00:1c.4 0604: 8086:2847 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: fc200000-fc2fffff
Prefetchable memory behind bridge: 0000000088000000-00000000880fffff
Capabilities:

00:1d.0 0c03: 8086:2830 (rev 03) (prog-if 00 [UHCI])
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0, IRQ 22
I/O ports at 1860 [size=32]

00:1d.1 0c03: 8086:2831 (rev 03) (prog-if 00 [UHCI])
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 1880 [size=32]

00:1d.2 0c03: 8086:2832 (rev 03) (prog-if 00 [UHCI])
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at 18a0 [size=32]

00:1d.7 0c03: 8086:2836 (rev 03) (prog-if 20 [EHCI])
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0, IRQ 22
Memory at fc608c00 (32-bit, non-prefetchable) [size=1K]
Capabilities:

00:1e.0 0604: 8086:2448 (rev f3) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=06, subordinate=0a, sec-latency=32
I/O behind bridge: 00003000-00003fff
Memory behind bridge: dbf00000-e1ffffff
Capabilities:

00:1f.0 0601: 8086:2815 (rev 03)
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0
Capabilities:

00:1f.1 0101: 8086:2850 (rev 03) (prog-if 8a [Master SecP PriP])
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at 1810 [size=16]

00:1f.2 0106: 8086:2829 (rev 03) (prog-if 01 [AHCI 1.0])
Subsystem: 10f7:8338
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 219
I/O ports at 18d8 [size=8]
I/O ports at 18d0 [size=4]
I/O ports at 18c8 [size=8]
I/O ports at 180c [size=4]
I/O ports at 18e0 [size=32]
Memory at fc608000 (32-bit, non-prefetchable) [size=2K]
Capabilities:

00:1f.3 0c05: 8086:283e (rev 03)
Subsystem: 10f7:8338
Flags: medium devsel, IRQ 11
Memory at 88100000 (32-bit, non-prefetchable) [size=256]
I/O ports at 1100 [size=32]

03:00.0 0280: 8086:4229 (rev 61)
Subsystem: 8086:1003
Flags: bus master, fast devsel, latency 0, IRQ 217
Memory at fc300000 (64-bit, non-prefetchable) [size=8K]
Capabilities:

05:00.0 0200: 11ab:4363 (rev 13)
Subsystem: 10f7:8338
Flags: bus master, fast devsel, latency 0, IRQ 218
Memory at fc200000 (64-bit, non-prefetchable) [size=16K]
I/O ports at 2000 [size=256]
[virtual] Expansion ROM at 88000000 [disabled] [size=128K]
Capabilities:

06:00.0 0607: 1180:0476 (rev ba)
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 168, IRQ 19
Memory at dbfff000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=06, secondary=07, subordinate=0a, sec-latency=176
Memory window 0: dc000000-dffff000 (prefetchable)
Memory window 1: 8c000000-8ffff000
I/O window 0: 00003000-000030ff
I/O window 1: 00003400-000034ff
16-bit legacy interface ports at 0001

06:00.1 0805: 1180:0822 (rev 21) (prog-if 01)
Subsystem: 10f7:8338
Flags: bus master, medium devsel, latency 32, IRQ 22
Memory at dbffec00 (32-bit, non-prefetchable) [size=256]
Capabilities:

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU L7800 @ 2.00GHz
stepping : 11
cpu MHz : 2001.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm ida
bogomips : 3994.40
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU L7800 @ 2.00GHz
stepping : 11
cpu MHz : 2001.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm ida
bogomips : 3990.04
clflush size : 64

$ xdpyinfo
name of display: :0.0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 10400090
X.Org version: 1.4.0.90
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x28003aa, revert to Parent
number of extensions: 33
BIG-REQUESTS
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
Extended-Visual-Information
GLX
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
RANDR
RECORD
RENDER
SECURITY
SGI-GLX
SHAPE
SYNC
TOG-CUP
X-Resource
XAccessControlExtension
XC-APPGROUP
XC-MISC
XFIXES
XFree86-Bigfont
XFree86-DGA
XFree86-DRI
XFree86-Misc
XFree86-VidModeExtension
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
default screen number: 0
number of screens: 1

screen #0:
dimensions: 1400x1050 pixels (370x277 millimeters)
resolution: 96x96 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x72
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0x7aa03f
KeyPressMask KeyReleaseMask ButtonPressMask
ButtonReleaseMask EnterWindowMask LeaveWindowMask
ButtonMotionMask ExposureMask StructureNotifyMask
SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask
PropertyChangeMask
number of visuals: 17
default visual id: 0x23
visual:
visual id: 0x23
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x24
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x25
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x26
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x27
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x28
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x29
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2a
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2b
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2c
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2d
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2e
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2f
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x30
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x31
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x32
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x70
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits





Let's Note CF-Y7DにUbuntu 8.04日本語デスクトップ版をインストール

仕事用PCをこれまでのVAIO type Tから、Let's Note CF-Y7Dに交換開始。

CF-Y7Dと増設メモリ 1G(Buffalo D2/P533-1G)、ディスクに320GB(7200rpm)のTravelstar 7K320を購入。

開梱して電源を入れるまもなく、メモリ増設とディスク交換を実施。プラスドライバー一本で楽々完了。

Ubuntu 8.04日本語デスクトップ版のインストールCDを入れて...って、入れ方が分からない。
電源を入れてから、ドライブのイジェクトボタンを操作しても開かない。ちょっとはまった。
で、仕方ないので説明書を読むと、電源入れない場合は底のスイッチで開けろとのこと。
で、ようやく入れて、再度電源を入れてみたけど、ディスクを読みにいかない。

BIOSで調べたら、初期設定ではDVDドライブの電源はOFFになっていたので、ONに変更。
これで無事にインストールが開始できた。

で、インストールが終わったところで、とりあえず機能的に確認。
- 画面
- 問題なく1400x1050が表示されている
- Fnキーでの輝度調節が効かない
- サウンド
- 問題なし
- Fnキーでのボリューム変更も可能
- ネットワーク
- 有線、無線とも問題なし
- アプレットで切り替えもできる

気になっているのはファンがずーっとまわり続けていること。ちょっと調べてみよう。



2008年6月6日金曜日

ThinkpadのVT対応

http://www.thinkwiki.org/wiki/Intel_Core_2_Duo_%28Merom%29

X300はVT対応してるっぽいなぁ。
Let's Note Y7DではなくてX300にしようかなあ。