g15macro not saving macro settings

When I restart g15macro, it's not reloading my saved macros. They only seem to work for as long as the program has been running, and once I have to restart X and load everything up again, none of my macros work and I have to re-record them.

Re: g15macro not saving macro settings

It's probably SIGHUP, as that would be the most likely thing for gnome to send.
If it was forked into the background it would most likely get SIGTERM/QUIT sent to it instead, and it could exit normally (But adding that extra handler is simple :)).
Name, ID, Action, Comment

<br />
SIGHUP        1       Term    Hangup detected on controlling terminal<br />
                                     or death of controlling process

Re: g15macro not saving macro settings

I really don't know :(
I will google on that tomorrow.

I just noticed a small bug on my G11 : the stop multimedia key (the square) is recognized as the "lower sound volume" wheel.

Here are xev output :

## The stop button

MappingNotify event, serial 34, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

MappingNotify event, serial 34, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 247

FocusOut event, serial 34, synthetic NO, window 0x3a00001,
mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 36, synthetic NO, window 0x3a00001,
mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

MappingNotify event, serial 36, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

MappingNotify event, serial 36, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 247

### The wheel (turn to lower volume)

MappingNotify event, serial 38, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

MappingNotify event, serial 38, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 247

FocusOut event, serial 38, synthetic NO, window 0x3a00001,
mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x3a00001,
mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
keys: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

At first look it seems identical.

Re: g15macro not saving macro settings

Do you know what signal is being sent to g15macro when gnome kills it? The signal handler is setup to exit cleanly on SIGINT, SIGTERM, SIGQUIT, and SIGPIPE. If something else is sent it should be a simple matter of adding that to the switch() statement in the signal handler.

Re: g15macro not saving macro settings

Hello

I have more or less the same problem.

I am using Ubuntu 8.10 and a G11 keyboard (G15 without LCD).
On gnome, i used the session properties to launch g15macro on every login. It works well during the session, but when i log-out the g15macro daemon is killed in a way it can't save the macros (i think).

On the opposite, when the g15macro daemon is launched in a console, used and terminated using CTRL+C in the console, it save it's macros properly.

For the moment i haven't found a good solution for that. We have two options :
1 - find a way to tell gnome to terminate properly the daemon
2 - modify the daemon so it saves macro on each modification

Maybe we can also create a wrapper shell-script to handle the loading/unloading of the daemon properly and tell gnome to launch this script instead of directly the daemon.
If someone as an idea how to do that...

Re: g15macro not saving macro settings

Run it with g15macro -g instead, it should output some debugging info. Perhaps you get some warning :)?

And how are you terminating it? I don't remember if it saves when something is modified or at exit, if it's the latter you should think about how you kill it.

Re: g15macro not saving macro settings

Ok I can confirm this.
g15macro 1.0.3 Loads but dose not save to the config file.
g15macro.conf in $HOME/.g15macro
I have tried to set it to read and write for everyone but g15macro still seams to refuse to save any macros to it, it will however load from it at startup.

Re: g15macro not saving macro settings

You should have a dir named .g15macro in your home dir, if not, create it.
Inside that you should have a file named g15macro.conf, unsure if you can create (touch) it and have it work or if it needs to create it itself.

Re: g15macro not saving macro settings

I have the same problem, everything else works great though... Im running Ubuntu 8.10 with the original g15.

Any Ideas?