Pages

Showing posts with label is. Show all posts
Showing posts with label is. Show all posts

Tuesday, April 7, 2015

Nokia Asha 311 Touch is not working problem Solution Jumper Ways

As we know Nokia Asha 311 have keypad and touch screen both.So if you are facing touch screen problem in Nokia Asha 311 it can be solve with a few steps that i am going to describe in this post.Look at the diagram bellow and follow steps that are given in it.
In above diagram you can see touch pad jack and a few different color lines in it. In first step try calibration to solve touch screen problem if touch screen touch positions are not correct.Nokia C5 Handsfree Headset problem solution ways
Nokia Asha 311 Touch is not working problem Solution Jumper Ways
If touch screen is totally not working you can replace with new one and if replacement of touch screen is not working that can be problem of touch pad ways.
In above diagram you can see touch pad tracks so check all these paths with meter and if any of them is missing apply jumpers as given in repairing diagram for Nokia Asha 311 touch screen.
for more detail and new tips and tricks about cellphone service problem keep visiting this page we will update cellphone service diagrams timely with new cellphone diagrams.some related post are also given bellow you can read them also for more information about cellphone.
Read more »

Monday, April 6, 2015

Nokia C2 01 Speaker Ear piece is not working problem solution

This post is about to solve speaker problem in Nokia C2-01 in a few easy steps.Keep reading this repairing ear peace problem solution post and look at diagram bellow to solve these issue.All cellular mobile repair solution see Nokia 2320 Classic Bluetooth and FM Not working Problem Solution Nokia C2-01 Speaker Ear piece is not working proble solution
Speaker can be damage and it may have noise in voice and in some cases it can be low voice quality in it.So in all these problems about speaker of Nokia C2-01 replace speaker after dis assembly of Nokia C2-01.
If replacement of speaker could not solve problem check all these tracks that are given in above diagram to solve ear piece problem.If any print out of these is missing apply jumpers and if any part is missing or damage replace them.
for more detail and new tips and tricks about cellphone service problem keep visiting this page we will update cellphone service diagrams timely with new cellphone diagrams.some related post are also given bellow you can read them also for more information about cellphone.
Read more »

Monday, March 9, 2015

What is a Kernel Module

Modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. 
Example: one type of module is the device driver, which allows the kernel to access hardware connected to the system. 
 Without modules, we would have to build monolithic kernels and add new functionality directly into the kernel image. Besides having larger kernels, this has the disadvantage of requiring us to rebuild and reboot the kernel every time we want new functionality.

Click here: Difference between monolithic kernel and  micro kernel.

  • kernel modules are object files that contain kernel code. 
  • They can be loaded and removed from the kernel during run time.
  • They contain unresolved symbols that are linked into the kernel when the module is loaded.
  • kernel modules can only do some of the things that built-in code can do , they do not have access to internal kernel symbols.dep
 Kernel Module Utilities:

lsmod      : lists the modules already loaded into kernel.

rmmod    : Removes or unloads a module one at a time.

insmod    : Insert or load a module.

depmod   : Creates the data base of module dependencies. This is created based         on the information present in /lib/modules/module.dep file.

modprob : Inserts a module and its dependencies based on information from modules.dep file.

modinfo  : List the information about the module like author, version tag, parameters etc. 

Writing a simple kernel module:

Here I am explaining how to write a simple kernel module that doesnt have any functionality. 
Every Kernel modules must have at least two functions:
"start" (initialization) function called init_module()
It is called when the module is loaded using insmod into the kernel.


"end" (cleanup) function called cleanup_module()
It is called just before it is removed using rmmod. 



Kmod is a subsystem that allows the loading and unloading of modules.

Issues to be considered in writing a kernel module:
  • Module code should not invoke user space Libraries or API’s or System calls.
  • Modules are free to use kernel data types and GNU-C extensions for linux kernel.
  • Following path contains the list of header files that can be included in module programs./lib/modules/2.6.32.generic/build/include/linux.
Code for test.c:

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/version.h>

MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("This is a my First Test Module...!");
MODULE_AUTHOR("GVK51");

