Migrate away from checking /home/phablet/.display-mir

Bug #1251753 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powerd
Fix Released
Medium
Michael Terry
powerd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

powerd still checks for the presence of /home/phablet/.display-mir to decide whether to use SurfaceFlinger or DBus to control the screen. This seems bad long-term.

Ideally, it could just check presence of the DBus name com.canonical.Unity.Screen and use that result to decide whether to use SurfaceFlinger or not.

Michael Terry (mterry)
Changed in powerd:
assignee: nobody → Michael Terry (mterry)
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Mike, are you planning to land this?

Changed in powerd:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Michael Terry (mterry) wrote :

I ran into a problem with powerd that I couldn't figure out. g_idle_add doesn't work, while g_timeout_add(PRIORITY_HIGH, 0) does. Which makes gdbus not work, because it uses g_idle_add internally. Something about how powerd uses its main loop? Has anyone else seen that?

Revision history for this message
Michael Terry (mterry) wrote :

Got fixed in r123

Changed in powerd:
status: Confirmed → Fix Released
Changed in powerd (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.