Categories
Arch Linux Fedora HowTo Linux Posts Ubuntu

Linux Media Players And Flash Not Stopping The Screensaver

It’s a pretty common problem, one which could be solved by pretty much the following sentence: ‘[Insert Linux Distro], [Insert Media Player] not stopping screen saver when playing videos.’ And, yeah, it’s very annoying. Something that should have been fixed thousands of releases ago, just like most common Linux problems. Luckily though there is a fix, it’s easy and it’s awesome.

Introducing: Caffeine, “An application to temporarily prevent the activation of both the screen saver and the “sleep” powersaving mode.” – https://launchpad.net/caffeine

Essentially what this program does is look for processes running on your machine (you can do this too, just run ‘ps -A’ in a terminal emulator to see a list of everything), so you set process names which the program should look out for, for example ‘vlc’ and when there is a process with this name Caffeine disables the screensaver, when the process stops the screensaver is re-enabled. It even comes with a little tray icon which allows you to manual enable or disable the screensaver/power management with a single click.

Installation (Ubuntu):
sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt-get install caffeine
Usage:

You’ll be able to see if caffeine is running by the tray icon the first time you use it (this can be disabled in the settings).

Caffeine Running (Screensaver / Power Management Enabled)
Caffeine Running (Right Click Settings)
Caffeine Running (Screensaver / Power Management Disabled)
Adding Processes:

To add a process which will disable the screensaver from being activated, for example VLC so we can watch a movie without constantly having to wiggle the mouse:

First, run VLC (or whatever other media player you wish and just replace VLC for that for the other few steps)

Next, right click on the Caffeine tray icon and select “Preference”.

Click the “Add” button.

List of processes already disabling the screensaver, note Totem is added here.

You should be greeted by a list of the running processes, select the name of the media player (this case, vlc) if it isn’t there check under the “Recent Processes” tab or alternatively just write the command you would use to run this program from the command line.

Adding VLC to processes to disable the screensaver.

Finally click the “Add” button and close the preferences window, that pesky screensaver should no longer be bothering you!

Stopping Flash from enabling the screensaver:

Okay, this is actually really easy, if you’re using Chromium or Google Chrome or Firefox, you’ll just want to add the processes ‘npviewer.bin’ to list, you can use the above instructions to do so.

Categories
Android Linux Posts Ubuntu

Flashing Samsung Galaxy S (I9000) ROMs with Heimdall

This Tutorial is just a documentation of how I flashed my Samsung Galaxy S (I9000) using heimdall with Darky’s Rom v10.1, follow the steps at your own risk. I am in no way liable for any damage caused to your phone following these steps. I would advise reading up on flashing before proceeding along with pre-reading the guide first.

If you don’t know what you’re doing, you should probably not do it.

For more information, help and most anything check out xdadevelopers forum and DarkysRom.com

This guide is using a fresh install of Ubuntu 11.04 on a memory stick, I was unable to get heimdall installed on Fedora 15 or Ubuntu 10.04.
For this guide I will use Darkys Rom v10.1, however it should work for all ROMs that come with the correct files, as shown below.

Installing Heimdall

First install the Qt Gui libraries:

 sudo apt-get install libqtgui4

Once that’s installed head over to the heimdall website and download heimdall and the frontend for it, here I went for version 1.1.1 as the latest version (as of writing this guide 1.2.0 does not have a frontend).

Here simply download the .deb file and run it once it’s downloaded, you should be able to install them no problem.

(direct links for the version used in this guide)
Heimdall – https://github.com/downloads/Benjamin-Dobell/Heimdall/heimdall_1.1.1-1_i386.deb
Heimdall-frontend – https://github.com/downloads/Benjamin-Dobell/Heimdall/heimdall-frontend_1.1.1-1_i386.deb

Getting The Files

Download the ROM you wish to flash your phone with, for example download Darky’s Ressurection v10.1.

Extract Darky_Resurrection_10.1_i9000.zip
Inside also extract Darky_Resurrection_10.1.tar

You should have the following files:

Darky_Resurrection_10.1_i9000 (folder)

  • Darky_Resurrection_10.1 (folder)
    • boot.bin
    • cache.rfs
    • dbdata.rfs
    • factoryfs.rfs
    • modem.bin
    • param.lfs
    • Sbl.bin
    • zImage
  • Odin3 v1.3,exe
  • Odin3 v1.7.exe
  • s1_odin_20100512.pit

Preparing Your Phone

Make sure you have full battery and disabled all lagfixes.

Flashing The Phone

Press Alt+F2 and then type “heimdall-frontend” and hit enter.

Add the files to the correct heidmall options as so:

Repartition

PIT : s1_odin_20100512.pit

PDA/Code

FactoryFS : factoryfs.rfs
Kernel(zImage) : zImage
Param.lfs : param.lfs
Primary BootLoader : boot.bin
Secondary Bootloader : Sbl.bin

CSC

Cache : cache.rfs
Database Data : dbdata.rfs

Other

Modem : modem.bin
Recovery :

Finally put your phone into download mode.

Once your phone is in downloadd mode, make sure it’s connected via USB and then press start on Heimdall.

After a few minutes your Heimdall will say Finished. Boom you’re done. Just wait for your phone to finish doing whatever it’s doing and you should end up back at the home screen soon enough.

Categories
HowTo Linux Posts Ubuntu

HowTo: Fix Can’t Click on Flash in Ubuntu (64bit)

There is a pretty quick fix for not being able to click flash on websites such as YouTube, just simply add the line below into the following file and restart your web browser and all should be fine:

sudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer

Add in the line (above the last line):

export GDK_NATIVE_WINDOWS=1