Hi Peter,
>> /* Tool on the tablet when driver starts. This sometime causes
>> * access errors to the device */
>> - if (pDev && !miPointerGetScreen(pDev->dev))
>> + if (pDev && (!pDev->dev || !miPointerGetScreen(pDev->dev)))
>> {
>> xf86Msg(X_ERROR, "wcmEvent: Wacom driver can not get
>> Current Screen ID\n");
>> xf86Msg(X_ERROR, "Please remove Wacom tool from the tablet and
>> bring it back again.\n");
> this is a larger bug we don't have a good solution to yet. it's essentially
> a race condition between hotplugged devices due to the way how
> NewInputDeviceRequest works in the server. NIDR adds and immediately enables
> the devices including adding them to the select loop and receiving events
> for them.
thanks for your reply! I am by now means knowledgeable about
linuxwacom or X internals (first got a graphics tablet yesterday..),
but I can tell you that the above band-aid works reliably for me,
whereas I repeatably get a crash of X at startup without it.
As miPointerGetScreen() will always segfault when being handed a
NULL-pointer I think the above test makes sense. Moreover, after the
two xf86Msg()s there is a return statement that bails us out early
from commonDispatchDevice() before other code assuming a valid
pDev->dev is executed..
In testing this I have also noticed that is not even necessary to lift
the pen from the surface and bring it back again (as the xf86Msgs
suggest) - but simply waiting till X is up is enough, and I can
immediately use the pen to navigate.
Please consider including the patch for the time being.
greetings
Gottfried
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel