Announcement

Collapse
No announcement yet.

Lid close/Suspend actions.

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

    Lid close/Suspend actions.

    I don't usually use a laptop, but my wife does. Her machine is on Kubuntu 13.04. Being a cheap and under-supported Dell Vostro V13 it has a couple issues. I've been holding on to the idea that some kernel update will correct the problems, but not so far. Now one of these issues is bugging her enough that it's bugging me - I'm sure you catch my drift...

    After the lid is closed, upon re-opening the mouse interferes with the keyboard. This causes run-on key strokes or some keypresses being skipped. The work-around is to open the terminal and rmmod the mouse driver, wait a tic, and then reload the psmouse driver and all is well.

    The problem is, I don't know the best place to put these commands. Basically it's just;

    sudo rmmod psmouse && sleep 5 && modprobe psmouse

    I've found under /etc/acpi two scripts there: lid.sh and sleep.sh. I don't know for sure if one of those is correct or some other place. I saw the options in System Settings but it looks like script running happens after the action - when suspend is activated, not when wake-up starts - which is when I need it.

    Any ideas?

    Please Read Me

    #2
    some thing like this maby ........ http://askubuntu.com/questions/92218...e-from-suspend

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Thanks Vinny, that looks promising. I'll try that first.

      Please Read Me

      Comment


        #4
        Code:
        < :) let us know how it goes :) >
         -------------------------------
           \
            \
                .--.
               |o_o |
               |:_/ |
              //   \ \
             (|     | )
            /'\_   _/`\
            \___)=(___/
        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          It appears to be working! I created 05_mousefix with the code below, made it executable, and put it in /etc/pm/sleep.d. So far my wife says all is well. Thanks Vin!

          Code:
          case "${1}" in    
          resume|thaw)
              rmmod psmouse
              sleep 5
              modprobe psmouse  
          ;;
          esac
          Now if I could just figure out the charging problem
          Last edited by oshunluvr; Oct 31, 2013, 10:04 AM.

          Please Read Me

          Comment

          Working...
          X