General Tweaks
Auto adjust screen brightness on AC Power or Battery
Since Gnome 3 there is no GUI way to specify a different backlight level for battery and AC but you can use the following script from
askubuntu user chris to set screen brightness via dbus on a power managment event.
gksudo gedit /etc/pm/power.d/00-brightness
Paste the following in the editor window and replace user=chris with user=<your username>
export DISPLAY=:0
user=chris
bat_bright=50
ac_bright=90
. /home/$user/.dbus/session-bus/*
case $1 in
true)
echo "Enable screen power saving"
sudo -u $user -g $user dbus-send --session --print-reply --dest="org.gnome.SettingsDaemon" \
/org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.SetPercentage uint32:$bat_bright
;;
false)
echo "Disable screen power saving"
sudo -u $user -g $user dbus-send --session --print-reply --dest="org.gnome.SettingsDaemon" \
/org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.SetPercentage uint32:$ac_bright
;;
esac
Save the file, close the editor window and make it executeable
sudo chmod 755 /etc/pm/power.d/00-brightness
Enable Hibernation (Suspend to disk)
Hibernation (also called 'Deep Sleep' or 'Suspend to Disk') has been disabled by default in Ubuntu 12.04 because it did not work on all models. Our Eee PC's can hibernate without a problem, so you can safely re-enable it with:
gksudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
add the following to the file:
[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
After the next Login, "Hibernate" should show up in the power menu.
Adjust plymouth (bootsplash) theme:
gksudo gedit /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script
set a black background by adjusting these 2 lines to:
Window.SetBackgroundTopColor (0.0, 0.00, 0.0); # Nice colour on top of the screen fading to
Window.SetBackgroundBottomColor (0.0, 0.00, 0.0); # an equally nice colour on the bottom
Power Management & Hotkeys Support
The great Application
Jupiter provides Power Management (Asus 'Super Hybrid Engine') and maps the EeePC's Hotkeys to Functions. A must - have!
7
sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install jupiter jupiter-support-eee
Editable Autostart-Applications
According to
this bugreport the ubuntu devs think it's a good idea to hide the Startup Applications from the Users. Well, I don't. To re-populate gnome-session-properties run:
cd /etc/xdg/autostart/
sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop
Reduce Swap Usage
The 'swappiness' parameter (scale goes from 0 = don't swap at all to 100 = aggressively swap) controls the tendency of the kernel to move processes out of physical memory and onto the swap disk.
9 If you own the 2 Gig RAM Model you can safely reduce the swappiness to get better response times.
gksudo gedit /etc/sysctl.conf
add the line
vm.swappiness=10
Set Gdebi as default file handler for debian packages
If you prefer a simpler & faster gui way to install deb packages give
gdebi a try
sudo apt-get install gdebigedit ~/.local/share/applications/mimeapps.list
If the file mimeapps.list does not exist, set a custom open with application for a filetype of your choice. This will populate the mimeapps.list file. Now open it and add / edit the line "
application/x-deb" in the [Default Applications] section to
application/x-deb=gdebi.desktop
Make applications Autostart only in the selected Desktop Enviroment
Autostart Applications place a .desktop file in ~/.config/autostart or in /etc/xdg/autostart. If an application should only start in Gnome, open the correspondig .desktop file and add
to make the Application start in Gnome & Unity:
to make the application start on Gnome-Fallback only add:
AutostartCondition=GNOME3 if-session gnome-fallback
NOTE: This also works for Launcher on the Desktop. If you want a custom Application Launcher to show in Unity only, add the 'OnlyShowIn' line to the corresponding .desktop file
Nautilus Image Converter Script
sudo apt-get install nautilus-image-converter imagemagick
Optional: Move your logs and temporary files to RAM
NOTE: This tweak is only useful if you own the 2 Gig RAM model of the EeePC 1015PN and you system runs good. DO NOT USE IT with 1 GB RAM!
The following tweak will help to save some energy by writing temporary & log files to RAM and reducing disk writes
6
sudo -sservice rsyslog stop
echo "tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0" >>/etc/fstab
echo "tmpfs /var/log tmpfs defaults,noatime,mode=1777 0 0" >>/etc/fstab
mv /tmp /tmp2
mkdir /tmp
mv /var/log /var/log2
mkdir /var/log
mount -a
rsync -av /tmp2/ /tmp
rsync -av /var/log2/ /var/log
rm -rf /tmp2
rm -rf /var/log2
service rsyslog start
What those commands do
First we stop the syslog daemon, then we edit FSTAB and add the new mountpoints. Next we move the /tmp & /var/log folders to a new temporary location and create new folders. Now we apply the changes to fstab, move the old files to their new locations and clean the temp folders. Finally we restart the syslog service.
NOTE: Please bear in mind that moving those logs and temp directories to memory will cause the contents to be lost when you restart. You can still manually copy them to another directory before reboot with
rsync -av /var/log/* ~/saved_logfiles
Tweak Firefox
To change the FF cache directory open Firefox, and in the address bar type 'about:config'. Click through the warning message. Now Right click anywhere in the parameter listing and select New -> String. Set the preference name to 'browser.cache.disk.parent_directory' (without the ticks) and set the value to '/tmp/ff-cache' (again without the ticks).
Tweak Chromium
Chromium has command-line options to control memory management. Available options are --memory-model=<high| medium|low> Setting it to high makes chromium never release memory. Medium makes it reduce its working set of the memory when switching tabs, and low makes it reduce its working set when switching tabs and when the browser is not actively being used. In my experience, running chromium with --memory-model=low can improve performance.
Another useful command line switch is --disk-cache-dir. If you have moved your /tmp to Ram, set chromium to use this Location for Cache.
Add your desired Chromium statup option to the /etc/chromium-browser/default file:
gksu gedit /etc/chromium-browser/default
Change the line after ' # Options to pass to chromium-browser ' to read:
CHROMIUM_FLAGS="--memory-model=low --disk-cache-dir=/tmp"
Tweak Google Chrome:
Add your desired Chrome statup option to the /opt/google/chrome/google-chrome.dektop file:
gksu gedit /opt/google/chrome/google-chrome.desktop
Replace the Exec Line with:
Exec=/opt/google/chrome/google-chrome --memory-model=low --disk-cache-dir=/tmp %U
Advanced Power Saving Tips
Only use these if you know what you are doing ;)
- Activate wireless power saving mode with 500ms (broadcom proprietary wlan driver only)
sudo iwconfig wlan0 power timeout 500ms
- Reduce wireless adapter power to 5 (broadcom proprietary wlan driver only)
sudo iwconfig wlan0 txpower 5
- Power saving options for intel sound module
sudo sh -c 'echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller'
sudo sh -c 'echo 1 > /sys/module/snd_hda_intel/parameters/power_save'
sudo sh -c 'for i in /sys/bus/usb/devices/*/power/level; do echo auto > $i; done'
sudo sh -c 'for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $i; done'
sudo sh -c 'for i in /sys/bus/pci/devices/*/power/control; do echo auto > $i; done'
- Set SATA link Power management to min_power
sudo sh -c 'for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo min_power > $i; done'
How can I configure Unity?
see here:
http://askubuntu.com/questions/29553/how-can-i-configure-unity/101415#101415A tweak tool for unity that allows you to export and import a set of settings for Unity is
unsettings
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install unsettings
I have adjusted the unity configuration to fit our 1024x600 screen. If you want to use my config download the
netbook.unsettings file to your Computer.
Open Unsettings, click on the "Load Settings from File" button, select netbook.unsettings you downloaded and click on the "Apply Settings" button.
How can I reset the unity configuration?
To remove any launchers you've added run:
To reset all of the launcher options run:
Unity Dodge autohide & minimize window on click
This is a customized unity build that auto-hides the left application launcher panel if an application is on fullscreen. On our small Laptop screen we need every mm so this is perfect for our devices. Also a click on the panel icon of a running app will minimize the window.
sudo add-apt-repository ppa:ikarosdev/unity-revamped
sudo apt-get update && sudo apt-get dist-upgrade
to set the dodge windows behaviour install ccsm:
sudo apt-get install compizconfig-settings-manager
ccsm
Select the 'Ubuntu Unity Plugin' and set the "Reveal Trigger" value on the Behavior Tab to "
Dodge Windows"
Unity's keyboard shortcuts
see here:
http://askubuntu.com/a/28087/34029
Allow panel Indicator applets in unity
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install indicator-keylock indicator-keylock-ubuntu-mono
Once installed, start it by pressing Alt + F2 and then enter: "indicator-keylock"
-
TODO: no precise build
syspeek system monitor applet
Oneiric build [all arch]
wget https://launchpad.net/~vicox/+archive/syspeek/+files/syspeek_0.2%7Eoneiric1_all.deb
sudo gdebi syspeek_0.2%7Eoneiric1_all.deb
---
sudo add-apt-repository ppa:vicox/syspeek
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install syspeek
Once installed, start it by pressing Alt + F2 and then enter: "syspeek"
sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install calendar-indicator cryptfolder-indicator my-weather-indicator touchpad-indicator
Conky script adjusted for the Eee 1015PN
sudo apt-get install conky
Download the conky-eee1015pn.tar.gz archive
from the Downloads page and unpack the files in your $HOME. Now start conky from the terminal or set it as start-up application
10
Always use path in Nautilus
gsettings set org.gnome.nautilus.preferences always-use-location-entry true
Remove the Username from the Session indicator applet
sudo apt-get install dconf-tools
dconf-editor
Navigate to the Key 'Apps - Indicator-Session' and untick the checkbox next to
show-real-name-on-panel
Unity Lenses
Lenses are different Tabs in the Unity Launcher, which provide various extra search and listing functions
Unity Recoll Lens:
sudo add-apt-repository ppa:recoll-backports/recoll-1.15-on
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install recoll-lens recoll
Utilities Lens:
sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install unity-lens-utilities unity-scope-calculator unity-scope-cities
Grooveshark Scope:
sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install unity-lens-grooveshark
Dictionary Lens:
sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install unity-dictionary-lens
Web Sources:
sudo
add-apt-repository
ppa:cscarney/unity-web-place
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install
unity-place-websearch
For more Lenses see:
http://askubuntu.com/questions/38772/what-lenses-for-unity-are-available
Add the
gnome3-team ppa that contains parts of gnome 3.4 that are not in the precise repositories and the
webupd8 ppa for some special adjusted shell extensions with bugfixes.
sudo
add-apt-repository
ppa:gnome3-team/gnome3 ppa:webupd8team/gnome3
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install
gnome-shell gnome-shell-extensions gnome-sushi gnome-contacts gnome-themes-standard gnome-themes-extras gnome-themes-ubuntu
gnome-tweak-tool
Gnome 3 Keyboard Shortcuts
https://live.gnome.org/GnomeShell/CheatSheet
Gnome 3 Shell-Extensions
Gnome 3 has a pretty flexible extensions system. Think of this as the successor to the numerous panel applets known from previous gnome versions.
You can install, en- / disable extensions on the fly via
https://extensions.gnome.org/
or a http directory index list of available extensions is @
http://www.fpmurphy.com/gnome-shell-extensions/
NOTE: Some extensions are already installed with custom ubuntu patches from the webupd8 gnome3 ppa. You can manage those via the gnome-tweak-tool's "Extensions" Tab.
Gnome-Shell: Hide Bluetooth and acessibilityApplet
Gnome-Shell: Move notification icons to the top bar
sudo apt-get install gnome-shell-classic-systray
Restart gnome-shell after the install (ALT+F2 => r).
Install Gnome-Shell Themes:
Gnome-Shell Themes by webupd8team
sudo add-apt-repository ppa:webupd8team/themes
sudo apt-get update && sudo apt-get dist-upgradesudo apt-get install faenza-colors zukitwo-themes
Gnome-Shell Themes by
Satya164
sudo add-apt-repository ppa:satyajit-happy/themes
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install gnome-shell-theme-minty gnome-shell-theme-elegance gnome-shell-theme-shine gnome-shell-theme-dark-shine gnome-shell-theme-aqua ambiance-blue-theme evolve-gtk-theme
Apply a new theme with the "Gnome Tweak Tool" or run
gsettings set org.gnome.desktop.interface gtk-theme "theme-name"
Multimedia & other useful Software
Multimedia Codecs
Add the Medibuntu Repository:
12
sudo
wget --output-document=/etc/apt/sources.list.d/medibuntu.list
http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
&& sudo apt-get --quiet update && sudo apt-get --yes
--quiet --allow-unauthenticated install medibuntu-keyring &&
sudo apt-get --quiet update && sudo apt-get --yes install
app-install-data-medibuntu apport-hooks-medibuntu
and install these restricted codecs packages:
sudo
apt-get install ubuntu-restricted-extras non-free-codecs
gstreamer0.10-ffmpeg ttf-mscorefonts-installer unrar libavcodec-extra-53
libavdevice-extra-53 libavfilter-extra-2 libavformat-extra-53
libpostproc-extra-52 libswscale-extra-2 libavcodec-dev libavdevice-dev
libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev
libswscale-dev gstreamer0.10-plugins-base
gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse
Audio and Video Player
For Audio I use the fast and lightweight
Decibel Audio Player and a good video Player is
Smplayer. Install them with:
sudo apt-get install decibel-audio-player
- Install
mplayer2 (the playback engine Smplayer uses)
sudo add-apt-repository ppa:motumedia/mplayer-daily
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install mplayer2 libx264 libblueray1
since this is a daily build ppa you can disable it after the install and update the mplayer package on demmand.
sudo add-apt-repository -r ppa:motumedia/mplayer-daily
- Install Smplayer (faq) from the developers (rvm) ppa
sudo add-apt-repository ppa:rvm/smplayer
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install smplayer
Configure Smplayer for vdpau (nvidia GPU with HDMI Audio out) and xv (intel GPU with Cinch connector / Laptop speakers Audio out) simultaneously:
Options - Preferences - General - Video Tab
=> Output Driver: User defined... vdpau:deint=42:denoise=1,xv,
=> untick the 'Enable post processing by default' checkbox
Options - Preferences - General - Audio Tab
=> Output Driver: User defined... alsa:device=hw=1.7,pulse,
=> Checkbox 'Global Volume'
=> Checkbox 'Use Software Volume Control'
Options - Preferences - Preformance
=> Checkbox 'Allow Frame Drop'
=> Loop Filter: 'Skip only on HD Videos'
Options - Interface
=> Autoresize: 'Never'
Options - Advanced - Options for Mplayer
=> Extra options for mplayer:
-vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau,
You can set Audio Sync during playback via the + and - Keys on the Keyboard. But sync is usually ok here and HD content (incl. 1080p) plays very
smooth with vdpau (nvidia GPU).
Oracle java 7
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get purge openjdk*
sudo apt-get install oracle-java7-installer
if the first install fails, just re-trigger the installer
sudo apt-get install --reinstall oracle-java7-installer
Audio Recorder
Audio Recorder can record from your system's soundcard, microphones, browsers, webcams & more. Put simply; if it plays out of your loudspeakers you can record it.
11
sudo add-apt-repository ppa:osmoma/audio-recorder
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install audio-recorder
More Apps
add some useful 3rd party repositories by adding the following to the sources.list file:
gksudo gedit /etc/apt/sources.list
## getdeb mirror
deb http://mirrors.dotsrc.org/getdeb/ubuntu precise-getdeb apps
deb http://mirrors.dotsrc.org/getdeb/ubuntu precise-getdeb games
## google caution: very sloooooow
deb http://dl.google.com/linux/deb/ stable non-free
deb http://dl.google.com/linux/deb/ testing non-free
## opera
deb http://deb.opera.com/opera/ stable non-free
Sync the Signing Keys:
wget -q -O- http://deb.opera.com/archive.key | sudo apt-key add -
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A8A515F046D7E7CF; gpg --export --armor A8A515F046D7E7CF | sudo apt-key add -
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A040830F7FAC5991; gpg --export --armor A040830F7FAC5991 | sudo apt-key add -
sudo apt-get update && sudo apt-get dist-upgrade
Install:
sudo apt-get install opera skype libvdpau1 smplayer mplayer fotoxx filezilla gimp wireshark htop audacity openoffice.org-thesaurus-de openoffice.org-hyphenation-de myspell-de-at fbreader gpdftext pdfmod xine-ui libxine1-all-plugins cheese linux-headers-$(uname -r) build-essential vuze fakeroot libalgorithm-merge-perl ufraw-batch libclutter-1.0-common libcogl-common libmono-i18n-west4.0-cil binfmt-support ttf-dejavu-extra chromium-browser chromium-codecs-ffmpeg-extra
Have a look in the Software Center for more useful applications. Especially the
getdeb repository has loads of helpful stuff available.
Graphics Card Switching
As noted above both VGA Chips can be used in Exclusive Modes (intel or nvidia) or in a Dual GPU Mode (intel and nvidia) . The Nvidia Chip is useful for high performance stuff (like Gaming, HDTV, ect) but draws a lot of power from the battery. For basic operation I find the Intel GMA 3150 sufficient.
In dual Gpu Mode ( "Optimus" Mode) both chips are available via lspci. The "Hot-Switching" between both chips is work-in-progress and requires some mayor xorg rework, so it will still take some time. As a temporary workaround you might want to try bumblebee. Be aware that this is very hackish so only do this if you are confident you can fix a broken system. 13
The scripts in the provided Package allow you to set the desired VGA Mode for the next boot via a simple GUI.
Install the Nvidia Binary Driver:
sudo apt-get install nvidia-current nvidia-settings
Vdpau Benchmarks with Nvidia Binary Driver
Optional: If you want to stay on the bleeding edge nVidia drivers enable the x-swat ppa:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install nvidia-current nvidia-settings
Optional: The nouveau modues are disabled by the postinstall script of the acpitools deb package. If you do not intend to use the deb package provided below blacklist them with:
sudo -s
echo options nouveau modeset=0 | tee -a /etc/modprobe.d/nouveau-kms.conf
update-initramfs -u
Install the VGA - Switching Helper scripts
This PPA hos
ts the acpi call & bbswitch kernel module and the current Version of the VGA Helper scripts for the
EeePC 1015PN for ubuntu oneiric and precise (i386 & x86_64). After the install go to "Applications -> System Tools -> Vga Selector" and choose the desired Vga mode for the next boot.
Make sure that your system is fully updated and you are running the latest installed kernel.
sudo add-apt-repository ppa:mtron/eee1015pn
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install eee1015pn-acpitools build-essential debhelper module-assistant lm-sensors
Now run the Sensors auto-detection
sudo sensors-detect
Just press enter at each question to use the default answer. Only the last question (add the modules to /etc/modules) should be answered with 'yes'.
After the configuration completed reboot.
Test if it works:
sudo display-settings status
see the '
Command Line Options' section below for more info
VGA Selector Screenshots
Start Screen:
 |
