Wednesday, February 19, 2014

Governments, Anyone?

The public network is full of posts, views and counter views. If we give a closer look at the various posts in general, covering nearly all the topics available to mankind and closely analyze the comments, views and counter views, we see that anybody is commenting on anything. That means that everybody knows about or wants to know or has framed his views without knowing anything. The latter's views are normally based on the generalization of the present subject with his specialization. This gives us the conclusion(?) that everybody knows about everything and everybody are capable of giving their own views about everything. Is it? Shall we generalize a little further and tell there is nothing any "body" can do to change the views, Inertia? Does this mean there is no need for any "body" to tell us what to do and what not to? Does this mean we know what is expected from every "body" without anybody explicitly stating it? Does this mean that we have ceased to be taught or we can "manage" ourselves? In other terms is there no need for us to be governed by an elite few? By extrapolating a little further shall we state it in more dangerous terms "We don't need governments"?

OMG, Blasphemy!!!!!!? or would it be a relief? Do governments govern the borders of their political control or borders were born out of the capabilities of the local governments? These governing bodies can be traced back.... previous post... Social adjustments gave way to profit motives in the guise of optimizations they reached a crescendo. After several iterations of societal setup we ended up with classifying the people based on the tasks they were doing and then gradually several tasks were made more important than others and in turn, we had classes increasing by importance. All of a sudden people doing few tasks were more equal than other equal people down the societal setup. As people were grouped based on tasks, the initial industries were also based on the same setup. The initial optimizations was from the artisans themselves by grouping themselves together. The higher groups/classes saw opportunity here also. They wanted to increase the size of the groups so that they could have the advantages of scale. There is the seed of today's large corporations.

Every "body" is attached and dependent on some corporations directly or indirectly. The corporations tell what is expected of every person attached to them. When these controls were not enough, corporations turned to a third party, the governing bodies to bind all the people to corporations. As though, people were born only for this, to work for corporations. There are very rare occasions wherein people have led their life without their umbilical cord not attached to the corporations. Such people will immediately be knighted and an image created wherein it will be told that all others cannot become him or think like him. Now, they have only one person with the "free" attitude while others stay enslaved thinking that they are too "norm" to reach that stature.

The governing bodies(governments henceforth), tell people they should work for corporations to fulfill their worth of being born. The other people whose mentality and attitudes don't suit this labyrinth of laws are labeled unstable or great whichever suits them better.

So, what is the problem now? Governments frame laws to help corporations and corporations employ people, what is wrong. The thing is this system is prepping artificial number ones. If any individual does have the real vision of the society, he will grow up and build better corporations with better hold on the governments. So, the society is being prepared in such a way that if there is anybody against it, he will be treated to the high in the society so that he will become one among the oppressors or else he will vanish into oblivion.

Thing is, the educational level has gone up. Information is available at the finger tips. Anybody wants to know about the rigveda they are welcome to do so. They want to understand Einstein's work they are free to do that also. People know what is expected of them. They know to maintain equilibrium in the world. They know that the number of java programmers have exceeded the requirement. They do suitable adjustments. They make true the basic law of nature, that of "equilibrium". Now it is the time to dictate the expectations from the corporations as well as the governments. Everybody wants to make a difference to the world. Though many of them don't show they have that latent feeling towards nature. Provided an opportunity, they would do miracles for the betterment of the whole world. They would do better than send some food packets to the under-developed countries which feed all the necessary raw materials required for the materialistic life of developed countries.

Of course there would definitely be ideals which would be beyond comprehension to the society and in the same vein society would be incapable of convincing that they are wrong(wrong, either might be). Anomalies do exist and exist they should. It is like the floating point math. Nothing in the world is discrete.

