Xubuntu/Ubuntu 12.04 on Samsung NP530U3B (NP530U4B)

1. I installed xubuntu on the 10gb partition of ssd (expresscache). I use windows as well, mostly because of the lack of three finger support and suspend, as of now. I haven’t felt any performance decrease (windows) by the absence of expresscache.

I also use windows bootloader with a bit of help from http://www.linuxbsdos.com/2012/05/17…and-windows-7/ because of the grub issue.
I keep home and var on a hdd partition and tmp on ram. See: http://forum.xda-developers.com/show….php?t=1627197

2. The overheating and battery issue exists originally because of bad default kernel options.
Heating can be fixed by enabling active state power management and battery issue can be solved by the specific i915 options from http://www.phoronix.com/scan.php?pag…15_power&num=1

In short, what @sacapeao did –
GRUB_CMDLINE_LINUX_DEFAULT=”pcie_aspm=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1″
in /etc/default/grub.

Also installing jupiter helped. http://www.webupd8.org/2012/03/jupit…itches-to.html

3. The suspend doesn’t work by default. It works perfectly fine by following the step 2 of http://thecodecentral.com/2011/01/18…ot-working-bug

4. The touchpad doesn’t have three finger option. touchegg doesn’t work (segfault). It seems to be a known bug and I hope it gets rectified soon.

5. While partitioning, I had to shift my recovery partition and in the process I have lost the use of my F4 recovery key. I intend to reclaim it and am in the process of finding a solution.

Any help with the touchpad or recovery is welcome!

New Music Players: Minitunes and Guayadeque

Two awesome (yes, much more awesome than gmusicbrowser) players/managers are in development. Well, Guayadeque is pretty much developed and is extremely usable, but a bit ugly. The ubuntu repo version did not work for me, hence I picked it up from the site – http://nchc.dl.sourceforge.net/project/guayadeque/guayadeque/0.3.1/guayadeque_0.3.1-natty-2_amd64.deb

Minitunes, otoh, is extremely pretty, but under extensive development. Fingers crossed. It is available in ubuntu repos.

Both are extremely fast:
gmusicbrowser – 80mb
guayadeque – 55 mb
minitunes –  60 mb

The best one as of now is Guayadeque. Go for it.

Remedying the glib go error in ubuntu

If you encounter the glib gio error while firing an app from the commandline/shell, such as this one:

GLib-GIO:ERROR:/build/buildd/glib2.0-2.28.6/./gio/gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)

Aborted

use the following script. It exports the dbus session and then runs the apps. Simply use: ed.sh <command> or if you have already used a long command and failed: use the trick “ed.sh !!” (!! replicates the last command).

Download the script from: https://gist.github.com/a664a61a49296da16e47

Google Chrome: Sharing Profiles with a Linux OS

Some of you might be wondering how to share a google chrome profile between a windows and a linux operating system. Copying or creating a symbolic link doesn’t seem to work as the extensions go haywire. The reason is the use of “\\” in the profiles created in windows. Use the following command to change the path names in the Preferences file to use a ‘/’ instead of ‘\\’.

sed -i ‘s/\\\\/\//g’ ~/.config/google-chrome/Default/Preferencesas

Happy chroming! Its still the fastest starting browser.

 

Tata Photon – How to obtain Usage details

There are many ways. But my favorite is to use a bookmark for the official usage site: 
https://www.tatatele.in/prepaidPhoton/postUsage.do?mdn=<your photon phone number>&SOURCE=postpaidMCCI&d-4030679-p=1

This is for postpaid connections, for prepaid, I do not have any clue. If your accounts page shows the usage stats, you can open the frame in a new tab and get that link.

The only drawback is that its not real time. The delay is generally of 3hrs, but sometimes it may go upto 12 hrs, depending on the server updates. For real tme updates, I use:
Windows: Networx.
Linux: vnstat with its php frontend. http://humdi.net/vnstat/ & http://www.sqweek.com/sqweek/index.php?p=1

HTH!

TATA Photon Plus and Xubuntu

That was a tough one! At least for me. I took more than an hour on this shit.

Firstly, none of the manuals/websites deal with the issues in a comprehensive manner. I too won’t. I will but, try to highlight the issues I faced and the way I solved them.

My modem is the old one Olive VME blah blah…

1. I assume you don’t have an alternate net connection. If you have go to step 2. Download wvdial and the last 4 dependencies from: http://packages.ubuntu.com/maverick/comm/wvdial. For other ubuntu versions the links are there on the almost top right hand side the page. Generally, you wouldn’t need other dependencies, if you do you will have to download them too. But for the first try, no need.

