f0d0
![]() |
|
|
|
|
|||||||
| X.Org X.Org on FreeBSD installation & configuration. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
||||
|
||||
|
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 & 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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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
__________________
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 |
|
#5
|
|||
|
|||
|
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! |
|
#6
|
|||
|
|||
|
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 Code:
# touch x11-input.fdi 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>
reboot |
|
#7
|
||||
|
||||
|
You still haven't answered if you're using any desktop enviroment, or custom desktop.
And how do you start X? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |