Search:  
Gentoo Wiki

Kohjinsha_SH

Contents

Introduction

The Kohjinsha SH Series are pretty sweet devices.

This company apparently listens to user feedback, and has good sense.

Attention: This tutorial will be based on the SH8KP12A/SH8WP12A Japanese versions,so some things may not apply to older/newer models or English versions.

Specs

General:

here's the output of lspci: TODO

Some information from the Singapore website

Note: The Japanese & English models may be slightly different.

lspci

Code: lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)
02:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
02:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
02:06.3 Generic system peripheral [0805]: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller

cpuinfo

Code: cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : Genuine Intel(R) processor               800MHz
stepping        : 8
cpu MHz         : 800.000
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe est tm2
bogomips        : 1601.54
clflush size    : 64

Installation

BIOS Setup

You need to enable 32-bit I/O for the harddrive and Bluetooth/Wireless to use them!

Also, set a password for security!!

Partition Drive

Use Vista's Disk Management feature to resize your Vista partition if necessary. How to is here: http://vistarewired.com/2007/02/16/how-to-resize-a-partition-in-windows-vista/

Check out the PenDrive linux site to boot into linux from a USB drive. http://pendrivelinux.com/

The Ubuntu distro is recommended as it supports most hardware and reiserfs for those who use it.

Use gtparted to partition the drives.

There are already three primary partitions for windows vista. A 4 GB partition probably used for holding backup/installation files, the C drive, and the D drive. Delete the D drive partition and replace it with a 100MB or so ext3 boot partition. (/dev/sda3)

Then create a logic partition(/dev/sda4) to hold your swap(/dev/sda5) and root partition(/dev/sda6).

Follow the Gentoo Handbook for the rest of the installation.


Caution: Under the ubuntu live usb, the hard drive will be /dev/sda but it will be /dev/hda under Gentoo! (Please write why this is here, if you know).

The harddrive will still use dma with a proper kernel configuration so it should not be a problem. Just remember to write your /etc/fstab with /dev/hda

Config

Kernel

Although the 2.6.23 kernel is marked as stable, there is slightly better performance with the 2.6.22 kernel. This is a sample kernel config for 2.6.22

Xorg

File: /etc/X11/xorg.conf
Section "ServerLayout"
	Identifier	"X.Org Configured"
	Screen	0	"Screen0" 0 0
	InputDevice	"Keyboard0" "CoreKeyboard"
# PS/2 Mouse using /dev/input/mice in Kernel 2.6
#	InputDevice	"Serial Mouse" "AlwaysCore"
	InputDevice	"USB Mouse" "AlwaysCore"
#	InputDevice	"Synaptics" "AlwaysCore"
EndSection

Section "ServerFlags"
	Option	"AllowMouseOpenFail" "true"
	
EndSection

Section "Files"
	FontPath	"/usr/share/fonts/util"
	FontPath	"/usr/share/fonts/encodings"
	FontPath	"/usr/share/fonts/misc"
	FontPath	"/usr/share/fonts/local"
	FontPath	"/usr/share/fonts/terminus"
	FontPath	"/usr/share/fonts/corefonts"
	FontPath	"/usr/local/share/fonts"
	FontPath	"/usr/share/fonts/default"
	FontPath	"/usr/share/fonts/TTF"
	FontPath	"/usr/share/fonts/type1"
	FontPath	"/usr/share/fonts/100dpi"
	FontPath	"/usr/share/fonts/75dpi"
	FontPath	"/usr/share/fonts/arphicfonts"
	FontPath	"/usr/share/fonts/jisx0213"
	FontPath	"/usr/share/fonts/shinonome"
	FontPath	"/usr/share/fonts/baekmuk-fonts"
	FontPath	"/usr/share/fonts/kacst-fonts"
	FontPath	"/usr/share/fonts/sgi-fonts"
	FontPath	"/usr/share/fonts/unfonts"
	FontPath	"/usr/share/fonts/default/ghostscript"
	FontPath	"/usr/share/fonts/xfonts-cronyx-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-misc"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-misc"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-misc"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-misc"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-misc"
EndSection

