Archive for November, 2008

Ubuntu 8.10 x64 on Dell Latitude D630

Installing [UBUNTU 8.10 (x64)] on [DELL LATITUDE D630]

Last updated: 18/11/2008

General Hardware Specifications of [DELL LATITUDE D630]:

Hardware Components
Status under Linux
Notes
Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz Works No special procedure required during installation.
14″ LCD Works No special procedure required during installation
nVidia Corporation Quadro NVS 135M Works Check your BIOS (last release is A13) and the GPU fan will run at full speed using version 177 driver, I am using version 173 driver and there is no fan issue with an old BIOS
2GB, RAM, 2DIMMs Works No special procedure required during installation
120 GB SATA Hard Drive Works No special procedure required during installation
Integrated Bluetooth Works No special procedure required during installation, BUT must be enabled using Windows utility
Integrated PCMCIA Works No special procedure required during installation
Integrated IEEE1384 Works No special procedure required during installation
Internal V92 Modem Should Work Not tested
DVD-RW Unit Works No special procedure required during installation
Internal Intel WIFI Works No special procedure required during installation
Internal Intel Ethernet Works No special procedure required during installation
Intel HDA SoundCard Works No special procedure required
during installation

INTERNAL MIC CAPTURE ISSUE see https://wiki.ubuntu.com/Gutsy_Intel_HD_Audio_Controller

This laptop is operating under Kernel version [Linux 2.6.27-7-generic]

Basic Installation of [UBUNTU 8.10 (x64)]:
  • Why to use [UBUNTU 8.10 (x64)]
    • Because only one live CD that we can install, good support for auto detection of hardware
  • Obtaining [UBUNTU]
  • Installing
  • Post-Install modifications/tweaks see below
Setting up additional features for [UBUNTU 8.04 (x64)]:
  • sudo apt-get install nvidia-settings sensors-applet
Contact Information
  • julien DOT boucaron AT free DOT fr
Links:

Plus other useful things I may have forgotten

Linux on Laptops

No Warranties: This information is provided “as is” without any warranty, condition, or representation of any kind, either express or implied, including but not limited to, any warranty respecting non-infringement, and the implied warranties of conditions of merchantability and fitness for a particular purpose. All logos or trademarks on this site are the property of their respective owner. In no event shall linux-laptop.net, linux-on-laptops.com, or any directors, trustees, associates, or employees thereof be liable for any direct, indirect, special, incidental, consequential or other damages howsoever caused whether arising in contract, tort, or otherwise, arising out of or in connection with the use or performance of the information contained on this web site.

No Comments

Antlr – Lustre Grammar

Here is my grammar for the Lustre synchronous language using antlr v3, not yet finished but basically working.

/*
* This is a grammar for the LUSTRE
* Synchronous Language
*
* (c) 2008 Julien Boucaron
*
* TODO
*  –> expression every expression
*  –> add const modifier for arguments
*  –> nested node definitions
*  –> check with last version
*/

grammar Lustre;

//////////////
// $<PARSER
//////////////

lustre
: (compilationUnit)* EOF
;

compilationUnit
:
constDeclaration
nodeDeclaration nodeDefinition
;

//////////////
// $<DECL
//////////////

constDeclaration
:
(‘const’ (IDENTIFIER)
(‘,’ IDENTIFIER)*
‘:’ BASICTYPE (‘^’ (shift_expression) )?
‘;’)*
;

nodeDeclaration
:
‘node’ IDENTIFIER ‘(‘ nodeArgs ‘)’
( ‘returns’ ) ‘(‘ nodeArgs ‘)’
constDeclaration nodeVars*
‘;’
;

nodeVars:
‘var’ nodeArgs ‘;’
;

nodeArgs
:
(nodeArgsHelper ‘:’ BASICTYPE (‘^’ (shift_expression) )?)+
;

nodeArgsHelper
:
IDENTIFIER
| IDENTIFIER ‘,’ nodeArgsHelper
;

//////////////
// $>DECL
//////////////

nodeDefinition
:
‘let’
nodeBody*
‘tel’
‘;’
;

nodeBody
:
label? nodeAff ‘:=’ expression ‘;’
| label if_nodebody ‘;’
| asserT ‘;’
| gotO ‘;’
| forStatement ‘;’
;

