Xorg 1.6.5: can't find the xorg.conf file to configure keyboard.
Hi all,
I would like help to configure xorg to change keyboard layout. I just did a fresh install of Debian Squeeze (testing) and X 11.0, xorg 1.6.5 is installed. I need to be able to switch keyboard layout and up to now (in my Lenny/Sid I had previously and all previous versions of Debian I've used), I was able to do it by tweaking the /etc/X11/xorg.conf : Quote:
I'm sure I'm missing the obvious here, I would appreciate any help. Thanks. |
I, don't know how is on Debian, but in new Slackware, the new X doesn't need xorg.conf, sot here is no one. You can add "setxkbmap" command into your .xinitrc file:
Code:
setxkbmap -model pc102 -layout us,el -option grp:alt_shift_toggle |
Thanks for answering me!
Yes, I remember too reading somewhere that the new X doesn't need xorg.conf. I wonder how are people supposed to configure/customize their settings, though. Well, by trying to implement your suggestion, I noticed two more things: 1) I don't have .xinitrc 2) Control-Alt-Backspace doesn't kill X anymore! I wrote a .xinitrc but, apparently, it doesn't get read. I also tried to pass setxkbmap into ~/.profile, but doesn't function either: once I exit the session, it stops working. So, problem remains the same. |
I don't know the answer to your question exactly, but at least in the new Slackware with the new xorg, you CAN create an xorg.conf file and it will be used. It's required for my NVIDIA proprietary driver. On my slack, at least, there is xorgsetup I believe will allow for a remap of the keyboard and set up an xorg.conf file for you. I'm not sure how well it will work, but it's worth a try. You can always just "rm xorg.conf" if it fails to work properly with no ill effects. Of course this has been my experience with slackware_current while trying to sort out a driver issue the last few weeks.
|
Thanks for your answer, unfortunately there's no xorgsetup or xorgcfg in Debian. I finally solved the problem, but I definitively have to get xorg to read a xorg.conf.
BTW, out of curiosity, does Control+Alt+Backspace kill X in Slackware? I wonder why it stopped doing so in Debian. Anyway, I solved the problem thanks to this page. Basically, I created a /etc/hal/fdi/policy/x11-input.fdi file: Quote:
BTW, the terminate:ctrl_alt_bksp option doesn't work :( Anyway, problem solved and thanks those who answered. |
Yes CTRl+ALT+BACKSPACE does kill x. It's a version thing I believe from http://www.linuxquestions.org/questi...cpugpu-776169/. From a console you can't type
PHP Code:
|
Quote:
Quote:
Quote:
But after reading the thread you linked, it seems I should try and modify hal policies instead of xorg.conf. |
My machine doesn't require xorg.conf and doesn't have one if I don't create one, it's actually been very handy for me to troubleshoot issues with the nvidia proprietary driver and kernels from 2.6.31 up locking my machine. After the required hard reset I just rename xorg.conf so I startx with an open source driver. Debian (or actually ubuntu) always confuses me
|
dpkg-reconfigure console-setup has an option for ctrl+alt+backspace to kill X
Xorg - Debian Wiki Quote:
|
Hi,
With Debian these days it is best, IMNSHO, to use the "console-setup" package. Yes, I know that sounds strange since you are asking about X, but if you use this package to set your keyboard on the console, X will automatically use the same settings. So just install the package and answer the config questions it asks you. I think this has been the situation is sid for about 6 months now. http://packages.debian.org/sid/console-setup Cheers, Evo2. |
@ damgar:
Yeah, I've heard Slackware is more straight-forward than Debian. I wouldn't mind to have to create my own xorg.conf file (I did already, actually), but I'm puzzled as to why xorg doesn't read it. I have configured the xdm to iniciate at startup, so I log in directly in X, but even if I go with startx, xorg.conf still doesn't get read. @ craigevil: Thanks for your answer! Quote:
As for the Debian wiki entry, I saw it before posting this thread. My problem is, actually, that X seems to ignore my xorg.conf. However, editing the hald seemed to fix the problem (though ctrl+alt+bksp still doesn't kill X). @ Evo2: And now I have Greek on the console, too! Thanks! (I was initially hesitant to change the default encoding, but it works fine, I can switch easily between Latin and Greek characters) |
I found to re-enable ctrl-alt-bkspce to restart X i had to do the following:
Code:
dpkg-reconfigure keyboard-configuration |
@ the trooper:
It doesn't. However the /etc/default/keyboard is modified: Quote:
|
Did dpkg-reconfigure keyboard-configuration give you the option to use ctrl-alt-bkspce?.
You might also have to restart X. |
Yes, it did give me the option and I did restart X. It just doesn't work.
Googling a bit more about this, it seems to be a feature of X.org > 1.5, supposedly to prevent new users from accidentally killing X and lose their work? I still don't get why users that do want this functionality are not given an easy and obvious option to get it. |
Quote:
|
This sounds possible. I will later today undo the changes I've made these days and try and see if keyboard-configuration solves the problem. It would be nice to have again one file used to control X.
|
All times are GMT -5. The time now is 04:30 AM. |