Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Friday, April 27, 2012

Switch off ATI VGA in Hybrid cards with Intel on Ubuntu (solving overheating)


On my HP Pavilion dv7-6190ed (FW F.18) I have an AMD Radeon HD 6700M series video card, which sometimes it make my laptop overheat until 97 C.
The ATI Radeon and Intel VGA both run, and seem to go rogue at times. At the time of my install, (around Jan. 2012) the Catalyst drivers seem to have a problem with Ubuntu 11.10 (oneiric).
By switch off VGA AMD Radeon part of the card, it seem to decrease the running temperature, to about 60 C on av. Along with that it runs way more quiet. (no cooling fans going ballistic)
So basically, turning off the ATI VGA part of the card will decrease the heat problem in Ubuntu.

NOTE:  Since posting this workaround, there has been an upgrade for the BIOS (FW F.1B). They fixed option available now for ATI, may reduce heat too. so try upgrading the BIOS FIRST !!. here is the link>> BIOS FW F.18)


Tuesday, December 27, 2011

Remove Old Kernel versions, and update your grub Menu

If you want to clean up your system, and free some space on your system partiton, removing old unused kernel versions is a good start.
NOTE: Before starting any of this, make sure you have a solid back-up (There are several good GUI driven back-up systems for Linux available, although I still like to run my own scripts using rsync)

1. find out what the current kernel version is (open a Terminal screen): 

uname -r

2. Do a test run and see what will be removed. (nothing will actually be removed. it is so called a dry - run command)

Monday, June 7, 2010

Video Editing in Blender 2.49b & 2.52alfa2 using ogv input files

In the past when on Hardy Heron (Ubuntu 8.04Lts) and Blender 2.45, you could use the ogg/ogv files created by "RecordMyDesktop" and process them as pleased.

upgraded to Lucid (Ubuntu 10.4Lts) that by default comes with Blender 2.49b in the repositories, You can't use ogv files in blender VSE. (created by "RecordMyDestop").

But there is a workaround:

Saturday, October 31, 2009

Ubuntu 9.10: No audio on IBM ThinkPad T40 (Karmic-Koala)

After Installing Karmic - Koala (Ubuntu 9.10) on an old IBM thinkpad T40, there was no audio.
Adding a module seem to solve the problem.

/etc/modprobe.d/alsa-base.conf
Open a Terminal screen and type:
gksudo gedit /etc/modprobe.d/alsa-base.conf

Add the flollowing line at the Bottom, save and Reboot.
options snd-hda-intel model=ibm-thinkpad









Enjoy your sound at next boot.

Ubuntu 9.10: No audio on Acer-Aspire-8920G (Karmic-Koala)

Installing Karmic - Koala (Ubuntu 9.10) on Acer-Aspire-8920(G):
Out of the box, you won't have Audio.
Adding a module seem to solve the problem.

/etc/modprobe.d/alsa-base.conf
Open a Terminal screen and type:
Sudo gedit /etc/modprobe.d/alsa-base.conf

Add the flollowing line at the Bottom, save and Reboot.
options snd-hda-intel model=auto

Enjoy your sound at next boot.

Monday, October 5, 2009

Archive E-mails in Evolution (Ubuntu 8.04/9.04)

Intro:
One thing I really liked in MS-Outlook, was the Archive option; creating one file with the complete sub-folder structure preserved. Evolution does not yet have this feature, however, you can mimic it, with a very similar result.
I have switched from Outlook to Evolution around July 2008, And we are currently March 2009. So far, I haven't archived anything, and my daily Back-up starts to take way more time than I'm willing to bare.


Goal:
I want to outline a procedure, that will give me a system very much like the outlook archives. I used to Archive Quarterly.

Procedure:
I Prefer to work in my Virtual Box, to make sure I won't mess up anything in my real time version. (work off-line.)

Mass-change of Directory/File permissions @ command line.

A Quick note on how to change permissions of a whole directory structure and/or all containing files.

  1. Changing permissions of Files in a directory structure, (starting point is current directory)(Example: set all files to 644)

    Sudo find . -type f -exec chmod 644 {} \;
  2. Changing permissions recursively of all directories from current directory as starting point. (Example: set directories to 755)
    Sudo find . -type d -exec chmod 755 {} \;

