Operating System - HP-UX
1849242 Members
6485 Online
104042 Solutions
New Discussion

HP-UX 11.11, alt-gr and gtk apps

 
Nicolas GIMMILLARO
Occasional Contributor

HP-UX 11.11, alt-gr and gtk apps

Hi,

On C3750 ws, HP-UX 11iv1 with jun 09 patches installed, all gtk applications (mozilla, gimp, ...) don't work with altgr ( altgr - 0 to make @ on french keyboard for example ). The use of altgr does nothing.

Other applications (dtterm, dtpad, dtfile,...) work fine.

GTK applications (from another OS), exported via DISPLAY= on the HP-UX X server, don't work, too.

Anyone can help?

Regards
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: HP-UX 11.11, alt-gr and gtk apps

Shalom,

What language locales do you have installed?

What are the language requirements of the app.

DISPLAY redirection can be blocked by VLAN configuration and switch/network configuration.

Some error logs and messages would be helpful here.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Nicolas GIMMILLARO
Occasional Contributor

Re: HP-UX 11.11, alt-gr and gtk apps

>What language locales do you have installed?

CDE use "C" english. French is installed, but not used by CDE

Keyboard is a french usb keyboard from hp.
/etc/kbdlang contains the default value for french keyboards with euro (USB_PS2_DIN_French_Euro)

>What are the language requirements of the app.

It's the default installation of mozilla 1.7.18 included with HP-UX. The browser speaks english, as the rest of the CDE apps.

> DISPLAY redirection can be blocked by VLAN configuration and switch/network configuration.

In fact, exported GTK applications are shown on HP-UX X server, but alt-gr characters don't work on them.

With HP-UX GTK applications exported to another (non HP-UX) X server, alt-gr works on them.
Nicolas GIMMILLARO
Occasional Contributor

Re: HP-UX 11.11, alt-gr and gtk apps

I found a way to make it work ...

xmodmap -pm says :

xmodmap: up to 2 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x1b), Shift_R (0x62)
lock Caps_Lock (0x1d)
control Control_L (0x1a), Control_R (0x61)
mod1 Alt_L (0x22), Mode_switch (0x42)
mod2 Mode_switch (0x42)
mod3
mod4
mod5

Mode_switch (altgr) is linked with mod1 and mod2. It works with motif apps, but seems to disturb gtk apps.

After xmodmap -e 'remove mod1 = Mode_switch' , xmodmap -pm says :

xmodmap: up to 2 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x1b), Shift_R (0x62)
lock Caps_Lock (0x1d)
control Control_L (0x1a), Control_R (0x61)
mod1 Alt_L (0x22)
mod2 Mode_switch (0x42)
mod3
mod4
mod5


altgr chars work after that in gtk.


I added xmodmap -e 'remove mod1 = Mode_switch' in Xserver file to make it permanent.