From: Laurence D. <ld...@tu...> - 2005-11-01 01:24:46
|
Greg wrote: > > Hi LIRC fans, > > Has anybody gotten complex mode cycling to work? I see some threads in > the archive. But they're old and a couple seemed to have died without a > conclusion. > > A big "gotcha" seems to be the order things are in .lircrc. Get the order > wrong and the wrong "quit" prevents everyone else from executing. > > A full-fledged example of mode cycling would be greatly appreciated. I'm > just trying to do the normal thing of controlling XMMS and Mplayer (and > Firefox actually) and each needs a different xevent or command sent via an > LIRC plugin. > > And since for XMMS "prog = xmms", does the mode get handled properly? > Wouldn't the xmms-lirc plugin have to do modes, just like irexec and > irxevent have to seperately do modes? > > Does each mode have a button to switch to another mode? I don't fully understand the mode system, but my guess is on "quit" it gets stuck in a mode. Does the begin/end block of your quit button (for each mode) have a "mode = " line ? For my xmms alarm clock, only a single app, which "bounces" between 2 modes: begin XMMS_Alarm begin prog = XMMS_Alarm #my hacked up version button = PLAY config = PLAYPAUSE end begin ... begin prog = XMMS_Alarm button = MENU mode = SET_TIME_MODE end end XMMS_Alarm begin SET_TIME_MODE begin prog = XMMS_Alarm button = ONE config = 1 end ... begin prog = XMMS_Alarm button = OK config = ACCEPT mode = XMMS_Alarm end end SET_TIME_MODE HTH, Laurence |