Tuesday, July 31, 2007

Console/Framebuffer goodies for your *nix

get these from the ubuntu repo's using synaptic or aptget.
Both work in framebuffer/console so you dont even need X to use them, quite neat.

mp3blaster
tmsnc

How to find out your max framebuffer res

sudo apt-get install hwinfo
sudo hwinfo --framebuffer

Getting rid of the boot splash and getting a decent resolution for the framebuffer to boot!

edit the menu.lst file in /boot/grub (or similar)

the line you are looking for is
/boot/vmlinuz-2.6.20-16-generic root=UUID=6e9d6372-8bd5-4bd9-aed8-0329837cf47f ro splash vga=794 quiet

Take away splash and quiet.

To set the screen resolution to 1024x768, insert into the appropriate line: "vga=791"

Some common frambuffer resolutions are:
640x480 - 785
800x600 - 788
1024x768 - 791
1152x864 - 355
1280x1024 - 794
1600x1200 - 798

Sunday, July 29, 2007

Automatix - fully functional, no fear of package break.

To download the Ubuntu Automax script , go to the following link and get the matching deb.

http://www.getautomatix.com/wiki/index.php?title=Installation#Ubuntu_7.04_.28Feisty_i386.29

Automaix installs everything (from a list which you can tick off) from codecs to movie players to chat clients to internet browsers, utility's and torrent software and even includes self installing Nvidia drivers which will recognise your card and update accordingly.

Saturday, July 28, 2007

Getting your Soundblaster Audiy 2zs to work with ubuntu when you already have VIA/Realtec etc drivers set as default

Alright, this was a huge issue for me for so long, I finally got it working though.
This will work with any Soundblaster card (in this case an Audigy 2ZS) and the trouble shoot purpose is when you already have a onboard card and you cant figure out how to get rid of it or get sound through your install.

Firstly, go to System/preferences/sound and make sure your Audiy/soundcard is checked under devices and set the rest of the tabs to "Auto" , what we are about to do will always work so just make sure you do this and nothing else.

Now, open up a terminal and and issue the following command command:
sudo asoundconf list

Now, you will see a list of card you have, in this case it is:
VT82XX
Audigy2

You want to set the default to the audigy card so issue another command:
sudo asoundconf set-default-card Audigy2

Your default card is now the Audigy, now type in alsamixer and all should be fine, make sure digital is enabled (it will be automatically normally) and adjust everything to how you see fit.

Once you are done configuring everything store your alsa settings with the following command:
sudo alsactl store

Just to make sure, also right click on your volume icon in your gnome--panel up top and make sure the preference drop-down tab is also set to your card and obviously make sure its on master.

xorg.conf for Nvidia 7600gt running at 1440x900 (widescreen) on a 19inch proview.

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Mon Feb 26 23:38:46 PST 2007

# /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 xorg.conf(5) manual page.
# (Type "man 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"
EndSection

Section "Files"

# path to defoma fonts
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
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 "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection

Section "Device"
Identifier "nVidia Corporation G70 [GeForce 7600 GT]"
Driver "nvidia"
Option "AddARGBGLXVisuals" "True"
Option "RenderAccel" "True"
Option "AllowGLXWithComposite" "True"
Option "backingstore" "True"
Option "TripleBuffer" "True"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G70 [GeForce 7600 GT]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1440x1440" "1280x1024" "1440x900" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1440x1440" "1280x1024" "1440x900" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1440x1440" "1280x1024" "1440x900" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1440x1440" "1280x1024" "1440x900" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1440x1440" "1280x1024" "1440x900" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1440x1440" "1280x1024" "1440x900" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection