Bug#653252: an application triggers a segfault in xserver when working with 3D

2011-12-28 Thread Stanislav Maslovski
On Mon, Dec 26, 2011 at 12:35:51PM +0100, Julien Cristau wrote:
> On Mon, Dec 26, 2011 at 03:58:20 +0300, Stanislav Maslovski wrote:
> 
> > Backtrace:
> > [   338.144] 0: X (xorg_backtrace+0x26) [0x7f99b9cde9b6]
> > [   338.144] 1: X (0x7f99b9b5a000+0x188619) [0x7f99b9ce2619]
> > [   338.144] 2: /lib/x86_64-linux-gnu/libpthread.so.0 
> > (0x7f99b8e83000+0xf030) [0x7f99b8e92030]
> > [   338.144] 3: /usr/lib/x86_64-linux-gnu/dri/i965_dri.so 
> > (0x7f99b4b7+0x4b99c) [0x7f99b4bbb99c]
> > [   338.144] 4: /usr/lib/xorg/modules/extensions/libglx.so 
> > (0x7f99b65fc000+0x41951) [0x7f99b663d951]
> > [   338.144] 5: /usr/lib/xorg/modules/extensions/libglx.so 
> > (0x7f99b65fc000+0x34da8) [0x7f99b6630da8]
> > [   338.144] 6: /usr/lib/xorg/modules/extensions/libglx.so 
> > (0x7f99b65fc000+0x37a09) [0x7f99b6633a09]
> > [   338.144] 7: X (0x7f99b9b5a000+0x51fc9) [0x7f99b9babfc9]
> > [   338.144] 8: X (0x7f99b9b5a000+0x4122a) [0x7f99b9b9b22a]
> > [   338.144] 9: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xfd) 
> > [0x7f99b7baeead]
> > [   338.144] 10: X (0x7f99b9b5a000+0x4151d) [0x7f99b9b9b51d]
> > [   338.144] Segmentation fault at address 0x1665c
> > [   338.144] 
> > Fatal server error:
> > [   338.144] Caught signal 11 (Segmentation fault). Server aborting
> 
> Any chance you could get a backtrace from gdb? See
> http://pkg-xorg.alioth.debian.org/howto/use-gdb.html for some
> instructions.  Make sure to install xserver-xorg-core-dbg,
> xserver-xorg-video-intel-dbg and libgl1-mesa-dri-dbg.

I was able to get a core dump. Here goes the gdb log with a
backtrace. The segfault happens always at the address 0x1665c.

(gdb) bt full
#0  0x7f2bf20a2405 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f2bf20a5680 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7f2bf41c573e in OsAbort () at ../../os/utils.c:1230
No locals.
#3  0x7f2bf40c82ec in ddxGiveUp (error=EXIT_ERR_ABORT)
at ../../../../hw/xfree86/common/xf86Init.c:936
i = 
#4  0x7f2bf41ca5f2 in AbortServer () at ../../os/log.c:416
No locals.
#5  0x7f2bf41ca7f5 in FatalError (f=0x7f2bf41f06b0 "Caught signal %d (%s). 
Server aborting\n")
at ../../os/log.c:547
args = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 
0x7fff23471160, 
reg_save_area = 0x7fff234710a0}}
beenhere = 1
#6  0x7f2bf41c366e in OsSigHandler (sip=, signo=11, 
unused=)
at ../../os/osinit.c:146
No locals.
#7  OsSigHandler (signo=11, sip=, unused=) at 
../../os/osinit.c:108
No locals.
#8  
No symbol table info available.
#9  intelDRI2Flush (drawable=0x7f2bfaa64aa0) at intel_screen.c:111
ctx = 
#10 0x7f2bf0b1d951 in __glXDRIdrawableSwapBuffers (client=0x7f2bf531f580, 
drawable=0x7f2bf767c500) at ../../glx/glxdri2.c:215
priv = 0x7f2bf767c500
screen = 0x7f2bf4f554c0
unused = 139826774013624
#11 0x7f2bf0b10da8 in __glXDisp_SwapBuffers (cl=0x7f2bf531f6b8, 
pc=)
at ../../glx/glxcmds.c:1583
client = 0x7f2bf531f580
req = 
tag = 
drawId = 20973401
glxc = 
pGlxDraw = 
error = 32555
#12 0x7f2bf0b13a09 in __glXDispatch (client=) at 
../../glx/glxext.c:547
rendering = 
stuff = 0x7f2bf70f2630
opcode = 
proc = 0x7f2bf0b10cc0 <__glXDisp_SwapBuffers>
cl = 0x7f2bf531f6b8
retval = 
#13 0x7f2bf408cfc9 in Dispatch () at ../../dix/dispatch.c:432
clientReady = 0x7f2bf5288c50
result = 
client = 0x7f2bf531f580
nready = 0
icheck = 0x7f2bf4441af0
start_tick = 60
#14 0x7f2bf407c22a in main (argc=8, argv=, envp=)
at ../../dix/main.c:287
i = 
alwaysCheckForInput = {0, 1}
(gdb) disas
Dump of assembler code for function raise:
   0x7f2bf20a23d0 <+0>: mov%fs:0x2d4,%eax
   0x7f2bf20a23d8 <+8>: mov%fs:0x2d0,%esi
   0x7f2bf20a23e0 <+16>:test   %esi,%esi
   0x7f2bf20a23e2 <+18>:jne0x7f2bf20a2410 
   0x7f2bf20a23e4 <+20>:mov$0xba,%eax
   0x7f2bf20a23e9 <+25>:syscall 
   0x7f2bf20a23eb <+27>:mov%eax,%esi
   0x7f2bf20a23ed <+29>:mov%eax,%fs:0x2d0
   0x7f2bf20a23f5 <+37>:movslq %edi,%rdx
   0x7f2bf20a23f8 <+40>:movslq %esi,%rsi
   0x7f2bf20a23fb <+43>:movslq %eax,%rdi
   0x7f2bf20a23fe <+46>:mov$0xea,%eax
   0x7f2bf20a2403 <+51>:syscall 
=> 0x7f2bf20a2405 <+53>:cmp$0xf000,%rax
   0x7f2bf20a240b <+59>:ja 0x7f2bf20a2422 
   0x7f2bf20a240d <+61>:repz retq 
   0x7f2bf20a240f <+63>:nop
   0x7f2bf20

