[Bugs] #2006 UNSP: add touchpad section to Sugar CP

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu May 20 15:08:37 EDT 2010


#2006: add touchpad section to Sugar CP
------------------------------------------+---------------------------------
    Reporter:  walter                     |          Owner:  tomeu                      
        Type:  enhancement                |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:  control panel r?           
Distribution:  OLPC                       |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by walter):

 pgf wrote:

 changes to the ptmode should be able to take affect immediately --
 no restart should be required.  and i think, given the nature
 of this feature, that this is important.

 my initial design outline took this into account, but maybe i wasn't
 clear.  so:
    - the "get_touchpad()" method should ignore the flag file
        entirely.  it should read the ptmode node, and return
        RESISTIVE if the value was a 1.  the flag file should be
        ignored in get_touchpad().

    - the "set_touchpad()" method should write 1/0 to the ptmode
        node, and also create/destroy the flag file, as
        appropriate.

    - the control panel should lose the "Changes require restart"
        text.

 btw, in addition to allowing immediate switching, this scheme
 allows seamless operation with a gnome applet which does the same
 thing, if we were ever to create such an applet.

 ---

 I also implemented an "undo" that restores the previous state if the user
 exits the panel by hitting the X.

 Tested on an OLPC XO-1 CL1 where I sudo chmod +w ptmode.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2006#comment:12>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list