Monday, November 8, 2010

TechEd 2010

I am currently in Berlin for Microsoft TechEd 2010. It is a first-time Tech Ed and a first time in Berlin. Unfortunately I fear I will not have time to discover the city as there is a lot to do at the conference. I attended the Silverlight pre-conference as Visual Studio's was dedicated to beginners. Funny thing : they use a lot of penguin images in their example. The infrastructure in place is quite impressive. Lots of machines everywhere, with wireless network, that's great ! The keynote was a lot about aaS (as a service) stuff : infra/platform/app as a service, with clouds everywhere. Well even the newest private cloud seems quite far away for day to day real life problems.

Wednesday, October 27, 2010

New UE46B8000 firmware

Samsung has just issued a new firmware for the UE46B8000 models. This is version 3002. If you still have version 3000, you must upgrade to version 3001 first. Changes :
  • DLNA browsing speed has been greatly improved.

Thursday, August 19, 2010

Windows 7 Elevated Startup Shortcuts

Shortcuts in Windows 7 Startup folder configured with elevation (administrative privileges) will not be launched. You need to create a scheduled task with administrative (maximum) rights configured to start when you open a session.

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).

Thursday, July 29, 2010

Setup Gentoo on Asus U30JC-QX010X : Part 4 - Webcam

In order to use the asus U30JC-QX010X webcam on Gentoo, I needed to enable a few options in the kernel (2.6.34-r2) :
CONFIG_MEDIA_SUPPORT=y
CONFIG_VIDEO_DEV=m
CONFIG_VIDEO_V4L2_COMMON=m
CONFIG_VIDEO_ALLOW_V4L1=y
CONFIG_VIDEO_V4L1_COMPAT=y
CONFIG_VIDEO_MEDIA=m
CONFIG_IR_CORE=y
CONFIG_VIDEO_IR=y
CONFIG_MEDIA_TUNER=m
CONFIG_MEDIA_TUNER_CUSTOMISE=y
CONFIG_VIDEO_V4L2=m
CONFIG_VIDEO_V4L1=m
CONFIG_VIDEO_CAPTURE_DRIVERS=y
CONFIG_VIDEO_HELPER_CHIPS_AUTO=y
CONFIG_VIDEO_IR_I2C=m
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS=m
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
CONFIG_SND_RAWMIDI=m
CONFIG_SND_RAWMIDI_SEQ=m
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=m
Added use flags :
media-tv/xawtv X alsa opengl
media-video/mplayer v4l v4l2
I only needed to emerge xawtv and mplayer. usbutils was already installed by hal. Then, you can test your webcam :
mplayer tv://
Reference : Webcam - Gentoo Linux Wiki

Wednesday, July 28, 2010

Filed my first Gentoo bug today

While struggling again with linux nvidia driver to use my Geforce 310m under Gentoo, I found a bug in eselect-opengl package. The patch is available in bugzilla.

Saturday, July 24, 2010

Unable to add new components in Windows 7 [Solved]

I wanted to add IIS on my asus laptop with Windows 7 Pro x64 but it keeps failing miserably. I cannot add any new component. It fails with the error :
  • French : Une erreur s'est produite. Certaines fonctionnalités n'ont pas été modifiées correctement.
  • English : An error has occurred. Not all of the features were successfully changed.
It is not linked to my tuning of windows 7 professionnal as I have enabled back again services, tasks, auto run registry keys and startup shortcuts. I have also enabled again system restore for both C and D drives. Strangely, I had to temporarily rename the C drive to its original name (OS) to avoid strange errors when validating the new configuration. I found on the net that the following command line could help :
fsutil resource setautoreset true C:\
But it hasn't fixed my problem. Each attempt adds five Windows Error Reporting events in the Application events log like :
Récipient d’erreurs 660181886, type 5
Nom d’événement : CbsPackageServicingFailure2
Réponse : Non disponible
ID de CAB : 0

Signature du problème : 
P1 : 6.1.7600.16385
P2 : Microsoft-Windows-Foundation-Package
P3 : 6.1.7600.16385
P4 : amd64
P5 : unknown
P6 : 80073701
P7 : Resolve
P8 : Installed
P9 : Installed
P10 : Windows Optional Component Manager