Bug#653252: an application triggers a segfault in xserver when working with 3D

2011-12-26 Thread Stanislav Maslovski
On Mon, Dec 26, 2011 at 12:35:51PM +0100, Julien Cristau wrote:
> On Mon, Dec 26, 2011 at 03:58:20 +0300, Stanislav Maslovski wrote:
> 
> > Backtrace:
> > [   338.144] 0: X (xorg_backtrace+0x26) [0x7f99b9cde9b6]
> > [   338.144] 1: X (0x7f99b9b5a000+0x188619) [0x7f99b9ce2619]
> > [   338.144] 2: /lib/x86_64-linux-gnu/libpthread.so.0 
> > (0x7f99b8e83000+0xf030) [0x7f99b8e92030]
> > [   338.144] 3: /usr/lib/x86_64-linux-gnu/dri/i965_dri.so 
> > (0x7f99b4b7+0x4b99c) [0x7f99b4bbb99c]
> > [   338.144] 4: /usr/lib/xorg/modules/extensions/libglx.so 
> > (0x7f99b65fc000+0x41951) [0x7f99b663d951]
> > [   338.144] 5: /usr/lib/xorg/modules/extensions/libglx.so 
> > (0x7f99b65fc000+0x34da8) [0x7f99b6630da8]
> > [   338.144] 6: /usr/lib/xorg/modules/extensions/libglx.so 
> > (0x7f99b65fc000+0x37a09) [0x7f99b6633a09]
> > [   338.144] 7: X (0x7f99b9b5a000+0x51fc9) [0x7f99b9babfc9]
> > [   338.144] 8: X (0x7f99b9b5a000+0x4122a) [0x7f99b9b9b22a]
> > [   338.144] 9: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xfd) 
> > [0x7f99b7baeead]
> > [   338.144] 10: X (0x7f99b9b5a000+0x4151d) [0x7f99b9b9b51d]
> > [   338.144] Segmentation fault at address 0x1665c
> > [   338.144] 
> > Fatal server error:
> > [   338.144] Caught signal 11 (Segmentation fault). Server aborting
> 
> Any chance you could get a backtrace from gdb? See
> http://pkg-xorg.alioth.debian.org/howto/use-gdb.html for some
> instructions.  Make sure to install xserver-xorg-core-dbg,
> xserver-xorg-video-intel-dbg and libgl1-mesa-dri-dbg.

I tried getting a core dump as explained there with adding -core
option to the X command line, but with no result (no core dump file
produced). I also played with ulimits (if that is related) in
/etc/security/limits.conf, and sysctl fs.suid_dumpable but again,
without any result.

Attaching gdb to a running X instance from a vt resulted in a lock of
the console, so that I had to hard reset the machine.

When I have time, I may try running gdb over ssh, but that requires
some more effort.

-- 
Stanislav



-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111227013108.GA3666@kaiba.homelan



Bug#580946: latest upgrade broke scrolling on Linux i386 too

2010-05-13 Thread Stanislav Maslovski
Package: xterm
Severity: normal

I confirm that I see this strange behaviour with scrolling when I run
aptitude update. It produces a long output which quickly fills up all
the window and ... the text does not autoscroll. I can, however,
scroll it manually.

I do not have any specific scroll lock settings, just those that are
provided by default. I can see these lines in my xorg log:

(II) XINPUT: Adding extended input device "Broadcom Corp" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "us,ru"
(**) Option "xkb_variant" ","
(**) Option "xkb_options" 
"grp:caps_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"

I am on a standard i386 setup (with sid).

