Re: X11 error from home grown application

2010-05-12 Thread Julien Cristau
On Tue, May 11, 2010 at 15:54:50 -0400, Geoffrey wrote:

 Anyone know where I can start looking to figure out why I'm getting
 the following error in our application:
 
 X Error of failed request:  BadMatch (invalid parameter attributes)
   Major opcode of failed request:  42 (X_SetInputFocus)
   Serial number of failed request:  7398113
   Current serial number in output stream:  7398114
 
Quoting from XSetInputFocus(3):
   The specified focus window must be viewable at the time XSetInputFocus
   is called, or a BadMatch error results.

Cheers,
Julien
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Add Rotate support to a driver

2010-05-12 Thread Éric Piel
Op 12-05-10 07:39, yoni dana schreef:
 Hi
 i have implemented and X11 input driver,
 i need to add support to screen rotation,
 My questions is
 How can i detect screen rotation occurred
 (For Example i use xrandr -o left )
I think you can do this in a X client which listens to the
XRRScreenChangeNotify event on the root window. See the Xrandr(3) man
page for more info. Then, your client can request a change of
orientation to the input via an input property.

Eric
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Xorg server using 100% CPU. Can reproduce. Need help to track the issue

2010-05-12 Thread phil lemelin
I will try the patch mentionned in the bug report and report back.
Many thanks.

On Tue, May 11, 2010 at 4:00 PM, Chris Wilson ch...@chris-wilson.co.ukwrote:

 On Tue, 11 May 2010 14:58:35 -0400, phil lemelin phil.leme...@gmail.com
 wrote:
  Good evening list,
 
  I'm having a reproducible issue with the X when using vmg (
  http://magnifier.sourceforge.net/ ). It will systematically make the
 Xorg
  process use 100% cpu and basically locks the machine. I just start it,
 move
  it around and I hit the issue.

 Sounds like https://bugzilla.kernel.org/show_bug.cgi?id=15911

 --
 Chris Wilson, Intel Open Source Technology Centre



Phil.
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: Xorg server using 100% CPU. Can reproduce. Need help to track the issue

2010-05-12 Thread phil lemelin
On Wed, May 12, 2010 at 7:16 AM, phil lemelin phil.leme...@gmail.comwrote:

 I will try the patch mentionned in the bug report and report back.
 Many thanks.


 On Tue, May 11, 2010 at 4:00 PM, Chris Wilson ch...@chris-wilson.co.ukwrote:

 On Tue, 11 May 2010 14:58:35 -0400, phil lemelin phil.leme...@gmail.com
 wrote:
  Good evening list,
 
  I'm having a reproducible issue with the X when using vmg (
  http://magnifier.sourceforge.net/ ). It will systematically make the
 Xorg
  process use 100% cpu and basically locks the machine. I just start it,
 move
  it around and I hit the issue.

 Sounds like https://bugzilla.kernel.org/show_bug.cgi?id=15911

 --
 Chris Wilson, Intel Open Source Technology Centre



 Phil.


I downloaded the 2.6.32.12 kernel and patched it since the patch would'nt
work well with my 2.6.29.6 kernel and here is what I get after a couple of
minutes playing with the magnifier. I seem to be able to play longer before
experiencing the crash however.
I can provide the corresponding Xorg.0.log if it is relevant.

[r...@localhost ~]# /usr/local/bin/Xorg

X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32.12 i686
Current Operating System: Linux localhost 2.6.32.12 #4 SMP Wed May 12
10:12:55 EDT 2010 i686
Kernel command line:
Build Date: 12 May 2010  01:37:47PM

Current version of pixman: 0.15.20
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /usr/local/var/log/Xorg.0.log, Time: Wed May 12 13:44:57
2010
(==) Using config file: /etc/X11/xorg.conf
xf86TokenToOptinfo: table is NULL
xf86TokenToOptinfo: table is NULL
Setting master
expected keysym, got XF86TouchpadToggle: line 122 of inet
expected keysym, got XF86TouchpadToggle: line 122 of inet
intel_bufmgr_gem.c:713: Error mapping buffer 65452 (pixmap): Cannot allocate
memory .

Backtrace:
0: /usr/local/bin/Xorg (xorg_backtrace+0x3b) [0x80b035b]
1: /usr/local/bin/Xorg (0x8048000+0x60b75) [0x80a8b75]
2: (vdso) (__kernel_rt_sigreturn+0x0) [0xe40c]
3: /usr/local/lib/xorg/modules/libfb.so (fbCopyNtoN+0x1a5) [0xb7157b45]
4: /usr/local/lib/xorg/modules/drivers/intel_drv.so (0xb7232000+0x5fd02)
[0xb7291d02]
5: /usr/local/bin/Xorg (miCopyRegion+0x1d6) [0x81a1956]
6: /usr/local/bin/Xorg (miDoCopy+0x4a3) [0x81a1f33]
7: /usr/local/lib/xorg/modules/drivers/intel_drv.so (0xb7232000+0x5f568)
[0xb7291568]
8: /usr/local/bin/Xorg (0x8048000+0xc36c2) [0x810b6c2]
9: /usr/local/bin/Xorg (0x8048000+0x3a399) [0x8082399]
10: /usr/local/bin/Xorg (0x8048000+0x3c56f) [0x808456f]
11: /usr/local/bin/Xorg (0x8048000+0x19a95) [0x8061a95]
12: /lib/i686/libc.so.6 (__libc_start_main+0xe5) [0xb73606a5]
13: /usr/local/bin/Xorg (0x8048000+0x19651) [0x8061651]
Segmentation fault at address 0x

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.
Please also check the log file at /usr/local/var/log/Xorg.0.log for
additional information.

Dropping master
Aborted



Phil
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: getting device path or sysfs name of input device

2010-05-12 Thread Dan Nicholson
On Mon, May 10, 2010 at 03:07:04PM +1000, Peter Hutterer wrote:
 On Sun, May 09, 2010 at 09:50:47PM -0700, Alan Coopersmith wrote:
  On 5/9/2010 9:00 AM, John R. wrote:
  On 05/09/10 08:41, Tias wrote:
  
  [snip]
  
  I want to make the calibration permanent, and not just applied when the
  program is run.
  
  I am not an xorg developer so cannot assist with your technical questions.
  
  One of the other options you mention is adding calibration info to a
  xorg.conf.d file.  It share a common disadvantage with udev method in
  that it requires write access to files generally written to by root.
  
  xorg.conf.d will be far more portable than udev though, if you care
  about users of non-Linux kernels such as the BSD's or OpenSolaris.
 
 And we really don't recommend configuring X through udev. If udev rules are
 necessary, use them to tag devices only. The specific configuration then
 goes into the xorg.conf.
 
 Example I'm working on atm:
 Some touchpads have a less-than-ideal button positioning. This affects some
 specific models so you can use udev (or another config backend) to assign a
 touchpad_overlapping_buttons tag to those devices.
 
 Then in the xorg.conf, you can match this to whatever specific configuration
 you require for this kind of touchpads.

FWIW, I have a patchset to add PnP and USB ID matching in InputClass.
Basically, I want to be able to convert the existing synaptics and wacom
fdi files to InputClass, and they rely on PnP at least.

--
Dan
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg