The website of Lei Chen

Sunshine and rain of a developer

Archive for the ‘Ubuntu’ Category

Ubuntu 9.10 Dual Screen Resolution Problme[Solved]

Posted by hide1713 on November 8, 2009

I just installed Ubuntu 9.10 yesterday. The only problem is that 9.10 fail to detect my dual monitors; therefore, the resolution of my two monitors were set to 1024*768 by default. I spent one day to complete solve this problem. My graphic card is a ATI one. You may skip this page if your graphic card is not ATI. Here’s how.

1. Download ATI driver from Ubuntu Hardware Driver setting. Run the following command.

sudo amdcccle

2. Set correct resolution for both screen. (1280*800 and 1600*1200 for me). It was weird at the beginning, because ATI control center only allowed me to set my second monitor to 1280*800. I solved this problem by unplugging the monitor and reboot my box(Maybe).

3. (Optional) Revert the screen location. My second monitor is on my right hand side. I tried to set the screen position in AIT control center. But the control center always crash after I apply the change. I have no option but changing xorg.conf manually.

Section “Monitor”
Identifier   “0-LCD”
Option      “VendorName” “ATI Proprietary Driver”
Option      “ModelName” “Generic Autodetecting Monitor”
Option      “DPMS” “true”
Option      “PreferredMode” “1280×800″
Option      “TargetRefresh” “60″
Option      “Position” “0 0″
Option      “Rotate” “normal”
Option      “Disable” “false”
EndSection

Section “Monitor”
Identifier   “0-CRT1″
Option      “VendorName” “ATI Proprietary Driver”
Option      “ModelName” “Generic Autodetecting Monitor”
Option      “DPMS” “true”
Option      “PreferredMode” “1600×1200″
Option      “TargetRefresh” “60″
Option      “Position” “1280 0″
Option      “Rotate” “normal”
Option      “Disable” “false”
EndSection

The position option indicates the start point of a screen.

All Done!

 

 

 

Posted in Ubuntu | Leave a Comment »

xkeycaps, Very good keyboard testing and mapping tool

Posted by hide1713 on December 25, 2008

sudo apt-get install xkeycaps

1. test you keyborad

2. output key map to a xmodmap file

Posted in Ubuntu | Leave a Comment »

Using Texmaker to write Latex document on Ubuntu

Posted by hide1713 on December 22, 2008

In order to run Texmaker under Ubuntu. You need to install the following packets.

sudo apt-get install texmaker

sudo apt-get install texlive-latex-base

sudo apt-get install texlive

sudo apt-get install texlive-latex-extra

After that. you will be able to write Latex file in texmaker and generate pdf file.

Posted in Ubuntu | Tagged: | Leave a Comment »

Ubuntu Stardict With Sound And HTML Parser

Posted by hide1713 on November 29, 2008

The default installation of stardict do not support sound and HTML dicts.

you need to install stardict-plugin package and download WyabdcRealPeopleTTS . Put those sound files in /usr/share/WyabdcRealPeopleTTS then chenge stardict sound sitting-> command  from play to aplay

Enjoy

Posted in Ubuntu | Tagged: | 2 Comments »

Ubuntu Samsung 933SN Dual Monitor Vartual Desktop ATI Configration

Posted by hide1713 on November 29, 2008

First, backup your /etc/X11/xorg.conf

Then, sudo dpkg-reconfigure xserver-xorg  This command reconfigures xorg.

Then, reboot the system. Your ubuntu should be able to recognize your monitor but not in right resolution

in system->Administration->Hardware Device. Select ati driver. Reboot again.

Make sure in your xorg.conf contains the following info

Section “Screen”
#add these three lines
SubSection “Display”

Virtual   2640 1568  #2640=1200+1340 1568=800+768 which is my two monitors resolution
EndSubSection

#———————————
Identifier “Default Screen”
Device     “Configured Video Device”
Monitor    “Configured Monitor”
DefaultDepth     24
EndSection

Reboot again. I spent 2+ hours to make everything right. Here is my xorg.conf file. I use default ubuntu ati driver.  It takes time, be patient

Posted in Ubuntu | Tagged: | Leave a Comment »

Ubuntu 8.10 can not shutdown, freeze in alsa

Posted by hide1713 on November 17, 2008

Put:

ifconfig wlan0 down

at the beginning of stop in: /etc/init.d/alsa-utils

Posted in Ubuntu | Tagged: | Leave a Comment »