-- System Information:
Debian Release: squeeze/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'oldstable'), (500, 'unstable'), 
(500, 'testing'), (500, 'stable'), (100, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-minimal (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xterm depends on:
ii  libc6 2.10.2-8   Embedded GNU C Library: Shared lib
ii  libfontconfig12.8.0-2.1  generic font configuration library
ii  libice6   2:1.0.6-1  X11 Inter-Client Exchange library
ii  libncurses5   5.7+20100313-2 shared libraries for terminal hand
ii  libutempter0  1.1.5-3A privileged helper for utmp/wtmp 
ii  libx11-6  2:1.3.3-3  X11 client-side library
ii  libxaw7   2:1.0.7-1  X11 Athena Widget library
ii  libxft2   2.1.14-2   FreeType-based font drawing librar
ii  libxmu6   2:1.0.5-1  X11 miscellaneous utility library
ii  libxt61:1.0.7-1  X11 toolkit intrinsics library
ii  xbitmaps  1.1.0-1Base X bitmaps

Versions of packages xterm recommends:
ii  x11-utils 7.5+3  X11 utilities
ii  xutils1:7.5+6X Window System utility programs m

Versions of packages xterm suggests:
pn  xfonts-cyrillic(no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20100513194152.19551.38025.report...@kaiba.homelan



Bug#579217: PageUp and PageDn send noise events

2010-04-27 Thread Stanislav Maslovski
On Tue, 2010-04-27 at 13:34 +0200, Julien Cristau wrote:
> On Tue, Apr 27, 2010 at 12:15:33 +0100, Stanislav Maslovski wrote:
> > So, basically, you admit that the bug is there, you admit that you are
> > not going to fix it - then be honest and mark it "wontfix". Closing
> > valid bugs is just asking for another similar bug submitted later.
> > 
> No, I'm telling you your configuration is broken, and this bug is
> invalid.  Why do you keep arguing about that?  What's so hard about
> fixing your config?

Well, of course I understand that you are telling me exactly this. I
simply fail to see how your advice of not using a buggy subsystem
actually solves a bug in this subsystem, as simple as that. 




--
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1272368410.5741.22.ca...@magi.co.it.pt



Bug#579217: PageUp and PageDn send noise events

2010-04-26 Thread Stanislav Maslovski
On Mon, Apr 26, 2010 at 12:59:21PM +0200, Julien Cristau wrote:
> On Mon, Apr 26, 2010 at 13:49:03 +0400, Stanislav Maslovski wrote:
> 
> > Package: xserver-xorg-input-kbd
> > Version: 1:1.4.0-1
> > Severity: normal
> > 
> > With the configuration given below the PageUp and PageDn keys on my
> > laptop send strange noise. I also give the output of xev (and also
> > the X log). If I disable autodevices (the commented out option in
> > my xorg.conf) then the problem disappears.
> > 
> can you run evtest on the device file corresponding to your keyboard
> (/dev/input/eventX), and send its output when you press those keys?
> Maybe try pressing those keys when running 'xinput test-xi2' as well, to
> see where the spurious events come from.


As far as I can tell, my keyboard is on /dev/input/event0. There is
also /dev/input/event12 which looks like a keyboard but does not
produce any events. It is probably some kind if "ghost" of event0
(physically, I have a just a single keyboard). In evtest I see normal
events on event0:

- 8< -

Event: time 1272315784.815478, -- Report Sync 
Event: time 1272315792.297281, type 4 (Misc), code 4 (ScanCode), value
d1
Event: time 1272315792.297307, type 1 (Key), code 109 (PageDown),
value 1
Event: time 1272315792.297312, -- Report Sync 
Event: time 1272315792.377293, type 4 (Misc), code 4 (ScanCode), value
d1
Event: time 1272315792.377308, type 1 (Key), code 109 (PageDown),
value 0
Event: time 1272315792.377311, -- Report Sync 
Event: time 1272315795.701759, type 4 (Misc), code 4 (ScanCode), value
d1
Event: time 1272315795.701784, type 1 (Key), code 109 (PageDown),
value 1
Event: time 1272315795.701789, -- Report Sync 
Event: time 1272315795.794512, type 4 (Misc), code 4 (ScanCode), value
d1
Event: time 1272315795.794528, type 1 (Key), code 109 (PageDown),
value 0
Event: time 1272315795.794531, -- Report Sync 
Event: time 1272315800.050752, type 4 (Misc), code 4 (ScanCode), value
c9
Event: time 1272315800.050779, type 1 (Key), code 104 (PageUp), value 1
Event: time 1272315800.050783, -- Report Sync 
Event: time 1272315800.147690, type 4 (Misc), code 4 (ScanCode), value
c9
Event: time 1272315800.147717, type 1 (Key), code 104 (PageUp), value 0
Event: time 1272315800.147721, -- Report Sync 
Event: time 1272315800.951335, type 4 (Misc), code 4 (ScanCode), value
c9
Event: time 1272315800.951357, type 1 (Key), code 104 (PageUp), value 1
Event: time 1272315800.951361, -- Report Sync 
Event: time 1272315801.059013, type 4 (Misc), code 4 (ScanCode), value
c9
Event: time 1272315801.059040, type 1 (Key), code 104 (PageUp), value 0
Event: time 1272315801.059044, -- Report Sync 

- >8 -

The output of xinput test-xi2 is attached (it is quite long). I did
the following: started it so that the displayed small window got the
focus and then pressed PageDn twice and PageUp twice and then
repeated. The log was truncated at the end of this sequence.

Hope that helps.

-- 
Stanislav


xtest.gz
Description: GNU Zip compressed data


Bug#579217: PageUp and PageDn send noise events

2010-04-26 Thread Stanislav Maslovski
Package: xserver-xorg-input-kbd
Version: 1:1.4.0-1
Severity: normal

With the configuration given below the PageUp and PageDn keys on my
laptop send strange noise. I also give the output of xev (and also
the X log). If I disable autodevices (the commented out option in
my xorg.conf) then the problem disappears.

 xev output =

/*** pressing page down ***/

KeyPress event, serial 33, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9868325, (75,102), root:(114,159),
state 0x0, keycode 117 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 33, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 33, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9868325, (75,102), root:(114,159),
state 0x0, keycode 105 (keysym 0xff56, Next), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 35, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyRelease event, serial 35, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9868473, (75,102), root:(114,159),
state 0x0, keycode 117 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 35, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyRelease event, serial 35, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9868473, (75,102), root:(114,159),
state 0x0, keycode 105 (keysym 0xff56, Next), same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 37, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 37, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9869294, (75,102), root:(114,159),
state 0x0, keycode 117 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 37, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 37, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9869294, (75,102), root:(114,159),
state 0x0, keycode 105 (keysym 0xff56, Next), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 39, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyRelease event, serial 39, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9869491, (75,102), root:(114,159),
state 0x0, keycode 117 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 39, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyRelease event, serial 39, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9869491, (75,102), root:(114,159),
state 0x0, keycode 105 (keysym 0xff56, Next), same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

/*** pressing page up ***/

MappingNotify event, serial 93, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 93, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9874605, (75,102), root:(114,159),
state 0x0, keycode 112 (keysym 0xffaf, KP_Divide), same_screen YES,
XLookupString gives 1 bytes: (2f) "/"
XmbLookupString gives 1 bytes: (2f) "/"
XFilterEvent returns: False

MappingNotify event, serial 93, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 93, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9874605, (75,102), root:(114,159),
state 0x0, keycode 99 (keysym 0xff55, Prior), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 95, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyRelease event, serial 95, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9874663, (75,102), root:(114,159),
state 0x0, keycode 112 (keysym 0xffaf, KP_Divide), same_screen YES,
XLookupString gives 1 bytes: (2f) "/"
XFilterEvent returns: False

MappingNotify event, serial 95, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyRelease event, serial 95, synthetic NO, window 0x1e1,
root 0x142, subw 0x0, time 9874663, (75,102), root:(114,159),
state 0x0, keycode 99 (keysym 0xff55, Prior), same_screen YES,
XLookupString gives 0 bytes: 
  

Bug#579017: autodetection fails when booting with 64-bit kernel on 32-bit userland

2010-04-24 Thread Stanislav Maslovski
Package: xserver-xorg-input-synaptics
Version: 1.2.2-2
Severity: normal

Without giving the explicit options (commented out in my xorg.conf
below) the touchpad gets configured in a mouse-emulation mode (no
scrolling, etc.) when I boot with a 64-bit kernel on a 32-bit
userland.

-- Package-specific info:
/var/lib/x11/X.roster does not exist.

/var/lib/x11/X.md5sum does not exist.

X server symlink status:
lrwxrwxrwx 1 root root 13 Oct 14  2008 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 1725368 Apr 19 22:17 /usr/bin/Xorg

/var/lib/x11/xorg.conf.roster does not exist.

VGA-compatible devices on PCI bus:
01:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8400M GS] 
(rev a1)

/var/lib/x11/xorg.conf.md5sum does not exist.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 1855 Apr 24 15:15 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Module"
SubSection "extmod"
Option  "omit XFree86-DGA"
EndSubSection
Load "v4l"
#   Load "synaptics"
EndSection

Section "Extensions"
Option  "Composite" "Enable"
EndSection

#Section "InputDevice"
#   Identifier "DefaultMouse"
#   Driver "synaptics"
#   Option "AutoServerLayout" "On"
#   Option "SendCoreEvents"   "On"
#EndSection

Section "Device"
Identifier  "GeForce 8400M GS"
Driver  "nvidia"
Option  "NvAGP" "1"
Option  "NoLogo" "On"
Option  "HWCursor" "On"
Option  "CursorShadow" "On"
Option  "CursorShadowAlpha" "32"
Option  "CursorShadowXOffset" "2"
Option  "CursorShadowYOffset" "1"
Option  "UseEvents" "On"
Option  "RenderAccel" "On"
Option  "BackingStore" "On"
Option  "DamageEvents" "On"
Option  "OnDemandVBlankInterrupts" "On"
EndSection

Section "Screen"
Identifier  "Default Screen"
Device  "GeForce 8400M GS"
Monitor "Default Monitor"
Option  "AddARGBGLXVisuals" "true"
DefaultDepth  24
SubSection  "Display"
Depth 16
Modes"1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection  "Display"
Depth 24
Modes"1280x800" "1024x768" "800x600" "640x480"
EndSubSection
EndSection


Kernel version (/proc/version):
Linux version 2.6.32-3-amd64 (Debian 2.6.32-9) (m...@debian.org) (gcc version 
4.3.4 (Debian 4.3.4-8) ) #1 SMP Thu Feb 25 07:33:41 UTC 2010

Xorg X server log files on system:
-rw-r--r-- 1 root root 16192 Jun 23  2009 /var/log/Xorg.1.log
-rw-r--r-- 1 root root 18722 Apr 24 15:15 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file
/var/log/Xorg.0.log:

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.7.6.901 (1.7.7 RC 1)
Release Date: 2010-04-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.26-2-amd64 i686 Debian
Current Operating System: Linux kaiba 2.6.32-3-amd64 #1 SMP Thu Feb 25 07:33:41 
UTC 2010 x86_64
Kernel command line: root=UUID=31926bc8-aa4d-4f84-a0e5-19ae2039ed7f ro 
rootflags=data=journal quiet video=uvesafb:vbemode:0x0160,scroll:ywrap
Build Date: 19 April 2010  06:12:31PM
xorg-server 2:1.7.6.901-3 (Cyril Brulebois ) 
Current version of pixman: 0.16.4
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: "/var/log/Xorg.0.log", Time: Sat Apr 24 15:15:55 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(==) No Layout section.  Using the first Screen section.
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor ""
(**) |   |-->Device "GeForce 8400

Bug#578148: new synaptics-related errors in X log

2010-04-17 Thread Stanislav Maslovski
Package: xserver-xorg-input-synaptics
Version: 1.2.2-1
Severity: minor
File: xserver-xorg-input-synaptic

After an upgrade to 1.2.1 I had to manually load and configure
synaptics driver in xorg.conf to get scrolling on the touchpad working
again. Soon after that the next version came out (1.2.2). With this
version there is no need in manual editing of xorg.conf and the
touchpad seems to work (at least up to my very minimal needs, I use
just the scrolling lines, no tapping, etc.) but I see these errors on
the console and in the log:

AlpsPS/2 ALPS GlidePoint no synaptics event device found
Query no Synaptics: 6003C8
(EE) AlpsPS/2 ALPS GlidePoint Unable to query/initialize Synaptics hardware.
(EE) PreInit failed for input device "AlpsPS/2 ALPS GlidePoint".

Reporting this to make sure this is known to the developers/maintainers.

-- Package-specific info:
/var/lib/x11/X.roster does not exist.

/var/lib/x11/X.md5sum does not exist.

X server symlink status:
lrwxrwxrwx 1 root root 13 Oct 14  2008 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 1722172 Apr  5 21:16 /usr/bin/Xorg

/var/lib/x11/xorg.conf.roster does not exist.

VGA-compatible devices on PCI bus:
01:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8400M GS] 
(rev a1)

/var/lib/x11/xorg.conf.md5sum does not exist.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 1673 Apr 17 14:08 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Module"
SubSection "extmod"
Option  "omit XFree86-DGA"
EndSubSection
Load "v4l"
EndSection

Section "Extensions"
Option  "Composite" "Enable"
EndSection

Section "Device"
Identifier  "GeForce 8400M GS"
Driver  "nvidia"
Option  "NvAGP" "1"
Option  "NoLogo" "On"
Option  "HWCursor" "On"
Option  "CursorShadow" "On"
Option  "CursorShadowAlpha" "32"
Option  "CursorShadowXOffset" "2"
Option  "CursorShadowYOffset" "1"
Option  "UseEvents" "On"
Option  "RenderAccel" "On"
Option  "BackingStore" "On"
Option  "DamageEvents" "On"
Option  "OnDemandVBlankInterrupts" "On"
EndSection

Section "Screen"
Identifier  "Default Screen"
Device  "GeForce 8400M GS"
Monitor "Default Monitor"
Option  "AddARGBGLXVisuals" "true"
DefaultDepth  24
SubSection  "Display"
Depth 16
Modes"1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection  "Display"
Depth 24
Modes"1280x800" "1024x768" "800x600" "640x480"
EndSubSection
EndSection


Xorg X server log files on system:
-rw-r--r-- 1 root root 16192 Jun 23  2009 /var/log/Xorg.1.log
-rw-r--r-- 1 root root 18764 Apr 17 14:09 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file
/var/log/Xorg.0.log:

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.11-dsa-ia32 i686 Debian
Current Operating System: Linux kaiba 2.6.32-3-686 #1 SMP Thu Feb 25 06:14:20 
UTC 2010 i686
Kernel command line: root=UUID=31926bc8-aa4d-4f84-a0e5-19ae2039ed7f ro 
rootflags=data=journal quiet video=uvesafb:vbemode:0x0160,scroll:ywrap
Build Date: 05 April 2010  05:10:30PM
xorg-server 2:1.7.6-2 (Timo Aaltonen ) 
Current version of pixman: 0.16.4
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: "/var/log/Xorg.0.log", Time: Sat Apr 17 14:09:09 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/usr/lib/X11/xorg.conf.d"
(==) No Layout section.  Using the first Screen section.
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor ""
(**) |   |-->Device "GeForce 8400M GS"
(==) No monitor specified for screen "Default Screen".
Using a default monitor configuration.
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from

Bug#567491: EVIOCGNAME failed: Inappropriate ioctl for device

2010-01-29 Thread Stanislav Maslovski
Package: xserver-xorg
Version: 1:7.5+3
Severity: normal

After a recent upgrade to 7.5 (which I think uses udev instead of
hal to configure devices) I am getting these errors in the X log:

(EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device
(EE) PreInit returned NULL for ""Broadcom Corp""
(EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device
(EE) PreInit returned NULL for ""PS/2 Mouse""
(EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device
(EE) PreInit returned NULL for ""AlpsPS/2 ALPS GlidePoint""

However, the touchpad and the keyboard work even after this, so it
does not seem to be very critical.

-- Package-specific info:
/var/lib/x11/X.roster does not exist.

/var/lib/x11/X.md5sum does not exist.

X server symlink status:
lrwxrwxrwx 1 root root 13 Oct 14  2008 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 1710344 Jan 21 02:01 /usr/bin/Xorg

/var/lib/x11/xorg.conf.roster does not exist.

VGA-compatible devices on PCI bus:
01:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8400M GS] 
(rev a1)

/var/lib/x11/xorg.conf.md5sum does not exist.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 1656 Jan 23 14:32 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Module"
SubSection "extmod"
Option  "omit XFree86-DGA"
EndSubSection
Load "v4l"
EndSection

Section "Extensions"
Option  "Composite" "Enable"
EndSection

Section "Device"
Identifier  "GeForce 8400M GS"
Driver  "nvidia"
Option  "NvAGP" "1"
Option  "NoLogo" "On"
Option  "RenderAccel" "On"
Option  "BackingStore" "On"
Option  "CursorShadow" "On"
Option  "CursorShadowAlpha" "32"
Option  "CursorShadowXOffset" "2"
Option  "CursorShadowYOffset" "1"
Option  "AllowGLXWithComposite" "On"
Option  "DamageEvents" "on"
Option  "OnDemandVBlankInterrupts" "On"
EndSection

Section "Screen"
Identifier  "Default Screen"
Device  "GeForce 8400M GS"
Monitor "Default Monitor"
Option  "AddARGBGLXVisuals" "true"
DefaultDepth  24
SubSection  "Display"
Depth 16
Modes"1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection  "Display"
Depth 24
Modes"1280x800" "1024x768" "800x600" "640x480"
EndSubSection
EndSection


Xorg X server log files on system:
-rw-r--r-- 1 root root 16192 Jun 23  2009 /var/log/Xorg.1.log
-rw-r--r-- 1 root root 20331 Jan 29 15:22 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file
/var/log/Xorg.0.log:

X.Org X Server 1.7.4
Release Date: 2010-01-08
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-trunk-686 i686 Debian
Current Operating System: Linux kaiba 2.6.31-1-686 #1 SMP Sun Nov 15 20:39:33 
UTC 2009 i686
Kernel command line: root=UUID=31926bc8-aa4d-4f84-a0e5-19ae2039ed7f ro 
nmi_watchdog=0 vga=0x361 quiet
Build Date: 20 January 2010  10:52:55PM
xorg-server 2:1.7.4-2 (bgog...@debian.org) 
Current version of pixman: 0.16.4
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: "/var/log/Xorg.0.log", Time: Thu Jan 28 21:13:07 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) No Layout section.  Using the first Screen section.
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor ""
(**) |   |-->Device "GeForce 8400M GS"
(==) No monitor specified for screen "Default Screen".
Using a default monitor configuration.
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
Entry deleted from font path.
(==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/100dpi,
/usr/share/font

Bug#491656: more info on #491656: lock-on keys when using xorg

2009-02-13 Thread Stanislav Maslovski
Package: xserver-xorg-core
Version: 2:1.4.2-10
Followup-For: Bug #491656

I am getting similar effects with repeating keys on my DELL Vostro 1400.

This bug happens in a situation when several keys are pressed on the
keyboard at the same time. It does not matter if the keys are
modifiers or not. I have found a special combo with which I can
reproduce the bug with about 30% probability:

With three fingers I press sequantially "q-a-z" so that
"q" remains pressed when I next press "a", and "qa" remain pressed
when I touch "z". Then I release all three keys at once before any
autorepeat happens. After this I get in xterm:

qa...

with "z" repeating until I press any other key. Same seen with xev.

This is not a hardware bug as I do not see such behavior in linux
console vt.

Moreover, there is also a case when autorepeat happens with 100%
probability on this notebook (this can be seen only in xev, because
I do not have anything assigned to the keys mentioned below).
It is when I press

Fn-F1 (sleep)

or

Fn-F3 (battery)

Again, autorepeat is stopped when any other key is pressed. Also,
after trying this, Fn-F1 and Fn-F3 stop producing any events until X
is restarted!

-- Package-specific info:
Contents of /var/lib/x11/X.roster:
xserver-xorg

/var/lib/x11/X.md5sum does not exist.

X server symlink status:
lrwxrwxrwx 1 root root 13 2008-10-14 17:43 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 1718484 2009-01-09 06:11 /usr/bin/Xorg

Contents of /var/lib/x11/xorg.conf.roster:
xserver-xorg

VGA-compatible devices on PCI bus:
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M GS (rev a1)

/etc/X11/xorg.conf does not match checksum in /var/lib/x11/xorg.conf.md5sum.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 3171 2008-12-28 23:22 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice"Default Keyboard"
InputDevice"Default Mouse"
EndSection

Section "Files"
# local font server
# FontPath  "unix/:7100"
# if the local font server has problems, we can fall back on these
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
EndSection

Section "Module"
SubSection "extmod"
Option  "omit XFree86-DGA"
EndSubSection
Load "v4l"
EndSection

Section "Extensions"
Option  "Composite" "Enable"
EndSection

Section "InputDevice"
Identifier  "Default Keyboard"
Driver  "kbd"
Option  "CoreKeyboard"
Option  "Protocol" "standard"
Option  "AutoRepeat" "500 30"
Option  "XkbRules" "xorg"
Option  "XkbModel" "pc105"
Option  "XkbLayout" "us,ru"
Option  "XkbVariant" ","
Option  "XkbOptions" "grp:caps_toggle,grp_led:scroll"
Option  "CustomKeycodes" "off"
Option  "Xleds" "1 2 3"
EndSection

Section "InputDevice"
Identifier  "Default Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device" "/dev/input/mice"
Option  "Protocol" "auto"
Option  "Emulate3Buttons" "true"
Option  "Emulate3Timeout" "50"
Option  "ZAxisMapping" "4 5"
Option  "Buttons" "9"
Option  "Sensitivity" "1"
EndSection

Section "Monitor"
Identifier   "Default Monitor"
Gamma1.0 1.0 1.0
EndSection

Section "Device"
Identifier  "GeForce 8400M GS"
Driver  "nvidia"
Option  "NvAGP" "1"
Option  "NoLogo" "On"
Option  "RenderAccel" "On"
Option  "BackingStore" "Off"
Option  "CursorShadow" "On"
Option  "CursorShadowAlpha" "32"
Option  "CursorShadowXOffset" "2"
Option  "CursorShadowYOffset" "1"
Option  "AllowGLXWithComposite" "On"
Option  "DamageEvents" "on"
Option  "OnDemandVBlankInterrupts" "On"
EndSection

Section "Screen

Bug#498823: xfs: recent change from 'root' to 'nobody' perhaps requires more thought

2008-09-13 Thread Stanislav Maslovski
Package: xfs
Version: 1:1.0.8-2
Severity: normal


xfs still tries to access /var/log/xfs.log and /var/run/xfs.pid (as 'nobody')
and reports these errors:
==
Sep 12 23:03:05 shota xfs[3307]: terminating 
Sep 12 23:03:05 shota xfs[3307]: cannot remove process ID file 
/var/run/xfs.pid: Permission denied
Sep 13 09:45:24 shota xfs[3281]: can't open error file "/var/log/xfs.log"
==

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (100, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xfs depends on:
ii  libc6 2.7-13 GNU C Library: Shared libraries
ii  libfs62:1.0.1-1  X11 Font Services library
ii  libxfont1 1:1.3.3-1  X11 font rasterisation library

xfs recommends no packages.

Versions of packages xfs suggests:
ii  xfonts-100dpi 1:1.0.0-4  100 dpi fonts for X
ii  xfonts-75dpi  1:1.0.0-4  75 dpi fonts for X
ii  xfonts-base   1:1.0.0-5  standard fonts for X
pn  xfonts-scalable(no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#489998: x11-apps: xclipboard does not support UTF-8 (patch available)

2008-07-08 Thread Stanislav Maslovski
Package: x11-apps
Version: 7.3+2
Severity: normal

While reading manuals on X selections and libxt I have
added support of UTF-8 to xclipboard. Please, find
a patch attached.

To enable correct display of international texts in
Xt widgets one has to define

*international: true

in her/his ~./Xresources file.

An enough rich set of bitmap fonts must be also installed.
Just for reference I also attach a screenshot.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (90, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages x11-apps depends on:
ii  cpp  4:4.3.1-1   The GNU C preprocessor (cpp)
ii  libc62.7-10  GNU C Library: Shared libraries
ii  libice6  2:1.0.4-1   X11 Inter-Client Exchange library
ii  libpng12-0   1.2.27-1PNG library - runtime
ii  libsm6   2:1.0.3-2   X11 Session Management library
ii  libx11-6 2:1.1.4-2.1 X11 client-side library
ii  libxaw7  2:1.0.4-2   X11 Athena Widget library
ii  libxcursor1  1:1.1.9-1   X cursor management library
ii  libxext6 2:1.0.4-1   X11 miscellaneous extension librar
ii  libxft2  2.1.12-3FreeType-based font drawing librar
ii  libxkbfile1  1:1.0.5-1   X11 keyboard file manipulation lib
ii  libxmu6  2:1.0.4-1   X11 miscellaneous utility library
ii  libxmuu1 2:1.0.4-1   X11 miscellaneous micro-utility li
ii  libxrender1  1:0.9.4-2   X Rendering Extension client libra
ii  libxt6   1:1.0.5-3   X11 toolkit intrinsics library
ii  x11-common   1:7.3+12X Window System (X.Org) infrastruc

x11-apps recommends no packages.

-- no debconf information
<>--- x11-apps-7.3+2.orig/xclipboard/xclipboard.c	2007-05-16 19:44:53.0 +0400
+++ x11-apps-7.3+2+nmu1/xclipboard/xclipboard.c	2008-07-09 09:57:11.0 +0400
@@ -27,6 +27,7 @@
  * Author:  Ralph Swick, DEC/Project Athena
  * Updated for R4:  Chris D. Peterson,  MIT X Consortium.
  * Reauthored by: Keith Packard, MIT X Consortium.
+ * Added UTF-8 support: Stanislav Maslovski <[EMAIL PROTECTED]>
  */
 /* $XFree86: xc/programs/xclipboard/xclipboard.c,v 1.8tsi Exp $ */
 
@@ -70,6 +71,7 @@
 
 static Atom wm_delete_window;
 static Atom wm_protocols;
+static Atom UTF8_STRING;
 
 static void EraseTextWidget ( void );
 static void NewCurrentClipContents ( char *data, int len );
@@ -477,6 +479,19 @@
 XFree(value);
 }
 
+static void 
+InsertClipboardUtf8(Widget w, XtPointer client_data, Atom *selection, 
+		Atom *type, XtPointer value, unsigned long *length, 
+		int *format)
+{
+if (*type == XT_CONVERT_FAIL)
+	XtGetSelectionValue(w, *selection, XA_STRING, InsertClipboard,
+			NULL, CurrentTime);
+else
+	InsertClipboard(w, client_data, selection, type,
+			value, length, format);
+}
+
 static Boolean 
 ConvertSelection(Widget w, Atom *selection, Atom *target,
 		 Atom *type, XtPointer *value, unsigned long *length, 
@@ -493,8 +508,9 @@
 	XmuConvertStandardSelection(w, req->time, selection, target, type,
 (XPointer*)&std_targets, &std_length,
 format);
-	*value = XtMalloc(sizeof(Atom)*(std_length + 5));
+	*value = XtMalloc(sizeof(Atom)*(std_length + 6));
 	targetP = *(Atom**)value;
+	*targetP++ = UTF8_STRING;
 	*targetP++ = XA_STRING;
 	*targetP++ = XA_TEXT(d);
 	*targetP++ = XA_LENGTH(d);
@@ -554,6 +570,23 @@
 	return True;
 }
 
+if (*target == UTF8_STRING)
+{
+	Arg args[1];
+	Widget source;
+	char *data;
+
+	source = XawTextGetSource (text);
+	XtSetArg (args[0], XtNstring, &data);
+	XtGetValues (source, args, 1);
+	*length = strlen (data);
+	*value = XtMalloc (*length + 1);
+	strcpy(*value, data);
+	*type = UTF8_STRING;
+	*format = 8;
+	return True;
+}
+
 if (XmuConvertStandardSelection(w, req->time, selection, target, type,
 (XPointer *) value, length, format))
 	return True;
@@ -564,7 +597,7 @@
 static void 
 LoseSelection(Widget w, Atom *selection)
 {
-XtGetSelectionValue(w, *selection, XA_STRING, InsertClipboard,
+XtGetSelectionValue(w, *selection, UTF8_STRING, InsertClipboardUtf8,
 			NULL, CurrentTime);
 }
 
@@ -620,6 +653,7 @@
 /* CLIPBOARD_MANAGER is a non-standard mechanism */
 ManagerAtom = XInternAtom(XtDisplay(top), "CLIPBOARD_MANAGER", False);
 ClipboardAtom = XA_CLIPBOARD(XtDisplay(top));
+UTF8_STRING = XInternAtom(XtDisplay(top), "UTF8_STRING", False);
 if (XGetSelectionOwner(XtDisplay(top), ManagerAtom))
 	XtError("another clipboard is already running\n");
 


Bug#127060: x11-apps: a fix for "xclipboard sizes the 'Save' dialog box incorrectly"

2008-07-06 Thread Stanislav Maslovski
Package: x11-apps
Version: 7.3+2+nmu1
Followup-For: Bug #127060


This is fixable from the resources, as a workaround one can
add this to her/his local .Xresources

==
XClipboard*fileDialog.label.top:   ChainTop
XClipboard*fileDialog.label.bottom:ChainTop
XClipboard*fileDialog.label.left:  ChainLeft
XClipboard*fileDialog.label.right: ChainLeft

XClipboard*fileDialog.value.top:   ChainTop
XClipboard*fileDialog.value.bottom:ChainTop
XClipboard*fileDialog.value.left:  ChainLeft
XClipboard*fileDialog.value.right: ChainLeft

XClipboard*fileDialog.accept.top:  ChainTop
XClipboard*fileDialog.accept.bottom:   ChainBottom
XClipboard*fileDialog.accept.left: ChainLeft
XClipboard*fileDialog.accept.right:ChainLeft

XClipboard*fileDialog.cancel.top:  ChainTop
XClipboard*fileDialog.cancel.bottom:   ChainBottom
XClipboard*fileDialog.cancel.left: ChainLeft
XClipboard*fileDialog.cancel.right:ChainLeft
===

A patch suitable for the package maintainer is attached.
Please, forward upstream if appropriate.
diff -urN x11-apps-7.3+2.orig/xclipboard/XClipboard.ad 
x11-apps-7.3+2+nmu1/xclipboard/XClipboard.ad
--- x11-apps-7.3+2.orig/xclipboard/XClipboard.ad2007-05-16 
19:44:53.0 +0400
+++ x11-apps-7.3+2+nmu1/xclipboard/XClipboard.ad2008-07-06 
19:50:44.0 +0400
@@ -83,12 +83,26 @@
WM_PROTOCOLS: WMProtocols()\n
 
 *fileDialog.label: Save to file:
+*fileDialog.label.top: ChainTop
+*fileDialog.label.bottom:  ChainTop
+*fileDialog.label.left:ChainLeft
+*fileDialog.label.right:   ChainLeft
+
 *fileDialogShell.allowShellResize: true
 *fileDialogShell.title:File Save
 
 *fileDialog*accept.label:  Accept
+*fileDialog.accept.top:ChainTop
+*fileDialog.accept.bottom: ChainBottom
+*fileDialog.accept.left:   ChainLeft
+*fileDialog.accept.right:  ChainLeft
 *fileDialog*accept.translations:   #override\
: AcceptSave() unset()
+
+*fileDialog.value.top: ChainTop
+*fileDialog.value.bottom:  ChainTop
+*fileDialog.value.left:ChainLeft
+*fileDialog.value.right:   ChainLeft
 *fileDialog*value.translations:#override\
Return: AcceptSave() \n\
CtrlS: no-op(ring-bell) \n\
@@ -105,6 +119,10 @@
MetaI: no-op(ring-bell)
 
 *fileDialog*cancel.label:  Cancel
+*fileDialog.cancel.top:ChainTop
+*fileDialog.cancel.bottom: ChainBottom
+*fileDialog.cancel.left:   ChainLeft
+*fileDialog.cancel.right:  ChainLeft
 *fileDialog*cancel.translations:   #override\
:CancelSave() unset()
 


Bug#389864: xserver-xorg-core: do not understand why wontfix?

2008-07-02 Thread Stanislav Maslovski
Package: xserver-xorg-core
Version: 2:1.4.2-1
Followup-For: Bug #389864


Putting ignorance and stubborness aside: I am wondering why wontfix?

Generally, it would be nice to be able to define custom X colors
with meaningful names. Were there any performance issues, security
issues etc. with the original dynamic database? If not, I do not see
any rational reason in removing this feature.

Another thing I would like to note is that this thread is an example
of how maintainers can be unhelpful to users or forceful with their
opinion of what is right and what is not.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#480124: xkb-data: russian pc101 layout is broken after the upgrade.

2008-05-12 Thread Stanislav Maslovski
On Tue, May 13, 2008 at 12:36:38AM +0200, Mohammed Adnène Trojette wrote:
> On Mon, May 12, 2008, Stanislav Maslovski wrote:
> > I am a user of an old-style pc101 russian keyboard _without_ winkeys,
> > so I did not get the problem with switching layouts (because I never
> > had "winkeys" in my xorg.conf), however there is another problem:
> > the comma, colon, semicolon, question sign, etc. are all at the wrong
> > keys after this upgrade.
> 
> Hi, I think this bug has been fixed upstream.
> 
> Could you please apply this patch on /usr/share/X11/xkb/symbols/ru and
> tell me if it fixes it?

Applied. It works if I add

Option  "XkbVariant" ",legacy"

to xorg.conf.

Please, document this change.

-- 
Stanislav



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#480124: xkb-data: russian pc101 layout is broken after the upgrade.

2008-05-12 Thread Stanislav Maslovski
Package: xkb-data
Followup-For: Bug #480124


More to this bug:

I am a user of an old-style pc101 russian keyboard _without_ winkeys,
so I did not get the problem with switching layouts (because I never
had "winkeys" in my xorg.conf), however there is another problem:
the comma, colon, semicolon, question sign, etc. are all at the wrong
keys after this upgrade.

Part of my xorg.conf:

Section "InputDevice"
Identifier  "RStyle Keyboard"
Driver  "kbd"
Option  "CoreKeyboard"
Option  "XkbRules" "xorg"
Option  "XkbModel" "pc101"
Option  "XkbLayout" "us,ru"
Option  "XkbOptions" "grp:caps_toggle,grp_led:scroll"
Option  "Xleds" "1 2 3"
EndSection

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (90, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-minimal (PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#480142: xtrans-dev: connection by unix sockets broken

2008-05-08 Thread Stanislav Maslovski
Package: xtrans-dev
Version: 1.1-1
Severity: important


As I can see from the sources, xtrans 1.1 has introduced support of
abstract sockets which I believe is broken at the moment.

Indeed, rebuilding libx11 with xtrans 1.1 left me with a system which
could connect to my local X server only by tcp.

Stracing revealed the following:

=== with libx11-6 1.0.3-7 from the off. repo =
...
socket(PF_FILE, SOCK_STREAM, 0) = 3
uname({sys="Linux", node="", ...}) = 0
uname({sys="Linux", node="", ...}) = 0
connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 19) = 0
uname({sys="Linux", node="", ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
...
==

=== with my custom build against xtrans 1.1 ==
...
socket(PF_FILE, SOCK_STREAM, 0) = 3
uname({sys="Linux", node="", ...}) = 0
uname({sys="Linux", node="", ...}) = 0
connect(3, {sa_family=AF_FILE, path=@/tmp/.X11-unix/X0}, 20) = -1 ECONNREFUSED 
(Connection refused)
close(3)
...
==

Notice the difference in path.

Downgrading xtrans-dev to 1.0.4-1 and rebuilding libx11 solved this.

I marked this bug as "important", however, it could easily become of
grave severity should libx11 in sid be automatically rebuilt before
this bug is fixed.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (90, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-minimal (PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xtrans-dev depends on:
ii  x11-common1:7.3+10   X Window System (X.Org) infrastruc

xtrans-dev recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#443892: x11-utils: luit can't find locale aliases

2008-05-07 Thread Stanislav Maslovski
Package: x11-utils
Version: 7.3+1
Followup-For: Bug #443892

Getting the same on my system:

$ echo exit | strace luit 2>&1 | grep "locale.alias"
open("/usr/lib/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or 
directory)

$ locate locale.alias
/etc/locale.alias
/usr/share/gettext/intl/locale.alias
/usr/share/locale/locale.alias
/usr/share/X11/locale/locale.alias

Please also look at Gentoo bug http://bugs.gentoo.org/show_bug.cgi?id=153624

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (90, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages x11-utils depends on:
ii  cpp4:4.2.2-2 The GNU C preprocessor (cpp)
ii  libc6  2.7-10GNU C Library: Shared libraries
ii  libdmx11:1.0.2-2 X11 Distributed Multihead extensio
ii  libfontconfig1 2.5.0-2   generic font configuration library
ii  libfontenc11:1.0.4-2 X11 font encoding library
ii  libfreetype6   2.3.5-1+b1FreeType 2 font engine, shared lib
ii  libgl1-mesa-glx [libgl 7.0.3-1   A free implementation of the OpenG
ii  libice62:1.0.4-1 X11 Inter-Client Exchange library
ii  libsm6 2:1.0.3-1+b1  X11 Session Management library
ii  libx11-6   2:1.0.3-7 X11 client-side library
ii  libxaw72:1.0.4-1 X11 Athena Widget library
ii  libxext6   2:1.0.4-1 X11 miscellaneous extension librar
ii  libxft22.1.12-2  FreeType-based font drawing librar
ii  libxi6 2:1.1.3-1 X11 Input extension library
ii  libxinerama1   2:1.0.3-1 X11 Xinerama extension library
ii  libxmu62:1.0.4-1 X11 miscellaneous utility library
ii  libxmuu1   2:1.0.4-1 X11 miscellaneous micro-utility li
ii  libxrender11:0.9.4-1 X Rendering Extension client libra
ii  libxt6 1:1.0.5-3 X11 toolkit intrinsics library
ii  libxtst6   2:1.0.3-1 X11 Testing -- Resource extension 
ii  libxv1 2:1.0.4-1 X11 Video extension library
ii  libxxf86dga1   2:1.0.2-1 X11 Direct Graphics Access extensi
ii  libxxf86vm11:1.0.1-2 X11 XFree86 video mode extension l
ii  x11-common 1:7.3+10  X Window System (X.Org) infrastruc
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

x11-utils recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



adding CP866 xlocale

2007-09-28 Thread Stanislav Maslovski
Hello debian-x!

I have ported a patch from ALT-Linux (a russian linux distro) that adds
support of CP866 locale to xlibs. I have also patched luit so that it
supports translating from/to this encoding. So far everything works nicely.

If this change can be of interest to debian in general I am happy to provide
the necessary patches. Personally, I think this addition will be appreciated
by the users from the post-USSR countries, especially by the participants
of FIDONET. Native support of CP866 locale simplifies the use and porting of
some old good software like golded, etc.

-- 
Stanislav


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#388545: xfonts-encodings: remove /usr/X11R6 dir completely

2006-09-20 Thread Stanislav Maslovski
Package: xfonts-encodings
Version: 1:1.0.0-6
Severity: wishlist


I think that it would be better to fix bug #367339 by correcting the
corresponding code somewhere in xserver instead of just multiplying the
directories and simlinks.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-minimal
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages xfonts-encodings depends on:
ii  x11-common1:7.0.22   X Window System (X.Org) infrastruc

xfonts-encodings recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]