2. Download usb-modeswitch and usb-modeswitch-data from http://packages.ubuntu.com/maverick/comm/usb-modeswitch. This is used to change your driver from usb-storage to usbserial for your device. You can also do it manually by rmmod usb-storage and modprobe usbserial vendor=0x201 product=0x2009. But why not automate things, yeah!

2. Install all by: ‘sudo dpkg -i *.deb *.man’, in your download folder. If you have a net connection use aptitude: sudo aptitude install wvdial usb-modeswitch.

3. Now before you can do anything, plug in your device. Wait till its led goes blue. Do a ‘lsusb’. You will find a device name in front of one of the usb devices. For me it was 201e:2009. The first part ‘201e’ is the vendor name while the ‘2009’ is the product id.

4. Now you will have to find this in /etc/usb_modeswitch.d directory. If the file exists, yuhuu! or else create it. And then put the following in it:
################################################## #####
# Haier CE 100

# from 201e:2009
DefaultVendor= 0x201e
DefaultProduct= 0x2009

TargetClass= 0xff

MessageContent=”5553424312345678000000000000061e000000000000000000000000000000″
MessageContent2=”5553424312345679000000000000061b000000020000000000000000000000″
#MessageContent=”55534243785634120100000080000601000000000000000000000000000000″

NeedResponse=1

CheckSuccess=10

###############

The MessageContent should not be an issue – any one of the 3 would work.

5. Now, to automatically load the driver for your device (201e:2009 in my case), edit /lib/udev/rules.d/40-usb_modeswitch.rules, and append the following at the end:

 

# Qualcomm, Incorporated (TATA Photon +)
ATTRS{idVendor}==”201e”, ATTRS{idProduct}==”2009″, RUN+=”usb_modeswitch ‘%b/%k'”

6. Now reboot. And if everythings correct, after plugging in the device, a dmesg will show you:

 

[ 1824.980062] usb 3-2: new full speed USB device using ohci_hcd and address 3
[ 1825.216299] option 3-2:1.0: GSM modem (1-port) converter detected
[ 1825.216588] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 1825.223243] option 3-2:1.1: GSM modem (1-port) converter detected
[ 1825.224738] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB1
[ 1825.229527] option 3-2:1.2: GSM modem (1-port) converter detected
[ 1825.230280] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB2

If you are getting anything else, something has gone wrong. You can either post a comment about your issue or search on the net.
7. Now comes wvdial. Well its not necessary. If you are using network-manager – you can right click->edit connections-> mobile broadband -> add/edit tata photon -> fill in user,password both as ‘internet’ -> check connect automatically and done.
8. If you want to use wvdial, edit the /etc/wvdial.conf and put:

 

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = USB Modem
ISDN = 0
Phone = #777
New PPPD = yes
Modem = /dev/ttyUSB0
Username = internet
Password = internet

9. wvdialconf should give you the output as expected and foretold by the user manual. Then a sudo wvdial will connect you. sudo is required to start the ppp daemon. Do not forget it. You might be required to do it 2-3 times initially.
10. I have changed from wicd to network-manager for this purpose and am very happy. Now my net connects automatically at plugin, very unlike windows, wherein I have to either run a batchfile with rasdial command, if the drivers are loaded, or use the photon dialer.
Well, this documentation is very crude and as I am writing it after a week of fixing my connection, so it might not be up to te mark. Also it is meant for my device only. For others, you might have to change the vendor/product ids and device names (ttyUSB0)… But all in all the total process is:
1. Switch the mode to identify your usb modem as a modem and not a storage device. This is the only major issue.
2. Connect.
3. Njoi!

 

 

xubuntu: wine colors, themes

http://www.endolith.com/wordpress/2008/08/03/wine-colors/

Okay, so someone did a great job. And I respect him for that. But it required a few minor tweaks, esp. for xfce/xubuntu. So I did that. Primarily because I got this error:

desktop_color = format_hex_color(c.get_value(‘/desktop/gnome/background/primary_color’))

glib.GError: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details –  1: Failed to get connection to session: Error connecting: Connection refused)

The edited version can be found at: http://gist.github.com/901214

Linux Commandline hacked!!

The site is simply superb.
http://www.commandlinefu.com/

and it gets better,
http://www.commandlinefu.com/commands/browse/sort-by-votes

I mean, well being sort of a linux geek, I knew some of them. But, this shit was truly amazing. My personal cuties:
^search^replace (in the last command)
sudo !! (last command with sudo)
!search:p (check command history, but avoid running it (through :p))
:w !sudo tee % (vim – save a read only file as sudo)
echo “ls -l” | at midnight (as an alternative to cron :D)

and do not miss the icing :),
curl -u user:pass -d status=”Tweeting from the shell” http://twitter.com/statuses/update.xml