Fichiers joints :
C:\Windows\Logs\CBS\CbsPersist_20100719145300.cab
C:\Windows\Logs\CBS\CbsPersist_20100720135637.cab
C:\Windows\Logs\CBS\CbsPersist_20100724175736.cab
C:\Windows\Logs\CBS\CbsPersist_20100724190432.cab
C:\Windows\Logs\CBS\CbsPersist_20100724202127.cab
C:\Windows\Logs\CBS\CBS.log
C:\Windows\servicing\Sessions\Sessions.xml
C:\Windows\winsxs\poqexec.log
C:\Windows\inf\setupapi.dev.log

Ces fichiers sont peut-être disponibles ici :
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\Critical_6.1.7600.16385_12b152e0507da7dbac253e5d6773b3d790739076_02e58056

Symbole d’analyse : 
Nouvelle recherche de la solution : 0
ID de rapport : 48d9af65-9764-11df-89ff-9b9906ca6306
Statut du rapport : 0
or
Récipient d’erreurs 1105700561, type 5
Nom d’événement : WindowsWcpOtherFailure3
Réponse : Non disponible
ID de CAB : 0

Signature du problème : 
P1 : 6.1.7600
P2 : base\wcp\componentstore\csd_locking.cpp
P3 : CCSDirectTransaction::LockComponent
P4 : 321
P5 : c015000c
P6 : 0x05f3852f
P7 : 
P8 : 
P9 : 
P10 : 

Fichiers joints :
C:\Windows\Logs\CBS\CbsPersist_20100719145300.cab
C:\Windows\Logs\CBS\CbsPersist_20100720135637.cab
C:\Windows\Logs\CBS\CbsPersist_20100724175736.cab
C:\Windows\Logs\CBS\CbsPersist_20100724190432.cab
C:\Windows\Logs\CBS\CbsPersist_20100724202127.cab
C:\Windows\Logs\CBS\CBS.log
C:\Windows\servicing\Sessions\Sessions.xml
C:\Windows\winsxs\poqexec.log
C:\Windows\System32\LogFiles\Scm\SCM.EVM
C:\Windows\Logs\CBS\FilterList.log
C:\Windows\Temp\WER6622.tmp.hdmp
C:\Windows\Temp\WER66ED.tmp.mdmp

Ces fichiers sont peut-être disponibles ici :
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\Critical_6.1.7600_61fd7aaf67694893e820b3fd1752ddf4faf4e84_06197a3e

