Announcement

Collapse
No announcement yet.

Settings aren't being saved

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Settings aren't being saved

    When I start up Knbuntu 9.10 I enter the command through the terminal to turn off the touch pad. Then I go to the Wicd Network Manager and connect wirelessly to the Internet. However, these settings aren't saved when I log off so the next time I start up Kubuntu I have to go through this same procedure again.

    How can I get Kubuntu to save my settings?

    Thank you.

    #2
    Re: Settings aren't being saved

    I dunno about turning off touch pads, but for sure wicd is a "userland" package -- it is not expected to save the network connection information after a logout. On the other hand, wicd should survive a "sleep" cycle (Suspend-to-RAM).

    Comment


      #3
      Re: Settings aren't being saved

      Put the following file in your home directory as "touchpad.sh"

      #!/bin/bash
      # toggle synaptic touchpad on/off

      # get current state
      SYNSTATE=$(synclient -l | grep TouchpadOff | awk '{ print $3 }')

      # change to other state
      if [ $SYNSTATE = 0 ]; then
      synclient touchpadoff=1
      elif [ $SYNSTATE = 1 ]; then
      synclient touchpadoff=0
      else
      echo "Couldn't get touchpad status from synclient"
      exit 1
      fi
      exit 0
      Use dolphin to set the execute bit. (Right mouse on the file, choose properties)

      In the KDE4 Systemsettings go to the advanced tab, click on AutoStart, click the AddScript button and point it to the "touchpad.sh" script. Set it for "Startup".
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        Re: Settings aren't being saved

        I followed the instructions and all went well. I think it's set up as described above. However, it doesn't work. When I reboot the touchpad is on. I was expecting a script to run that asked what setting I wanted. It didn't. I don't know how to set $SYNSTATE=0.

        What to do?

        Thanks!

        Comment


          #5
          Re: Settings aren't being saved

          SYNSTATE is a variable created WITHIN the script, used to hold the state of the touchpad, and to toggle that state when the script is run. When the script exits SYNSTATE's memory is reclaimed by the system and it no longer exists.

          "TouchpadOff", however, is a parameter recognized by synclient, a utility program. If you issue

          synclient -l | grep TouchpadOff | awk '{ print $3 }'


          from a Konsole it should return a 1 if your touch pad is off, and a 0 if it is on.

          You can see all of the parameters synclient controls by issuing

          synclient -l

          jerry@sonyvgnfw140e:~$ synclient -l
          Parameter settings:
          LeftEdge = 153
          RightEdge = 870
          TopEdge = 115
          BottomEdge = 652
          FingerLow = 12
          FingerHigh = 14
          FingerPress = 127
          MaxTapTime = 180
          MaxTapMove = 56
          MaxDoubleTapTime = 180
          SingleTapTimeout = 180
          ClickTime = 100
          FastTaps = 0
          EmulateMidButtonTime = 75
          EmulateTwoFingerMinZ = 139
          EmulateTwoFingerMinW = 7
          VertScrollDelta = 25
          HorizScrollDelta = 25
          VertEdgeScroll = 1
          HorizEdgeScroll = 0
          CornerCoasting = 0
          VertTwoFingerScroll = 0
          HorizTwoFingerScroll = 0
          MinSpeed = 0.4
          MaxSpeed = 0.7
          AccelFactor = 0.0391236
          TrackstickSpeed = 40
          EdgeMotionMinZ = 14
          EdgeMotionMaxZ = 79
          EdgeMotionMinSpeed = 1
          EdgeMotionMaxSpeed = 102
          EdgeMotionUseAlways = 0
          UpDownScrolling = 1
          LeftRightScrolling = 1
          UpDownScrollRepeat = 1
          LeftRightScrollRepeat = 1
          ScrollButtonRepeat = 100
          TouchpadOff = 1
          GuestMouseOff = 0
          LockedDrags = 0
          LockedDragTimeout = 5000
          RTCornerButton = 2
          RBCornerButton = 3
          LTCornerButton = 0
          LBCornerButton = 0
          TapButton1 = 1
          TapButton2 = 3
          TapButton3 = 2
          ClickFinger1 = 1
          ClickFinger2 = 1
          ClickFinger3 = 1
          CircularScrolling = 0
          CircScrollDelta = 0.1
          CircScrollTrigger = 0
          CircularPad = 0
          PalmDetect = 0
          PalmMinWidth = 10
          PalmMinZ = 99
          CoastingSpeed = 0
          PressureMotionMinZ = 14
          PressureMotionMaxZ = 79
          PressureMotionMinFactor = 1
          PressureMotionMaxFactor = 1
          GrabEventDevice = 1
          TapAndDragGesture = 1
          AreaLeftEdge = 0
          AreaRightEdge = 0
          AreaTopEdge = 0
          AreaBottomEdge = 0
          JumpyCursorThreshold = 0
          jerry@sonyvgnfw140e:~$
          You can turn off your touch pad by issuing

          synclient touchpadoff=1

          and turn it on by issuing

          synclient touchpadoff=0


          If your system hardware does not recognize synclient actions then you'll have to seek another solution.


          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #6
            Re: Settings aren't being saved

            I've been using

            synclient touchpadoff=1

            to turn off the touchpad. I have to enter this command in the Konsole every time I start up Kubuntu. I was looking for a way to set this parameter permanently or automatically on startup. I thought that's what the "touchpad.sh" was supposed to do. However, it hasn't done anything that I can detect. What is it supposed to do and how do I get it to do that?

            Thanks!



            Comment


              #7
              Re: Settings aren't being saved

              That is exactly what touchpad.sh does, and on every machine I've installed it on it has worked properly. Perhaps its execute permission is not properly set or you didn't create the first line of the script properly (you may have spaces in it).

              Note that the script also calls "awk". That utility "should be" installed on your system by default. Check to see if it is
              jerry@sonyvgnfw140e:~$ whereis awk
              awk: /usr/bin/awk /usr/lib/awk /usr/lib64/awk /usr/share/awk /usr/share/man/man1/awk.1.gz
              jerry@sonyvgnfw140e:~$
              and if it is not on your system then install it.

              I've attached my script (as a txt file, you'll have to change it to an sh file) and an image of my permissions settings.

              Attached Files
              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
              – John F. Kennedy, February 26, 1962.

              Comment


                #8
                Re: Settings aren't being saved

                This is a test. I can't get my relpy to post. Let's see if this will.

                Comment


                  #9
                  Re: Settings aren't being saved

                  It failed to post again so I'll try again
                  "awk" is installed .

                  tom@DellNotebook:~$ whereis awk
                  awk: /usr/bin/awk /usr/share/man/man1/awk.1.gz
                  tom@DellNotebook:~$
                  My touchpad.sh is:


                  #!/bin/bash
                  # toggle synaptic touchpad on/off

                  # get current state
                  SYNSTATE=$(synclient -l | grep TouchpadOff | awk '{ print $3 }')

                  # change to other state
                  if [ $SYNSTATE = 0 ]; then
                  synclient touchpadoff=1
                  elif [ $SYNSTATE = 1 ]; then
                  synclient touchpadoff=0
                  else
                  echo "Couldn't get touchpad status from synclient"
                  exit 1
                  fi
                  exit 0
                  My file permission i attached.

                  Everything tooks ok to me but I could easily have overlooked something.

                  Comment

                  Working...
                  X