Now, what if, nobody is governing them, ie, there are no governments. just imagine. People move about freely, like minded people pool their ideas irrespective of the borders/languages/caste/color. The same applies to the anomaly group of the existing societal setup. If the anomaly groups argues and convinces the regular part of the society, they will grow, otherwise, there is no way they can come into their own. Why, because, they don't have an enemy now. There were people unhappy with governments/corporations. What are they unhappy about, high rise buildings, no. They are unhappy about "people" running these establishments. This minority is telling the majority how they should lead their life. The 1% of the people are defining the word "intelligence" for the remaining 99%.

You can now argue with me that the majority of the governments formed are democratic. But, we all know the pitfalls of democracy. The person elected by 51% of the people will decide their fate as well as the fate of the remaining 49% who did not vote for him. This is a most theoretical example in a democratic setup. There have been instances where people have won elections by getting only 10% to 20% of the votes. People voting in a democracy have one more constraint, that they have to chose the best of the worst. So we do elect somebody, because, that is the essence of democracy. Yo don't vote, you are missing the whole point. If at all, you give an option for none of the above, in the ballot paper, what are you going to do if the majority of the votes are for this option. what if it is a minority? Oh, my god, Democracy.

Why shouldn't people go about their business without any governing body? Will the huge corporations themselves run their local governments. The most important and deciding factor here is the military. For a situation, wherein, we don't have governments, the first step is to de-militarize the entire world. Now you will tell me the dark forces will take over. You also will definitely tell me that all this is going to happen only over a bloody revolution. That was easy to tell. That was an obvious answer from anybody since the beginning of this subject.

At this time, I would like to know how many people in the wold would like to take to arms when all that the world wants is an equilibrium state, wherein, everybody does his own thing. What about people who know to only handle arms? How will they make their living in this situation.

All the governing bodies in the world was not formed in a day. They were formed because a need was created for their forming and we were "convinced" of that need. Once we were convinced of that need we had to accept the result. Now with the information age upon us, wherein information is generated and assimilated by everybody, do we need to be governed? We know what we can and what we do best. Why should be try to fit ourselves. How would it be if the world expanded and adjusted to us? Awesome. How many Einsteins would we have? Cant tell, because, we have not tried it. We have always complained that the present society is a one size fits all scene.

We now talk about mass customization. When we can go that extra mile for non-living things to suit us, why are we neglecting the same for people. Come one. Cant we remodel the society to embed customization. Each his own. Was it too much an ask?

Eliminate the borders, eliminate the governing bodies, Bring in self help groups, bring in voluntary lead or led individuals and wait for the planet to reach an equilibrium. What, what did I hear? communism, socialism, No, No, I don't want to hear any of it. They are all based on governance. They are but different styles of governance withe varying amount of freedom for the individuals and society as a whole. Will the corporations die? No. The corporations needed will survive. The apt people capable of doing that particular job will position themselves. Everybody would rush to 5 star hotels/resorts? Yes, maybe. But it will not survive. Somebody has to work/pay for the upkeep. People now are smart enough and know they cannot be made sheep once again by pigs and wolves. They know everybody's contribution is of importance. Everybody's voluntary trivial and non-trivial contributions are the requirements for making a truly equilibrium/chaotic situation instead of a non-voluntary controlled situation.

Wednesday, February 12, 2014

Indian fonts on Arch GNU/Linux

Go here. for a small discussion. The summary would be

1. You already have yaourt installed or any other front end for the AUR repository.
2. Run 'yaourt -S lohit-fonts' as a normal user in the terminal.
3. Follow the instructions and at the end give the root password.
4. Restart firefox or any other browser/app where you want Indian fonts to be displayed properly.
5. Thank the devs and testers here.

 

Saturday, February 8, 2014

Curious case of premium phones and tablets.

People pay a premium for a certain section of phones and tablets expecting premium in terms of hardware, software, services and accessories. If we observe the trend along the evolution of phones and tablets, the more premium it is the more is it "closed". The more users have to depend on the manufacturers. Nearly zero indie development, Not "expandable" in nature particularly in terms of hardware, Maximum crapware, Forceful need creation(stylus, This may also be due to the lack of tech knowledge and design fundamentals. It is like the pen apps were designed around the pen. They should have started at the apps and then thought of how to use the fingers themselves or things which the user already carries around with him). The stylus was acceptable on a motoming not on devices(os) which have multipoint touch capability.

