10/23/07

pnix report on gutsy

I start upgrading to Gutsy on last Friday night with slow speed. Estimate time to finish package download is vary from 3 hours to 2 days depend on speed it get at that time so I just go to bed and come back again on Saturday 11AM. Downloading is finished it waiting for my response to config some package to install. After that it reboot and try to startx first time and fail!!
It ask me to config my display.Monitor are detected correctly[dell 1905FP] but resolution only give me 800x600. I go to Graphic Card tab, the driver said vesa. At this point if I go to choose nvidia or nv x will fell to failsafe xserver and reconfig my xorg.conf to use vesa driver.
Checking on Xorg.0.log I saw my old friend. "The NVIDIA kernel module does not appear to be receiving interrupts". Nvidia driver is installed but on Gutsy my "acpi=off irqpoll" kernel option doesn't seem to work anymore. I stumble many kernel option for three days and last night I found that for my gutsy it need to be "nolapic irqpoll" :)
Now I've got my 3D back, compiz-fusion is already installed[sure from official repos.] and work fine. I found that wine is on universe repos too that great.
So, for me gutsy does it's job. The graphic card irq problem is seem to be my specific motherboard bios problem and will be come back everytime i upgrade or install ubuntu.

Note : On Gutsy, compizfusion-config-manager is not installed by default. To get it

pnix@pnix-a7n:~$ sudo aptitude install compizconfig-settings-manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be automatically installed:
python-compizconfig
The following NEW packages will be installed:
compizconfig-settings-manager python-compizconfig
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 540kB of archives. After unpacking 3486kB will be used.
...
Writing extended state information... Done
Building tag database... Done
pnix@pnix-a7n:~$

10/18/07

I change my mind...


Look like everyone try to upgrade now, maybe I should be patient and wait for one or two days. Update-manager has a hard time to connect to server. I have 1M adsl but download upgrade tool give me 7KB/S.

Prepare the box before get Gutsy

Gutsy is already released now. It should be better to have original updated Feisty before upgrading. I mean no software from 3rd party repos. What I have are wine, fm2007[under wine] and compiz-fusion. First uninstall FM2007 leave me some menu entry that i need to manually delete it. I will post about this later. Afterthat i remove wine then compiz-fusion. Compiz-fusion set has a few packages installed and I can't remember the names what i do is ..

pnix@pnix-a7n:~$ echo "sudo aptitude remove "`sudo dpkg -l |egrep compiz| awk '{print $2}'`|sudo bash
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REMOVED:
compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-fusion-plugins-unofficial
compiz-fusion-plugins-unsupported compiz-gnome compiz-plugins compizconfig-settings-manager
libcompizconfig-backend-gconf libcompizconfig0 python-compizconfig
0 packages upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 24.2MB will be freed.
Writing extended state information... Done
(Reading database ... 113410 files and directories currently installed.)
Removing compiz ...
Removing compiz-fusion-plugins-unsupported ...
Removing compiz-fusion-plugins-unofficial ...
Removing compiz-fusion-plugins-extra ...
Removing compiz-fusion-plugins-main ...
Removing compizconfig-settings-manager ...
Removing compiz-plugins ...
Removing compiz-core ...
Removing compiz-gnome ...
Removing libcompizconfig-backend-gconf ...
Removing python-compizconfig ...
Removing libcompizconfig0 ...
pnix@pnix-a7n:~$

Now update packages again 'sudo aptitude update' and 'sudo aptitude upgrade'. Last reinstall ubuntu-desktop that removed when compiz-fusion installed.
pnix@pnix-a7n:~$ sudo aptitude install ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be automatically installed:
compiz compiz-core compiz-gnome compiz-gtk compiz-plugins freeglut3 libglut3
The following NEW packages will be installed:
compiz compiz-core compiz-gnome compiz-gtk compiz-plugins desktop-effects freeglut3 libglut3 ubuntu-desktop
0 packages upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 692kB of archives. After unpacking 4145kB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://th.archive.ubuntu.com feisty/main compiz-core 1:0.3.6-1ubuntu13 [143kB]
Get:2 http://th.archive.ubuntu.com feisty/main compiz-plugins 1:0.3.6-1ubuntu13 [269kB]
Get:3 http://th.archive.ubuntu.com feisty/main compiz-gtk 1:0.3.6-1ubuntu13 [61.8kB]
Get:4 http://th.archive.ubuntu.com feisty/main compiz-gnome 1:0.3.6-1ubuntu13 [35.0kB]
Get:5 http://th.archive.ubuntu.com feisty/main compiz 1:0.3.6-1ubuntu13 [26.9kB]
Get:6 http://th.archive.ubuntu.com feisty/main desktop-effects 0.7.1-0ubuntu4 [33.1kB]
Get:7 http://th.archive.ubuntu.com feisty/main freeglut3 2.4.0-5 [84.0kB]
Get:8 http://th.archive.ubuntu.com feisty/main libglut3 3.7-25 [21.5kB]
Get:9 http://th.archive.ubuntu.com feisty/main ubuntu-desktop 1.43 [18.1kB]
. ...

