Problems setting Norwegian keyboard

2003-08-14 Thread Steinar Bang
Platform: Intel PIII, Win2k professional,
  XFree86-xserv 4.3.0-3,
  XFree86-etc 4.3.0-3,
  XFree86-startup-scripts 4.2.0-5

I'm starting XWin in rootless mode, from a desktop shortcut to 
C:\cygwin\usr\X11R6\bin\startxwin.bat

I'm unable to get a Norwegian keyboard, using the -keyboard flag to
XWin.exe.

So far I've tried 
 start XWin -multiwindow -clipboard -keyboard no
 start XWin -multiwindow -clipboard -keyboard no-latin1
 start XWin -multiwindow -clipboard -keyboard Keyboard1
 start XWin -multiwindow -clipboard -keyboard "Keyboard1"
 start XWin -multiwindow -clipboard -xf86config /etc/X11/XF86Config -keyboard Keyboard1
 start XWin -multiwindow -clipboard -xf86config /etc/X11/XF86Config -keyboard 
"Keyboard1"
without any success.  I still get US layout.

My /etc/X11/XF86Config file contains:

Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"

Option "XkbModel" "pc102"
Option "XkbLayout" "no"
Option "XKbOptions" ""
EndSection

Thanx!


- Steinar



Re: Problems setting Norwegian keyboard

2003-08-14 Thread Alexander Gottwald
On Mon, 11 Aug 2003, Steinar Bang wrote:

> My /etc/X11/XF86Config file contains:
> 
> Section "InputDevice"
> Identifier "Keyboard1"
> Driver "Keyboard"
> 
> Option "XkbModel" "pc102"
> Option "XkbLayout" "no"
> Option "XKbOptions" ""
> EndSection

can you send /tmp/XWin.log?


bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: Problems setting Norwegian keyboard

2003-08-14 Thread Steinar Bang
> Steinar Bang <[EMAIL PROTECTED]>:

> Alexander Gottwald <[EMAIL PROTECTED]>:
>> On Mon, 11 Aug 2003, Steinar Bang wrote:

>>> My /etc/X11/XF86Config file contains:

>>> Section "InputDevice"
>>>Identifier "Keyboard1"
>>>Driver "Keyboard"
>>> 
>>>Option "XkbModel" "pc102"
>>>Option "XkbLayout" "no"
>>>Option "XKbOptions" ""
>>> EndSection

>> can you send /tmp/XWin.log?

> Attached to this message.

> ddxProcessArgument - Initializing default screens
> winInitializeDefaultScreens - w 1280 h 960
> winInitializeDefaultScreens - Returning
> OsVendorInit - Creating bogus screen 0
> (++) Using config file: "/etc/X11/XF86Config"
> Data incomplete in file /etc/X11/XF86Config
>   At least one Device section is required.
> (EE) Problem parsing the config file
> InitOutput - Error reading config file
[snip!]

I guess this is the cause of my problems?

Do I need something more in my XF86Config?  Some extra levels perhaps?

The "InputDevice" sections in my linux XF86Config files, look like
they have identical syntax, without any extra levels.



Re: Problems setting Norwegian keyboard

2003-08-14 Thread Steinar Bang
> Alexander Gottwald <[EMAIL PROTECTED]>:

>> Do I need something more in my XF86Config?
[snip!]

> there is a minimal sample at
> http://www.tu-chemnitz.de/~goal/xfree/XF86Config.bz2

Thanx!  I put in the dummy sections at the end of this file (see my
attached XF86Config file below).  I could change the line in
startxwin.bat to look like this:
start XWin -multiwindow -clipboard
and still get a Norwegian keyboard.

I didn't put in your fontpath settings, though.  Seems to work without
them.  Should I put them in?

> BTW: can you run the program from 
> http://www.tu-chemnitz.de/~goal/keyboard.tar.gz

I get a "404 Not found" on that URL, unfortunately.

> It will print your windows keyboardsettings. With this information I
> can the norwegian layout to the list of preconfigured ones.

Great!

Thanx!


- Steinar

Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"

Option "XkbModel" "pc102"
Option "XkbLayout" "no"
Option "XKbOptions" ""
EndSection
# 
# The following sections are just added to fulfill the requirements of the 
# configfile parser and have no effect on the configuration of the 
# Cygwin/XFree86 XServer.
#
Section "Device"
Identifier  "dummy"
Driver  "dummy"
EndSection
Section "Monitor"
Identifier  "dummy"
EndSection
Section "Screen"
Identifier  "dummy"
Device  "dummy"
Monitor "dummy"
EndSection
Section "ServerLayout"
Identifier  "dummy"
Screen  "dummy"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection


Re: Problems setting Norwegian keyboard

2003-08-14 Thread Steinar Bang
> Alexander Gottwald <[EMAIL PROTECTED]>:

> On Mon, 11 Aug 2003, Steinar Bang wrote:

>> My /etc/X11/XF86Config file contains:

>> Section "InputDevice"
>> Identifier "Keyboard1"
>> Driver "Keyboard"
>> 
>> Option "XkbModel" "pc102"
>> Option "XkbLayout" "no"
>> Option "XKbOptions" ""
>> EndSection

