Re: Cygwin X + HP-UX 11.11 + italian keyboard = AltGr not working (solved/worked around)

2011-07-08 Thread Danilo Turina

On 07/07/2011 15.04, Jon TURNEY wrote:

On 06/07/2011 15:26, Danilo Turina wrote:

On 06/07/2011 16.02, Jon TURNEY wrote:

On 06/07/2011 09:15, Danilo Turina wrote:

  having recently replaced my old keyboard (that had a US layout) with an
italian one, I'm having a problem with Cygwin X when running HP-UX clients:
AltGr does not work and this prevents me to use characters like [ { }
], etc.

I'm up to date with Cygwin and Cygwin X at the moment (1.7.9(0.237/5/3)
2011-03-29 10:10 i686 Cygwin for Cygwin and 1.10.2.0 for XWin).

These are the steps to reproduce the problem:

  1) start Cygwin X
  2) disable access control (xhost +)
  3) access via telnet/ssh a HP-UX machine
  4) open an xterm from the HP-UX machine in Cygwin X
  5) in the newly opened xterm try to use AltGr (AltGr + è (i.e. the key
at the right of P), should produce {, while AltGr + Shift + è should
produce {)


I'm missing here what is actually produced.  Nothing? or the unmodified è?


The unmodified è (well, sort of, because when I press è on the keyboard I
see on the terminal I (I think because of some other problem of the terminal
with non-ASCII chars) and if I press AltGr+è I yet see I, so it's just
like pressing AltGr has no effect at all).




  6) fall on the floor crying in desperation


This is perfectly normal for people having to deal with XKB :-)


Notice that when using a client from a Linux machine all works properly.

A googled a lot and found a lot of information but only few of it applied
(=helped) to my specific case. I tried to mess with xmodmap and kbd config
files and also with other stuff, but nothing seemed to solve the problem.


I think a solution is contained in this old mailing list post [1], use
XKB_DISABLE=1 and adjust the keyboard map so that AltGr is Mode_switch and the
keys have the expected mapping in group 2, activated via Mode_switch.

Note that just reassigning AltGr to Mode_switch is not enough, you'll need to
remap appropriately the keys which generate different characters with AltGr
e.g. something like:

xmodmap -e clear mod5
xmodmap -e clear mod3
xmodmap -e keycode 113 = Mode_switch Multi_key
xmodmap -e add mod3 = Mode_switch
xmodmap -e keycode 34 = egrave eacute bracketleft braceleft
(and so on for the other keys which need to generate different characters with
AltGr)


I already encountered some like that while searching the internet but didn't
work.
I tried what you wrote here but didn't work either...


Just to be clear, you probably have to do all this before you start the xterm
you are going to be working in.

Can I see the xev output when you try that setup?


Is there anything that I can do to go deeper into the analysis of this
problem? xev seems not of any help, since it returns the same results both for
Xming where all works and Cygwin X where I have the problem.


Yes, that's rather mystifying.

You might consider using wireshark, xmon or xscope to examine the protocol
interactions between client and server (not sure if all of these can decode
XKB extension protocol) to see if there is any difference there.


Fiddling aroung with Wireshark I was able to understand what the problem 
was and I had the confirm thanks to xmodmap.


With Xming I had that keycode 34 (è) is associated to

egrave eacute bracketleft braceleft bracketleft braceleft

while with CygwinX the association is

egrave eacute egrave eacute bracketleft braceleft

I don't know the exact meaning of each of the positions above, but with

xmodmap -e keycode 34 = egrave eacute bracketleft braceleft bracketleft 
braceleft


I solved the problem.
I then saw that that solves the problem even without setting XKB_DISABLE 
but only with some applications (e.g. with xterm works, with nedit you 
need XKB_DISABLE set).


So just executing the xmodmap above for keycode 34, also within the same 
xterm on which I had the problem, without setting XKB_DISABLE and 
without doing anything else (so not resetting of the modifiers with 
'xmodmap -e clear mod5', etc.), it works (but better setting 
XKB_DISABLE=1 in order to make all clients work).


In short:

export XKB_DISABLE=1
xmodmap -e keycode 34 = egrave eacute bracketleft braceleft bracketleft 
braceleft
xmodmap -e keycode 35 = plus asterisk bracketright braceright 
bracketright braceright
xmodmap -e keycode 48 = agrave degree numbersign dead_abovering 
numbersign dead_abovering numbersign dead_abovering
xmodmap -e keycode 47 = ograve ccedilla at dead_cedilla at dead_cedilla 
at dead_cedilla ograve ccedilla at dead_cedilla


does the job (with the above I just fix the four keys needed to get [, 
{, ], }, @ and #, probably others are missing, like AltGr+E 
for the Euro sign, but I don't use them within HP-UX so no problem for me).


WARNING WARNING WARNING: I wrote the above xmodmap statements by getting 
their values from xmodmap -pk and replacing the 3rd and 4th values 
with the 5th and 6th values, so I don't know whether they can cause 

Re: Re: X on win 7

2011-07-08 Thread Csaba Raduly
Hi Daniel,

On Fri, Jul 8, 2011 at 4:01 AM, Daniel Bienstock  wrote:
 The Windows Task Manager shows a huge list of services running, like
 Application Experience, which could be interfering.  But I have no idea
 which are safe to turn off.  I can send in a jpeg with that list, if that
 was helpful (and if the site accepts jpge attachments)

If you can, download Process Explorer from Sysinternals
(http://technet.microsoft.com/en-us/sysinternals/bb896653). That one
allows you to save a list of processes to a text file (File-Save)

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
Ok, it boots. Which means it must be bug-free and perfect.  -- Linus Torvalds
People disagree with me. I just ignore them. -- Linus Torvalds

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Re: X on win 7

2011-07-08 Thread Daniel Bienstock

ok, here's the list generated by process explorer:

Process	PID	CPU	Private Bytes	Working Set	Description 
Company Name

System Idle Process 0   96.68   0 K 24 K
System  4   0.22152 K   3,940 K
 Interrupts	n/a	0.39	0 K	0 K	Hardware Interrupts and 
DPCs

 smss.exe   348 744 K   1,400 K
csrss.exe   464 2,632 K 4,736 K
 conhost.exe15961,460 K 3,048 K
wininit.exe 520 2,080 K 4,844 K
 services.exe   584 5,904 K 9,592 K
  svchost.exe	716		5,816 K	10,888 K	Host Process for 
Windows Services	Microsoft Corporation

   unsecapp.exe 24722,464 K 5,728 K
   WmiPrvSE.exe 259615,172 K22,024 K
   WmiPrvSE.exe 29327,100 K 12,444 K
   unsecapp.exe	2228		2,868 K	6,348 K	Sink to receive 
asynchronous callbacks for WMI client application	Microsoft 
Corporation
  svchost.exe	828		5,180 K	8,880 K	Host Process for Windows 
Services	Microsoft Corporation
  atiesrxx.exe	912		2,344 K	4,940 K	AMD External Events 
Service Module	AMD

   atieclxx.exe 14483,580 K 7,464 K
  svchost.exe	956		19,808 K	20,136 K	Host 
Process for Windows Services	Microsoft Corporation

   audiodg.exe  160 17,168 K16,852 K
  svchost.exe	1004		12,780 K	21,020 K	Host 
Process for Windows Services	Microsoft Corporation

   WUDFHost.exe 12242,272 K 5,360 K
   wlanext.exe  158810,928 K18,932 K
   dwm.exe	3324	0.38	32,176 K	30,088 K	Desktop 
Window Manager	Microsoft Corporation

   WUDFHost.exe 936 2,624 K 6,704 K
  svchost.exe	136	 0.01	39,028 K	47,336 K	Host 
Process for Windows Services	Microsoft Corporation
   wuauclt.exe	4672	0.11	4,044 K	10,440 K	Windows Update 
Microsoft Corporation

  stacsv64.exe  380  0.01   7,080 K 7,548 K IDT PC AudioIDT, Inc.
  svchost.exe	1120		7,036 K	11,524 K	Host Process for 
Windows Services	Microsoft Corporation
  svchost.exe	1340	 0.01	25,532 K	29,080 K	Host 
Process for Windows Services	Microsoft Corporation
  EvtEng.exe	1416		13,452 K	21,140 K	Intel(R) 
PROSet/Wireless Event Log Service	Intel(R) Corporation
  ZCfgSvc7.exe	1580		10,552 K	17,744 K	Intel(R) 
PROSet/Wireless Zero Config Service	Intel(R) Corporation
  spoolsv.exe	1736		8,004 K	13,076 K	Spooler SubSystem 
App	Microsoft Corporation
  HostControlService.exe	1772		3,448 K	5,556 K	Host 
Control Application	Broadcom Corporation
  HostStorageService.exe	1812		2,524 K	4,932 K	Host 
Storage Application	Broadcom Corporation
  svchost.exe	1880		6,276 K	11,256 K	Host Process for 
Windows Services	Microsoft Corporation
  svchost.exe	1940	 0.01	13,032 K	14,964 K	Host 
Process for Windows Services	Microsoft Corporation
  TdmService.exe	1964		4,788 K	11,372 K	TDM 
Service	Wave Systems Corp.
  AESTSr64.exe	1664		1,904 K	3,468 K	Andrea filters APO access 
service (64-bit)	Andrea Electronics Corporation
  DCPSysMgrSvc.exe	1904		4,376 K	11,144 K	Dell - 
System Manager Service	Dell Inc.
  IPROSetMonitor.exe	1888		2,272 K	4,812 K	Intel® PROSet 
Monitoring Service	Intel Corporation
  jhi_service.exe	2088		1,412 K	4,380 K	Intel  IPT Host 
Interface Service	Intel Corporation
  o2flash.exe	2192		1,136 K	3,472 K	O2 Flash Memory Service 
O2Micro International

  srvany.exe2240960 K   3,088 K
   SDIOAssist.exe   2272 0.01   2,704 K 5,240 K
  RegSrvc.exe	2304		3,248 K	7,280 K	Intel(R) PROSet/Wireless 
Registry Service	Intel(R) Corporation
  SeaPort.exe	2328		4,680 K	8,136 K	Microsoft SeaPort Search 
Enhancement Broker	Microsoft Corporation

  WLIDSVC.EXE   24246,164 K 12,460 K
   WLIDSVCM.EXE 26522,116 K 4,000 K
  SearchIndexer.exe	2788	 0.01	36,708 K	22,396 K 
Microsoft Windows Search Indexer	Microsoft Corporation

   SearchFilterHost.exe 45804,000 K 7,572 K
   SearchProtocolHost.exe   4616 0.01   4,624 K 9,056 K
  taskhost.exe	3196		3,900 K	6,920 K	Host Process for Windows 
Tasks	Microsoft Corporation
  IAStorDataMgrSvc.exe	3776	0.01	20,756 K	16,044 K 
IAStorDataSvc	Intel Corporation
  LMS.exe	4052	 0.01	3,308 K	5,756 K	Local Manageability 
Service	Intel Corporation
  sppsvc.exe	2872		3,076 K	8,476 K	Microsoft Software 
Protection Platform Service	Microsoft Corporation
  UNS.exe	568	 0.01	7,596 K	13,168 K	User Notification 
Service	Intel Corporation
  TrustedInstaller.exe	4152		19,008 K	26,180 K 
Windows Modules Installer	Microsoft Corporation
  VSSVC.exe	4212		11,156 K	16,636 K	Microsoft® 
Volume Shadow Copy Service	Microsoft Corporation
  svchost.exe	4244		2,184 K	5,532 K	Host Process for Windows 
Services	Microsoft Corporation
 lsass.exe	600		6,968 K	14,204 K	Local Security 
Authority Process	Microsoft Corporation

 lsm.exe608 3,212 K 4,852 K
csrss.exe   540 0.203,180 K 6,092 K
 conhost.exe	2108		2,364 K	5,348 K	Console Window Host 
Microsoft Corporation
 conhost.exe	4508		4,176 K	7,696 K	Console Window Host 
Microsoft Corporation

winlogon.exe808