Let us discuss the subject w.r.t android devices. I see there is no point in discussing propreitory offerings.
If we take the case of the nexus devices, I was shocked at the ease with which the device can be converted to meet your requirement. Unlocking the device was a "breeze". After that, sky is the limit. Indie developers flourish on the nexus devices. Yes, It is not free as RMS would have liked, but, it is an excellent start. Now, these devices are exactly at the middle category w.r.t costs and the overall premium feel. The lower end of the tablets dont interest indie devs. All devs would love to have a maximum sweep when it comes to the number and variety of users.

I though that, in fact, the situation should be the other way round. The premium ones are the ones should be completely open and allow the user complete freedom of their device. Since, the user has payed a premium, Or, If we put it in business terms, He has payed in entirety for the device and services available. So, the device has to be completely "his" to tinker with. The manufacturers already know how to get out of the loop once a user tinkers with his device by making him accept long terms and conditions especially when a user unlocks his device. So, the manufacturer cannot tell us that he is locking the device for better performance during the servicing of the device.

The nexus device since has not taken the "full" amount required for offering the product and services should have been locked more tightly so that the user clings on to the manufacturer, thereby making him returns on perpetuity. Now, you tell me this is exactly what google is doing. Eh?. Instead of google sharing returns from the device with the manufacturers, why dont the manufacturers reverse the technique by making a nexus of all their premium ones and demand perpetuity from google. How awesome would that be. I dont know why the manufacturers are going behind having cheap skins on the vanilla android. This should be allowed to indie devs. Let  them come out with skins. Let them make money.

Will it happen?
It should happen. This is a pure business proposition. Not a tech discussion. This is more on the rights of a buyer. Let people/businesses concentrate on their core competency.

Let us see............

Tuesday, November 12, 2013

FUD of potable water.

So, Water has been downgraded and termes as a "need". That is it is not critical for the survival of mankind and that it can be industrialized, trademarked and sold at many times the cost of bottling it. So, we will have stars endrosing different variants of bottled water suited to hte whims and fancies of the elite. If humans could intake gold in solid form, then we mahy have bottled water with gold dust. Some countries could come out with medicnal bottled water with precious body parts of various endangered species stored withing the bottled water.

This is an awesome indusry. The beauty of this industry is the wide spectrum of investment possible. You can have a cottage industry serving the local area or an MNC bottling in one country and selling it across the world. The domestic filteration companies in a bid to sell their kits have classified tap water as non-potable. Governments have not done anything in clearing this FUD. Right from  ultra developed countries to the developing ones and stagnated ones. They have not tried to educate the people nor improve the arcane technology being used to clean water and make it potable. No action has been taken by any government to stop this FUD regarding water in any way.

We now have people drinking nearly De-mineralized water and then to compensate for the minerals, we have doctors prescribing vitamins and other processed foods.

Now, the thing about bottled water is, you cannot start with De-mineralized water as a base and then star adding the required amounts of nutrients which were already present. If this was possible all these companies would have harvested the sea and humanity would definitely be happy with this endeavour. Since this is not the case, the base of any bottled water has to be , naturally occuring water. This is then to be treated to selectively eliminate the supposedly harmful constituents and then add a propreitory mixture of supposedly healthy constituents which in the end should have a pleasing effect on the sensory organs.

The argument in monetizing water is only one. That is, people are wasting it. Whenever anything is in abudance we tend to waste it. Now, bottled water is sold at geographical locations where water is definitely available in abundance. It is sold at a premium both at the areas of abundance and also where it is meagre in availability.

There was a time I enjoyed drinking water from a flowing river. Now, I a cant do that. That is because now I know that there are various industries along the flow path of the river which dump unprocessed industrial waste right into the river. Plain business. Plain bottom line.

