#12915 NORM Opportu: mouse cursor remains on screen during powerd shutdown dialog

Zarro Boogs per Child bugtracker at laptop.org
Sat Aug 15 05:14:56 EDT 2015


#12915: mouse cursor remains on screen during powerd shutdown dialog
-------------------------------------+-------------------------------------
     Reporter:  Quozl                |                 Owner:  pgf
         Type:  defect               |                Status:  new
     Priority:  normal               |             Milestone:  Opportunity
    Component:  power manager        |               Version:  Development
  (powerd)                           |  build as of this date
     Keywords:                       |            Blocked By:
     Blocking:                       |  Deployments affected:
Action Needed:  design               |              Verified:  0
-------------------------------------+-------------------------------------
 Method to reproduce: press the power button once.

 Expected result: mouse cursor should disappear.

 Observed result: mouse cursor remains.

 Seen on XO-4 only, with Dove or Vivante X server.  Tested and does not
 occur on XO-1, XO-1.5, and XO-1.75.

 Discussion:

 The design response of a single press of power button is to switch virtual
 console and load the frame buffer.  The powerd service starts pnmto565fb
 which calls ioctl(2) to switch console.  Press any key to avoid suspend.

 Manual start of pnmto565fb via ssh reproduces problem easily:

 {{{
         timeout --signal=INT 2s \
             /usr/libexec/powerd/pnmto565fb -d -f /dev/fb0 \
                 -s 1 /etc/powerd/pleaseconfirm.pgm
 /etc/powerd/shuttingdown.pgm
 }}}

 Removing "-d" is a workaround for problem.  This avoids a 50ms delay
 between ioctl(2) and frame buffer write.

 However, test with chvt and fgconsole via ssh shows no issues.

 A timing test of chvt shows about 500ms is needed to complete switch from
 vt 1 to vt 4.

 What I think is happening is that the Dove and Vivante X server is writing
 to the frame buffer after acknowledging the console switch.

 Code reference:

 http://dev.laptop.org/git/users/quozl/powerd.git/tree/pnmto565fb.c

--
Ticket URL: <http://dev.laptop.org/ticket/12915>
One Laptop per Child <http://one.laptop.org/>
One Laptop per Child bug tracking system


More information about the Bugs mailing list