Sunday, October 4, 2009

Ubuntu 8.04: Screen Brightness Control for Acer Aspire 8920G

The FN-key + left and right arrow is used to change screen brightness. By default this doesn't work. Here is how to make them work. (I found this code in several help forums and modified it to make it work for my Acer).

Step1:
Before you start, make a backup of these files (video_brightnessup.sh and video_brightness_down.sh) so you can put things back the way they were if necessary.

Installing Windows XP/Vista true type fonts in Ubuntu 8.04/9.04 system wide

First find out in which location Linux has installed the True Type fonts. It is usually at the location '/usr/share/fonts/truetype/' . But you may also do a search for the same as follows:
# locate .ttf -b

Friday, October 2, 2009

Ubuntu 8.04 LTS: Acer Aspire 8920(G) LAN/WAN configuration.

Wireless:

The wire-less works out of the box. You only need to configure your security (WEP / WPA)

Wired:

Aspire 8920 uses an Attansic Technology Corp Atheros AR8121 / AR8113 PCI-E card. Unfortunatley that hasn't been included in the current kernels. Therefore you need to do this manually. The following forum has a good description (http://ubuntuforums.org/showthread.php?t=770173) In short here:
  • Install build-essential (synaptic, aptitude or apt-get)
  • download the linux driver from: http://support.asus.com/download/dow...model=P5KPL-CM or : http://www.bas-r.nl/atheros_lan_driver/ (this has the latest, needed for 2.6.24-24-generic)
  • Unpack in your Home directory ex. /home/user//LinuxDrivers/L1e_Lan/l1e-l2e-linux-v1.0.0.4/src
  • in this directory run: sudo KBUILD_NOPEDANTIC=1 make sudo KBUILD_NOPEDANTIC=1 make install
  • This will install driver in /lib/modules/2.6.24-22-generic/kernel/drivers/net/atl1e/at1le.ko
  • in this directory run: sudo insmod ./atl1e.ko

Ubuntu 8.04/9.04: NVidia Geforce Restricted Drivers Installation (Aspire 8920G)

Nvidia Restricted driver installation.


I've used this procedure on different versions of Ubuntu. (8.04 / 8.10 / 9.04) and for different Nvidia Geforce cards (6600, 7300, 9500, ... ) and for all it is the same method. Just make sure you download the correct driver for your card.

  1. Before you start, backup your current xorg.conf file: sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup1

  2. Download the latest drivers for your version of Linux here: http://www.nvidia.com/object/unix.html (pick the right version and processor type)

  3. Open terminal screen

  4. Become root: sudo su

  5. kill the x server with: killall gdm (in case you run gnome desktop) ore use: kill -9 PID#

  6. Check with ps aux | grep gdm if all instances are really killed.

  7. make the downloaded file executable: chmod +x /your_download_location/NVIDIA-Linux-x86-180.17-pkg1.run

  8. Run the file: sh NVIDIA-Linux-x86-180.17-pkg1.run If all is right and X indeed has been killed the program will do it's thing. You will have to recompile the driver. At the end you will be asked to configure xorg.conf. Go ahead and do that.

  9. Reboot or Restart X (reboot is the easiest just type reboot as root)

  10. When the system is rebooted; open terminal screen again. and type: sudo nvidia-settings Don't run the Nvidia settings from the menu, unless you have changed the menu item to run it as root. you need those permissions to write back the new settings you pick into your xorg.conf file.

  11. Select the settings you want (even dual screen) and save to xorg.conf


This should get you the beautiful 1920 x 1080 resolution the Acer Aspire 8920G delivers.

Hint, if you want to use dual screens, Twin view is an option but I would suggest to go for separate X screens. This has some disadvantages but allows you to run your laptop either in dual screen mode or single screen boot without to change the xorg.conf file. the machine is powerful enough to handle 2 X screens.

I suggest you to copy the new xorg.conf to a new backup file again.



