Friday, July 16, 2010

Acer Aspire 4740G on OpenSUSE (Perfect Linux Machine)



As I said AS4740 works well with Linux but you still need to do some tweaking for full functionality.
A lot of things you do with AS4530 is done with AS4740 to achieve full multimedia capability.

Edit: As with the new release openSUSE there are some updates:
1)Multimedia configuration is as shown below still the same manual work due to GPL.
2)Edit Nvidia Driver Repo is up just add the server and install the drivers.
3)You no longer need acpi_vendor commandline...issue resolved
4)Touchpad still jumpy with 2 fingers...
5)Atheros Driver no compiling required since the drivers work pretty well out of box.

In conclusion it is a great release solving some of the issues above just that the nvidia delay is a show stopper. I always like openSUSE elegant way of pushing down Nvidia Driver by server repo too bad they didn't get it out the same time as the distro release.

Lets get started:

First go to OpenSUSE to download their Live CD for 32/64bit according to your needs.
The LiveCD is the size of a Normal CD and just what you need to install OpenSUSE, the DVD format is a waste of bandwidth and a overkill.

Everything works out of box except the display driver.

Things that need tweaking:
  • Nvidia Propriety Drivers.
OpenSUSE is interesting because Nvidia provides the driver updates from their own server.
Other Distro like Ubuntu has a 3rd party maintaining the driver but not OpenSUSE however due to licensing issues they cannnot include it in the default install.

After installing add the Nvidia Server to the repository
SYSTEM,  SYSTEM ,YAST

Software,Software Repo

Add
Protocol:HTTP
Server:download.nvidia.com (See Nvidia provides the direct package)
Directory on Server: /opensuse/11.2
Accept the Server Key (because you trust the server)
From the YAST Menu, Select Software Management search for the Nvidia Driver and install it.
The kicker is that OpenSUSE software updates is IRRITATINGLY SLOW.
So bear with it.

After installing and rebooting it will be automatically activated.


  • Restricted Formats
Due to licensing issues OpenSUSE doesn't have restricted format support out of box but they are downloadable here (Unfortunately the libraries broke the cheese webcam functionality).

Edit: To prevent breaking of the cheese webcam functionality do the following:

Add VLC to the software repository(Use VLC to play all your future videos)
Then use Fluedo Codec for Banshee
After this the webcam functionality will be preserved.

You might also want to do the following configuration of the conf files below.

Edit: /etc/sudoers
Append "DISPLAY" as shown below
Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE DISPLAY"

The reason so you can sudo something in GNOME Desktop Mode.

Edit /etc/fstab
Add noatime to the line of your main disk partition so it will not write last access date to your Harddisk (Less unnnessary harddisk operations)

Open YAST select bootloader
Rename the Windows 7 Entry to something you like.
Rename the OpenSUSE Entry to something you like. 
Set the default OS to something you use more often.
Add acpi_osi=Linux to the end of the OpenSUSE boot parameters


Issue #1 Touchpad Multi-Touch (There is still a problem with jumping cursors with multi fingers so it is better to revert to Scroll Bar it should be fixed in the future) :

Create a config file using the data below.
Name it: 11-x11-synaptics.fdi
copy it to the following folder with root permission:/etc/hal/fdi/policy



The synaptics pad may not support true multitouch. However, we emulate multitouch when the width of the touch is greater than 6 units:
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.touchpad">
<merge key="input.x11_driver" type="string">synaptics</merge>
<merge key="input.x11_options.SHMConfig" type="string">On</merge>
<merge key="input.x11_options.EmulateTwoFingerMinZ" type="string">50</merge>
<merge key="input.x11_options.EmulateTwoFingerMinW" type="string">5</merge>
<merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>
<merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>
<merge key="input.x11_options.TapButton1" type="string">1</merge>
<merge key="input.x11_options.TapButton2" type="string">3</merge>
<merge key="input.x11_options.TapButton3" type="string">2</merge>
</match>
</device>
</deviceinfo>
 

Then enable 2 finger scroll as shown below

Issue 2: Brightness Control
Add the follow to the Boot Loader Command Line as shown below
: acpi_backlight=vendor
Issue 3: Weak Wireless Signal
Add Atheros Repository to YAST


Then go to the install software menu it will recommend you to install atheros driver and madwifi.
However this doesn't solve the issue as signal is still weak you must grab the latest driver from source and compile it.
Sounds tough? It is actually quite simple.

Compiling it yourself using the sources

  • Make sure you have installed those packages: gcc, gcc-g++, make, kernel-source, kernel-XXX-devel (where XXX is the type of your kernel, for example if you use kernel-desktop kernel install kernel-desktop-devel package). If not, please install them using YaST.
  • Download the current drivers directly from MadWifi Project.
  • Unpack the archive in a temporary folder.
  • Open up a terminal window.
  • Switch to the temporary folder, and type in,
$ sudo make 
$ sudo make install
 