Click on the logo to open driver specific display-settings.
Click on the "reboot with..." button to select the VGA Mode for the next boot.
|
Reboot with:
 |
Users can set the VGA Mode for the next boot.
(no root password required)
|
Set Default GPU:
|
|
If you reboot without using the GPU Tool the "Default GPU" will be
activated for the next boot.
Choose your preferred default VGA Mode
(intel, nvidia or optimus) in the drop down menu and press ok.
|
Advanced Settings:
 |
Each line in the table represents a settings option and it's current status.
To change a setting double click on the corresponding line.
Legend:
green = on
red = off
yellow = not supported on your DE
|
- Optimus mode: Auto Disable nvidia chip on boot
display-settings Command Line Options
The script has more options when called from a terminal with
sudo display-settings <option>
where
<option> is one of the following:
- auto: In this mode the script will look for a .vga-selector file written by the GUI script and executes the acpi_call for the desired option (Intel,Nvidia or Optimus mode). It will also prepare the xorg configuration and glx libraries for the next boot. If the script can't find any .vga-selector file it will use the selected default GPU.
- status: This will output current VGA Mode. E.g "Active GPU: Intel GMA3150 on PCI 00:02.0"
- fix: This will automatically fix the display configuration depending on the available VGA Chips that can be accessed via lspci. It will also update the nvidia glx libraries after the install of a new(er) nvidia driver version.
- reboot-intel: activate intel for next boot and prepare xorg conffiles for intel. The nvidia chip won't be visible via lspci and is disabled so it won't draw any power from the battery.
- reboot-nvidia: activate nvidia for next boot and prepare xorg conffiles for nvidia. The intel chip won't be visible via lspci.
- reboot-optimus: activate both gpu's for next boot and prepare xorg conffiles for intel.
NOTE: For GPU Hot-Switching you need to install
bumblebee
- nv-off: For Optimus Mode only! This will disable the nvidia chip to save some energy.
- nv-on: For Optimus Mode only! This will enable the nvidia chip.
- config-intel: This option is for emergency purposes. If xorg can't start and you are dropped to a text shell after boot fix your configuration by running "display-settings status". If you get "Active GPU: Intel GMA3150" run display-settings again with this Option and restart gdm.
- config-nvidia: This option is for emergency purposes. If xorg can't start and you are dropped to a text shell after boot fix your configuration by running "display-settings status". If you get "Active GPU: Nvidia GT218" run display-settings again with this Option and restart gdm.
For further Documentation on the VGA modes and acpi_calls for the Eee 1015PN see the
hybrid-graphics-linux mailing list.
15
TODO: update for debian
Alternative: Set the VGA Mode manually
If you can't - or do not want - to use the helper scripts read on.
- Manually install the acpi_call kernel module from the linux-hybrid-graphics project:
git clone http://github.com/mkottman/acpi_call.git
cd acpi_call
make
sudo insmod acpi_call.ko
check with "dmesg | grep acpi_call" that the module was loaded successfully.
- Set the VGA Mode for the next boot:
To enable the intel vga for the next boot, switch to root (sudo -s) and run
echo "\OSGS 0x01" > /proc/acpi/call
Set the intel driver in xorg.conf
...
Section "Device"
Identifier "Device0"
Driver "intel"
VendorName "Intel GMA 3150"
BusID "PCI:0:2:0"
EndSection
...
Point xorg to the intel glx module and set the mesa libgl (still as root)
cp /usr/lib/xorg/modules/extensions/libglx.so /usr/lib/xorg/modules/extensions/libglx.so.intel
ln -s -f /usr/lib/xorg/modules/extensions/libglx.so.intel /usr/lib/xorg/modules/extensions/libglx.so
update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/i386-linux-gnu/mesa/ld.so.conf
ldconfig
- Mode 2: Nvidia GT218 (Next Gen Ion)
To enable the Nvidia Chip for the next boot, switch to root (sudo -s) and run
echo "\OSGS 0x02" > /proc/acpi/call
Set the nvidia driver in xorg.conf
...
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "Nvidia GT218"
BusID "PCI:4:0:0"
EndSection
...
Point xorg to the nvidia glx module and set the nvidia libgl (still as root)
ln -s -f /usr/lib/nvidia-current/xorg/libglx.so.280.13 /usr/lib/xorg/modules/extensions/libglx.so
update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/nvidia-current/ld.so.conf
ldconfig
NOTE:
- Replace libglx.so.280.13 with the Version of your installed nvidia driver
Now reboot.
- Mode 3 : Optimus Mode with Intel GMA 3150 and Nvidia GT218 (Next Gen Ion)
This mode keeps both VGA Chips active, but currently only the intel chip can be used in this mode. Work is going on to make "Hot-Switching" possible, so keep your fingers crossed To enable Optimus mode for next boot, switch to root (sudo -s) and run
echo "\OSGS 0x03" > /proc/acpi/call
and proceed with the Steps outlined in Mode 1 above.
To save power after the reboot in Optimus mode, turn off the nvidia chip via another acpi_call (acpi_call.ko module needs to be loaded again):
echo "\_SB.PCI0.P0P4.DGPU.DOFF" > /proc/acpi/call
This will give you additional 2 hours of battery life.