NOTE:
Every time you update the kernel you will have to redo this process as the driver has been compiled in the current kernel manually.
If you have done many modifications to your xorg.conf file, I would suggest to copy it to a master file for later use. you can just copy that one back to xorg.conf after re-installing the Nvidia drivers. (saves you from doing all the settings again)
I attach my xorg.conf for Acer Aspire 8920G in Dual Screen mode as example (2 x screens: 1280x1024 external monitor and 1920x1080 laptop screen)



File: /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder57) Sun Dec 14 20:59:56 PST 2008
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder57) Sun Dec 14 20:59:00 PST 2008
Section "ServerLayout"
Identifier     "Layout0"
Screen      0 "Screen0" 1280 0
Screen      1 "Screen1" LeftOf "Screen0"
InputDevice    "Keyboard0" "CoreKeyboard"
InputDevice    "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "Module"
Load           "dbe"
Load           "extmod"
Load           "type1"
Load           "freetype"
Load           "glx"
EndSection
Section "ServerFlags"
Option         "Xinerama" "0"
EndSection
Section "InputDevice"
# generated from default
Identifier     "Mouse0"
Driver         "mouse"
Option         "Protocol" "auto"
Option         "Device" "/dev/psaux"
Option         "Emulate3Buttons" "no"
Option         "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier     "Keyboard0"
Driver         "kbd"
EndSection
Section "Monitor"
Identifier     "Monitor0"
VendorName     "Unknown"
ModelName      "Seiko"
HorizSync       30.0 - 75.0
VertRefresh     60.0
Option         "DPMS"
EndSection
Section "Monitor"
Identifier     "Monitor1"
VendorName     "Unknown"
ModelName      "Philips 170S"
HorizSync       30.0 - 83.0
VertRefresh     56.0 - 76.0
EndSection
Section "Device"
Identifier     "Device0"
Driver         "nvidia"
VendorName     "NVIDIA Corporation"
BoardName      "GeForce 9500M GS"
BusID          "PCI:1:0:0"
Screen          0
EndSection
Section "Device"
Identifier     "Device1"
Driver         "nvidia"
VendorName     "NVIDIA Corporation"
BoardName      "GeForce 9500M GS"
BusID          "PCI:1:0:0"
Screen          1
EndSection
Section "Screen"
Identifier     "Screen0"
Device         "Device0"
Monitor        "Monitor0"
DefaultDepth    24
Option         "TwinView" "0"
Option         "metamodes" "DFP: 1920x1080_60 +0+0"
SubSection     "Display"
Depth       24
EndSubSection
EndSection
Section "Screen"
# Removed Option "metamodes" "CRT: nvidia-auto-select +0+0"
Identifier     "Screen1"
Device         "Device1"
Monitor        "Monitor1"
DefaultDepth    24
Option         "TwinView" "0"
Option         "TwinViewXineramaInfoOrder" "CRT-0"
Option         "metamodes" "CRT: 1280x1024_75 +0+0; CRT: nvidia-auto-select +0+0"
SubSection     "Display"
Depth       24
EndSubSection
EndSection

Ubuntu 8.04: Sound Card Setup for Acer Aspire 8920G

Sound Card set-up

There is at the moment of this writing a new project running to create scripts that install the ALSA drivers (by soundcheck). The Ubuntu forums host the discussions here: http://ubuntuforums.org/showthread.php?t=962695 I've tried this but it didn't work (known issues with kernel version, and unfortunately the workaround didn't work either) So back to the trick from while ago with updated source code.
  1. Set model to acer-aspire in /etc/modprobe.d/alsa-basegksudo gedit /etc/modprobe.d/alsa-base (add the following line at bottom) options snd-hda-intel model=acer-aspire
  2. Download and compile hda-verb-0.3.tar.gz from: ftp://ftp.suse.com/pub/people/tiwai/misc/ unpack the file and then compile the code with the make command.
  3. Copy the compiled program to /usr/local/bin (sudo cp hda-verb /usr/local/bin/)
  4. Add the following line to /etc/rc.local (before exit 0) /usr/local/bin/hda-verb /dev/snd/hwC0D0 0x15 SET_EAPD_BTLENABLE 2
  5. Reboot and the sound should be working.