To load the new driver modules simply restart if you do not want to load the driver module manually.

Issue 4 Microphone
This is simply just set as shown below

For best Font Display use the following Settings in Appearance:
Select Detail



Select Slight Hinting or None instead of Full

Friday, July 2, 2010

Fuss Free Computing

I hear a lot of stories regarding the state of Windows users find themselves.
However you can be certain that 90% of the time it is the users' fault.
I have another article on how to maintain the longevity of the hardware but this post specifically aims to teach you how to maintain the state of your operating system.
It is tried and tested on my system therefore I don't see how it is not applicable to anyone else.
Ok here goes

Rule 1: Don't install any software you don't know

I know it is difficult since they let you download for FREE right? No.
Only download reputable software from reputable sources.
Do not install software that forces you to download and run it to access certain resources.
A lot of freeware advertised in banners are either spyware or malware in their own rights.
Good software spreads by the word of mouth. Ask your IT-Savy friends for advice on Freeware.


Rule 2: Do Not Download & Run Files not expected from friends

Do not assume that mail coming from friends are safe. Some Malware do spread from contact list so unless you are expecting the mail and or attachments from friends just trash the mail. You can tell whether the mail is genuine from the way the text is phrase as well.

Rule 3: Less is more

Contrary to freebies in computing more software = less performance.
If we take a logical approach, more software = more code/data to be executed.
Assuming processing is constant,  performance drops. Logical?
So install what you actually will use and software that brings real benefits to your computing experience, avoid programs that tries runs itself on startup because it brings delay to boot time execution.

Rule 4: Only Optimization is Windows Optimization

Out of the so many Windows optimization the only real optimization is the Windows built in ones.(You can find the optimization below documented in documents published in WHDC (Windows Hardware Developer Central).
Open Command Prompt with Elevated Rights & type the following:
C:\Windows\System32)Rundll32.exe advapi32.dll,ProcessIdleTasks
You will see harddisk lights light up as Windows started optimizing itself.
It is safe to assume that it is completed once Harddisk Activity lights ceases.
Next run Windows Defragmenter 
Open Command Prompt with Elevated Rights & type the following:
C:\Windows\System32)Defrag C:\ /v /u
The /v /u flags will inform you about the status of completion.
Finally Open Command Prompt with Elevated Rights & type the following:
C:\Windows\System32)Defrag C:\ /v /u /b
The /b flag will tell Windows to perform an optimization known as boot optimization to reduce boot time.
Some other Optimization does the same optimization as documented by Microsoft so installing them is like doubling the work so you actually do not need to install any third party software optimizer.
However Windows Defragmenter is a necessary evil inherent because of the way NTFS, Microsoft File System allocates Disk space, defragmentation is the only solution to defragment non-contiguous files especially after a lot of reinstalls and uninstalls.

Rule 5: Delete the "Setup.exe" after installing

Whenever you download and install a software like Firefox you get a installer called Setup.exe. If I were to use an analogy it is like the packaging whenever you buy a product after you take out the product you can throw the box away. Over time these EXEs built up when you install software wasting unnessary space on the harddisk. Just like your real house do some house keeping on your harddisk.

Rule 6: Do Not Install Toolbars

This is a fair new occurrence you see many software publishers offering toolbars for Web Browsers some come bundled with "freeware". In any case Do Not install them.
Why? Because the Web Browsers Authors do not specifically test the toolbars to work properly alongside the browsers. There is no guarantee it will not affect your browser in any negative manner.

Rule 7: Disable AutoRun & AutoPlay

 Even though Microsoft beefed up Windows Security with UAC and malware that auto launches itself from the thumbdrive can still cause some unnecessary damage. If you need to launch an executable just launch it manually and save yourself the unnecessary risk of a malware attack. To disable it just access Control Panel click on AutoPlay and disable it for all devices. If autoplay is disable NO MALWARE can attempt to launch itself into your system unless you launch it manually.


Lastly to get a free and good anti-virus look no further than Microsoft Security Essentials.
Why do I recommend this software because it is free for every Genuine Windows, and updates are tested before release.
I believe you heard horror stories of 3rd party Anti-Virus killing your Operating Systems.
1)I believe that Microsoft test their definition files and patches before release.
2)A good anti-virus isn't overly suspicious. Microsoft Security Essentials have good detection rate but at the same time it isn't overly zealous like a suspicious policeman thinking every citizen is a potential criminal like some other 3rd party OS.
3)I have tried MSE and it plays nice on Windows Vista and  above Operating System without being a resource hog. Some people believe that a Security Software should protect us against all know threats even drive by sites but I believe an Anti-Virus software is the last line of defense against malware, users safe surfing and computer usage habits is the FIRST defence. Just following the few simple rules should guarantee a fuss free computing even on Windows. Paying more for Macs isn't the solution, sure using a less common OS might reduce the chance of encountering malware since the malware programmers tend to target the majority but ultimately it is the usage habits that matters.