Symbole d’analyse : 
Nouvelle recherche de la solution : 0
ID de rapport : 48d9af64-9764-11df-89ff-9b9906ca6306
Statut du rapport : 0
Extract from C:\Windows\Logs\CBS\CBS.log (with telnet client component) :
Info    CBS    Perf: Resolve chain started.
Info    CSI    0000000b@2010/7/24:20:44:42.885 CSI Transaction @0x69300e0 initialized for deployment engine {d16d444c-56d8-11d5-882d-0080c847b195} with flags 00000002 and client id [101]"TI1.30092144_4010074112:2/Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7600.16385"
Info    CBS    Exec: Resolving Package: Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~amd64~de-DE~6.1.7600.16385, Update: TelnetClient
Info    CBS    Exec: Resolving component from existing package; passing NULL manifest path to PinDeployment and hoping things haven't been scavenged.
Info    CBS    Exec: Resolving Package: Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~amd64~de-DE~6.1.7600.16385, Update: TelnetClient, PinDeployment: amd64_microsoft-windows-t..oyment-languagepack_31bf3856ad364e35_6.1.7600.16385_de-de_c3c58e4b573d9172
Error   CSI    0000000c@2010/7/24:20:44:42.913 (F) d:\w7rtm\base\wcp\componentstore\csd_locking.cpp(321): Error STATUS_SXS_ASSEMBLY_MISSING originated in function CCSDirectTransaction::LockComponent expression: (null) [gle=0x80004005]
Error   CSI    0000000d (F) STATUS_SXS_ASSEMBLY_MISSING #238072# from CCSDirectTransaction::OperateEnding at index 0 of 1 operations, disposition 2[gle=0xd015000c]
Error   CSI    0000000e (F) HRESULT_FROM_WIN32(ERROR_SXS_ASSEMBLY_MISSING) #237957# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_PinDeployment(Flags = 0, a = Microsoft-Windows-Telnet-Client-Deployment-LanguagePack, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture = [l:10{5}]"de-DE", VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral, cb = (null), s = (null), rid = [96]"Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~amd64~de-DE~6.1.7600.16385.TelnetClient", rah = (null), manpath = (null), catpath = (null), ed = 0, disp = 0)[gle=0x80073701]
Info    CBS    Failed to pin deployment while resolving Update: TelnetClient from file: (null) [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
Info    CBS    Failed to resolve item[0] in Package: Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~amd64~de-DE~6.1.7600.16385, Update: TelnetClient [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
Info    CBS    Failed to resolve execution update. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
Error   CBS    Failed to resolve execution package: Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~amd64~de-DE~6.1.7600.16385 [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
Info    CSI    0000000f@2010/7/24:20:44:45.042 CSI Transaction @0x69300e0 destroyed
Info    CBS    Perf: Resolve chain complete.
Info    CBS    Failed to resolve execution chain. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
Error   CBS    Failed to process single phase execution. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
Info    CBS    WER: Generating failure report for package: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7600.16385, status: 0x80073701, failure source: Resolve, start state: Installed, target state: Installed, client id: Windows Optional Component Manager
Info    CBS    Failed to query DisableWerReporting flag.  Assuming not set... [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
Info    CBS    Failed to add %windir%\winsxs\pending.xml to WER report because it is missing.  Continuing without it...
Info    CBS    Failed to add %windir%\winsxs\pending.xml.bad to WER report because it is missing.  Continuing without it...
Info    CBS    Reboot mark refs: 0
Info    CBS    Enabling LKG boot option
Info    CBS    Exec: End: nested restore point - complete.
Info    CBS    Restored system sleep block state: 0x80000000
Info    CBS    Client aborted the install. [HRESULT = 0x800f0821 - CBS_E_ABORT]
Info    CBS    Exec: Processing complete.  Session: 30092144_4010074112, Package: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7600.16385 [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
Error   CBS    Failed to perform operation.  [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
Info    CBS    Session: 30092144_4010074112 finalized. Reboot required: no [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
A few notes :
  • STATUS_SXS_ASSEMBLY_MISSING : Culture is wrong ! Why the hell is it looking for German (de-DE) packages on my French laptop ?
  • The log tells Reboot required: no but it asks for reboot anyway (even if nothing is installed!)
I have downloaded System Update Readiness Tool (100 MB) even if the ERROR_SXS_ASSEMBLY_MISSING error might not be fixed by this tool (not listed in the error table). After 25 min execution, no error were detected in C:\Windows\Logs\CBS\CheckSUR.log. Sytem File Checker tool (sfc /verifyonly) found nothing (aucune violation d'intégrité). Google search :Running the package manager by hand is a bit more explicit (I use the same name as in my French graphical user interface):
pkgmgr /iu:"Client Telnet"
Gestionnaire de package Windows Echec de l'opération avec 0x80073701 L'assembly référencé n'a pas pu être trouvé. Well this is the ERROR_SXS_ASSEMBLY_MISSING error found earlier in Component Based Servicing log (CBS.log). After some research with Process Monitor, it seems that TrustedInstaller.exe fails to open the registry key HKLM\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-s..oyment-languagepack_31bf3856ad364e35_6.1.7600.16385_de-de_08eb0375be2e567f. I can confirm this with regedit : the de_de key is missing, I only got these versions : el-gr, en-us, es-es, fr-fr, he-il, it-it, nl-nl, pt-pt and zh-tw. Note: HKLM\COMPONENTS might be missing on Windows 7. In this case, it would be generated completely if you launch Windows package manager UI. These keys matches files under C:\Windows\winsxs. I cannot find the de-de files in this folder. This is what Andre Ziegler told me in the forums. He also confirmed that I need to reinstall Windows 7 (again :( ). If I look into C:\Windows\System32\catroot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}, I can find all language files, and the German file in particular (like Microsoft-Windows-Shell-InboxGames-Package~31bf3856ad364e35~amd64~de-DE~6.1.7600.16385). As adviced in Win7 Inside Out - WinSxS, I have launched language packs setup application lpksetup but German pack is not installed (as expected : manifests are missing). Note: WinSxS = Windows Side by Side assemblies. Thanks to mydigitallife, I have downloaded German MUI pack : windows6.1-kb972813-x64-de-de_399ac15b2d55fd5dea0770d98825d7e75f4ad533.exe. To install this pack :
  • Run pack exe to extract lp.cab file
  • Download vistalizator
  • Choose add language
  • Select lp.cab file
  • Validate language installation
  • Make German the new display language : no !
It is now possible to add new features. Victory !

Monday, July 5, 2010

How to read ext2 / ext3 partition under Windows 7

Ext2IFS works ! You must enable Vista compatibility mode (I have chosen Vista SP2). Then you can assign drive letters in the control panel (IFS Drives Control Panel Item in Icon mode). Unfortunately, it seems that you need to shutdown your computer to properly unmount the drive (hibernation improperly unmounts partitions).

Sunday, June 27, 2010

How to disable UAC for an application

It is possible to disable UAC consent prompt for some applications with Microsoft ACT. References :But unfortunately, this does not work on Windows 7 Pro x64. I failed to disable UAC consent prompt for Process Explorer.

Thursday, June 24, 2010

WPF Cover Flow Tutorial : Part 8

I've been told that Part 7 had memory leaks. In the comments, I link a blog article describing how to study memory leaks : you can watch the Private Bytes performance counter.

We need :
  • The performance counter
  • A callback displaying the counter value
  • A timer
using System.Diagnostics;
using System.Windows.Threading;

private readonly PerformanceCounter counter = GetCounter();
private readonly DispatcherTimer timer = new DispatcherTimer();

private void timer_Tick(object sender, EventArgs e)
{
long kb = Convert.ToInt64(counter.NextValue() / 1000);
perfLabel.Content = string.Format("{0,12} KB", kb.ToString("###.###.###"));
}
private static PerformanceCounter GetCounter()
{
var counter = new PerformanceCounter();
counter.CategoryName = "Process";
counter.CounterName = "Private Bytes";
counter.InstanceName = Process.GetCurrentProcess().ProcessName;
return counter;
}
public TestWindow()
{
...
timer.Tick += timer_Tick;
timer.Interval = TimeSpan.FromMilliseconds(100);
timer.Start();
}

<Grid>
...
<Label Content="0 KB" Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" Name="perfLabel" VerticalAlignment="Top" Width="142" Foreground="Red" />
</Grid>
Here is the result in video.

Current implementation always stay close to 90 KB :


If we comment out Cover Destroy method:
public void Destroy()
{
//visualModel.Children.Remove(this);
}
The counter grows continuously :



Note : the ThumbnailManager does not handle empty image files. Loading such a file would throw an OutOfMemoryException.
Edit 2014-02-23 : Code has moved to github.

Wednesday, June 23, 2010

Windows Media Network Sharing Service Memory Usage

Windows Media Network Sharing Service can consume a lot of memory, like 2.5 GB. WTF ?! AFAIK, I have nothing to share. What is consuming all this memory ? Hopefully, I still have 1 GB free.

Monday, June 21, 2010

Windows 7 fait rebooter la freebox

Depuis que j'ai acheté mon asus u30jc-qx010x, la freebox ADSL (Firmware 1.6.6) reboote régulièrement. Ce soir, ça redémarrait plusieurs fois par heure jusqu'à ce que je l'éteigne. Pistes déjà éliminées :
  • Ce n'est pas lié à un navigateur en particulier (IE, Firefox ou Chrome)
  • Désactiver ipv6 sur la carte wifi et sur la freebox ne change rien.
Après un peu de recherche, il s'avère que désactiver les services suivants provoque un redémarrage de la freebox après avoir surfé un certain temps :
  • BFE (Moteur de filtrage de base)
  • IKEEXT (Modules de génération de clés IKE et AuthIP) : dépends de BFE
  • PolicyAgent (Agent de stratégie IPsec) : dépends de BFE

Sunday, June 20, 2010

Windows 7 Search

If you want to index all C: content, some folders are excluded by default :
  • C:\$Recycle.Bin
  • C:\ProgramData
  • C:\ProgramData\Microsoft\Search\Data
  • C:\ProgramData\Microsoft\Windows\Menu Démarrer
  • C:\Utilisateurs (C:\Users)
  • C:\Utilisateurs\*\AppData
  • C:\Utilisateurs\*\Favoris
  • C:\Utilisateurs\*\AppData\Local\Temp
  • C:\Windows
  • C:\Windows\CSC (hidden)
Temp folders are not listed in exclusion list.

Saturday, June 19, 2010

Windows 7 pictures

Default user pictures are stored in C:\ProgramData\Microsoft\User Account Pictures. The format is a bitmap 128x128. Default login screen backgrounds are stored in C:\Windows\System32\oobe\background.bmp and C:\Windows\SysWOW64\oobe\background.bmp. The format is bitmap 1024x768. You can change the default background if you create C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg. 96% quality (cf. gimp) is not supported but 85% quality is OK. Then it is possible to keep the same background for the login screen and your desktop. You might need to set HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background\OEMBackground value to 1 (dword).

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 4 : Auto Run

Many programs are configured to start automatically. Note that a couple of x86 applications are configured in the x64 registry. I prefer to remove the keys and keep the application installed, just in case... It is still possible to reset the keys afterwards. You must disable Asus FastBoot to find some applications listed below. Keys than can be removed safely : HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run :
  • Sidebar (C:\Program Files\Windows Sidebar\sidebar.exe /autoRun)
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run :
  • AmIcoSinglun64 (C:\Program Files (x86)\AmIcoSingLun\AmIcoSinglun64.exe) : Alcor Micro USB Card Reader. Not needed to read USB of SD cards.
  • ASUS WebStorage (C:\Program Files (x86)\ASUS\ASUS WebStorage\SERVICE\AsusWSService.exe MySyncFolder) : No free 20 GB account is available for this Asus.
  • IgfxTray (C:\Windows\system32\igfxtray.exe) : Intel Graphics Tray Icon. I rarely need to modify these settings.
  • NvCplDaemon (RUNDLL32.EXE C:\Windows\system32\NvCpl.dll,NvStartup) : NVidia startup utility. Does not prevent the NVidia control panel to start. Seems useless ?
HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run :
  • Adobe Reader Speed Launcher ("C:\Program Files (x86)\Adobe\Reader 9.0\Reader\Reader_sl.exe")
  • ATKMEDIA (C:\Program Files (x86)\ASUS\ATK Media\DMedia.exe) : To configure a media key to launch Windows Media Player but no such key exists on my laptop.
  • ATKOSD2 (C:\Program Files (x86)\ASUS\ATKOSD2\ATKOSD2.exe) : Driver for the missing fingerprint reader. Also provides pretty UI for Fn function keys. When disabled, Fn keys still work, but with a classic UI.
  • CLMLServer ("C:\Program Files (x86)\CyberLink\Power2Go\CLMLSvc.exe") : Cyberlink Media Library.
  • HControlUser (C:\Program Files (x86)\ASUS\ATK Hotkey\HControlUser.exe)
  • RemoteControl9 ("C:\Program Files (x86)\CyberLink\PowerDVD9\PDVD9Serv.exe") : DVD Remote Control.
  • Setwallpaper (c:\programdata\SetWallpaper.cmd) : Batch is missing !
  • UpdateLBPShortCut ("C:\Program Files (x86)\CyberLink\LabelPrint\MUITransfer\MUIStartMenu.exe" "C:\Program Files (x86)\CyberLink\LabelPrint" UpdateWithCreateOnce "Software\CyberLink\LabelPrint\2.5") : DVD printing startup utility. WTF ?
  • UpdateP2GoShortCut ("C:\Program Files (x86)\CyberLink\Power2Go\MUITransfer\MUIStartMenu.exe" "C:\Program Files (x86)\CyberLink\Power2Go" UpdateWithCreateOnce "SOFTWARE\CyberLink\Power2Go\6.0") : DVD burning startup utility. WTF ?
Other keys : HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run :
  • ETDWare (C:\Program Files\Elantech\ETDCtrl.exe) : Smart-Pad.
  • HotKeysCmds (C:\Windows\system32\hkcmd.exe) : Hot Key Commands from Intel graphics driver.
  • Persistence (C:\Windows\system32\igfxpers.exe)
  • RtHDVCpl (C:\Program Files\Realtek\Audio\HDA\RAVCpl64.exe -s)
HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run :
  • ASUS Screen Saver Protector (C:\Windows\AsScrPro.exe)
When playing with these settings, the ELAN Smart-Pad can be disabled. Actually, it was running until I enter my password to open a session. Then, it was disabled. I needed to open the mice parameters in the control panel, open ELAN tab and enable the device. The laptop might also fail to detect the usb mouse. In this case, open the Device Manager, right click (with the touchpad) on the mouse section and scan for hardware changes. Edit 2010.08.14 : Asus Web Storage.

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"

Digging into Windows 7 (Professional)

When you are used to Windows XP and you do not really know Vista, you got a few surprises as you start browsing folder in Windows 7. Windows 7 annoyances :
  • Contextual menu of folders has no Search entry. You are encourage to use Windows Search and the input box in the toolbar.
  • Access to many (hidden) items in your personal folder (jonction folders) is denied (like Application Data, Cookies, Local Settings, Start Menu, Models, Recent, SendTo...) Well, actually, you have access to the target folder (somewhere in AppData like AppData\Local\Microsoft\Windows or AppData\Roaming\Microsoft\Windows).
  • You realize that the folder tree in the Explorer is not the underlying folder tree on your hard drive. In French version, the Explorer shows you a C:\Utilisateurs folder whereas it is C:\Users actually.
  • Window manager ignore elevated Windows (when arranging windows with Tile, Cascade, etc.). Same problem with Alt-Tab.
  • No dock tool bar for your shortcuts. You must attach your programs in the task bar. Nevertheless, you cannot attach two copies (as a normal user and elevated) of the same program. Cygwin entry is conflicting with command prompt. There is no option to run attached applications as elevated.

Windows 7 : 2 days to get first BSOD

I do not have Windows 7 Professional for a long time and it took me only 2 days to get my first BSOD. ma config info :
  • Bug Check Code : 0x000000C2
  • Bug Check String : BAD_POOL_CALLER
  • Date du crash : 14/05/2010 22:38
  • Source du crash : fltmgr.sys+8F0B
  • Chemin : C:\Windows\system32\drivers\fltmgr.sys
  • Description : Gestionnaire de filtres de système de fichiers Microsoft
  • Version du produit : 6.1.7600.16385
Secunia PSI might be to blame.

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.

Monday, May 10, 2010

Commande materiel.net

0 % jeudi soir : paiement (produit en stock) 30 % vendredi : demande de justificatifs pour justifier mon identité (1ère commande?) sur mon mail perso non consultable depuis le boulot :( 50 % lundi : en cours d'approvisionnement (suite à l'envoi des documents pendant le week-end). Plus de stock ?! 60 % lundi soir : commande complète : en cours de traitement 85 % mardi matin : commande complète : préparation 100 % mardi midi : commande expédiée UPS mardi après midi : infos facturation reçues UPS mardi soir : enlèvement UPS mercredi matin : livraison refusée à cause d'un naze UPS mercredi soir : re-livraison et réception ! Yes !

Sunday, May 9, 2010

Update wampserver apache version

Here is a batch that would do the work. It is based on a thread in the forums. Provided as is without any warranty.
@echo off
set dest_root=E:\usr\wamp\bin\apache
set source_root=%~dp0

set apache_zip=
for /f %%f in ('dir /b/ogn %source_root%httpd-*') do set apache_zip=%%f
if "%apache_zip%"=="" goto :eof
set unzip_dir=%apache_zip%
set unzip_dir=%unzip_dir:~0,-4%
if "%unzip_dir%"=="" goto :eof
if exist "%unzip_dir%" rd /s/q "%unzip_dir%"
e:\usr\7-Zip\7z x -o%unzip_dir% %apache_zip%

echo %unzip_dir%

set ver=%unzip_dir:~6,-14%
set dest_dir=%dest_root%\Apache%ver%
echo %dest_dir%

if exist "%dest_dir%" rd /s/q "%dest_dir%"

set previous_ver=
for /f %%f in ('dir /b/ogn/ad %dest_root%\Apache*') do if not "%%f"=="%ver%" set previous_ver=%%f
set previous_ver=%previous_ver:~6%
set previous_dir=%dest_root%\Apache%previous_ver%
echo %previous_dir%

mkdir %dest_dir%
robocopy /NP /MIR /NFL "%unzip_dir%\Apache2" "%dest_dir%" /XD lib /XD include /XD manual
copy %previous_dir%\wampserver.conf %dest_dir% >nul
copy %previous_dir%\conf\httpd.conf %dest_dir%\conf >nul

rd /s/q %unzip_dir%

Elixir setup


Free a lancé le projet elixir poru développer des jeux pour freebox. Ce toolkit se base sur enlightenment mon window manager par défaut quand je retourne sur la banquise.

Pour éviter d'installer Elixir n'importe où sur ma babasse en suivant le tutorial de noob plein de ./configure && make && make install, j'ai préféré utiliser la méthode gentoo en utilisant l'overlay officiel d'enlightenment. De l'aide supplémentaire est disponible sur le wiki gentoo.

Quelques notes :
  • Installation de portage-2.2 (mise à jour nécessaire de package.keywords et package.unmask)
  • Pour chaque package du set, ajout d'une ligne =category/package-9999 ** dans package.keywords pour éviter l'erreur missing keyword.
SpiderMonkey

package.use : dev-lang/spidermonkey threadsafe

Last version of SpiderMonkey in current portage tree is 1.7.0-r1. This version does not support JSVERSION_1_8. We need to create our own ebuild for version 1.8.0.

Create a local overlay to host this ebuild :

mkdir -p /usr/local/portage/profiles/
echo "local_overlay" > /usr/local/portage/profiles/repo_name
Add at the end of /etc/make.conf :
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/"

Create spidermonkey ebuild :

mkdir -p /usr/local/portage/dev-lang/spidermonkey
cp /usr/portage/dev-lang/spidermonkey/spidermonkey-1.7.0-r1.ebuild /usr/local/portage/dev-lang/spidermonkey/spidermonkey-1.8.0.ebuild
cp -R /usr/portage/dev-lang/spidermonkey/files /usr/local/portage/dev-lang/spidermonkey/files
Edit ebuild :
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}-rc1.tar.gz"
...
#epatch "${FILESDIR}/${PN}-1.5-build.patch"
epatch "${FILESDIR}/${P}-build.patch"
#epatch "${FILESDIR}/${PN}-1.6-header.patch"
epatch "${FILESDIR}/${P}-threadsafe.diff"
spidermonkey-1.8.0-build.patch :
diff -rupN js.ref/js/src/Makefile.ref js.new/js/src/Makefile.ref
--- js.ref/js/src/Makefile.ref 2009-02-25 14:24:29.000000000 +0100
+++ js.new/js/src/Makefile.ref 2010-05-09 00:02:50.000000000 +0200
@@ -363,3 +363,16 @@ TARFILES = files `cat files`
SUFFIXES: .i
%.i: %.c
$(CC) -C -E $(CFLAGS) $< > $*.i
+
+DESTDIR :=
+PREFIX := /usr
+BINDIR := $(PREFIX)/bin
+MY_LIBDIR := $(PREFIX)/$(LIBDIR)
+INCLUDEDIR := $(PREFIX)/include/js
+INSTALL := install -g 0 -o root
+install:
+ $(INSTALL) -m 755 -d $(DESTDIR)$(INCLUDEDIR) $(DESTDIR)$(MY_LIBDIR) $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(SHARED_LIBRARY) $(DESTDIR)$(MY_LIBDIR)
+ $(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(MY_LIBDIR)
+ $(INSTALL) -m 755 $(OBJDIR)/js $(OBJDIR)/jscpucfg $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 644 $(HFILES) $(DESTDIR)$(INCLUDEDIR)
ebuild spidermonkey-1.8.0.ebuild digest
package.keywords : ~dev-lang/spidermonkey-1.8.0 **
emerge -va spidermonkey

Elixir setup :

Appliquer le patch basé sur les indications du blog de zigazou :
diff -rupN elixir-0.1.24.ref/src/modules/bindings/ecore/ecore_module.c elixir-0.1.24.new/src/modules/bindings/ecore/ecore_module.c
--- elixir-0.1.24.ref/src/modules/bindings/ecore/ecore_module.c 2010-05-09 00:36:48.000000000 +0200
+++ elixir-0.1.24.new/src/modules/bindings/ecore/ecore_module.c 2010-05-09 00:37:37.000000000 +0200
@@ -905,7 +905,7 @@ elixir_ecore_thread_run(JSContext *cx, u

elixir_function_stop(cx);

- result = ecore_thread_run(_elixir_func_heavy, _elixir_func_end, new);
+ result = ecore_thread_run(_elixir_func_heavy, _elixir_func_end, new, NULL);

elixir_function_start(cx);
Setup elixir :

./configure
make
# sudo make install
# ldconfig

Il est toujours possible de supprimer elixir en faisant :

# make uninstall
# rm -rf /usr/local/lib/elixir

Tester :

elixir Simple.js

Liens / Références :Notes sur gentoo :
  • L'overlay installe media-libs/edje-9999 qui contient edje_player (qui remplace edje_viewer)
Avertissement : edge ne semble pas fonctionner avec cette installation :( Seuls les exemples basiques passent. Il est peut être finalement préférable d'utiliser l'image virtualbox...

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 !