g15composer-3.1
g15daemon-1.2.7
libg15-1.2.6
When running:
echo "MP 1" > g15pipe
The screen sometimes toggles from the clock to the composer screen and vice versa (note this does not always happen especially when the code is embedded in another application).
MP 0 and MP 2 - have no effect.
I notice there is another similar post to this, though I am using the latest downloads and the problem persists.
Would the logic make more sense if there was a switch that just set either the clock screen or the composer screen, the toggle unfortunately means state has to be stored and of course that makes it awkward across applications.
i.e.
MP 0 - move composer screen to background
MP 1 - move composer screen to foreground
The manual page states:
147 MP 0|1|2
148 Set screen to foreground if 0 and background if 1
149 If 2, set screen to background if and only if user hasn't set it to foreground
screen is not defined, is it the composer screen or the clock screen? or is it meant to mean the next screen being written to?
MP 2 - move composer screen to background if the user has not clicked the button to display the composer screen
but really MP 0 1 as above would make the system quite usable.
I also have noticed that sending commands quickly to the pipe can sometime result in them not being shown:
echo "MP 1" > g15; echo "TL \"Hello\" " > g15
Does not display.
but
echo "MP 1" > g15; sleep 1; echo "TL \"Hello\" " > g15
does, if the screen was on clock mode.
Anyway hope you can get this ironed it as the suite of tools you have got are a great addition to this keyboard.
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
mlampard, I salute you. The dev cylce of g15tools is fucking impressive. Right up there with E17.
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
Attached is an updated patch to g15composer that fixes all MP bugs I'm aware of. In order for 'MP 2' to work, g15daemon 1.9x needs to be checked out of SVN, as there was a bug introduced at some point in the distant past that caused the user-select status not to be updated.
With the patch applied and using the latest SVN version of g15daemon-wip (1.9.6pre) MP works as specified in the manual.
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
Okay I figured it out... the script's backlight flash option was on (it is by default). Turning the backlight flash off seems to have fixed it. So there's something with flashing the backlight that was breaking it.
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
I'm using the script from here: http://www.lattyware.co.uk/G15H/
The only change I made to it was changing the config.txt file's string line:
string: MC 1%newline%PC 0%newline%T%textsize% "%nick% %channel% %time%" "%messagewrapped%"%newline%PR 0 0 160 %textheight%%newline%MC 0%newline%MP 0%newline%I also tried it with "MP 0%newline%" before the MC 1, but that didn't make any difference.
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
well, it's a start I suppose. Can you post your x-chat script?
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
Well it seems to work in my simple thunderbird script that I wrote as well as in my amarok script... but not in the x-chat hilight script. Weird.
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
oops. try this one :)
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
Uh. That looks like the same patch that you said you already put in 1.9.5.1?
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
Please try the attached patch against g15composer. It partially resolves the 0|1|2 issue, but there appears to be another problem where g15composer sends a blank screen after switching priorities, this is most visible with '2'. I'll look into it further.
With this patch applied 0|1 work as expected for me, except for the aforementioned issue.
Mike
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
I'm not noticing any difference with how MP works on daemon 1.9.5.1
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
G15Daemon 1.9.5.1 has the patch already included, applying the patch to versions later than 1.9.5 may actually undo it's effects.
Thanks for reporting.
Mike
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
Thanks for your speedy response.
My bad I was running:
g15daemon-1.9.4
apologies for that :)
I have updated to g15daemon-1.9.5.1
tried to apply the patch but got errors initially.
I did a ./configure && make && make install
same toggle effect on MP 1
then I did a make unistall && make clean
applied the patch, which took this time
another ./configure && make && make install
MP 2 did something
but then stopped
back to the toggling with MP 1
MP 0 no effect
though the echo "MP 1" > ~/g15; echo "TL \"Hello\"" > ~/g15
now works without the sleep :)
I think it may also be remembering the clock setup now which is a good thing.
Thanks for your help and the tool itself.
Re: g15composer 3.1 - MP 0|1|2 - only 1 toggles
Please try G15Daemon 1.9x (now 1.9.5) with the attached patch. G15Daemon versions up to and including 1.9.5 have a bug that missed some updates from G15Composer.
To apply the patch:
cp g15daemon-1.9.5-composer-bf-1.patch.gz g15daemon-1.9.5
cd g15daemon-1.9.5
gunzip -c g15daemon-1.9.5-composer-bf-1.patch.gz |patch -p0
./configure && make && make install