Voodooprojects

VoodooPS2Controller => Bug Reports => Topic started by: Shoesy on April 12, 2009, 03:24:33 PM

Title: [Solved] Preference pane settings do not save
Post by: Shoesy on April 12, 2009, 03:24:33 PM
The voodooPS2 preference pane settings do not save on my machine, they work fine 'til a reset, and then they are back to the defaults.

I have repaired permissions and this does not seem to have made a difference.
Title: Re: Preference pane settings do not save
Post by: ujen on April 12, 2009, 08:25:43 PM
same here :-\
Title: Re: Preference pane settings do not save
Post by: mackerintel on April 13, 2009, 12:39:03 PM
Looks like synapticsconfigload isn't installed correctly. Make sure this small app runs at every login
Title: Re: Preference pane settings do not save
Post by: Shoesy on April 13, 2009, 07:18:12 PM
installer doesn't seem to place it in startupitems...

Can't find it on my system- is there anyway of successfully extracting it from the installer package to insert manually?
Title: Re: Preference pane settings do not save
Post by: noeyesee1 on April 15, 2009, 06:48:17 PM

me too, cannot load saved prefernces

unless I explicit drag the "synapticsconfigload" into user loginitems.

But then, it trigger the terminal window and in front
 :'(

Pls help
Title: Re: Preference pane settings do not save
Post by: Olotiar on April 16, 2009, 03:45:05 PM
Same thing here, does somebody know how to make this app run at startup without having the ugly terminal window ?? Thx
Title: Re: Preference pane settings do not save
Post by: andyvand on April 16, 2009, 06:41:02 PM
There are many methods one can use for letting something load at startup...
for example: one could put it to load in /etc/rc or the other ways...
Title: Re: Preference pane settings do not save
Post by: lebidou on April 16, 2009, 08:53:28 PM
The problem seems to come from the LaunchAgent plist file.

I modified mine with Lingon to set the value RunAtLoad wich wasn't present in the original one. Attached it to let you test if works for everyone (Copy it in /Library/LaunchAgents).

It seems to work here.
Title: Re: Preference pane settings do not save
Post by: Olotiar on April 16, 2009, 10:43:17 PM
Work like a charm. Thanks
Title: Re: Preference pane settings do not save
Post by: mackerintel on April 16, 2009, 11:57:45 PM
lebidou: thank you for the fix. It will be added to the release
Title: Re: Preference pane settings do not save
Post by: Olotiar on April 17, 2009, 12:02:51 AM
Don't forget that the app itself is buggy (generates this on console window , as someone already noticed)
Code: [Select]
2009-04-17 00:01:43.346 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e049b0 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3dce32 0x3e56ae 0x4011da 0x40413b)
2009-04-17 00:01:43.355 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e066c0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3de037 0x3dd139 0x3dd05a 0x4011f8 0x40413b)
2009-04-17 00:01:43.356 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e06bd0 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3dce32)
2009-04-17 00:01:43.358 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e06c90 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3dce32)
2009-04-17 00:01:43.360 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e06f10 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3dce32 0x3f1505 0x3f10e1)
Title: Re: Preference pane settings do not save
Post by: mackerintel on April 17, 2009, 12:08:53 AM
Don't forget that the app itself is buggy (generates this on console window , as someone already noticed)
Code: [Select]
2009-04-17 00:01:43.346 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e049b0 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3dce32 0x3e56ae 0x4011da 0x40413b)
2009-04-17 00:01:43.355 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e066c0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3de037 0x3dd139 0x3dd05a 0x4011f8 0x40413b)
2009-04-17 00:01:43.356 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e06bd0 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3dce32)
2009-04-17 00:01:43.358 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e06c90 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3dce32)
2009-04-17 00:01:43.360 synapticsconfigload[654:10b] *** _NSAutoreleaseNoPool(): Object 0x1e06f10 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0x4d073f 0x3dce32 0x3f1505 0x3f10e1)
Unfortunately I'm not very familiar with this thing called ObjC. If you can fix these memory leaks your help would be very appreciated
Title: Re: Preference pane settings do not save
Post by: Olotiar on April 17, 2009, 12:13:00 AM
I'm afraid I can't help with that as I don't even have Xcode installed on my computer. Sorry, and wish someone will help, the VoodooPS2 is a really great kext and fullfilled the dreams of numerous people (including me), too bat it comes with such a bad installer.
Title: Re: Preference pane settings do not save
Post by: noeyesee1 on April 17, 2009, 05:50:57 AM
The problem seems to come from the LaunchAgent plist file.