int init_module(void){

        printk(KERN_INFO "My first Test module loaded...!
");
        return 0;
}

void cleanup_module(void){
        printk(KERN_INFO "My first Test module Un-loaded...!
");   

}


Note: Copying the code directly into your source.c file will also copies the invisible characters and finally you will left out with stray errors, i recommend you to type the code and that even becomes a practice.


module.h : module management subsystem, its an interface file for Kmod functions.
kernel.h   : resolves kernel symbol calls, it provides access to global symbol table.
init.h        : describes the sequence of initialization.
version.h : It binds a module to a particular version of kernel.
printk     : printk is printf for kernel programs, as said earlier modules can’t use stdlib due to user space/ kernel space issues. Most of C library is implemented in kernel. with in printk “KERN_INFO” is a macro found in kernel.h that defines the priority to printk logs. There are 8 such macros as shown below.

0- highest priority 7-lowest priority

KERN_EMERG "<0>" /* system is unusable */
KERN_ALERT "<1>" /* action must be taken immediately */
KERN_CRIT "<2>" /* critical conditions */
KERN_ERR "<3>" /* error conditions */
KERN_WARNING "<4>" /* warning conditions */
KERN_NOTICE "<5>" /* normal but significant condition */
KERN_INFO "<6>" /* informational */
KERN_DEBUG "<7>" /* debug-level messages */

MACROS :
      MODULE_LICENSE() : declares the modules licensing
      MODULE_DESCRIPTION() : to describe what the module does
      MODULE_AUTHOR() : declares the modules author
  • In modules the comments are achieved with macros so that information of module sits along with the code so that debugging becomes easy. i.e., comments are not stripped out.
  • License macro is mandatory even if it is free or proprietary.
  • Modules can comprise of any number of functions and data elements which form module body.
Building a Module:
Kernel source has two types of make files:
  1. src/Makefile called as top/primary Makefile
  2. Each branch in kernel source has a Makefile called as kbuild Makefile.
So to build a module we have to write a Makefile that follows the rules followed by kbuild. To learn more on how to compile modules, see file linux/Documentation/kbuild/modules.txt.

Makefile:

obj-m   :=      test.o
all:
        make -C /lib/modules/$(shell uname -r)/build/ M=$(shell pwd) modules

clear:    

        make -C /lib/modules/$(shell uname -r)/build/ M=$(shell pwd) clean

from a technical point of view the first line is really necessary, the "all" and "clean" targets were added for convenience, and make sure that after "all:" give a tab and write the command as its a convention in writing Makefile.
Now you can compile the module test.c using make command. Here is the list of command I am executing the corresponding output is show in below image highlighted with blue arrow.
Note: You should be the root user or should have requisite permissions to load and unload modules.
$ ls    (to list the files in the current directory)
$ make      ( to build the module, this will generate many files)
$ ls      (to list the files in the current directory)
$ insmod test.ko      ( loading the module)
$ dmesg     ( to see the messages printed by printk)
$ modinfo test.ko      (this display the module informatio, we have put in macros)
$ rmmod test     ( unloading the module)
$ dmesg      ( to see the messages printed by printk)

You are finally done...!
Read more »

Thursday, March 5, 2015

Your version is java version 1 6 0 20 The correct version is Java SE 1 6

I cam across this issue with java while building Android source.

$ java -version < the output would be as below >
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.10.3)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

To install new version of java, Follow the below steps which worked for me.

Step1:

     Append the below lines to sources.list at /etc/apt/ as a sudo user.
deb http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu maverick main 
deb-src http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu maverick main
$ sudo gedit /etc/apt/sources.list

Step2:

     Do the following installations and updates.
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:sun-java-community-team/sun-java6
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

Step3:

     After the installations are done, you need to update your java version with the following command.
$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode

Press enter to keep the current choice[*], or type selection number: 

Selection option 2 for selecting the right version of Java. 

Step4:

Now check your latest config and this should be as below.
$ java -version < the output would be as below >
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)


Read more »

Saturday, February 7, 2015

Galaxy Note 4 coming to the UK in mid October Note Edge is not

The Samsung Galaxy Note 4 launch price and date for the UK were unveiled by local retailer Clove. The new phablet flagship will launch a month from now in the week that starts on October 13 and will cost £575 with VAT. Thats slightly higher than the €699 price for the German pre-order. Clove also has information on the Galaxy Note Edge, the innovative phablet with a two-sided screen and the info
Read more »

Wednesday, February 4, 2015

This week is JVT 2 3 5 stock week with no ROOT

After a few weeks of using custom rom either DarkyROM or JVT stock + semaphore + blue theme, I would like to test out stock I9000XXJVT as it is. By doing so, then I could find out whats wrong in stock rom and hope custom rom could fix it in later stage.

Base on the user review stock JVT 2.3.5 should good enough, smooth and fix the browser lag and wifi problem. I like to use stock as well, the only thing that I really need is battery percentage from stock where in iOS user could configure it, either to show it or not. In android we do not have that option. That why we are going for custom rom, root and custom theme (thats not the only reason).

I know you might ask me why not use battery widget. I hate widget that constantly updating the screen info. Why? Such widget eating battery too much just like Task Killer. They themself need to be in memory to perform the task. Battery widget that frequently asking for battery status and display on screen for sure will dry my battery like crazy.

Im thinking of cooking my own theme. Battery percentage only for JVT. How about that :)


Here is the kitchen http://uot.dakra.lt/











Read more »

Sunday, January 25, 2015

There is a duplicate system web extensions scripting scriptResourceHandler section defined

"There is a duplicate system.web.extensions/scripting/scriptResourceHandler section defined"

You are .NET developer and has this problem or error message while deploying your compiled apps using MS Visual Studio 2008 and try to deploy on IIS 7 or 8? Running Windows 8 Pro?

After commenting a lot in your web.config file does not help. These what you should do. Its works for me and hope it work for you as well.

Im running Windows 8 Pro with IIS version 8.

 

Error message on my screen.
Config Error   There is a duplicate system.web.extensions/scripting/scriptResourceHandler section defined
Config File   \?C:inetpubwwwrootadmin_permataweb.config

"<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions,......"

What should I do?
Google around and change my PC config.... its really messy. Dont do it. You will forget what you have changed. Its just too many steps...

What I did!
In you PC control panel look for this. Turn Windows features on or off

Look for World Wide Web Services > Application Development Features
Enable it all. My case I did not use CGI. Just uncheck it. Click [OK] and get it installed.


You should have this on your IIS Application Pool.
Go to your IIS Manager. Select your web site and click on "Advanced Setting"

Change it from DefaultAppPool to Classic .NET AppPool


DONE!

Your app should run normally!



Read more »