Section "Module"
	Load	"ddc"
	#Load	"vbe"
	#Load	"GLcore"
	#According to [[AIGLX]] these two slow down compiz
	Load	"dbe"
	Load	"dri"
	Load	"extmod"
	Load	"glx"
	Load	"bitmap"
	Load	"type1"
	Load	"freetype"
	Load	"record"
EndSection

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver	"kbd"
	Option	"CoreKeyboard"
	Option	"XkbRules" "xorg"
	#Option	"XkbModel" "pc105"
	Option	"XkbModel" "jp106"
#	Option	"XkbOptions" "grp:toggle,grp_led:scroll"
	Option	"XkbVariant" ",winkeys"
	Option	"XkbLayout" "jp"
EndSection

Section "InputDevice"
	Identifier	"Serial Mouse"
	Driver	"mouse"
	Option	"Protocol" "Microsoft"
	Option	"Device" "/dev/ttyS0"
	Option	"Emulate3Buttons" "true"
	Option	"Emulate3Timeout" "70"
	Option	"SendCoreEvents"  "true"
EndSection

Section "InputDevice"
	Identifier	"PS/2 Mouse"
	Driver	"mouse"
	Option	"Protocol" "IMPS/2"
	Option	"Device" "/dev/misc/psaux"
	Option	"Emulate3Buttons" "true"
	Option	"Emulate3Timeout" "70"
	Option	"SendCoreEvents"  "true"
	Option	"ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
	Identifier	"USB Mouse"
	Driver	"mouse"
	Option	"Device" "/dev/input/mice"
	Option	"SendCoreEvents" "true"
	Option	"Protocol" "IMPS/2"
	Option	"ZAxisMapping" "4 5"
	Option	"Buttons" "5"
EndSection

#Section "InputDevice"
#	Identifier	"Synaptics"
#	Driver	"synaptics"
#	Option	"Protocol" "event"
#	Option	"Device" "/dev/input/event1"
#	Option	"LeftEdge" "1900"
#	Option	"RightEdge" "5400"
#	Option	"TopEdge" "1900"
#	Option	"BottomEdge" "4000"
#	Option	"FingerLow" "25"
#	Option	"FingerHigh" "30"
#	Option	"MaxTapTime" "180"
#	Option	"MaxTapMove" "220"
#	Option	"VertScrollDelta" "100"
#	Option	"MinSpeed" "0.02"
#	Option	"MaxSpeed" "0.10"
#	Option	"AccelFactor" "0.0010"
#	Option	"SHMConfig" "on"

#EndSection

# Auto-generated by mkxf86config

Section "Monitor"
	Identifier   "Monitor0"
	HorizSync    28.0 - 96.0
	VertRefresh  50.0 - 75.0
EndSection

Section "Device"
	### Available Driver options are:-
	# sw_cursor is needed for some ati and radeon cards
	#Option     "sw_cursor"
	#Option     "hw_cursor"
	#Option     "NoAccel"
	#Option     "ShowCache"
	#Option     "ShadowFB"
	#Option     "UseFBDev"
	Option     "Rotate"
	Option	    "RenderAccel" "on"
	#Maybe try
	Option	"AddARGBGLXVisuals" "true"
	Option	"GARTSize" "64#

	Option	    "DRI" "true"
	Option	    "XAANoOffscreenPixmaps" "true"
	Identifier  "Card0"
	# The following line is auto-generated by x11-misc/mkxf86config
	Driver      "i810"
	VendorName  "All"
	BoardName   "All"
#	BusID       "PCI:1:0:0"
	BusID "PCI:0:2:0"
	Option "VideoRam" "65536"
	Option "CacheLines" "1980"
EndSection

Section "Screen"
	Identifier	"Screen0"
	Device	"Card0"
	Monitor	"Monitor0"
	DefaultColorDepth 24
	SubSection "Display"
		Depth	1
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	4
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	8
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	15
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	16
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	24
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	32
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Extensions"
	Option	"Composite" "Enable"
EndSection

Section "DRI"
	Group 0
	Mode 0666
EndSection
 


Hardware Setup

Ethernet