I modified mine with Lingon to set the value RunAtLoad wich wasn't present in the original one. Attached it to let you test if works for everyone (Copy it in /Library/LaunchAgents).

It seems to work here.


4/17/09 11:28:13 AM com.apple.launchctl.LoginWindow[115] launchctl: Dubious permissions on file (skipping): /Library/LaunchAgents/org.voodoo.trackpad.configurationloader.plist
4/17/09 11:28:13 AM com.apple.launchctl.Background[116] launchctl: Dubious permissions on file (skipping): /Library/LaunchAgents/org.voodoo.trackpad.configurationloader.plist
4/17/09 11:28:14 AM com.apple.launchd[1] (com.apple.UserEventAgent-LoginWindow[117]) Exited: Terminated
4/17/09 11:28:14 AM com.apple.launchctl.Aqua[122] launchctl: Dubious permissions on file (skipping): /Library/LaunchAgents/org.voodoo.trackpad.configurationloader.plist




Mine does not load, same as the original plist, pls help

(sorted that out) - since permission has to be set to read only in order to load
Title: Re: Preference pane settings do not save
Post by: sand on April 17, 2009, 12:56:56 PM
Hello,

After the installation, I saw that the permissions was not correctly set for the directory /.voodoops2 and the binary /.voodoops2/synapticsconfigload.

Could you verify ?

Just for info, I corrected the permissions as follow :

sudo chown 0:0 /.voodoops2
sudo chown 0:0 /.voodoops2/synapticsconfigload
sudo chmod 775 /.voodoops2
sudo chmod 775 /.voodoops2/synapticsconfigload

Regards,

sand
Title: Re: Preference pane settings do not save
Post by: lebidou on April 17, 2009, 03:17:47 PM
I had some spare time to spend on this today, so I looked at the Synapticonfigload errors.
Apparently, it comes from the lack of an autorelease pool requested by the NSStrings tmp1 and tmp2. I modified this according to sample codes (I'm not an objective C expert neither).

If someone with more Obj-C knowledge could take a look at the diff:

Code: [Select]
--- synapticsconfigload/synapticsconfigload.m 2009-02-16 10:54:14.000000000 +0100
+++ synapticsconfigload.m 2009-04-17 14:35:29.000000000 +0200
@@ -12,7 +12,6 @@
  CFDataRef dat;
  CFDictionaryRef plist;
  CFStringRef *keys;
- NSString *tmp1, *tmp2;
  CFTypeRef *vals;
  int i;
 
@@ -23,10 +22,20 @@
  return 1;
  }
 
- f=fopen ([tmp2=[NSHomeDirectory() stringByAppendingString:tmp1
- = [NSString stringWithCString: "/Library/Preferences/org.voodoo.SynapticsTouchpad.plist"]] UTF8String], "rb");
- CFRelease(tmp1);
- CFRelease(tmp2);
+ //There was no AutoreleasePool, here is the allocation and init
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+ NSString *tmp1, *tmp2;
+
+ //NSStrings Allocation and Initialization
+ tmp1 = [[NSString alloc] initWithCString:"/Library/Preferences/org.voodoo.SynapticsTouchpad.plist"];
+ tmp2 = [[NSString alloc] init];
+ tmp2 = [NSHomeDirectory() stringByAppendingString:tmp1];
+
+ f=fopen ([tmp2 UTF8String], "rb");
+
+ //We release the AutoreleasePool, this also releases tmp1 and tmp2
+ [pool release];
 
  if (!f)
  {

I hope it helps.
Title: Re: Preference pane settings do not save
Post by: cogombo on May 31, 2009, 11:52:27 PM
The problem seems to come from the LaunchAgent plist file.

I modified mine with Lingon to set the value RunAtLoad wich wasn't present in the original one. Attached it to let you test if works for everyone (Copy it in /Library/LaunchAgents).

It seems to work here.

SUPERB!! perfect!
Title: Re: [Solved] Preference pane settings do not save
Post by: psychov on March 19, 2010, 03:30:00 PM
have the same thing after all recomendations of this thread. settings doesn't saves.
any ideas?
Title: Re: [Solved] Preference pane settings do not save
Post by: eXyr0w on October 04, 2010, 08:22:38 PM
thank you, this thread helped me to save the preferences in voodoops2...