I also always thought that smaller companies in their rush to grow up do not follow certain ethics towards the environment, will cut corners and end up damaging the external environment. But as they grow, they become more responsible(like humans). But it is not so, the larger organizations are cutting bigger corners in order to grow bigger(like humans). All this dumping makes the traditional water treatment and transport facility outdated. This in turn feeds the filteration mafia and in turn the bottle water industry. Modern business are waiting for any new demand being created. They are ready to supply to the demand. Just show me the demand. Here you have exceptional demand where doctors also join in by qouting the ill-effects of tap water. So, maintaining one's health is a great demand. With countries being told that globalization is the way to grow and survive in future economic scenarios, It is very easy for trans-national companies to heed the demand of countries across the world. If the FUD worked in one country it will work in another.

In the bottling industry investment can be minimum and also very high. For MNC's it is as easy as gobbling up a local bottling plant. Since a bottle of water is costlier than the same volume of soft drinks there is no doubt as to the reason of all the soft drinks companies having their own brand of bottled water. All these comapanies have cordoned off portions of rivers, springs and put their stamp of ownership on these natural resources, keeping it out of reach of the common man.

FUD related to air ended up with setting of oxygen bars. This failed miserably owing to the "un-controllable" natue of air. But water, can be contained, cordoned off. The time is not far off where we will have water bottled with a tinge of lemon, orange, strawberry etc. So, what about the common man? He makes up 99% of the world population, what about animals, birds......... Governments allowing bottling of water and then allowing it to be exported to other countries risk the natural rain cycle.

With no clouds, natural rain cycle, we will be a "RED" planet in the future and nobody will be there to see it.

Thursday, August 22, 2013

Is freedom worth the fight

Is freedom worth anything? Countries fought for freedom and several others continue to do so. Do they know the value of freedom? Countries which have been free from eternity, do they know the value of freedom? Countries who fought and are fighting, in that country do everybody know what freedom is or what are they going to do when they "get" it. Do everybody in the country fight for it? Do everybody in the country want it? Are people so much engrossed in their "walled garden" that they dont want to skip the ecstasy of staying in a "walled garden"? Are people programmed to such an extent that they dont want to look beyond the garden? Are they getting whatever they want in that garden? Is it only "that much" they pine for or made to pine for? The infinite human brain, is it reduced to the pea sized brain of the dinasour? Are human capabilities going back? Can freedom wake people from their walled gardens and make them to look beyond the garden? Can freedom yield brains with capabilities as huge as the dark energy. Is freedom the panacea for all the problems in the world? Will freedom allow the human brain to overcome the law of least resistance?

Are people, who fight for freedom, fight for everybody, or for an elite group of enlightened people. Is fighting for freedom and interpreting it, the job of an elite group of people? Is the largesse independent of the freedom school of thought? Is the largesse there just to enjoy the benifits of the struggle by this elite group of freedom fighters? And after getting the much sought out freedom, is the largesse free to carry on enjoying in their walled garden. Is that the aim of the struggle? Were there no people who were happy slaving around just to keep themselves and their walled garden happy? Are the largesse supposed to continue with status quo without any inhibitions, without any contributions back to the society? Are people fighting for freedom in their own "walled garden"?

Is creativity, improvement, social attributes, general good, world citizen, not embedded in the spirit of freedom? Is freedom a seperate word? Is the word freedom in its own "walled garden" Is it an "ideology" which the largesse dont understand or they think that they should not understand, or they think that it is not their job? Is the present societal setup such that people are made to forget the value of freedom and made slavery a more shiny word to use? Are the largesse happy with the perpetual freedom handed over to them by the big corporations? Do the corporations change the scope and meaning of it every now and then?

Ok. So, You have freedom. How many are using it? Has it affected the brain usage of the largesse in any way? You tell me, this is what freedom is about. In summary you are making these statements

