[Bugs] #4861 Sugar NORM: Brightness does not work during first startup

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Jun 3 16:57:46 EDT 2015


#4861: Brightness does not work during first startup
---------------------+-------------------------------------
  Reporter:  quozl   |            Owner:
      Type:  defect  |           Status:  new
  Priority:  Normal  |        Milestone:  Unspecified
 Component:  Sugar   |          Version:  Git as of bugdate
  Severity:  Major   |       Resolution:
  Keywords:          |  Distribution/OS:  Ubuntu
Bug Status:  New     |
---------------------+-------------------------------------
\
\
\
\
\
\

Comment (by tch):

 Replying to [ticket:4861 quozl]:
 > While choosing colour, gender, and age, the brightness keys do not work.
 The keys only start working once the home view is rendered.
 >


 I tested and confirmed this happens.

 The reason is that sugar's keyhandler is setup only after the intro screen
 is done [1,2] and the keyhandler depends on the existence of the frame
 [3], but the frame is also created after the intro [4]. This is also true
 for all other keys functions.

 I will need more research to understand why exactly this is being done at
 this point.

 > When logging in, the brightness is changed to the saved value very close
 to the end of the startup of Sugar.  It should be changed at the earliest
 opportunity.
 >

 I have sent a PR to address this issue.

 > Sugar 0.105.2 on Ubuntu Trusty 14.04.2.

 Refs:
 1. https://github.com/sugarlabs/sugar/blob/master/src/jarabe/main.py#L206
 2. https://github.com/sugarlabs/sugar/blob/master/src/jarabe/main.py#L139
 3. https://github.com/sugarlabs/sugar/blob/master/src/jarabe/main.py#L93
 4. https://github.com/sugarlabs/sugar/blob/master/src/jarabe/main.py#L138
 5. https://github.com/sugarlabs/sugar/pull/527
\
\
\

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


More information about the Bugs mailing list