f0d0 Keyboard layout problems - 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 November 23rd, 2009, 22:32
Dinchamion Dinchamion is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Keyboard layout problems

Hello,

I'm a long-time linux user just migrating to FreeBSD, so please be patient.

My problem is (well, one of my problems is) that I can't seem to set the keyboard layout permanently in X. I installed and configured FreeBSD just fine, installed X with some minimal problems (I'm still sorting those out, no major issues though), but this problem seems to elude me and it's starting to drive me crazy.

My keyboard layout should be Hungarian, and in console, it actually is. However any time I start X, it switches to us. I googled the issue and tried out like a million suggestions, but I still have no idea why it won't work.

As a real newbie to FreeBSD, I have no idea what kind of log output I should include here, so please bear with me, and tell me which ones you need to help me.

Thank you in advance!
Reply With Quote
  #2  
Old November 23rd, 2009, 22:40
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,522
Thanks: 422
Thanked 607 Times in 475 Posts
Default

depends on how you start X (do you use startx, xdm, gnome, kde etc..)

The one of simple solutions is, if you start X with startx, then simply add
Code:
setxkbmap hu &
to ~/.xinitrc
before executing your Window Manager

If you use some window manager you just need to add setxkbmap hu to configuration, so it would be executed every time your Window Manager is started


P.S.
Personally I even have link from ~/.xsession to ~/.xinitrc, this is useful if you use xdm, because it will execute xsession (if i remember corectly), gdm also can execute ~/.xsession.

Remember ~/.xinitrc and ~/.xsession are read and executed as sh scripts

Last edited by graudeejs; November 23rd, 2009 at 22:50.
Reply With Quote
The Following 2 Users Say Thank You to graudeejs For This Useful Post:
donxc (December 7th, 2009), siggi (August 3rd, 2010)
  #3  
Old November 23rd, 2009, 23:43
Mordy Mordy is offline
Junior Member
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I too have linked from ~/.xsession to ~/.xinitrc and found it to be more beneficial for then you are able to execute xsession.
__________________
Mordy Naftaly
www.rs232-converters.com
Reply With Quote
  #4  
Old November 25th, 2009, 03:49
SPlissken's Avatar
SPlissken SPlissken is offline
Member
 
Join Date: Nov 2008
Location: France
Posts: 150
Thanks: 18
Thanked 6 Times in 6 Posts
Default

Personnaly , i m french , to have french keyboard layout i added this line in xorg.conf :

Code:
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option "Xkblayout" "fr"
EndSection
May be you have to do same with 'hu'
__________________
FreeBSD sp-freebsd 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Sun Dec 23 18:57:51 CET 2012 root@sp-freebsd:/usr/obj/usr/src/sys/SPKERNEL amd64
Reply With Quote
  #5  
Old November 25th, 2009, 11:54
Dinchamion Dinchamion is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Weird part is, this is the stuff I did... First I tried with xorg.conf, no go. Then with .xinitrc, same problem.

But I'll start over from scratch, with more attention and maybe with more luck.

Thanks all!
Reply With Quote
  #6  
Old November 25th, 2009, 12:34
FRANCOIS FRANCOIS is offline
Junior Member
 
Join Date: Oct 2009
Location: North of FRANCE
Posts: 34
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I gather you're using freebsd7.2:
In a terminal:
Code:
echo 'hald_enable="YES"' >> /etc/rc.conf
echo 'dbus_enable="YES"' >> /etc/rc.conf
create a file x11-input.fdi:
Code:
# touch x11-input.fdi
then add this content in it:
Code:
# vi x11-input.fdi
Code:
<?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">hu</merge>
    </match>
  </device>
</deviceinfo>
copy it to /usr/local/etc/hal/fdi/policy

reboot
Reply With Quote
  #7  
Old November 25th, 2009, 13:27
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,522
Thanks: 422
Thanked 607 Times in 475 Posts
Default

You still haven't answered if you're using any desktop enviroment, or custom desktop.

And how do you start X?
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
change keybord layout in single user mode ccc General 8 May 9th, 2012 21:17
Partition Layout Scheme - Please Help tcoffeep Installing & Upgrading 7 October 6th, 2009 00:57
xinerama causes keyboard (?) problems kondziq X.Org 0 May 16th, 2009 10:55
vnc and keyboard problems cipher Installation and Maintenance of FreeBSD Ports or Packages 3 May 13th, 2009 11:25
Advice needed: logserver layout, config, ... uisge Web & Network Services 1 December 31st, 2008 16:24


All times are GMT +1. The time now is 09:08.


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