Realtek RTL8101 Family PCI-E Fast Ethernet works out of the box.

Wireless

It uses the rt73 drivers, but the rt2x00 ebuild doesn't compile correctly.

Download the daily cvs from http://rt2x00.serialmonkey.com/ and compile it manually.

cd into the modules and run make && make install and it should work.

(remember to "modprobe rt73")

Note: If you don't see the green Bluetooth and Wireless icons on your display, you have to enable them in the BIOS.

Kismet

Just change the suiduser and source

File: /etc/kismet.conf
source=rt73,wlan0,rt73

Bluetooth

Works out of the box. Make sure you enable BT in the BIOS.

Emerge bluez-utils to play around.

One Seg TV Tuner

No support for linux


SD/CF Card Reader

Works.

Touchscreen

The touchscreen uses the Penmount 6000 usb drivers. The penmount ebuild doesn't build correctly.

TODO

Webcam

The webcam works with linux-uvc (media-video/linux-uvc-0.1.0_pre173 confirmed)

The webcam is Bus 005 Device 004: ID 05c8:0109 Cheng Uei Precision Industry Co., Ltd (Foxlink)

First unmask linux-uvc, then emerge

 echo "media-video/linux-uvc ~x86" >> /etc/portage/package.keywords
 emerge linux-uvc

You will also have to fix the permissions so normal users can access it

 chmod o=wrx /dev/v4l/video0

Works great with Skype!

Other links

Multimedia Buttons

The Direction/Scroll/Mouse/Brightness buttons work out of the box.

Launcher/Shutter/Rotation buttons do not seemed to be recognized by the kernel.

You can get the volume control working by emerging xbindkeys and adding the file ".xbindkeysrc" to your home directory with the following

 "amixer sset Front 1+"
  c:176
 "amixer sset Front 1-"
  c:174o

Performance Optimization

Harddrive

DMA should be automatically set by the kernel.

You can add enable unmaskirq and 32-bit I/O for performance.

File: /etc/conf.d/hdparm.conf
hda_args="-u1 -c1"

Make sure you add hdparm to rc-update :

# rc-update -a hdparm boot

Attention: Make sure you enabled 32-bit I/O in the BIOS!!

Check out the hdparm article for more information.

Power Management

CPU Frequency Scaling

Emerge cpufrequtils and use cpufreq-info and cpufreq-set to change the cpu frequency governors.

Check out cpufreqd for automatic freq governor changing.

Backlight

The backlight "brightness" buttons work out of the box.

The screen is automatically dimmed when you unplug the AC and vice versa.

The screen will also automatically turn off when you close the screen.

Power Management

Check out Gentoo's Power Management guide http://www.gentoo.org/doc/en/power-management-guide.xml

Setting up acpid and cpufreqd to automatically change CPU governors can save battery life, and there is little performance decrease when using the powersave governor.

Automatic backlight dimming is already handled in hardware so there is no configuration required!

You should get about 2:30 hours with wifi on batteries.

Eye Candy

Compiz-Fusion

Compiz-Fusion works amazing! x11-drivers/xf86-video-i810 2.2.0 doesn't work as of 2007/12, mask it and use 2.1.1 instead.

Also, note that mplayer,webcam stuff, vlc, etc.. will not work due to a bug in compiz. Create a bash script with the following and run it as your normal user to get compiz going.

 sleep 2
 LIBGL_ALWAYS_INDIRECT=true compiz --replace ccp  &
 sleep 5
 emerald --replace &

uvesa

As of starting with gentoo kernel 2.6.23-r3 and vanilla 2.6.24, there is no more vesa-tng. It has been moved to a userland driver -> uvesafb. Check out the following link for how to install. http://dev.gentoo.org/~spock/projects/uvesafb/

Add the video line to grub title=2.6.23-r3 root (hd0,2) kernel /boot/kernel-2.6.23-r3 root=/dev/hda6 video=uvesafb:800x600-32,mtrr:3,ywrap

Retrieved from "http://www.gentoo-wiki.info/Kohjinsha_SH"

Last modified: Thu, 28 Aug 2008 23:05:00 +0000 Hits: 2,102