Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] configuring keyboard layout on i3 (in xorg.conf)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lordalbert
l33t
l33t


Joined: 26 Nov 2006
Posts: 832
Location: Italy

PostPosted: Sat Dec 13, 2014 3:46 pm    Post subject: [solved] configuring keyboard layout on i3 (in xorg.conf) Reply with quote

Hi, i'm start using i3, but i have problems with keyboard layout (i want an Italian layout).

I need to set in in the xorg configuration file. If i don't start X, the keyboard layout is correct (italian).


I tryed to configure xorg, but it doesn't works. Probably i make some error... I post here my xorg.conf

Quote:

cat /etc/X11/xorg.conf

Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
Screen "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0"
InputDevice "tastiera"
EndSection

Section "Module"
EndSection

Section "InputDevice"
Identifier "tastiera"
Driver "evdev"
Option "XkbLayout" "it"
Option "XkbModel" "pc104"
Option "XkbVariant" ",qwerty"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]-1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]-1"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-1"
Device "aticonfig-Device[0]-1"
Monitor "aticonfig-Monitor[0]-1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection



Last edited by lordalbert on Sat Dec 13, 2014 4:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7167

PostPosted: Sat Dec 13, 2014 4:08 pm    Post subject: Reply with quote

http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml

simple and generic /etc/X11/xorg.conf.d/97-evdev.conf wrote:
Section "InputClass"
Identifier "mouse-all"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "AutoServerLayout" "on"
EndSection

Section "InputClass"
Identifier "keyboard-all"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "fr" <-- change as need
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"<-- change as need
Option "AutoServerLayout" "on"
EndSection
Back to top
View user's profile Send private message
lordalbert
l33t
l33t


Joined: 26 Nov 2006
Posts: 832
Location: Italy

PostPosted: Sat Dec 13, 2014 4:16 pm    Post subject: Reply with quote

Ok, thank you! Now it works! :)
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7167

PostPosted: Sat Dec 13, 2014 4:20 pm    Post subject: Reply with quote

I know i'm kind, but i just hope you'll still have a look at the doc ;)
Back to top
View user's profile Send private message
lordalbert
l33t
l33t


Joined: 26 Nov 2006
Posts: 832
Location: Italy

PostPosted: Sat Dec 13, 2014 4:27 pm    Post subject: Reply with quote

Yes, but i had already read documentation (peraphs not the right docs! :D )

In particular, i read the Wiki (gentoo): http://wiki.gentoo.org/wiki/Xorg/Configuration

And the Xorg doc, that sugger to use InputDevice (so i change the InputClass of the gentoo wiki): http://www.x.org/archive/X11R6.8.1/doc/DESIGN2.html
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7167

PostPosted: Sat Dec 13, 2014 4:33 pm    Post subject: Reply with quote

http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml wrote:
A new configuration section called InputClass is introduced. It is very similar to the InputDevice section but can match (and therfore configure) multiple devices.


So you could use InputDevice or InputClass but if you want configure multiple device in a go, it's InputClass.
Better use InputClass, so if you use multi-keyboard/mouse they get configure as you wish per default.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum