Results 1 to 2 of 2

Thread: Load touchpad settings on wake

  1. #1
    Join Date
    Jul 2008
    Beans
    54

    Load touchpad settings on wake

    I'm running 12.04 on a Star4, and I've had problems with my touchpad settings in the past (see this thread), but following the instructions in the System76 knowledge base, my settings load properly at startup. However, they reset after I close the lid, which is a mild annoyance. I usually just execute the settings file, but I've been trying to set up a script to do it automatically.

    I created a file /etc/pm/sleep.d/90_toupadsettings

    These are the contents:

    Code:
    #!/bin/bash
    
    # Reload touchpad setting on wake.
    # Settings are stored at /usr/bin/start-touchpad
    
    case "{$1}" in
            suspend|hibernate)
                    # do nothing
            ;;
            resume|thaw|wake)
                    /usr/bin/start-touchpad
            ;;
    esac
    This doesn't work. Is there something wrong with the script? Could it be the permisisons?
    These are the permissions for 90_touchpadsettings
    Code:
    $ ls -l 90_touchpadsettings
    -rwxr-xr-x 1 root root  213 Sep 26 13:27 90_touchpadsettings
    And here they are for start-touchpad
    Code:
    $ ls -l start-touchpad 
    -rwxr-xr-x 1 root root 46 Nov 10  2011 start-touchpad
    Any ideas?

  2. #2
    Join Date
    Jul 2008
    Beans
    54

    Re: Load touchpad settings on wake

    I fixed this problem after some googling, I thought I'd share the solution.

    For some reason, fspc won't run from a script, nor aparently from a file executed from a script. But from this bug report, I learned that the settings can be set directly, without going through fspc.

    I changed my wakeup script to look like this:
    Code:
    #!/bin/sh
    # disable tap-to-click on wake by modifying the flags file.
     
    case "${1}" in
            resume|thaw)
            echo "c" > /sys/devices/platform/i8042/serio2/flags
            ;;
    esac
    The lowercase 'c' is the flag to turn off tap-to-click (uppercase C turns it on). Other flags are listed in the discussion of the bug report. Other options are set in other files in serio2, such as vscroll and hscroll for vertical and horizontal scrolling respectively. Also, the bug report discussion indcates that the directory serio# can be differently numbered.

    Hope this helps someone with a similar problem.

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
  •