16400 [Solved] Turkish Keyboard - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > X.Org

X.Org X.Org on FreeBSD installation & configuration.

Reply
 
Thread Tools Display Modes
  #1  
Old April 15th, 2012, 15:49
Majorix's Avatar
Majorix Majorix is offline
Member
 
Join Date: Dec 2011
Location: Turkey
Posts: 145
Thanks: 40
Thanked 5 Times in 5 Posts
Default Turkish Keyboard

I have set this line in /etc/rc.conf:
Code:
keymap=tr.iso9.q
Layout is fine when not in X. However, starting with the call to SLiM, GDM or XDM, I am reset to US keyboard layout.

Using LXDE but this is also the case in Gnome.

What can I do?

Last edited by Majorix; May 3rd, 2012 at 22:53. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old April 15th, 2012, 17:20
Beeblebrox's Avatar
Beeblebrox Beeblebrox is offline
Member
 
Join Date: Sep 2010
Posts: 713
Thanks: 39
Thanked 76 Times in 68 Posts
Default

Desktop environments keep their own settings as opposed to xorg (X11).
One solution is to place in .xinitrc of the user:
Code:
setxkbmap -layout tr
Gnome also has its own GUI under System -> Preferences -> Keyboard -> Layouts -> Add
__________________
branch:head - root on zfs - amd64
BLUES, ELWOOD
ILLINOIS LICENSE : B263-1655-2187
CURRENTLY UNDER SUSPENSION
WARRANTS OUTSTANDING : PARKG. 116
MOVING VIOLATIONS : 56
ARREST DRIVER ... IMPOUND VEHICLE

Last edited by DutchDaemon; April 16th, 2012 at 00:52.
Reply With Quote
  #3  
Old April 16th, 2012, 18:00
Majorix's Avatar
Majorix Majorix is offline
Member
 
Join Date: Dec 2011
Location: Turkey
Posts: 145
Thanks: 40
Thanked 5 Times in 5 Posts
Default

Well, if I set this in .xinitrc and reboot, the problem persists. However if I write this in a terminal GUI after I am in X, the layout changes back to Turkish and everything is fine.

So, is there maybe a way to add a command to be executed automatically AFTER I am on X? I always run in single-user mode, if you need to know.

Thanks!
Reply With Quote
  #4  
Old April 16th, 2012, 18:26
Beeblebrox's Avatar
Beeblebrox Beeblebrox is offline
Member
 
Join Date: Sep 2010
Posts: 713
Thanks: 39
Thanked 76 Times in 68 Posts
Default

Can you please clarify what you mean by:
Quote:
I always run in single-user mode
There's no way you could go graphical while in "single user mode" as expressed in FreeBSD terminology.
__________________
branch:head - root on zfs - amd64
BLUES, ELWOOD
ILLINOIS LICENSE : B263-1655-2187
CURRENTLY UNDER SUSPENSION
WARRANTS OUTSTANDING : PARKG. 116
MOVING VIOLATIONS : 56
ARREST DRIVER ... IMPOUND VEHICLE
Reply With Quote
  #5  
Old April 16th, 2012, 18:47
Majorix's Avatar
Majorix Majorix is offline
Member
 
Join Date: Dec 2011
Location: Turkey
Posts: 145
Thanks: 40
Thanked 5 Times in 5 Posts
Default

You see, I am still new to FreeBSD and the terms Just ignore that part of the post, sorry for the confusion.
Reply With Quote
  #6  
Old April 17th, 2012, 06:02
Beeblebrox's Avatar
Beeblebrox Beeblebrox is offline
Member
 
Join Date: Sep 2010
Posts: 713
Thanks: 39
Thanked 76 Times in 68 Posts
Default

Sure thing.
When you modified .xinitrc it was the one in your user's home folder (~/), right?
$ vi /home/majorix/.xinitrc
Not /root or some other user's home (which there are none as you are the only "user")
__________________
branch:head - root on zfs - amd64
BLUES, ELWOOD
ILLINOIS LICENSE : B263-1655-2187
CURRENTLY UNDER SUSPENSION
WARRANTS OUTSTANDING : PARKG. 116
MOVING VIOLATIONS : 56
ARREST DRIVER ... IMPOUND VEHICLE
Reply With Quote
  #7  
Old April 17th, 2012, 14:03
Majorix's Avatar
Majorix Majorix is offline
Member
 
Join Date: Dec 2011
Location: Turkey
Posts: 145
Thanks: 40
Thanked 5 Times in 5 Posts
Default

Yes, it is in MY home folder, not root's. I believe SLiM (which I am currently using) needs it to be in the user's home folder, otherwise it wouldn't run.
Reply With Quote
  #8  
Old April 17th, 2012, 14:47
kpa kpa is offline
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,007
Thanks: 44
Thanked 466 Times in 396 Posts
Default

I believe the commands should go to ~/.xsession if you log in with xdm(1) or any other similar X session manager.
Reply With Quote
  #9  
Old April 17th, 2012, 15:18
Majorix's Avatar
Majorix Majorix is offline
Member
 
Join Date: Dec 2011
Location: Turkey
Posts: 145
Thanks: 40
Thanked 5 Times in 5 Posts
Default

I don't know, I have used this page and it gave me the idea that I needed to edit .xinitrc.
Reply With Quote
  #10  
Old April 17th, 2012, 16:48
Beeblebrox's Avatar
Beeblebrox Beeblebrox is offline
Member
 
Join Date: Sep 2010
Posts: 713
Thanks: 39
Thanked 76 Times in 68 Posts
Default

That page has several things all mixed-up for optimal confusion.

1. FreeBSD uses sh / csh / tcsh family of shells which uses setenv whereas,
$ export VARIABLE=value
is for or bourne, bash, and related shells. Bash is not installed by default it's in the ports if you want to use it. However, you will also have to set your shell as bash for the "export=" command to work.
2. Both ~/.xinitrc and ~/.xsession override environment settings - that's why they don't carry over to graphical window. The syntax of either one does not use setenv or export. You just place the command similar to xorg.conf syntax. Therefore in ~/.xinitrc:
Code:
setxkbmap -layout tr
and NOT
Code:
export setxkbmap layout=tr
Also, Handbook Verse 24.3.6
__________________
branch:head - root on zfs - amd64
BLUES, ELWOOD
ILLINOIS LICENSE : B263-1655-2187
CURRENTLY UNDER SUSPENSION
WARRANTS OUTSTANDING : PARKG. 116
MOVING VIOLATIONS : 56
ARREST DRIVER ... IMPOUND VEHICLE
Reply With Quote
  #11  
Old April 17th, 2012, 18:15
Majorix's Avatar
Majorix Majorix is offline
Member
 
Join Date: Dec 2011
Location: Turkey
Posts: 145
Thanks: 40
Thanked 5 Times in 5 Posts
Default

I did NOT use export or setenv. What I have in .xinitrc is identical to what you wrote in your first post.

I still don't have a solution to this
Reply With Quote
  #12  
Old April 17th, 2012, 20:44
Beeblebrox's Avatar
Beeblebrox Beeblebrox is offline
Member
 
Join Date: Sep 2010
Posts: 713
Thanks: 39
Thanked 76 Times in 68 Posts
Default

You're not providing much info so I'm just shooting in the dark...

1. You did place in /etc/X11/xorg.conf such entry, right?
Code:
Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbModel" "pc105"
        Option      "XkbLayout" "tr"
EndSection
2. Have you tried the gnome GUI [Keyboard -> Layouts -> Add] from post #2?
__________________
branch:head - root on zfs - amd64
BLUES, ELWOOD
ILLINOIS LICENSE : B263-1655-2187
CURRENTLY UNDER SUSPENSION
WARRANTS OUTSTANDING : PARKG. 116
MOVING VIOLATIONS : 56
ARREST DRIVER ... IMPOUND VEHICLE
Reply With Quote
  #13  
Old April 21st, 2012, 21:37
Majorix's Avatar
Majorix Majorix is offline
Member
 
Join Date: Dec 2011
Location: Turkey
Posts: 145
Thanks: 40
Thanked 5 Times in 5 Posts
Default

@Beeblebrox:
I had no xorg.conf, so I just created one and filled in the values in your post. However this only restricted X from starting.

I decided to try another idea. I found this to work:
HTML Code:
% cat /usr/local/etc/hal/fdi/policy/x11-input.fdi
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keyboard">
	  <merge key="input.x11_options.XkbModel" type="string">pc105</merge>
	  <merge key="input.x11_options.XkbLayout" type="string">tr</merge>
    </match>
  </device>
</deviceinfo>
Hope this helps others who have the same problem.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard unresponsive when 2nd keyboard unplugged lclee X.Org 5 March 9th, 2011 22:48
xdm keyboard unresponsive after 2nd keyboard unplugged lclee Peripheral Hardware 1 February 8th, 2011 01:22
[Solved] PS/2 Keyboard Recognized Only When USB Keyboard Plugged In aorchid Peripheral Hardware 2 June 22nd, 2010 21:49
[Solved] Turkish character support - /usr/share/sysconf is not present aurora72 General 3 May 1st, 2010 19:25
usb keyboard stalls on a lock key due to no PS/2 keyboard jims Peripheral Hardware 2 March 17th, 2010 13:43


All times are GMT +1. The time now is 12:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0