Setting up libglut3 (3.7-25) ...
Setting up ubuntu-desktop (1.43) ...
pnix@pnix-a7n:~$

Now I'm ready to go for Gutsy. manual here

10/15/07

VM crash on Feisty

During use netbeans5.5 to create webapps. I insert table and suddenly netbeans crash. It generate error log[hs_err_pidxxxx.log] in my home dir and here is it said.

#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb51b8d5a, pid=5417, tid=3025587088
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
# Problematic frame:
# C [libmawt.so+0x81d5a]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

Few months ago, I add "AWT_TOOLKIT=MToolkit" to fix blank window problem in swing application when enable "Desktop Effect" and now look like java hotspot has problem with MToolkit too:(
"AWT_TOOLKIT=XToolkit" fix the problem but i will get blank window under compiz-fusion. So for now my solution is no eye-candy when use java apps.

10/11/07

Gutsy Gibbon

It's about a week from today that Gutsy[ubuntu 7.10] will come out. I read through new feature in beta version and feel enthusiastic to see the change.

- new gnome2.2, it's new feature here.
- compiz fusion will be in official repos. that good, on feisty i use third party repos. and sometime got error when updating for last few weeks.
- ntfs writing enable. i rarely need to write file on ntfs partition, anyway it may be useful.
- automatic printer installation, this will be great for other[I have no printer at my house]

I really hope that my hardware[athlonXP1700+,512DDR,fx6200 and A7N8X-E] can run gutsy with 3D effect smoothly.:)

10/6/07

Avidemux on ubuntu feisty

Video editing on ubuntu will be not too hard, thanks for Nathan's comment in last post that remind me about avidemux.
On feisty you can find avidemux from multiverse repos.

pnix@pnix-a7n:~$ sudo aptitude install avidemux
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be automatically installed:
lame libfaad2-0 libmjpegtools0c2a libmozjs0d libnspr4-0d libquicktime0 mjpegtools toolame
The following NEW packages will be installed:
avidemux lame libfaad2-0 libmjpegtools0c2a libmozjs0d libnspr4-0d libquicktime0 mjpegtools toolame
0 packages upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 5403kB of archives. After unpacking 13.8MB will be used.
Do you want to continue? [Y/n/?] y
...

Setting up toolame (02l-3) ...
localepurge: Disk space freed in /usr/share/locale: 224K
pnix@pnix-a7n:~$

with avidemux, all you need to do is just open video file, select 'auto' menu and choose which format you want, click save that's it. I choose VCD then it's auto apply two filters for me [scaling,add black border]. Ofcourse you can add more filter if you want.


Update:
Note: encoding ~50 mins 688x384 avi file to mpg with athlon xp 1700+, avidemux take 44 mins but mencoder take only 17 mins!!!.

10/3/07

Encoding avi to mpg with mencoder

I just finish downloading japanese series from bittorrent, Nodame Cantabile. 12 avi files are now on my disk. I need to covert it to mpg before burn to vcd. After searching, look like mencoder is a good choice do this job. let try.

pnix@pnix-a7n:~$ sudo aptitude install mencoder
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be installed:
mencoder
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 3557kB of archives. After unpacking 8946kB will be used.
Writing extended state information... Done
Get:1 http://security.ubuntu.com feisty-security/multiverse mencoder 2:1.0~rc1-0ubuntu9.1 [3557kB]
Fetched 3557kB in 4m54s (12.1kB/s)
Selecting previously deselected package mencoder.
(Reading database ... 113732 files and directories currently installed.)
Unpacking mencoder (from .../mencoder_2%3a1.0~rc1-0ubuntu9.1_i386.deb) ...
Setting up mencoder (1.0~rc1-0ubuntu9.1) ...
pnix@pnix-a7n:~$

I'm not an expert in video editing, anyway thanks for document from mplayerhq that give me a very very long command.
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf scale=352:196,expand=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts     vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 -o n01.mpg N*01.avi

scaling:
meaning of many option are mostly standard for 'NTSC VCD' format except scaling option that depend on original file resolution. 352x240 is resolution of NTSC VCD but my original avi res. is 688x384 so it need to scale and add black border to meet requirement. In my 'scale=352:196' 196 is came from 352x384/688.

first trying i got many error like this
mpg123: Can't rewind stream by 17 bits!:   0min   0mb  A-V:0.030 [0:0]
mpg123: Can't rewind stream by 36 bits!: 0min 0mb A-V:0.039 [0:0]
mpg123: Can't rewind stream by 18 bits!: 0min 0mb A-V:0.046 [0:0]
mpg123: Can't rewind stream by 22 bits!: 0min 0mb A-V:0.049 [0:0]
mpg123: Can't rewind stream by 12 bits!: 0min 0mb A-V:0.052 [0:0]

the trick is i need to add '-ac mad' to specify decoder in that command and here is the result.