> can you send /tmp/XWin.log?

Attached to this message.

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 960
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
(++) Using config file: "/etc/X11/XF86Config"
Data incomplete in file /etc/X11/XF86Config
At least one Device section is required.
(EE) Problem parsing the config file
InitOutput - Error reading config file
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winSetEngine - Multi Window => ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winCreateBoundingWindowWindowed - User w: 1280 h: 960
winCreateBoundingWindowWindowed - Current w: 1280 h: 960
winAdjustForAutoHide - Original WorkArea: 0 0 932 1247
winAdjustForAutoHide - Adjusted WorkArea: 0 0 932 1247
winCreateBoundingWindowWindowed - WindowClient w 1247 h 932 r 1247 l 0 b 932 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowGDI - Creating DIB with width: 1247 height: 932 depth: 32
winAllocateFBShadowGDI - Dibsection width: 1247 height: 932 depth: 32 size image: 
4648816
winAllocateFBShadowGDI - Created shadow stride: 1247
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winCreateDefColormap - Deferring to fbCreateDefColormap ()
null screen fn ReparentWindow
null screen fn RestackWindow
winFinishScreenInitFB - Calling winInitWM.
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitWM - Returning.
winFinishScreenInitFB - Calling winInitClipboard.
winInitClipboard ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
winClipboardProc - Hello
winClipboardProc - Calling pthread_mutex_lock ()
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" Options = "(null)"
winPointerWarpCursor - Discarding first warp: 623 466
winBlockHandler - Releasing pmServerStarted
winInitMultiWindowWM - pthread_mutex_lock () returned.
DetectUnicodeSupport - Windows NT/2000/XP
winInitMultiWindowWM - Calling setlocale ()
winBlockHandler - pthread_mutex_unlock () returned
winInitMultiWindowWM - setlocale () returned
winInitMultiWindowWM - XInitThreads () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - pthread_mutex_lock () returned.
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - XInitThreads () returned.
winClipboardProc - pthread_mutex_unlock () returned.
winClipboardProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.


Re: Problems setting Norwegian keyboard

2003-08-14 Thread Alexander Gottwald
On Tue, 12 Aug 2003, Steinar Bang wrote:

> $ ./keyboard.exe
> KeyboardType: 4: IBM enhanced (101- or 102-key) keyboard
> KeyboardLayout: 0414

Thanks

> Note: I have an icon in the tool tray which either displays the text
> "NO" or "EN".  Left-button clicking on this icon, opens a menu that
> offers selection of "Norwegian (bokmål)" or "English (United
> States)".  Changing the selection affects the keyboard when typing,
> but doesn't affect the output of keyboard.exe.

XWin does not use the settings made with this icon. It uses the default
setting. The others are just supplements.

bye
ago


Re: Problems setting Norwegian keyboard

2003-08-14 Thread Alexander Gottwald
On Tue, 12 Aug 2003, Steinar Bang wrote:

> I didn't put in your fontpath settings, though.  Seems to work without
> them.  Should I put them in?

No, this is only needed in few cases.

> > BTW: can you run the program from 
> > http://www.tu-chemnitz.de/~goal/keyboard.tar.gz
> 
> I get a "404 Not found" on that URL, unfortunately.

http://www.tu-chemnitz.de/~goal/xfree/keyboard.tar.gz

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: Problems setting Norwegian keyboard

2003-08-14 Thread Steinar Bang
> Alexander Gottwald <[EMAIL PROTECTED]>:

>> > BTW: can you run the program from 
>> > http://www.tu-chemnitz.de/~goal/keyboard.tar.gz

>> I get a "404 Not found" on that URL, unfortunately.

> http://www.tu-chemnitz.de/~goal/xfree/keyboard.tar.gz

$ ./keyboard.exe
KeyboardType: 4: IBM enhanced (101- or 102-key) keyboard
KeyboardLayout: 0414

Note: I have an icon in the tool tray which either displays the text
"NO" or "EN".  Left-button clicking on this icon, opens a menu that
offers selection of "Norwegian (bokmål)" or "English (United
States)".  Changing the selection affects the keyboard when typing,
but doesn't affect the output of keyboard.exe.



Re: Problems setting Norwegian keyboard

2003-08-14 Thread Alexander Gottwald
On Mon, 11 Aug 2003, Steinar Bang wrote:

> > Data incomplete in file /etc/X11/XF86Config
> > At least one Device section is required.
> > (EE) Problem parsing the config file
> > InitOutput - Error reading config file
> [snip!]
> 
> I guess this is the cause of my problems?
> 
> Do I need something more in my XF86Config?  Some extra levels perhaps?
> 
> The "InputDevice" sections in my linux XF86Config files, look like
> they have identical syntax, without any extra levels.

there is a minimal sample at
http://www.tu-chemnitz.de/~goal/xfree/XF86Config.bz2

BTW: can you run the program from 
http://www.tu-chemnitz.de/~goal/keyboard.tar.gz

It will print your windows keyboardsettings. With this information I can
the norwegian layout to the list of preconfigured ones.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723