Ubuntu 11.10 Monitor Won’t Wakeup


## /etc/X11/xorg.conf
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "DontZap" "false"
Option "dpms" "false"
EndSection

Posted in 开发的乐趣 | Leave a comment

Chinese Input support in Openbox / Ubuntu

在Ubuntu的Eclipse里直接写程序,刷新页面,是最方便的。但是之前一直懒得装中文。所以需要输入中文的时候就需要从别的电脑上编辑,再贴入。很麻烦。今天终于受不了了,把中文装好了。哦Yes。


sudo apt-get install ibus ibus-pinyin libm17n-0 m17n-lib-bin m17n-db m17n-contrib

## add the following to .xinitrc
ibus-daemon -rd &

Reference:
http://ubuntuforums.org/showthread.php?t=1544969

Posted in 开发的乐趣 | Leave a comment

VirtualBox on Windows 7 Host (AMD Processor) Attaching USB Device to Guest OS

I had a hard time populating the USB device list in the VirtualBox’s machine settings page.

After some googling I found this and it really works, so delighted!

Here are the relevant removal instructions:
For computers with AMD processors you may need to remove the AMD USB Filter Driver:

1. Right-click (My) Computer and select Manage.
2. In the left pane of the Computer Management window, select Device Manager.
3. Expand Universal Serial Bus Controllers.
4. Locate the AMD USB Filter Driver.
5. Right-click it and select Uninstall.
6. Select Uninstall the driver software for the device.
7. Restart your computer.

If the above method fails, you can also uninstall the AMD USB driver manually. To do so:

1. Open the Windows registry, by clicking on Start > Run and typing regedit
2. Navigate to the following location HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}.
3. In the right hand panel, if the the UpperFilters entry exists, then delete it.
4. Go to the location HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\.
5. Delete the usbfilter string.
6. Delete this file: %system32%\drivers\usbfilter.sys.
7. Reboot your computer.

After completing that last set of 7 steps, usbfilter.sys was exorcised and both VMware and VirtualBox became much happier about USB devices.

To see the full technote, google vmware usbfilter.sys.

Reference:

https://forums.virtualbox.org/viewtopic.php?f=2&t=18063#p167459

Posted in 开发的乐趣 | Leave a comment