Results 1 to 5 of 5

Thread: kde touchpad not getting properly installed in Linux mint

  1. #1
    Join Date
    Nov 2010
    Posts
    49

    kde touchpad not getting properly installed in Linux mint

    Well I am running a main edition of the Linux mint. I have recently tried installing the kde touchpad and I found out that it is acting like that it has already been installed in my system. This is because I don’t get any check option whether to display In the start menu or not. It is not giving me any option to check or uncheck. Is this the same way the kde works or is there any problem with my system. Please do help me out with my problem.

  2. #2
    Join Date
    Nov 2009
    Posts
    1,416

    Re: kde touchpad not getting properly installed in Linux mint

    Well looking at the problem I would advise you to check with the configuration of that particular touchpad In the control panel. You will get the necessary information there. Otherwise what you can do is to check out with this particular code below
    Code: Select all
    kcmshell4 touchpad
    This code will give you the exact detail of the necessary information of the kde touchpad. Try with this coding it must work.

  3. #3
    Join Date
    Nov 2009
    Posts
    758

    Re: kde touchpad not getting properly installed in Linux mint

    Well another solution that I can give it you is that try disabling the touchpad and work on the external mouse. It would be a better option. Working on the touchpad can be sometimes very boring so that’s why ensure that the external mouse is connected to the laptop and accordingly work on that. I know its a bit weird solution but you will have to find some way to get going. Do try with this solution it will definitely help you.

  4. #4
    Join Date
    Nov 2010
    Posts
    49

    Re: kde touchpad not getting properly installed in Linux mint

    Well let me inform you all that I have tried with the coding and it gave me the answer that the 'k' is not a type of command. I really did not understand what type of error was that. So I thought of going with the second solution where I tried selecting the mouse option but the problem there was that it did not disable the touchpad. The mouse preference barely did work with my laptop. So that’s why I was not able to enable the mouse in my system. So I am really fed up of my laptop. Is there any other solution that will help me get out of this mess.

  5. #5
    Join Date
    Nov 2009
    Posts
    1,035

    Re: kde touchpad not getting properly installed in Linux mint

    Well let me tell you definitely can. What you have to do is to follow these steps that I am providing you
    1) You have to make sure that you have xinput and halevt installed in your system. Type the following code to ensure it.

    sudo apt-get install xinput halevt

    2) Ensure that you create the bin folder in the home directory and add the path accordingly.
    mkdir ~/bin
    echo "PATH=\$PATH:~/bin" >> ~/.bashrc
    echo "export PATH" >> ~/.bashrc
    3) After that its time to some configuration work. Where you have to copy the following code in any of the text editor and run it accordingly.
    Code:
    A function for logging */
    safemk () {
    if [ ! -d $1 ]; 
      then mkdir $1; 
      chmod +rw $1; 
    fi
    }
    logdir=/home/$USER/.toggleTouchpad
    touchpadString="TouchPad"
    touchpadID=$(xinput list | grep $touchpadString | awk -F " " '{print $6}' | awk -F "=" '{print $2}')
    touchpadEnabled=$(xinput list-props $touchpadID | grep "Device Enabled" | awk -F ":" '{print $2}')
    sleeptime=1
    
    /* Create the logging directory */
    safemk $logdir
    touch $logdir/errorLog.txt
    
    /*Check for arguments on the command line */
    if test $# -eq 1
    then
    	/* Change the argument to lowercase */
    	arg1=$(echo $1 | tr [:upper:] [:lower:])
    	cliArg=1
    else
    	/* There is no argument */
    	cliArg=0
    fi
    
    if [ $cliArg -eq 1 ]
    then
    /* If there's an argument, check to see whether it is on, off, or junk */
    	if [ $arg1 = 'on' ]
    	then
    		/*The argument was 'on', so turn the touchpad on */
    		xinput --set-prop $touchpadID "Device Enabled" 1
    		if [ $(xinput list-props $touchpadID | grep "Device Enabled" | awk -F ":" '{print $2}') -eq 0 ]
    		then
    			echo "Something went wrong\n" >> $logdir/errorLog.txt
    		finish
    	else if [ $arg1 = 'off' ]
    	then
    		/* Sleep for a short time to fix a bug that re-enabled the touchpad immediately after disabling it */
    		sleep $sleeptime
    		/* The argument was 'off', so turn the touchpad off 
    		xinput --set-prop $touchpadID "Device Enabled" 0
    		if [ $(xinput list-props $touchpadID | grep "Device Enabled" | awk -F ":" '{print $2}') -eq 1 ]
    		then
    			echo "Something went wrong, perhaps \$sleeptime needs to be greater than $sleeptime ?\n" >> $logdir/errorLog.txt
    		finish
    	else
    		/* The argument was junk, so log the error and go on  */
    		echo "Invalid argument \""$arg1"\" was supplied\n" >> $logdir/errorLog.txt
    	finish
    else
    	/* There was no argument, so just toggle the touchpad to the opposite */
    	/* of the state it has now. */
    	if [ $touchpadEnabled -eq 1 ]
    	then
    		xinput --set-prop $touchpadID "Device Enabled" 0
    	else
    		xinput --set-prop $touchpadID "Device Enabled" 1
    	finish
    finish
    4) After doing this execute the script by typing the following command
    chmod +x ~/bin/toggleTouchpad
    5) Test the script by typing on or off after the toggleTouchpad.
    Try with this script it will definitely enable your touchpad.

Similar Threads

  1. Replies: 4
    Last Post: 13-01-2011, 10:56 AM
  2. How to get Wine installed on my Linux Mint Laptop
    By WAdia Shaik in forum Operating Systems
    Replies: 4
    Last Post: 06-01-2011, 11:05 AM
  3. Installation not being done properly For Linux Mint 10
    By Poks in forum Operating Systems
    Replies: 4
    Last Post: 02-01-2011, 03:17 AM
  4. Replies: 4
    Last Post: 02-01-2011, 01:45 AM
  5. My laptop touchpad fails on linux mint 10 RC
    By Sartaj^Crown in forum Operating Systems
    Replies: 5
    Last Post: 31-12-2010, 12:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,525,126.72374 seconds with 17 queries