Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Monthly Archives: May 2009

[RHEL5] qt4-x11 is included in qt4

I have installed skype, which require qt4-x11 libraries in my RHEL5 box. I was looking for qt4-x11 for RHEL5, but it turned out that qt4-x11 is included in qt4 in RHEL5.

Get rid of “WARNING: Ignoring duplicate config node: filter (seeking filter)”

About a month ago, I upgrade my kernel, then this warning message start to appear.
According to this post, I should update the /etc/lvm/lvm.conf and consolidate all the filtering rule into one line, and run vgscan to update the cache. I did all above, but the message still persisted.

Today, I came out the idea that the problem might be resting in my initrd, so I update the initrd using mkinitrd, and it works. The detail step is explained in following paragraph, but beware that:

  • Of course you need to be root.
  • Keep the back up initrd image, in case something bad happened.
  • Need to know how to rescue the system in case something bad really happen.

Here are the steps:

  1. Become root
  2. cd /boot
  3. mv initrd-[yourKernelVersion].img initrd-[yourKernelVersion].img.bak
  4. mkinitrd initrd-[yourKernelVersion].img [yourKernelVersion]
  5. [Optional] add a grub entry whose initrd points to your backup file, just in case.
  6. reboot

And voila, it works.

[xorg.conf] Modeline that works with xvidtune (with RandR 1.2 Driver)

When I work with Ben Skeggs about nouveau screen rotation bug, he kindly pointed out that for RandR 1.2 drivers,

Option "Monitor-Output" "MonitorId"

should be provided in Device section.

The Monitor-Output can be obtained from the output of xrandr, while the MonitorId is the identifier of the Monitor section.

I appreciate the effort of nouveau team, it works great on my box!

[xorg.conf] Modeline that works with xvidtune!

I have been using Nvidia video card for a while. I’ve tried nv, nouveau, and the proprietary nvidia. I cannot use nouveau because it does not support static rotation yet.

Proprietary nvidia support driect rendering even when the screen is rotated, but Gtk application such as gvim does not reflesh well with it. I have to click on empty lines in gvim to reveal the true nature of the lines!

nv also has it own problem. When starting X, the display area goes rightward and out of the monitor. Indeed monitor’s OSD can move it back, but you have to move it again when play with console mode. How annoying.

Some references kindly tell me that xvidtune address this problem. According to them, you only need to adjust the screen with it, click the “show” button, then paste the output to the xorg.conf. But guess what, I don’t need to post this article if it “JUST-WORK”. It just does not work.

This is the case that Google sucks but man pages rules. 🙂
Google tells you to add “option PreferedMode” which only work for RandR1.2 drivers.
In man 5 xorg.conf, section Screen, subsection Display, option Modes:

They must correspond to those specified or referenced in the appropriate Monitor section (including implicitly referenced built-in VESA standard modes). The server will delete modes from this list which don’t satisfy various requirements. The first valid mode in this list will be the default display mode for startup. ….

Modes don’t have to be in format “<resX>x<resY>” but anything you want.
The “<resX>x<resY>” is for auto-generated Modeline. For your own custom Modeline, better have you own id such as:

Modeline "1280x1024_Centered"   108.00   1280 1344 1456 1688   1024 1025 1028 1066 +hsync +vsync

And then put “1280x1024_centered” in the front of the Modes section so it will be default.