label    :
IDENTIFIER ‘:’
;

asserT    :
‘assert’  expression
;

forStatement :
‘for’ IDENTIFIER ‘in’ ‘[' expression ('..' expression)? ']‘
‘let’
nodeBody+
‘tel’
;

nodeAff
:
IDENTIFIER vectorHelper? |
‘(‘ IDENTIFIER vectorHelper?
(‘,’ IDENTIFIER vectorHelper?)+ ‘)’
;

vectorHelper
:
‘[' expression ('..' expression )?  ']‘
;
//bug present there

//////////////
// $<EXPRESSION
//////////////

expression
:
binaryExpression
;

unaryExpression
:
BOOLCONSTANT
| REAL
| DECIMAL
| preExpression (‘pre’)? IDENTIFIER vectorHelper?
| preExpression (‘pre’)? IDENTIFIER? concatOrPar  vectorHelper?
| if_expression
| current
| gotO
;

preExpression
:
(‘not’|'!’|'~’)? signExpression
;
signExpression
:
(‘+’|'-’|'++’|'–’)?
;

concatOrPar
:
‘(‘ expression (‘,’ expression )* ‘)’
//i want one for par expression and the other one for concat…
;

if_expression
:
‘if’ expression ‘then’
expression
‘else’
expression
‘endif’
;
if_nodebody
:
‘if’ expression ‘then’
nodeBody+
‘else’
nodeBody+
‘endif’
;

current    :
‘current’ ‘(‘ expression ‘)’
;

gotO    :
‘goto’ IDENTIFIER
;

binaryExpression
:
followBy_expression (‘->’ followBy_expression)*
;

followBy_expression
:
or_expression ( (‘or’|'nor’) or_expression )*
;

or_expression
:
and_expression ( (‘and’|'nand’) and_expression )*
;

and_expression
:
xor_expression ( (‘xor’|'nxor’) xor_expression)*
;

xor_expression
:
equal_expression ( (‘=’|'!=’) equal_expression)*
;

equal_expression
:
compare_expression ( (‘<’|'<=’|'=>’|'>’) compare_expression)*
;

compare_expression
:
shift_expression ( (‘<<’|'>>’) shift_expression )*
;

shift_expression
:
add_expression ( (‘+’|'-’) add_expression )*
;
add_expression
:
mul_expression ( (‘*’|'/’|'%’) mul_expression )*
;

mul_expression
:
when_expression (‘when’ when_expression)*
;

when_expression
:
unaryExpression
;
//////////////
// $>EXPRESSION
//////////////

//////////////
// $>PARSER
//////////////

//////////////
// $<LEXER
//////////////

BASICTYPE
:
‘bool’ |
‘int’ |
‘real’
;

BOOLCONSTANT
:
‘true’ |
‘false’
;

DECIMAL    :
(’0′..’9′)+
;

REAL    :
FloatPrefix
;

IDENTIFIER
:    ( ‘a’..’z’ | ‘A’..’Z’ | ‘_’ ) ( ‘a’..’z’ | ‘A’..’Z’ | ‘_’ | ’0′..’9′ )*
;

fragment
FloatPrefix
:    ’0′..’9′+ ( ‘.’ ’0′..’9′+ ) ( ( ‘e’ | ‘E’ ) ( ‘+’ | ‘-’ )?  ’0′..’9′+ )?
;

//////////////
// $<Skipped
//////////////
COMMENT    :
‘–’  ~( ‘\n’ | ‘\r’ )* NEWLINE {skip();}
;
NEWLINE
:    ( ‘\n’ | ‘\r’ | ‘\r\n’ ) {skip();}
;
WS
:    ( ‘ ‘ | ‘\u000C’ | ‘\t’ ) {skip();}
;

No Comments

Ubuntu on Sony VAIO VGN-FE21B

Installing [UBUNTU] on [SONY VAIO VGN-FE21B]

Last updated: 13/01/2007

General Hardware Specifications of [SONY VAIO VGN-FE21B]:

Hardware Components
Status under Linux
Notes
Pentium
T2300 @ 1.66 GHz
Works No special procedure required during installation.
15.4″ LCD Works No special procedure required during installation
NVIDIA 7400 Works No special procedure required during installation
If you want xgl, compiz or beryl download and install NVIDIA drivers see procedure here and X11 configuration here
VGA output and S-video output not tested
1GB, RAM, 2DIMMs Works No special procedure required during installation
80 GB SATA Hard Drive Works No special procedure required during installation
Integrated 5-1 Memory Card Reader Should Works Not tested should work
Integrated Bluetooth Works No special procedure required during installation
Integrated PCMCIA Works No special procedure required during installation
Integrated IEEE1384 Works No special procedure required during installation
Internal V92 Modem Should Work Not tested should work
see http://www.linuxant.com/drivers/
DVD-RW Unit Works No special procedure required during installation
Internal Intel WIFI Works No special procedure required during installation
Internal Intel Ethernet Works No special procedure required during installation
Intel HDA SoundCard Works No special procedure required
during installation for PLAYBACK
If you want to CAPTURE with integrated microphone see instructions here

This laptop is operating under Kernel version [Linux boucaron-laptop 2.6.17-10-generic #2 SMP]

Basic Installation of [UBUNTU]:
  • Why to use [UBUNTU]
    • Because only one live CD that we can install, good support for auto detection of hardware
  • Obtaining [UBUNTU]
  • Installing
  • Post-Install modifications/tweaks see below
Setting up additional features for [UBUNTU]
NVIDIA LAST DRIVER WORKING WITH UBUNTU
  • Download and install NVIDIA Drivers
  • However if you reboot now you will do not have X11 working, actually because in UBUNTU nvidia is a “restricted” module and UBUNTU is having a service run at startup called /etc/init.d/linux-restricted-modules-common that “copy” files from /lib/linux-restricted-modules/2.6.17-10-generic/nvidia (our case) into the appropriate place in the /lib/modules/2.6.17-10-generic/.
  • The trick is the following after installing NVIDIA driver we just have to copy the nvidia.ko file from /lib/modules/2.6.17-10-generic/ into /lib/linux-restricted-modules/2.6.17-10-generic/nvidia/ after removed present files in this directory. Take care also to remove /lib/linux-restricted-modules/2.6.17-10-generic/nvidia_legacy.
Configuration Files
  • X11 Configuration for xgl, beryl
  • # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Mon Oct 16 22:13:07 PDT 2006

    # /etc/X11/xorg.conf (xorg X Window System server configuration file)
    #
    # This file was generated by dexconf, the Debian X Configuration tool, using
    # values from the debconf database.
    #
    # Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
    # (Type “man /etc/X11/xorg.conf” at the shell prompt.)
    #
    # This file is automatically updated on xserver-xorg package upgrades *only*
    # if it has not been modified since the last upgrade of the xserver-xorg
    # package.
    #
    # If you have edited this file but would like it to be automatically updated
    # again, run the following command:
    #   sudo dpkg-reconfigure -phigh xserver-xorg

    Section “ServerLayout”
    Identifier     “Default Layout”
    Screen         “Default Screen” 0 0
    InputDevice    “Generic Keyboard”
    InputDevice    “Configured Mouse”
    InputDevice    “stylus” “SendCoreEvents”
    InputDevice    “cursor” “SendCoreEvents”
    InputDevice    “eraser” “SendCoreEvents”
    InputDevice    “Synaptics Touchpad”
    EndSection

    Section “Files”

    # path to defoma fonts
    FontPath        “/usr/share/X11/fonts/misc”
    FontPath        “/usr/share/X11/fonts/cyrillic”
    FontPath        “/usr/share/X11/fonts/100dpi/:unscaled”
    FontPath        “/usr/share/X11/fonts/75dpi/:unscaled”
    FontPath        “/usr/share/X11/fonts/Type1″
    FontPath        “/usr/share/X11/fonts/100dpi”
    FontPath        “/usr/share/X11/fonts/75dpi”
    FontPath        “/usr/share/fonts/X11/misc”
    FontPath        “/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType”
    EndSection

    Section “Module”
    Load           “i2c”
    Load           “bitmap”
    Load           “ddc”
    Load           “extmod”
    Load           “freetype”
    Load           “glx”
    Load           “int10″
    Load           “type1″
    Load           “vbe”
    EndSection

    Section “InputDevice”
    Identifier     “Generic Keyboard”
    Driver         “kbd”
    Option         “CoreKeyboard”
    Option         “XkbRules” “xorg”
    Option         “XkbModel” “pc105″
    Option         “XkbLayout” “fr”
    Option         “XkbOptions” “lv3:ralt_switch”
    EndSection

    Section “InputDevice”
    Identifier     “Configured Mouse”
    Driver         “mouse”
    Option         “CorePointer”
    Option         “Device” “/dev/input/mice”
    Option         “Protocol” “ExplorerPS/2″
    Option         “ZAxisMapping” “4 5″
    Option         “Emulate3Buttons” “true”
    EndSection

    Section “InputDevice”
    Identifier     “Synaptics Touchpad”
    Driver         “synaptics”
    Option         “SendCoreEvents” “true”
    Option         “Device” “/dev/psaux”
    Option         “Protocol” “auto-dev”
    Option         “HorizScrollDelta” “0″
    EndSection

    Section “InputDevice”

    # /dev/input/event
    # for USB
    Identifier     “stylus”
    Driver         “wacom”
    Option         “Device” “/dev/wacom”          # Change to
    Option         “Type” “stylus”
    Option         “ForceDevice” “ISDV4″               # Tablet PC ONLY
    EndSection

    Section “InputDevice”

    # /dev/input/event
    # for USB
    Identifier     “eraser”
    Driver         “wacom”
    Option         “Device” “/dev/wacom”          # Change to
    Option         “Type” “eraser”
    Option         “ForceDevice” “ISDV4″               # Tablet PC ONLY
    EndSection

    Section “InputDevice”

    # /dev/input/event
    # for USB
    Identifier     “cursor”
    Driver         “wacom”
    Option         “Device” “/dev/wacom”          # Change to
    Option         “Type” “cursor”
    Option         “ForceDevice” “ISDV4″               # Tablet PC ONLY
    EndSection

    Section “Monitor”
    Identifier     “Generic Monitor”
    HorizSync       28.0 – 64.0
    VertRefresh     43.0 – 60.0
    Option         “DPMS”
    EndSection

    Section “Device”

    #Driver “nv”
    Identifier     “NVIDIA Corporation NVIDIA Default Card”
    Driver         “nvidia”
    #    Option  “XAANoOffscreenPixmaps”
    Option “TripleBuffer” “True”
    EndSection

    Section “Screen”
    Identifier     “Default Screen”
    Device         “NVIDIA Corporation NVIDIA Default Card”
    Monitor        “Generic Monitor”
    DefaultDepth    24
    Option         “RenderAccel” “true”
    Option         “AllowGLXWithComposite” “true”
    SubSection     “Display”
    Depth       1
    Modes      “1280×800″
    EndSubSection
    SubSection     “Display”
    Depth       4
    Modes      “1280×800″
    EndSubSection
    SubSection     “Display”
    Depth       8
    Modes      “1280×800″
    EndSubSection
    SubSection     “Display”
    Depth       15
    Modes      “1280×800″
    EndSubSection
    SubSection     “Display”
    Depth       16
    Modes      “1280×800″
    EndSubSection
    SubSection     “Display”
    Depth       24
    Modes      “1280×800″
    EndSubSection
    Option “AddARGBGLXVisuals” “True”
    EndSection

    Section “Extensions”
    Option “Composite” “Enable”
    EndSection

    Section “DRI”
    Mode 0666
    EndSection
  • Modules options for sound card, append this to /etc/modprobe.d/alsa-base
    options snd-hda-intel model=vaio position_fix=0
Contact Information
  • julien DOT boucaron AT free DOT fr
Links:

Plus other useful things I may have forgotten

Linux on Laptops

No Warranties: This information is provided “as is” without any warranty, condition, or representation of any kind, either express or implied, including but not limited to, any warranty respecting non-infringement, and the implied warranties of conditions of merchantability and fitness for a particular purpose. All logos or trademarks on this site are the property of their respective owner. In no event shall linux-laptop.net, linux-on-laptops.com, or any directors, trustees, associates, or employees thereof be liable for any direct, indirect, special, incidental, consequential or other damages howsoever caused whether arising in contract, tort, or otherwise, arising out of or in connection with the use or performance of the information contained on this web site.

No Comments