I am whatever I am, however I am, I will be "I"
I will strive to be "me"
I am here to prove Newtons laws of motion
I will resist, if futile, I will take an equillibrium position taking the least resistance path
If not acted upon, but still the external environment is changing, I will not, why should I, I am happy with whatever I am
I will try with all my effort to make the environment around me a shield so strong, I cannot be acted upon
I love me being elitely me
I think of only myself
I am happy that the knowledge of the world is free because of freedom. But I dont want freedom. I am happy with me not knowing anthing about freedom.
I am in a free world but I dont care about freedom
I use all the facilities coming with freedom
I dont care about all the drawbacks it has. Oh, come on, when I didnt care much about freedom do i care about the lack of it
The society is just there. It was created in a fraction of a second. Mankind is whatever it is, just like that created again, in a fraction of a second.
I have my place on this planet. But, that is not the result of freedom. It was just there.
I am happy with my walled garden. I dont care how it was raised. It may be full of holes, I am happy with it.
I dont have any problem in staying in a walled garden full of loopholes to be exploited.
I care a damn about freedom or the lack of it.


Long live "Freedom"

Monday, August 12, 2013

AOSP on Sony xperia Z

Disclaimer: I dont take any responsibility for the damage of your equipment. If you point your ire at me, I will have the last laugh. USE THE INFO AT YOUR OWN RISK.



Sony android phone team has taken the android philosophy very seriously. This is one team within sony which is passionate w.r.t idea, philosophy and legality of FLOSS. If we compare the android and the GNU/Linux eco-system, I would sum up the relation between them by using Android/Linux for android and GNU/Linux for the desktop OS which we are familiar with. While GNU used the Linux kernel for coming up with a complete Desktop OS, Google built the UI shell and other mobile telephony stack over the Linux kernel. But, the similarity ends there.

The two components of GNU/Linux are licensed with "free as in freedom" philosophy with the GPL.(Though the linux kernel is licensed with GPL V2 and the GNU utils are mostly licensed with the latest GPL version). The source code of the original program and all its improvements are always and should be made available in source form for public consumption.

If we come to Android/Linux, the first part is licensed under the Apache license. This is a permissive licensing philosophy, wherein, the original source and its improvements "may" be provided in source form if the author wishes, or else the source can be withheld and only the binaries "may" be provided for public consumption. So, the author, google, and other mobile manufacturers who licence android from google are not compelled to share the original source code(scripted by google) or any variations of it for use by various mobile manufacturers with the general public. The result is, if google wants to put out the source for its newest shiny android version it will, if it is not in a mood to do it, then also, google is honoring the apache license. The second part, the linux kernel, is licensed under GPL v2, google and all the mobile manufacturers have to honor the license and give out the kernel with all their additions and alterations for public consumption.

This post is about sony, let us continue. Sony is the only phone manufacturer which honors the GPL for the linux kernel meticulously, it is almost like clockwork. Even if the sony mobile team has released a beta kernel for a specific device, the source is out within a week. But, But, with Xperia S, sony took their commitment to the FLOSS philosophy a step ahead. They went ahead and release the "android" portion of the OS also for public consumption, again, of course under the apache license. There your are. You have the entire gamot of source code of "Android/Linux" in your hands, now, Go Play.

Once the sony smartphone team released the source for xperia Z, their flagship phone for 2013(while other manufacturers closely guard their flagship phones for nearly a year by not releasing the kernel source which they are supposed to do with the release of the device), I had decided that will be my next phone. It does not match with my primary requirement of hardware keyboard, but, the hardware specs was awesome and the purple color was beautiful on this phone.

The XDA forums is full of various spins of upmarket roms with "n" number of customizations. You will be spoilt for choice. Only one rom of mention still struggling is the MIUI. But devs are on it and I definitely believe they will succeed in running it on the Z.

Oh, let us get back to our topic, FLOSS. Google releases the source code after baking the lates version of the android OS in-house. It is released under the label "AOSP" ie, the Android Open Source Project. This will be the most generic tree of the source. Normally, it would be difficult to compile this vanilla version as it is and run it on a phone. It would be missing the device specific code required to get it running on a specific phone. The other missing thing, vital, would be the binaries which are required to use the all the hardware(SoC) properly.

Now, we have a completely new word here, binary, yes all FLOSS enthusiasts hate it. Every manufacturer makes use of an Arm SoC or an Intel SoC. The manufacturer provides the drivers for these hardware components. But, the hardware manufacturers dont play well with the FLOSS philosophy. They guard their hardware, its implementation and usage with hawk eyes. The driver are always release in the form of blobs(Binary large objects). They have to be linked in during the compile stage of the rom to result in a fully working rom to be installed on your device.

We now have one non-freedom component on our otherwise "free as i freedom" system. But, we are somewhat ok with it.(Apologies to RMS). Anybody can compile an AOSP rom for the xperia z. The sources are at github with clear instructions for building it. You just have to have good bandwidth, patience, building on GNU/Linux (64 bit)(building on windows,..... forget it) and a lot of googling to use the experience of developers over the XDA forums.

If you dont want to compile it, An XDA developer going by the username pabx, has done it for us. Before I proceed, if you are an XDA member go and thank him. If you have a paypal account donate to him. This rom compiled/developed by him is awesome. It is one of the minimal rom I have seen and used. When I backed it up with CWM, with all my usual apps installed, the backup size was, believe it (or not), 560MB. How awesome is that. Compare it with the stock rom whic is approx 1.7GB. Now, that is light. But do remember that it is minus all the bells and whistles. It may not be visually appealing compared to the stock rom. Few quirks might be lurking here and there. My major quirks were two. One, the volume is awfully low(Stock rom with purexaudio is awesome. Hear it to believe it). Two, Plugging an earpiece without mic will result in phone calls not being audible both for the caller and the receptor. The number two problem does not exist for earpiece with mic(for eg, the sony supplied one). One more issue is the video playback. On the stock rom it is great even when the processor is underclocked to 800MHz with the hardware decoder. On the AOSP rom you have to use the software decoder for better performance.

How do we install this awesome effort on our phone?

Before you unlock your bootloader, try this tool. This is to backup the TA partition which is required for the Bravia Engine to work(Just remember that the Bravia engine comes into play when you watch a video or photographs. Otherwise the BE does not do anything during the general use of the device.) I have not tried this. But please go through the thread. It is quite big and intimidating. I did backup the TA partition but not tried to restore it back. But there are numerous examples on the thread where people have restored the TA partition and got back the BE. Please do remember that for restoring the TA, you should be back on "pure" stock(kernel and the rom).

If possible make an .ftf of your current stock rom or download one(Just in case)
Install flashtool
Install fastboot drivers from within the flashtool installation(The installer is in C:/flashtool/drivers). Double click the .exe in that folder. If you are using windows 7 or windows 8 go here)

1. Unlock your bootloader go here
2. Root the device go here
3. Install CWM recovery go here
4. Backup the stock rom with CWM recovery brief intro
5. Enter CWM and clear data, cache and dalvik cache
6. shutdown the phone
7. Connect one end of the USB cable to the computer and plug in the phone end of the cable to the phone while simultaneously pressing and holding the volume up button
8. Download pabx's effort from here
9. Extract the archive (unzip pabx_aosp_yuga*.zip) to c:\flashtool\x10_flasher_lib\
10. Open the cmd window on windows and change directory to x10_flasher_lib

run the command below
  
fastboot devices

 -- It should list the device name (not exactly the name of the device) If you get an output, then continue, otherwise you have problems regarding fastboot drivers. If you get an output, run these commands(wait for completion of the command befor entering another)

fastboot flash boot boot.img
fastboot flash system system.img

If this is an initial installation,
also run:

fastboot flash userdata userdata.img

# NOTE: The above command will wipe all your data and the internal SD card - only do this on first-install of this rom.

Now run
   
fastboot reboot  ---Or just disconnnect and reboot

Now, we have to root this rom. Download superuser and copy it to the external sd card of your device. reboot the device, press the volume up button continously as the phone reboots, you will enter CWM(the swiss army knife). Choose Install zip/Install from external sd card and choose the file.

reboot

Now you are rooted with an AOSP rom.

Now, we should boot into pure vanilla experience. Of course, you need google apps like the play store, gmail, maps etc... Download this, copy to external sd card and repeat the procedure for installing it via cwm.

reboot

You now have the play store. Go ahead and install your favorite apps.



Advanced:-

To get more realestate from your phone, edit the build.prop in /system with root explorer and change the lcd density to 320.


Operating the phone using the softkeys at the bottom of this huge phone is tricky. Install LMT launcher. start the app, start the service, click the option of start this app at boot. Then edit the build.prop in /system and add the following line at the bottom


qemu.hw.mainkeys=1

reboot

If the media players are not able to save the album details and they show empty libraries, then Edit file /system/etc/permissions/platform.xml

    Find text

    name="android.permission.WRITE_EXTERNAL_STORAGE"
        group gid="sdcard_rw"


    And replace it with
permission name="android.permission.WRITE_EXTERNAL_STORAGE"         group gid="sdcard_rw"
        group gid="media_rw"   ---> Only this line is to be added in the format exactly as in the file with the arrows and the backslashes

    Reboot

    Make it with caution. XMLs are very syntax sensitive. Any mistake may make your phone inoperable.


Thanks to all the users and fantastic devs at XDA for bringing in excitement into the phone arena. The info has been culled from various resources. If any user/dev requires a mention please comment. It will be immediately updated.

UPDATE: 12.11.2013:   Owing to un-ethical kang of pabx's rom, his builds and discussion will now happen http://www.blinkenlights.ch/ccms/android/yuga.html
He has succesfully compiled kitkat for our device. The most important of all we now have double tap to wake for our xperia z thanx to championswimmer, dev at the xda. It is now available for this AOSP rom also. For further instructions please visit the above link and also visit his thread on xda. 

Sunday, August 4, 2013

Installing Arch GNU/Linux on Macbok air Version 4.2(Late 2011) part 4

Disclaimer: I dont take any responsibility for the damage of your equipment. If you point your ire at me, I will have the last laugh. USE THE INFO AT YOUR OWN RISK.

 So, you have now rebooted to your liberated computing experience and have started loving to being master. Let us continue

WINDOW BORDERS NOT BEING DISPLAYED

add the line below in settings - settings-manager-session and startup-application autostart
/usr/bin/xfwm4 &

SWAP SPACE ON A FILE

Create 8GB swapfile instead of a swap partition(which we did not create while installing)
in the root partition.

dd if=/dev/zero of=/swapfile bs=1024 count=8388608  -- Red hat recommends twice the ram
if you are going to use the hibernate feature. If not you can halve the size of the swapfile
But, I believe that air users would love to use the hibernate feature. With hibernate the
entire ram contents are dumped to the swap partition and is read back when brought back
from hibernation.

swap is responsible for many a hacks on Unix/Linux systems. Restrict permissions
by using

chown root:root /swapfile
chmod 0600 /swapfile

mkswap /swapfile   -- To convert the file to swap file type
swapon /swapfile   -- To start using the file as swap, now.

To use the swapfile at every boot up

/swapfile swap swap defaults 0 0


ENABLE/DISABLE KEYBOARD BACKLIGHT

$su
#echo 100 | tee  /sys/class/leds/smc\:\:kbd_backlight/brightness  --- for full backlight brightness
#echo 00 | tee  /sys/class/leds/smc\:\:kbd_backlight/brightness  --- for backlight off


HARDWARE ACCELERATION

