Re: X11 XTEST Error when starting Xine

2010-01-07 Thread Jim Duda
On 01/04/2010 05:26 AM, Tom Cowell wrote:
> Hello
>
> I'm new here, and slightly afraid of making a fool of myself.
>
>> I have diffed the libraries between a working machine and all have
>> a binary match.  There must be some meta-data file outside the libraries
>> which return the results for XKeysymToKeycode ?
>
> Surely the answer to this question is in the xkb configuration files
> (in /usr/share/X11/xkb on my machine), and the corresponding layout
> choices in xorg.conf?

Hmm, I have these messages in the problem Xorg.0.log file ...

(EE) XKB: No components provided for device Virtual core keyboard
(WW) Couldn't load XKB keymap, falling back to pre-XKB keymap
(II) config/hal: Adding input device G-Tech CHINAUSB Wireless Mouse 
& KeyBoard V1.01
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: always reports 
core events
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Device: 
"/dev/input/event2"
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Found 9 mouse 
buttons
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Found x and y 
relative axes
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Found scroll 
wheel(s)
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Found keys
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Configuring as 
mouse
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Configuring as 
keyboard
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: YAxisMapping: 
buttons 4 and 5
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: 
EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: (accel) 
keeping acceleration scheme 1
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: (accel) filter 
chain progression: 2.00
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: (accel) filter 
stage 0: 20.00 ms
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: (accel) set 
acceleration profile 0
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: initialized 
for relative axes.
(II) config/hal: Adding input device G-Tech CHINAUSB Wireless Mouse 
& KeyBoard V1.01
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: always reports 
core events
(**) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Device: 
"/dev/input/event1"
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Found keys
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Configuring as 
keyboard
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Close
(II) UnloadModule: "evdev"
(II) G-Tech CHINAUSB Wireless Mouse & KeyBoard V1.01: Close
(II) UnloadModule: "evdev"

My xorg.conf looks like this:

Section "ServerLayout"
Identifier "X.org Configured"
Screen "Screen0" 0 0
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath "catalogue:/etc/X11/fontpath.d"
FontPath "built-ins"
EndSection

Section "Module"
Load  "dri"
Load  "extmod"
Load  "glx"
Load  "dbe"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver  "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
Option  "Protocol" "auto"
Option  "Device" "/dev/input/mice"
Option  "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
  Identifier "Monitor0"
  VendorName "Sharp"
  ModelName  "LC-42D62U"
  Option "dpms" "false"
  Option "ModeValidation" "NoMaxPClkCheck"
  Option "ExactModeTimingsDVI" "TRUE"
  Option "ModeValidation" "NoDFPNativeResolutionCheck"
  Modeline   "1920x1080_60-Sharp_D92U" 148.35 1920 2008 2052 
2200 1080 1085 1090 1125 +hsync +vsync

EndSection

Section "Device"
 ### Available Driver options are:-
 ### Values: : integer, : float, : "True"/"False",
 ### : "String", : " Hz/kHz/MHz"
 ### [arg]: arg optional
 #Option "SWcursor" # []
 #Option "HWcursor" # []
 #Option "NoAccel"  # []
 #Option "ShadowFB" # []
 #Option "Rotate"   # []
 #Option "VideoKey" # 
 #Option "FlatPanel"# []
 #Option "FPDither" # []
 #Option "FPScale"  # []
 #Option "FPTweak"  # 
 #Option "CBLocation"   # 
 #Opt

Re: X11 XTEST Error when starting Xine

2010-01-06 Thread Jim Duda
On 01/05/2010 02:57 AM, Daniel Stone wrote:
> On Mon, Jan 04, 2010 at 10:54:00PM -0500, Jim Duda wrote:
>> Thanks for the post Dan.
>>
>> I tried both of these, removing XKeysymDB and rebuilding libX11.
>> Unfortunately, neither of these worked.  I get the same errors.
>> The version I downloaded was more recent that the version which
>> comes with fedora 11.
>
> Weird. Could you attach the output from all of the below, for both
> working and broken?
> $ locale
> $ strace ./keycode
> $ xkbcomp -xkb :0 foo
> $ xmodmap -pk
>
> Cheers,
> Daniel

