had a similar problem with a ryobi grass trimmer (no idea what engine number) but problem was caused by the spark arrestor on the exhaust being choked up with carbon. To sort it just remove the cover plate held on by two screws, remove the wire mesh cover below it and give it a good clean (I found a wire brush worked best).
G.Cameron-Harrison, August 2009