Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-26 Thread Peter Hutterer
On Wed, Jan 26, 2011 at 05:15:43PM +0100, Cedric Sodhi wrote: > Yes, this is indeed a misunderstanding. What you refer to is not what > I'd call "udev" configuration. Using X InputClass Sections is simply > what the name implies: A method of configuring the device through X11. I > put that in contr

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-26 Thread Cedric Sodhi
Yes, this is indeed a misunderstanding. What you refer to is not what I'd call "udev" configuration. Using X InputClass Sections is simply what the name implies: A method of configuring the device through X11. I put that in contrast with what HAL was "capable" of, namely assigning attributes input.

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-26 Thread Alexia Death
On Wed, Jan 26, 2011 at 5:17 PM, Favux ... wrote: > Maybe you're running > into the the fact the udev currently can't configure dependent > devices?  Like the early days of HAL before wacom-to-hal.  I'm pretty > sure that's been addressed upstream.  Peter gave an example snippet > for a dependent

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-26 Thread Favux ...
Hi Cedric, I'm probably misunderstanding what you are asking. But you can use Options with the same syntax as in xorg.conf in xorg.conf.d. e.g.: Option "Button2" "3" Option "TopX" "0" After the Driver line in the relevant snippet. Maybe you're running into the the fact the udev currentl

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-26 Thread Cedric Sodhi
Hello Peter, could you tell us how in particular udev can set Properties? I've been very concerned with this topic for quite a while and in the end I had to conclude that it's *not* possible to use udev in the same manner as hal used to work. I did *not* find any way to communicate settings to xor

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-25 Thread Peter Hutterer
On Tue, Jan 25, 2011 at 09:06:18PM +0100, Cedric Sodhi wrote: > Hello, this is the same for all devices, I think. At least it's the same > for my Intuos4. But I think that's okay. it's the same for all devices and can largely be blamed on wacomcpl. wacomcpl changes X input properties which are onl

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-25 Thread Favux ...
Great. Thanks for the code update. On Tue, Jan 25, 2011 at 6:35 PM, Steven L. Seed wrote: > Here is our modified version of the monitor_wacom.c code. His original code > was checking for the screen saver to go off to load the settings. In our > case, we want to load the settings whenever the tab

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-25 Thread Steven L. Seed
Here is our modified version of the monitor_wacom.c code. His original code was checking for the screen saver to go off to load the settings. In our case, we want to load the settings whenever the tablet is plugged in, so we modified it to listen on the org.freedesktop.H

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-25 Thread Steven L. Seed
These are good ideas. We'll give them a try. It seems to me this should be included in the linuxwacom project to accompany the wacomcpl tool. On 01/25/2011 12:19 PM, Favux ... wrote: That sounds good. Or you can create a little daemon. Cyberfish came up wit

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-25 Thread Favux ...
That sounds good. Or you can create a little daemon. Cyberfish came up with this about 2 years ago. Call it monitor_wacom.c: #include #include #include #include #include #include void log_msg(const char *msg) { FILE *log_file = fopen(".monitor_wacom.log", "a"); if (log_

Re: [Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-25 Thread Cedric Sodhi
Hello, this is the same for all devices, I think. At least it's the same for my Intuos4. But I think that's okay. It's not the responsibility of the driver to re-initialize the device with the old settings - the driver is simply the method to communicate with it, it shall not offer any "special se

[Linuxwacom-devel] Cintiq calibration lost when hotplugging

2011-01-25 Thread Steven L. Seed
Has anyone noticed that when you hotplug a Cintiq that has been calibrated with the wacomcpl, you lose the calibration (it resets) after you hotplug the tablet? This is particularly problematic in our environment where the tablets are attached via kvm switches to work wi