Daniel,

Wow, thanks for the help.  Much appreciated.  Here is the dump below.
xmodmap appears to be empty, that cannot be good.

Jim

lroom# locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
lroom# strace ./keycode
execve("./keycode", ["./keycode"], [/* 35 vars */]) = 0
brk(0)  = 0x804a000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=80761, ...}) = 0
mmap2(NULL, 80761, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fb8000
close(3)= 0
open("/usr/local/lib/libX11.so.6", O_RDONLY) = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20B\1\0004\0\0\0"..., 
512) = 512
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7fb7000
fstat64(3, {st_mode=S_IFREG|0755, st_size=11910834, ...}) = 0
mmap2(NULL, 1234036, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0xb7e89000
mmap2(0xb7fb3000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x129) = 0xb7fb3000
mmap2(0xb7fb6000, 1140, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fb6000
close(3)= 0
open("/usr/lib/libXtst.so.6", O_RDONLY) = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\16\0\0004\0\0\0"..., 512) 
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=19308, ...}) = 0
mmap2(NULL, 22096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0xb7e83000
mmap2(0xb7e88000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0xb7e88000
close(3)= 0
open("/lib/libc.so.6", O_RDONLY)= 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340k\1\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1795760, ...}) = 0
mmap2(NULL, 1505576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0xb7d13000
mmap2(0xb7e7d000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16a) = 0xb7e7d000
mmap2(0xb7e8, 10536, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e8
close(3)= 0
open("/usr/lib/libXext.so.6", O_RDONLY) = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200'\0\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=64492, ...}) = 0
mmap2(NULL, 63488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0xb7d03000
mmap2(0xb7d12000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7d12000
close(3)= 0
open("/usr/lib/libxcb.so.1", O_RDONLY)  = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pn\0\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=112676, ...}) = 0
mmap2(NULL, 111376, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0xb7ce7000
mmap2(0xb7d02000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b) = 0xb7d02000
close(3)= 0
open("/lib/libdl.so.2", O_RDONLY)   = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=18572, ...}) = 0
mmap2(NULL, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0xb7ce2000
mmap2(0xb7ce5000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7ce5000
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7ce1000
open("/usr/lib/libXau.so.6", O_RDONLY)  = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\t\0\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=8176, ...}) = 0
mmap2(NULL, 10992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0xb7cde000
mmap2(0xb7ce, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7ce
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7cdd000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7cdd6c0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only

Re: X11 XTEST Error when starting Xine

2010-01-04 Thread Daniel Stone
On Mon, Jan 04, 2010 at 10:54:00PM -0500, Jim Duda wrote:
> Thanks for the post Dan.
> 
> I tried both of these, removing XKeysymDB and rebuilding libX11.
> Unfortunately, neither of these worked.  I get the same errors.
> The version I downloaded was more recent that the version which
> comes with fedora 11.

Weird. Could you attach the output from all of the below, for both
working and broken?
$ locale
$ strace ./keycode
$ xkbcomp -xkb :0 foo
$ xmodmap -pk

Cheers,
Daniel


pgpygkCu0k9xM.pgp
Description: PGP signature
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: X11 XTEST Error when starting Xine

2010-01-04 Thread Jim Duda
On 01/04/2010 09:26 AM, Dan Nicholson wrote:
>
> Two things affect XKeysymToKeycode:
> 
> $includedir/X11/keysymdef.h (built into libX11 as a hash table)
> $datadir/X11/XKeysymDB (cached at runtime)
> 
> You could try moving XKeysymDB out of the way, or try building you're
> own Xlib for testing. Pull xproto (for the newest keysymdef.h) and
> libX11 and build them --prefix=$HOME (or somewhere else) making sure
> to set PKG_CONFIG_PATH=$HOME/lib/pkgconfig:$HOME/share/pkgconfig so
> that the new xproto is picked up. Then run your app with
> LD_LIBRARY_PATH=$HOME/lib and see if you still see errors.
> 
> --
> Dan

Thanks for the post Dan.

I tried both of these, removing XKeysymDB and rebuilding libX11.
Unfortunately, neither of these worked.  I get the same errors.
The version I downloaded was more recent that the version which
comes with fedora 11.


> ___
> xorg mailing list
> xorg@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg



___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X11 XTEST Error when starting Xine

2010-01-04 Thread Dan Nicholson
On Sun, Jan 3, 2010 at 2:04 PM, Jim Duda  wrote:
> On 01/02/2010 09:45 AM, Benjamin Close wrote:
>
>> I'd suggest you try reinstalling libXi and libX11
>> The XTest code has had changes to it caused by the update to the XInput
>> layer (libXi) which also may affect libX11.
>>
>> Cheers,
>>       Benjamin
>
> Thanks for the post.  I tried reinstalling all the libX libraries which
> were installed, using rpm -e --nodeps, then yum install each of the
> libraries.
>
> I have diffed the libraries between a working machine and all have
> a binary match.  There must be some meta-data file outside the libraries
> which return the results for XKeysymToKeycode ?

Two things affect XKeysymToKeycode:

$includedir/X11/keysymdef.h (built into libX11 as a hash table)
$datadir/X11/XKeysymDB (cached at runtime)

You could try moving XKeysymDB out of the way, or try building you're
own Xlib for testing. Pull xproto (for the newest keysymdef.h) and
libX11 and build them --prefix=$HOME (or somewhere else) making sure
to set PKG_CONFIG_PATH=$HOME/lib/pkgconfig:$HOME/share/pkgconfig so
that the new xproto is picked up. Then run your app with
LD_LIBRARY_PATH=$HOME/lib and see if you still see errors.

--
Dan
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: X11 XTEST Error when starting Xine

2010-01-04 Thread Tom Cowell
Hello

I'm new here, and slightly afraid of making a fool of myself.

> I have diffed the libraries between a working machine and all have
> a binary match.  There must be some meta-data file outside the libraries
> which return the results for XKeysymToKeycode ?

Surely the answer to this question is in the xkb configuration files
(in /usr/share/X11/xkb on my machine), and the corresponding layout
choices in xorg.conf?

Cheers
Tom
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X11 XTEST Error when starting Xine

2010-01-03 Thread Jim Duda
On 01/02/2010 09:45 AM, Benjamin Close wrote:

> I'd suggest you try reinstalling libXi and libX11
> The XTest code has had changes to it caused by the update to the XInput
> layer (libXi) which also may affect libX11.
> 
> Cheers,
>   Benjamin

Thanks for the post.  I tried reinstalling all the libX libraries which 
were installed, using rpm -e --nodeps, then yum install each of the 
libraries.

I have diffed the libraries between a working machine and all have
a binary match.  There must be some meta-data file outside the libraries
which return the results for XKeysymToKeycode ?

Thanks,

Jim


___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X11 XTEST Error when starting Xine

2010-01-02 Thread Benjamin Close
On 31/12/09 05:01, Jim Duda wrote:
> On 12/29/2009 06:49 AM, Jim Duda wrote:
>
>> Hello,
>>
>> This is a repeat of an older post.  My reported problem has returned.
>> I never really understood how I accidentally resolve it.
>>
>> I'm running an up-to-date installation of fedora 11.
>>
>> xine-lib.i586   1.1.16.3-2.fc11
>> xine-lib-extras.i5861.1.16.3-2.fc11
>> xine-lib-extras-freeworld.i586  1.1.16.3-1.fc11
>> xine-lib-pulseaudio.i5861.1.16.3-2.fc11
>> xine-plugin.i5861.0.2-2.fc11
>> xine-ui.i5860.99.5-16.fc11
>>
>> I'm getting this error when attempting to play a dvd://
>>
>> Can anyone explain how to debug what xine is looking for?
>>
>> xine dvd:// --verbose
>>
>> X Error of failed request:  BadValue (integer parameter out of range for
>> operation)
>>   Major opcode of failed request:  144 (XTEST)
>>   Minor opcode of failed request:  2 (X_XTestFakeInput)
>>   Value in failed request:  0x0
>>   Serial number of failed request:  2229
>>   Current serial number in output stream:  2231
>>
>>  
> I have some more information to add.  I found the snipet
> of code below while researching this issue.  If I compile
> this code on two different fedora 11 installations, I get
> different results.
>
> On the machine I'm having trouble with I get these results:
>
> lroom>  ./keycode
> keycode: 0
> keycode: 0
> keycode: 0
>
> On working machines I get this results:
>
> jim>  ./keycode
> keycode: 111
> keycode: 50
> keycode: 37
>
> So clearly I have an issue with one of the X libraries.
> Can anyone tell me library could be this issue?
> I have reinstalled libXtst, based on a guess.
>
> I've compared /usr/share/X11 between the good and bad
> machines.  I don't see anything obviously different or
> missing.
>
> Any ideas?
>
> Thanks,
>
> Jim
>
> Here is the code:
>
> #include
> #include
> #include
> #include
>
> #define PRESS_UP 0
> #define PRESS_DOWN 1
> #define PRESS_LEFT 2
> #define PRESS_RIGHT 3
> #define PRESS_ENTER 4
> #define PRESS_ESC 5
> #define PRESS_HOME 6
> #define PRESS_SHIFT_L 7
> #define PRESS_CTL_L 8
>
> Display *display;
> unsigned int keycode;
>
> int press(int key) {
>
>display = XOpenDisplay(NULL);
>
>if (key == PRESS_UP)
>  keycode = XKeysymToKeycode(display, XK_Up);
>else if(key == PRESS_DOWN)
>  keycode = XKeysymToKeycode(display, XK_Down);
>else if(key == PRESS_LEFT)
>  keycode = XKeysymToKeycode(display, XK_Left);
>else if(key == PRESS_RIGHT)
>  keycode = XKeysymToKeycode(display, XK_Right);
>else if(key == PRESS_ENTER)
>  keycode = XKeysymToKeycode(display, XK_Return);
>else if(key == PRESS_ESC)
>  keycode = XKeysymToKeycode(display, XK_Escape);
>else if(key == PRESS_HOME)
>  keycode = XKeysymToKeycode(display, XK_Home);
>else if(key == PRESS_SHIFT_L)
>  keycode = XKeysymToKeycode(display, XK_Shift_L);
>else if(key == PRESS_CTL_L)
>  keycode = XKeysymToKeycode(display, XK_Control_L);
>
>printf ("keycode: %d\n", keycode);
>
>XTestFakeKeyEvent(display, keycode, True, 0);
>XTestFakeKeyEvent(display, keycode, False, 0);
>XFlush(display);
>
>return 0;
>
> }
>

I'd suggest you try reinstalling libXi and libX11
The XTest code has had changes to it caused by the update to the XInput 
layer (libXi) which also may affect libX11.

Cheers,
 Benjamin
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X11 XTEST Error when starting Xine

2009-12-30 Thread Jim Duda
On 12/29/2009 06:49 AM, Jim Duda wrote:
> Hello,
> 
> This is a repeat of an older post.  My reported problem has returned.
> I never really understood how I accidentally resolve it.
> 
> I'm running an up-to-date installation of fedora 11.
> 
> xine-lib.i586   1.1.16.3-2.fc11
> xine-lib-extras.i5861.1.16.3-2.fc11
> xine-lib-extras-freeworld.i586  1.1.16.3-1.fc11
> xine-lib-pulseaudio.i5861.1.16.3-2.fc11
> xine-plugin.i5861.0.2-2.fc11
> xine-ui.i5860.99.5-16.fc11
> 
> I'm getting this error when attempting to play a dvd://
> 
> Can anyone explain how to debug what xine is looking for?
> 
> xine dvd:// --verbose
>
> X Error of failed request:  BadValue (integer parameter out of range for
> operation)
>  Major opcode of failed request:  144 (XTEST)
>  Minor opcode of failed request:  2 (X_XTestFakeInput)
>  Value in failed request:  0x0
>  Serial number of failed request:  2229
>  Current serial number in output stream:  2231
> 

I have some more information to add.  I found the snipet
of code below while researching this issue.  If I compile
this code on two different fedora 11 installations, I get
different results.  

On the machine I'm having trouble with I get these results:

lroom> ./keycode 
keycode: 0
keycode: 0
keycode: 0

On working machines I get this results:

jim> ./keycode 
keycode: 111
keycode: 50
keycode: 37

So clearly I have an issue with one of the X libraries.
Can anyone tell me library could be this issue?
I have reinstalled libXtst, based on a guess.

I've compared /usr/share/X11 between the good and bad
machines.  I don't see anything obviously different or
missing.

Any ideas?

Thanks,

Jim

Here is the code:

#include 
#include 
#include 
#include 

#define PRESS_UP 0
#define PRESS_DOWN 1
#define PRESS_LEFT 2
#define PRESS_RIGHT 3
#define PRESS_ENTER 4
#define PRESS_ESC 5
#define PRESS_HOME 6
#define PRESS_SHIFT_L 7
#define PRESS_CTL_L 8

Display *display;
unsigned int keycode;

int press(int key) {

  display = XOpenDisplay(NULL);

  if (key == PRESS_UP)
keycode = XKeysymToKeycode(display, XK_Up);
  else if(key == PRESS_DOWN)
keycode = XKeysymToKeycode(display, XK_Down);
  else if(key == PRESS_LEFT)
keycode = XKeysymToKeycode(display, XK_Left);
  else if(key == PRESS_RIGHT)
keycode = XKeysymToKeycode(display, XK_Right);
  else if(key == PRESS_ENTER)
keycode = XKeysymToKeycode(display, XK_Return);
  else if(key == PRESS_ESC)
keycode = XKeysymToKeycode(display, XK_Escape);
  else if(key == PRESS_HOME)
keycode = XKeysymToKeycode(display, XK_Home);
  else if(key == PRESS_SHIFT_L)
keycode = XKeysymToKeycode(display, XK_Shift_L);
  else if(key == PRESS_CTL_L)
keycode = XKeysymToKeycode(display, XK_Control_L);

  printf ("keycode: %d\n", keycode);

  XTestFakeKeyEvent(display, keycode, True, 0);
  XTestFakeKeyEvent(display, keycode, False, 0);
  XFlush(display);

  return 0;

}

> 
> main: probing  video output plugin
> main: probing  video output plugin
> video_out_dxr3: Failed to open control device /dev/em8300-0 (No such file or
> directory)
> main: probing  video output plugin
> video_out_xv: using Xv port 355 from adaptor NV17 Video Texture for hardware
> colour space conversion and scaling.
> video_out_xv: this adaptor supports the yuy2 format.
> video_out_xv: this adaptor supports the yv12 format.
> main: probing  audio output plugin
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> video_out_xv: VO_PROP_ASPECT_RATIO(0)
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> X Error of failed request:  BadValue (integer parameter out of range for
> operation)
>  Major opcode of failed request:  144 (XTEST)
>  Minor opcode of failed request:  2 (X_XTestFakeInput)
>  Value in failed request:  0x0
>  Serial number of failed request:  2229
>  Current serial number in output stream:  2231
> 
> 
> I used Xscope to dump the debug information (see below).
> 
> Can anyone help me decode the output?
> 
> Is this a problem with Xine or Xorg?
> 
> Thanks,
> 
> Jim
> 
> X.Org X Server 1.6.3.901 (1.6.4 RC 1)
> Release Date: 2009-8-25
> X Protocol Version 11, Revision 0
> Build Operating System: Linux 2.6.18-164.el5 i686
> Current Operating System: Linux lroom 2.6.30.5-tftp #2 PREEMPT Sun Sep 6 
> 20:27:56 EDT 2009 i686
> Kernel command line: rw root=/dev/ram0 initrd=initramfs.gz 
> BOOT_IMAGE=bzImage-2.6.30.5-tftp auto
> Build Date: 09 September 2009  11:25:24AM
> Build ID: xorg-x11-server 1.6.4-0.1.fc11
>   Before reporting problems, check http://wiki.x.org
>   to make sure that you have the latest version.
> 
> 
>REQUEST: XTEST-Request
>   

X11 XTEST Error when starting Xine

2009-12-29 Thread Jim Duda
Hello,

This is a repeat of an older post.  My reported problem has returned.
I never really understood how I accidentally resolve it.

I'm running an up-to-date installation of fedora 11.

xine-lib.i586   1.1.16.3-2.fc11
xine-lib-extras.i5861.1.16.3-2.fc11
xine-lib-extras-freeworld.i586  1.1.16.3-1.fc11
xine-lib-pulseaudio.i5861.1.16.3-2.fc11
xine-plugin.i5861.0.2-2.fc11
xine-ui.i5860.99.5-16.fc11

I'm getting this error when attempting to play a dvd://

Can anyone explain how to debug what xine is looking for?

xine dvd:// --verbose

main: probing  video output plugin
main: probing  video output plugin
video_out_dxr3: Failed to open control device /dev/em8300-0 (No such file or 
directory)
main: probing  video output plugin
video_out_xv: using Xv port 355 from adaptor NV17 Video Texture for hardware 
colour space conversion and scaling.
video_out_xv: this adaptor supports the yuy2 format.
video_out_xv: this adaptor supports the yv12 format.
main: probing  audio output plugin
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
video_out_xv: VO_PROP_ASPECT_RATIO(0)
osd: can't find out current locale character set
osd: can't find out current locale character set
X Error of failed request:  BadValue (integer parameter out of range for 
operation)
Major opcode of failed request:  144 (XTEST)
Minor opcode of failed request:  2 (X_XTestFakeInput)
Value in failed request:  0x0
Serial number of failed request:  2229
Current serial number in output stream:  2231


I used Xscope to dump the debug information (see below).

Can anyone help me decode the output?

Is this a problem with Xine or Xorg?

Thanks,

Jim

X.Org X Server 1.6.3.901 (1.6.4 RC 1)
Release Date: 2009-8-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-164.el5 i686 
Current Operating System: Linux lroom 2.6.30.5-tftp #2 PREEMPT Sun Sep 6 
20:27:56 EDT 2009 i686
Kernel command line: rw root=/dev/ram0 initrd=initramfs.gz 
BOOT_IMAGE=bzImage-2.6.30.5-tftp auto
Build Date: 09 September 2009  11:25:24AM
Build ID: xorg-x11-server 1.6.4-0.1.fc11 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.


 REQUEST: XTEST-Request
 sequence number: 08b6
minor opcode: 02
  request length: 0009
data: (8)
0063---
---
00600118---
00020036---
0060011b---
0002013c---
0060011c---
0001032b---
 REQUEST: GetInputFocus
 sequence number: 08b7
  request length: 0001
 2.70:   448 bytes <-- X11 Server 2
 ..EVENT: DestroyNotify
 sequence number: 08b4
   event: WIN 00600118
  window: WIN 00600118
 ..EVENT: PropertyNotify
 sequence number: 08b4
  window: WIN 00600118
atom: 
time: TIM 000343d1
   state: Deleted
 ..EVENT: PropertyNotify
 sequence number: 08b4
  window: WIN 00600118
atom: 
time: TIM 000343d1
   state: Deleted
 ..EVENT: PropertyNotify
 sequence number: 08b4
  window: WIN 00600118
atom: ATM 00f2
time: TIM 000343d1
   state: Deleted
 ..EVENT: PropertyNotify
 sequence number: 08b4
  window: WIN 00600118
atom: ATM 0126
   

Re: X11 XTEST Error when starting Xine

2009-09-27 Thread Peter Hutterer
On Sun, Sep 27, 2009 at 07:54:45PM -0400, Jim Duda wrote:
> Hello,
> 
> I'm running an up-to-date installation of fedora 11.
> 
> xine-lib.i586   1.1.16.3-2.fc11
> xine-lib-extras.i5861.1.16.3-2.fc11
> xine-lib-extras-freeworld.i586  1.1.16.3-1.fc11
> xine-lib-pulseaudio.i5861.1.16.3-2.fc11
> xine-plugin.i5861.0.2-2.fc11
> xine-ui.i5860.99.5-16.fc11
> 
> I'm getting this error when attempting to play a dvd://
> 
> Can anyone explain how to debug what xine is looking for?
> 
> xine dvd:// --verbose
> 
> main: probing  video output plugin
> main: probing  video output plugin
> video_out_dxr3: Failed to open control device /dev/em8300-0 (No such file or 
> directory)
> main: probing  video output plugin
> video_out_xv: using Xv port 355 from adaptor NV17 Video Texture for hardware 
> colour space conversion and scaling.
> video_out_xv: this adaptor supports the yuy2 format.
> video_out_xv: this adaptor supports the yv12 format.
> main: probing  audio output plugin
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> video_out_xv: VO_PROP_ASPECT_RATIO(0)
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> X Error of failed request:  BadValue (integer parameter out of range for 
> operation)
> Major opcode of failed request:  144 (XTEST)
> Minor opcode of failed request:  2 (X_XTestFakeInput)
> Value in failed request:  0x0
> Serial number of failed request:  2229
> Current serial number in output stream:  2231
> 
> I appreciate any advice anyone can offer.

xtest seems to need to send an input event (XTestFakeInput does exactly
that) and one of the values is outside of the permitted scope. This could be
e.g. a button event for button 0, or simply an incorrect device number.
Hard to say without seeing the actual request info, I recommend intercepting
the data with xscope or something to see what the actual request wants to
do.
Or looking at the source, that might work too.

Cheers,
  Peter
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


X11 XTEST Error when starting Xine

2009-09-27 Thread Jim Duda
Hello,

I'm running an up-to-date installation of fedora 11.

xine-lib.i586   1.1.16.3-2.fc11
xine-lib-extras.i5861.1.16.3-2.fc11
xine-lib-extras-freeworld.i586  1.1.16.3-1.fc11
xine-lib-pulseaudio.i5861.1.16.3-2.fc11
xine-plugin.i5861.0.2-2.fc11
xine-ui.i5860.99.5-16.fc11

I'm getting this error when attempting to play a dvd://

Can anyone explain how to debug what xine is looking for?

xine dvd:// --verbose

main: probing  video output plugin
main: probing  video output plugin
video_out_dxr3: Failed to open control device /dev/em8300-0 (No such file or 
directory)
main: probing  video output plugin
video_out_xv: using Xv port 355 from adaptor NV17 Video Texture for hardware 
colour space conversion and scaling.
video_out_xv: this adaptor supports the yuy2 format.
video_out_xv: this adaptor supports the yv12 format.
main: probing  audio output plugin
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
video_out_xv: VO_PROP_ASPECT_RATIO(0)
osd: can't find out current locale character set
osd: can't find out current locale character set
X Error of failed request:  BadValue (integer parameter out of range for 
operation)
Major opcode of failed request:  144 (XTEST)
Minor opcode of failed request:  2 (X_XTestFakeInput)
Value in failed request:  0x0
Serial number of failed request:  2229
Current serial number in output stream:  2231

I appreciate any advice anyone can offer.

Thanks,

Jim

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg