Modify

Opened 5 years ago

#13110 new defect

pwrtray-backend runaway CPU usage

Reported by: vandyswa Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

When pwrtray-backend reaches the point of actually turning off the screen, it has no more timed events. The code has a bug where it spins in a tight CPU loop observing the already expired last timed event. Proposed fix adds a 60-second interval for screen blank state, because the main processing loop expects there *always* to be a time interval set. Arguably the code could be restructured to allow the timer to be disabled when only X events are of interest.

Attachments (1)

pat.autodim.c (856 bytes) - added by vandyswa 5 years ago.
Patch for backend/autodim.c, proposed fix

Download all attachments as: .zip

Change History (1)

Changed 5 years ago by vandyswa

Patch for backend/autodim.c, proposed fix

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.