Showing posts with label asus. Show all posts
Showing posts with label asus. Show all posts

Saturday, March 12, 2011

Windows 7 sp1 [Solved]

Windows update fails to install service Windows 7 sp1. After downloading the 900 MB of windows6.1-KB976932-X64.exe (I also downloaded Windows_Win7SP1.7601.17514.101119-1850.AMD64CHK.Symbols.msi and Windows_Win7SP1.7601.17514.101119-1850.AMD64FRE.Symbols.msi, almost 300 MB each but I am still not sure about the requirement of these two), I tried to update manually. But this failed again : "L'installation n'a pas réussi", "l'assembly n'a pas pu être trouvé". "Détails" do not give a lot more info : "Erreur : ERROR_SXS_ASSEMBLY_MISSING(0x80073701)". There is a link to get more info ("Se connecter pour en savoir plus sur ce problème"), but this does not help me solve this problem.

Found the same problem here and here.

Looking deeper in C:\Windows\Logs\CBS\CBS.log (>250 MB) :
2011-03-12 22:11:26, Info                  CBS    Exec: Resolving Package: Package_43_for_KB976098~31bf3856ad364e35~amd64~~6.1.1.1, Update: 976098-91_neutral_LDR
2011-03-12 22:11:26, Info CBS Exec: Resolving Package: Package_43_for_KB976098~31bf3856ad364e35~amd64~~6.1.1.1, Update: 976098-91_neutral_LDR, PinDeployment: amd64_8c41fc7eb0dbe2daefc621237184c0e3_31bf3856ad364e35_6.1.7600.20561_none_e8d566dacff1f5ff
2011-03-12 22:11:26, Error CSI 0000000c@2011/3/12:21:11:26.177 (F) d:\w7rtm\base\wcp\componentstore\csd_locking.cpp(324): Error STATUS_SXS_ASSEMBLY_MISSING originated in function CCSDirectTransaction::LockComponent expression: (null)
[gle=0x80004005]
2011-03-12 22:11:37, Error CSI 0000000d (F) STATUS_SXS_ASSEMBLY_MISSING #1573632# from CCSDirectTransaction::OperateEnding at index 0 of 1 operations, disposition 2[gle=0xd015000c]
2011-03-12 22:11:37, Error CSI 0000000e (F) HRESULT_FROM_WIN32(ERROR_SXS_ASSEMBLY_MISSING) #1573517# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_PinDeployment(Flags = 0, a = 8c41fc7eb0dbe2daefc621237184c0e3, Version = 6.1.7600.20561, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral, cb = (null), s = (null), rid = [77]"Package_43_for_KB976098~31bf3856ad364e35~amd64~~6.1.1.1.976098-91_neutral_LDR", rah = [1]"2", manpath = (null), catpath = (null), ed = 0, disp = 0)[gle=0x80073701]
2011-03-12 22:11:38, Info CBS Failed to pin deployment while resolving Update: 976098-91_neutral_LDR from file: (null) [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
2011-03-12 22:11:38, Info CBS Failed to resolve item[0] in Package: Package_43_for_KB976098~31bf3856ad364e35~amd64~~6.1.1.1, Update: 976098-91_neutral_LDR [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
2011-03-12 22:11:38, Info CBS Failed to resolve execution update. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
2011-03-12 22:11:38, Error CBS Failed to resolve execution package: Package_43_for_KB976098~31bf3856ad364e35~amd64~~6.1.1.1 [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
2011-03-12 22:11:38, Info CSI 0000000f@2011/3/12:21:11:38.370 CSI Transaction @0x34c280 destroyed
I think the important part is Package_43_for_KB976098~31bf3856ad364e35~amd64~~6.1.1.1. So I tried to download KB976098 for x64 and install it manually, but windows tells me it is already installed.I eventually managed to install SP1 thanks to Kris post : I had to remove 4 KB : KB976098, KB979306, KB981793 and KB979916. Problem solved !

Saturday, August 14, 2010

Asus U30JC-QX010X : Asus WebStorage

Asus WebStorage suddenly stopped asking for a login/password. I mistakenly clicked on the icon below Computer and it just asked for EULA agreement. Then I've been able to use the dedicated 1000 GB storage for my backups. Asus support told me a couple of months ago that U30JC-QX010X had no WebStorage offer included. But :
  • This is just a 2 months trial.
  • Asus WebStorage pollutes all synchronized folders with .awo directories.
  • You cannot disable default folders (Favorites, Documents and some BackupDemo folder on the desktop).

Tuesday, June 15, 2010

Setup Gentoo on Asus U30JC-QX010X : Part 3 - X

This post is greatly inspired from Gentoo Xorg How-To. Edit 2010-07-27 :
  • Replaced vesa by intel in VIDEO_CARDS. Using vesa cannot scale X to 1366x768 and it is not compatible with vesa framebuffer.
  • nvidia is not working. It is better to remove it to avoid problems when enabling xorg-x11 opengl (conflict between lib32 and lib64 folders).
Edit /etc/make.conf and define both INPUT_DEVICES and VIDEO_CARDS :
INPUT_DEVICES="evdev synaptics keyboard mouse"
VIDEO_CARDS="nvidia intel"
Edit use flags for a couple of packages needed for X. You can group these settings in /etc/portage/package.use/X :
media-fonts/corefonts X
media-fonts/dejavu X
sys-apps/dbus X
sys-apps/hal laptop X
x11-base/xorg-server hal
x11-drivers/xf86-input-synaptics hal
Emerge Xorg :
emerge xorg-server
env-update && source /etc/profile
Select xorg-x11 (this might be not necessary) ;
eselect opengl set xorg-x11
Emerge hal :
emerge hal
rc-update add hald default
Update keymap if needed :
mkdir -p /etc/hal/fdi/policy
cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi /etc/hal/fdi/policy

<merge key="input.xkb.layout" type="string">fr</merge>

/etc/init.d/hald restart
Add yourself to the video group (maybe not needed). Nvidia (I fail to use Nvidia and the Geforce 310m for now. No better result with 256.35) : /etc/portage/package.keywords/X :
~sys-kernel/gentoo-sources-2.6.33-r2 ~amd64
~sys-kernel/gentoo-sources-2.6.34-r1 ~amd64
~x11-drivers/nvidia-drivers-195.36.24 ~amd64
~x11-libs/libvdpau-0.3-r2 ~amd64
Emerge kernel, nvidia-drivers, glx tools (like glxgears) :
emerge gentoo-sources-2.6.33-r2
emerge nvidia-drivers-195.36.24
emerge mesa-progs
module-rebuild will rebuild the necessary packages when upgrading your kernel :
emerge module-rebuild
module-rebuild populate
module-rebuild rebuild
Configure Xorg :
Xorg -configure
Copy /root/xorg.conf.new to /etc/X11/xorg.conf. You need to comment the Nvidia section to keep only vesa (Nvidia fails).
#Section "Device"
# Identifier  "Card0"
# Driver      "nvidia"
# VendorName  "nVidia Corporation"
# BoardName   "Unknown Board"
# BusID       "PCI:1:0:0"
#EndSection
Emerge enlightenment. It is also a good idea to add xterm and some font packages. Set enlightenment default :
emerge enlightenment corefonts dejavu xterm
~/.xinitrc :
exec /usr/bin/e16
At this point, once the new kernel has been installed, you should be able to start enlightenment safely (with intel driver only for now). For info, small kernel updates :
diff config-2.6.33-r2.0 config-2.6.33-r2.7

< CONFIG_ACPI_VIDEO=y
> CONFIG_ACPI_VIDEO=m
< CONFIG_I2C_ALGOBIT=y
> CONFIG_I2C_ALGOBIT=m
< CONFIG_AGP=y
< CONFIG_AGP_AMD64=y
< CONFIG_AGP_INTEL=y
> CONFIG_AGP=m
> CONFIG_AGP_INTEL=m
< CONFIG_DRM=y
< CONFIG_DRM_KMS_HELPER=y
> CONFIG_DRM=m
> CONFIG_DRM_KMS_HELPER=m
< CONFIG_DRM_I915=y
> CONFIG_DRM_I830=m
> CONFIG_DRM_I915=m
< CONFIG_VIDEO_OUTPUT_CONTROL=y
< CONFIG_FB=y
> CONFIG_VIDEO_OUTPUT_CONTROL=m
> CONFIG_FB=m
> CONFIG_FIRMWARE_EDID=y
< CONFIG_FB_CFB_FILLRECT=y
< CONFIG_FB_CFB_COPYAREA=y
< CONFIG_FB_CFB_IMAGEBLIT=y
> CONFIG_FB_CFB_FILLRECT=m
> CONFIG_FB_CFB_COPYAREA=m
> CONFIG_FB_CFB_IMAGEBLIT=m
< CONFIG_FB_TILEBLITTING=y
< CONFIG_FB_EFI=y
> CONFIG_FB_UVESA=m
< CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
> CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=256
< CONFIG_FRAMEBUFFER_CONSOLE=y
> CONFIG_FRAMEBUFFER_CONSOLE=m
> CONFIG_LOGO_LINUX_MONO=y
> CONFIG_LOGO_LINUX_VGA16=y
Nvidia errors :
NVRM: failed to copy vbios to system memory.
NVRM: RmInitAdapter failed! (0x30:0xffffffff:868)
NVRM: rm_init_adapter(0) failed

Saturday, June 12, 2010

Asus FastBoot

Asus FastBoot delays the start up of applications configured to start automatically in the registry through Microsoft/Windows/CurrentVersion/Run keys. It is handled by the AFBAgent service. Keys are moved from Microsoft/Windows/CurrentVersion/Run keys to HKLM/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg. Application delayed by default on an Asus U30JC-QX010C :
  • Adobe Reader Speed Launcher ("C:\Program Files (x86)\Adobe\Reader 9.0\Reader\Reader_sl.exe")
  • ASUS Screen Saver Protector (C:\Windows\AsScrPro.exe)
  • CLMLServer ("C:\Program Files (x86)\CyberLink\Power2Go\CLMLSvc.exe")
  • RtHDVCpl (C:\Program Files\Realtek\Audio\HDA\RAVCpl64.exe -s)

Sunday, June 6, 2010

Asus U30JC-QX010X : Tuning Windows 7 Part 3 : Tasks

More than 40 scheduled tasks are configured under Windows 7 Professional on my Asus laptop. Task scheduling has been greatly improved. It is now possible to configure a task so that it starts when some user open a session. These tasks are responsible for many processes running in the background. Task are also organized hierarchicaly. Some of these tasks are configured with the Administrators group which does not exist on my French laptop. I must fix the task user first to be able to disable the task. The following tasks can be disabled :
  • \ACMON (bad user) : Asus Splendid Video Enhancement Technology
  • \ASUS Live Update (bad user)
  • \ASUS SmartLogon Console Sensor (bad user) : Face identification with webcam
  • \ASUSControlDeck (bad user) : Asus Control Deck application
  • SidebarExecute : Might be the nuisance responsible for automatically resizing (some) windows by reserving the right of the screen.
  • \WC3 (bad user) : Asus Wireless Console 3
Requirements :
  • \ASUS P4G (bad user) : Power 4 Gear. This task must be running to launch Power 4 Gear (BatteryLife.exe). But this task can be annoying : it automatically disable transparency and force some white asus wallpaper when running on battery.

Sunday, May 30, 2010

Asus U30JC-QX010X : Tuning Windows 7 Part 2 : Services

More than 70 services are started by default on my Asus laptop with Windows 7 Professional. Many services can be disabled. Home Group management :
  • FDResPub (Publication des ressources de découverte de fonctions)
  • HomeGroupListener (Écouteur HomeGroup)
  • HomeGroupProvider (Fournisseur HomeGroup)
  • p2pimsvc (Gestionnaire d’identité réseau homologue) : Remote assistance and Home Groups
  • p2psvc (Groupement de mise en réseau de pairs)
Network :
  • BITS (Service de transfert intelligent en arrière-plan) : required for Windows update.
  • CscService (Fichiers hors connexion) : usefull to synchronize files between computers.
  • Dnscache (Client DNS)
Network security :
  • BFE (Moteur de filtrage de base)
  • IKEEXT (Modules de génération de clés IKE et AuthIP)
  • MpsSvc (Pare-feu Windows)
  • PolicyAgent (Agent de stratégie IPsec)
  • WinDefend (Windows Defender)
Security :
  • wscsvc (Centre de sécurité)
  • wuauserv (Windows Update)
Window manager :
  • Themes (Thèmes)
  • UxSms (Gestionnaire de sessions du Gestionnaire de fenêtrage)
Others :
  • AFBAgent (AFBAgent) : Asus FastBoot agent
  • DPS (Service de stratégie de diagnostic) : Might be usefull to ease automatic network reconfiguration.
  • iphlpsvc (Assistance IP) : IPv6
  • LanmanServer (Serveur) : Share file and print resources, Home Groups
  • PNRPsvc (Protocole PNRP) : Required for remote assistance and Home Groups
  • SeaPort (SeaPort) : Microsoft Search Enhancement Applications
  • ShellHWDetection (Détection matériel noyau) : Autoplay hardware events
  • Spooler (Spouleur d'impression)
  • SysMain (Superfetch)
  • TrkWks (Client de suivi de lien distribué) : Maintain shortcuts for moved NTS items accross the network
  • upnphost (Hôte de périphérique UPnP) : Manage hosted upnp devices
  • WerSvc (Service de rapport d'erreurs Windows) : Error reports.
  • wlidsvc (Windows Live ID Sign-in Assistant)
  • WMPNetworkSvc (Service Partage réseau du Lecteur Windows Media) : Share windows media player libraries with upnp
  • WSearch (Windows Search)
Two more services could have been disabled :
  • NlaSvc (Connaissance des emplacements réseau) and netprofm (Service Liste des réseaux) but they must be enabled for the Scheduled Task Manager to work properly (if they are disabled, opening the Conditions tab of a scheduled tasks crashes as it throws an exception.)
  • lmhosts (Assistance NetBIOS sur TCP/IP) is said to be legacy support for NetBIOS over TCP/IP, but I do not known how to access other shares (e.g. NAS) with this service disabled.
References :Todo :
  • ASLDRService (ASLDR Service) : Asus ...
  • ATKGFNEXSrv (ATKGFNEX Service) : ATK Generic Function Service.

Sunday, May 16, 2010

Asus U30JC-QX010X Boot Keys

  • F2 : Enter BIOS
  • Suppr : same as F2, but F2 is more reliable
  • F9 : Restore with AI Revovery
  • F10 : Configure booting options
  • Esc : Choose boot device
These keys do not work upon leaving hibernation. And Windows 7 boot menu is not shown either.

Lost Nvidia Geforce 310M

My graphic card disappeared from my asus. I was trying to load latest linux nvidia drivers (with modprobe nvidia) to use the Nvidia Geforce 310m under linux but it told me no such device. The card is also missing in lspci output when I boot Gentoo. And it is not showing anymore in Windows device manager. I only got the Intel HD video driver. Actually, I am not sure anymore about seeing Nvidia driver there... This started to drive me crazy until I read my previous post and saw the line I was looking for :
01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 310M] (rev a2)
I did not find anything disabled in the BIOS. As far as I remember, I only switched boot devices (well using Esc key let you choose the booting device). Well I am currently restoring the four AI Recovery backup DVD and I will see if it helps... The card is still missing after recovery. I just filed a case on Asus support web site... Follow up in comments.

Saturday, May 15, 2010

Asus U30JC-QX010X : Tuning Windows 7 Part 1

Bluetooth Disable bluetooth :
  • Panneau de configuration / Centre réseau et partage / Modifier les paramètres de la carte / bluetooth (F5 might be necessary)
  • Désactiver
  • Propriétés / Bluetooth / Paramètres Bluetooth / Désactiver la carte Bluetooth
  • (elevated) net stop btwdins
  • (elevated) net stop bthserv
  • (elevated) sc config btwdins start= disabled
Enable Bluetooth :
  • (elevated) sc config btwdins start= auto
  • (elevated) net start btwdins
  • (elevated) net start bthserv
  • Bluetooth tray icon / Activer l'adaptateur
  • Panneau de configuration / Centre réseau et partage / Modifier les paramètres de la carte / bluetooth (F5 might be necessary)
  • Activer
More coming soon... Edit 2010-07-31 : It is also possible to enable and enable bluetooth device with devcon utility from Windows Driver Kit (WDK) :
devcon find *|sort
devcon enable "USB\VID_0B05&PID_1788"
devcon disable "USB\VID_0B05&PID_1788"
devcon status "USB\VID_0B05&PID_1788"

Friday, May 14, 2010

Setup Gentoo on Asus U30JC-QX010X : Part 2

Here is common hardware info about Asus U30JC-QX010X : lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 12)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 310M] (rev a2)
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 Ethernet controller: Atheros Communications AR8131 Gigabit Ethernet (rev c0)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model  : 37
model name : Intel(R) Core(TM) i5 CPU       M 430  @ 2.27GHz
stepping : 2
cpu MHz  : 2267.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id  : 0
cpu cores : 2
apicid  : 0
initial apicid : 0
fpu  : yes
fpu_exception : yes
cpuid level : 11
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 syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips : 4521.00
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model  : 37
model name : Intel(R) Core(TM) i5 CPU       M 430  @ 2.27GHz
stepping : 2
cpu MHz  : 2267.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id  : 2
cpu cores : 2
apicid  : 4
initial apicid : 4
fpu  : yes
fpu_exception : yes
cpuid level : 11
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 syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips : 4521.75
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model  : 37
model name : Intel(R) Core(TM) i5 CPU       M 430  @ 2.27GHz
stepping : 2
cpu MHz  : 2267.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id  : 0
cpu cores : 2
apicid  : 1
initial apicid : 1
fpu  : yes
fpu_exception : yes
cpuid level : 11
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 syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips : 4521.75
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model  : 37
model name : Intel(R) Core(TM) i5 CPU       M 430  @ 2.27GHz
stepping : 2
cpu MHz  : 2267.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id  : 2
cpu cores : 2
apicid  : 5
initial apicid : 5
fpu  : yes
fpu_exception : yes
cpuid level : 11
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 syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips : 4521.75
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
cat /proc/acpi/battery/BAT0/info
present:                 yes
design capacity:         84000 mWh
last full capacity:      80700 mWh
battery technology:      rechargeable
design voltage:          15000 mV
design capacity warning: 8400 mWh
design capacity low:     840 mWh
capacity granularity 1:  840 mWh
capacity granularity 2:  840 mWh
model number:            UL50-56
serial number:            
battery type:            LIon
OEM info:                ASUSTek

Setup Gentoo on Asus U30JC-QX010X : Part 1

Here is how to setup Gentoo on my brand new asus. Summary :
  • Resize partitions with gparted.
  • Setup minimal gentoo
  • Update Windows 7 boot loader
Partitioning :
  • Burn last GParted live iso (current is 0.5.2-9).
  • Enter BIOS (sup key)
  • Switch boot devices
  • Launch GParted
  • Remove 30 GB from D: (/dev/sda5)
  • Add / partition : 25 GB (/dev/sda6)
  • Add /home partition : 5 GB (/dev/sda7)
I don't think I need a swap partition. To install Gentoo, I followed both x64 (last updated in 2008) and x86 (updated in 2010) guides.
  • Boot : gentoo with fr keymap.
  • Set root pasword : passwd ...
  • Load wifi : modprobe ath9k
  • ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0
  • Edit /etc/conf.d/net and /etc/wpa_supplicant/wpa_supplicant.conf
Copy them from another box through a usb key or edit them from scratch with nano. /etc/conf.d/net :
modules=( "wpa_supplicant" "!iwconfig" )
wpa_supplicant_wlan0="-Dwext"
/etc/wpa_supplicant/wpa_supplicant.conf :
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
 ssid="freebox_essid"
 key_mgmt=WPA-PSK
 psk="secret"
 priority=20
}
  • Start network : /etc/init.d/net.wlan0 start
  • Mount partitions :
mount /dev/sda6 /mnt/gentoo
mkdir /mnt/gentoo/home
mount /dev/sda7 /mnt/gentoo/home
  • Set date
Stage3 :
cd /mnt/gentoo
links http://www.gentoo.org/main/en/mirrors.xml
  • Links keys : Download / Quit.
  • releases/amd64/current-iso/stage3-amd64-20100408.tar.bz2
tar xvjpf stage3-*.tar.bz2
  • snapshots/current/portage-latest.tar.bz2
tar -xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr
make.conf :
nano -w /mnt/gentoo/etc/make.conf
  • Got CFLAGS and CXXFLAGS from Gentoo wiki.
  • MAKEOPTS is cpu count plus one.
CFLAGS="-march=core2 -msse4 -mcx16 -mpopcnt -msahf -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
mirrorselect (free.fr) :
emerge mirrorselect
mirrorselect -i -o >> /etc/make.conf
mirrorselect -i -r -o >> /etc/make.conf
Chroot :
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev

chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile
export PS1="(chroot) $PS1"
Portage :
emerge --sync
USE="-fortran -ipv6 mmx nptl nptlonly sse sse2 unicode"
locale & time :
nano -w /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
fr_FR ISO-8859-1
fr_FR@euro ISO-8859-15
fr_FR.UTF-8 UTF-8
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime
Kernel (2.6.32-r7) :
emerge gentoo-sources
make menuconfig
    Device Drivers  --->
[*]   Network device support  --->
[*]     Wireless LAN  --->
[*]       Wireless LAN (IEEE 802.11)  --->
<M>         Atheros Wireless Cards  --->
<M>           Atheros 802.11n wireless cards support
    File systems  --->
<*>   The Extended 4 (ext4) filesystem
[*]     Ext4 extended attributes
[*]       Ext4 POSIX Access Control Lists
[*]       Ext4 Security Labels
CONFIG_ATH_COMMON=m
CONFIG_ATH9K=m
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
make -j5 && make modules_install
cp arch/x86_64/boot/bzImage /boot/kernel-2.6.32-gentoo-r7
nano -w /etc/modules.autoload.d/kernel-2.6
ath9k
  • fstab :
nano -w /etc/fstab
/dev/sda6 / ext4 defaults,noatime 1 1
/dev/sda7 /home ext4 noatime   0 2
  • network : copy net and wpa_supplicant.conf (you can use alternate console with Alt-F2)
cd /etc/init.d
ln -s net.lo net.wlan0
rc-update add net.wlan0 default
emerge dhcpcd wpa_supplicant
System configuration :
emerge syslog-ng vixie-cron
rc-update add syslog-ng default
rc-update add vixie-cron default
rc-update add sshd default
  • Set root password (do not skip this step!) :
passwd
  • Config files :
nano -w /etc/conf.d/clock

TIMEZONE="Europe/Paris"

nano -w /etc/rc.conf

EDITOR="/usr/bin/vim"
XSESSION="e16"

nano -w /etc/conf.d/rc

RC_PARALLEL_STARTUP="yes"

nano -w /etc/conf.d/keymaps

KEYMAP="fr-latin9"
grub :
emerge grub

nano -w /boot/grub/grub.conf

default 0
timeout 50
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo
root (hd0,5)
kernel /boot/kernel-2.6.32-r7 root=/dev/sda6

grub

grub> root (hd0,5)
grub> setup (hd0,5)
grub> quit
  • Save boot sector (to some usb key):
dd if=/dev/sda6 of=boot.grub bs=512 count=1
Reboot :
exit
umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo/home /mnt/gentoo
reboot
Update boot loader :
  • Steps based on this post
  • Copy boot.grub to C:\
  • Open a cmd as administrator :
C:\>bcdedit /export bcdedit-export-100513
L'opération a réussi.

C:\>bcdedit /create /d Gentoo /application BOOTSECTOR
L'entrée {4bd6ad4c-7c0c-11de-baef-deb9d273c9fa} a été correctement créée.
L'entrée {4bd6ad4d-7c0c-11de-baef-deb9d273c9fa} a été correctement créée.

C:\>bcdedit /set {4bd6ad4d-7c0c-11de-baef-deb9d273c9fa} device boot
L'opération a réussi.

C:\>bcdedit /set {4bd6ad4d-7c0c-11de-baef-deb9d273c9fa} path \boot.grub
L'opération a réussi.

C:\>bcdedit /set {4bd6ad4d-7c0c-11de-baef-deb9d273c9fa} locale fr-FR
L'opération a réussi.

C:\>bcdedit /displayorder {4bd6ad4d-7c0c-11de-baef-deb9d273c9fa} /addlast
L'opération a réussi.

C:\>bcdedit -v
...

Secteur de démarrage en mode réel
---------------------------------
identificateur          {4bd6ad4d-7c0c-11de-baef-deb9d273c9fa}
device                  boot
path                    \boot.grub
description             Gentoo
locale                  fr-FR
Now you should be able to select Gentoo on next reboot. Not seen in amd64 guide :
ccache
emerge -vuD --newuse world
emerge --oneshot libtool
dispatch-conf
perl-cleaner all
python-updater
Notes :
  • grub menu is not visible ?!
  • A lot of packages need to be emerged, still.
Some hardware info is available in next post.

Saturday, May 8, 2010

Asus U30JC-QX010X

Quick summary :
  • Intel core i5-430M
  • 4 GB memory DDR3 1066 MHz
  • 13.3" WXGA 1366 x 768 TFT LED
  • nVidia® GeForce™ G310M 512 MB
  • 320 GB SATA 5400 rpm
  • Webcam 0.3 MP 640x480
  • RJ 45, 3 USB, VGA, HDMI, wifi n, bluetooth, card reader
  • DVD burner
  • 8 cells battery 5600 mAh
  • Windows 7 Professional 64 bits
  • 2 years warranty
Can't wait !