To use it with Arch, you simply need to install the xf86-video-intel package, this has the SNA patch included and should work with the most recent Xorg. It's then a simple case of creating /etc/X11/xorg.conf.d/20-intel.conf and adding:

Section "Device"

Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"

EndSection

check your log to see if SNA is being used with the below command:

cat /var/log/Xorg* | grep SNA


INCREASE LIFE OF SSD

To make all these changes, open up a terminal and run:

sudo nano -w /etc/fstab

Then for all SSD devices in your system remove 'relatime' if present and add 'noatime,nodiratime,discard' so it looks something like this:

/dev/sda   /   ext4   noatime,nodiratime,discard,errors=remount-ro 0 1

SWAP WRITE MINIMIZE

echo 0 > /pro/sys/vm/swappiness

CHANGE THE IO SCHEDULER


    echo noop > /sys/block/sdX/queue/scheduler

Or better, use udev rules to check for rotational media.

#'deadline' is recommended by the author of CFQ for SSDs, replace it with 'noop' if you want.

    Create a file with a name like 10-ssd.rules in /etc/udev/rules.d containing:

# set a larger readahead size
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/read_ahead_kb}="1024"

# set deadline scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"


now, verify the scheduler

$ cat /sys/block/sda/queue/scheduler  -- The output would be. The selected scheduler is indicated in brackets.

noop [deadline] cfq


Replace "relatime" with "noatime" to stop the system from writing the last access times as discussed above. Next, add the following lines to fstab to put temporary and log files in RAM instead of on the solid state drive:

tmpfs   /tmp       tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/log   tmpfs   defaults,noatime,mode=0755   0  0
tmpfs   /var/spool tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/tmp   tmpfs   defaults,noatime,mode=1777   0  0


NEW CONFIG FILES FOR ADJUSTING TIME( from arch wiki )

Comment all time related lines in /etc/rc.conf

HARDWARECLOCK=...

and other time related entered in the previous steps

run   hwclock -w --localtime as root
It will create a file /etc/adjtime
cat /etc/adjtime
you should get some output with LOCAL in the end

Reboot


UPDATED LOCALE/TIME CONFIGS

emacs /etc/locale.gen
uncomment en_IN UTF8

emacs /etc/locale.conf
add the following

Lang="en_IN.UTF-8"
LC_COLLATE="C"
LC_TIME="en_IN.UTF-8"
export LANG=en_IN.UTF-8

run this command   hwclock --systohc --localtime


sound getting disabled once in a while

Keep using the system for a week/fortnight it will get repaired automatically


BRIGHTNESS OF DISPLAY

If the fn keys stop working for changing the display brightness then,

run the following commands

cat /sys/class/backlight/max_brightness
cat /sys/class/backlight/brightness

enter a value from 0 to max_brightness to change the brightness by

#echo 245 | tee brightness

Increase or decrease based on requirement.

UPDATE: The aboe step is not required. since brightness can be easily adjusted via plugins in xfce.

Frequency driver issues

Linux 2.9 and above are using the newest frequency driver called intel-pstate. This is for newer cpus. Tha macbook air was running hot. So remove it until the previous old processors are supported by this driver.
1. add intel_pstate=disable to the kernel line
2. echo acpi-cpufreq >/etc/modules-load.d/acpi-cpufreq.conf

If you dont like the colored borders behind the names of icons on the desktop do this

 It is possible you may have a .gtkrc-2.0 file already. If so, the
following lines can be added to it. Otherwise you will need to make this
file yourself and paste the below lines in the .gtkrc-2.0 file.

To make the file, just open a text editor and paste the following:

style "xfdesktop-icon-view" {
    XfdesktopIconView::label-alpha = 0
    }
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

So you want to connect your latest android smartphone

 Install packages gvfs gvfs-afc gvfs-mtp for automounting of USB devices
But just remember that mtp sucks on GNU/Linux as well as windows.

Thats it folks!!!. I dont think I have forgotten anything. All the best with your freedom.