Posts: 1,228
secipolla
Joined: 15 Jun 2008
#1
Hi, I'm using AntixM-8 and I chose br-abnt2 for my keyboard layout. That's what's selected in xorg.conf but it seems that the app in Control Panel overrides it (and there's no Brazilian option there). I need help solving this.

Code: Select all

Section"ServerLayout"
  Identifier"XFree86 Configured"
  Screen 0"Screen0" 0 0
 #Screen 0"ATIScreen" 0 0
 #Screen 1"Screen1" RightOf"Screen0"
 #Option"Xinerama""true"
 #Option"Clone""true"
  InputDevice"Keyboard0""CoreKeyboard"
  InputDevice"PS/2 Mouse""CorePointer"
 #InputDevice"USB Mouse""CorePointer"
 #InputDevice"Touchpad""SendCoreEvents"
 #InputDevice"ALPS Touchpad""SendCoreEvents"
 #InputDevice"Appletouch""SendCoreEvents"
 #InputDevice"Stylus""SendCoreEvents"
 #InputDevice"Eraser""SendCoreEvents"
 #InputDevice"Cursor""SendCoreEvents"
 #InputDevice"Serial Mouse""CorePointer"
EndSection

Section"ServerFlags"
  Option"AllowMouseOpenFail""true"
EndSection

Section"Files"
# Xorg 7.0 font paths
    FontPath    "/usr/share/fonts/X11/100dpi:unscaled"
    FontPath    "/usr/share/fonts/X11/misc:unscaled"

# Other font paths
    FontPath    "/usr/share/fonts/truetype/arphic"
    FontPath    "/usr/share/fonts/truetype/freefont"
    FontPath    "/usr/share/fonts/truetype/kochi"
    FontPath    "/usr/share/fonts/truetype/ttf-bitstream-vera"

# path to defoma fonts
    FontPath   "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

EndSection

Section"Module"
  Load"dbe"
  Load"dri"
  Load"extmod"
  Load"freetype"
  Load"glx"
  Load"type1"
  Load"v4l"
  Load"vbe"
EndSection

Section"InputDevice"
  Identifier"Keyboard0"
  Driver"keyboard"
  Option"CoreKeyboard"
  Option"XkbModel""pc105"
  Option"XkbLayout""br-abnt2"
  Option"XKbOptions"""
EndSection

Section"InputDevice"
  Identifier"Serial Mouse"
  Driver"mouse"
  Option "Protocol""Microsoft"
  Option "Device""/dev/ttyS0"
  Option "Emulate3Buttons""false"
  Option "Emulate3Timeout""70"
EndSection

Section"InputDevice"
  Identifier"Touchpad"
  Driver"synaptics"
  Option"Device""/dev/psaux"
  Option"Protocol""auto-dev"
  Option"LeftEdge""1700"
  Option"RightEdge""5300"
  Option"TopEdge""1700"
  Option"BottomEdge""4200"
  Option"FingerLow""25"
  Option"FingerHigh""30"
  Option"MaxTapTime""180"
  Option"MaxTapMove""220"
  Option"VertScrollDelta""100"
  Option"HorizScrollDelta""0"
  Option"MinSpeed""0.09"
  Option"MaxSpeed""0.18"
  Option"AccelFactor""0.0015"
  Option"SHMConfig""on"
EndSection

Section"InputDevice"
  Driver"synaptics"
  Identifier"ALPS Touchpad"
  Option"Device""/dev/input/mouse0"
  Option"Protocol""event"
  Option"LeftEdge""130"
  Option"RightEdge""840"
  Option"TopEdge""130"
  Option"BottomEdge""640"
  Option"FingerLow""7"
  Option"FingerHigh""8"
  Option"MaxTapTime""180"
  Option"MaxTapMove""110"
  Option"EmulateMidButtonTime""75"
  Option"VertScrollDelta""20"
  Option"HorizScrollDelta""0"
  Option"MinSpeed""0.25"
  Option"MaxSpeed""0.50"
  Option"AccelFactor""0.030"
  Option"EdgeMotionMinSpeed""200"
  Option"EdgeMotionMaxSpeed""200"
  Option"UpDownScrolling""1"
  Option"CircularScrolling""1"
  Option"CircScrollDelta""0.1"
  Option"CircScrollTrigger""2"
  Option"SHMConfig""on"
EndSection

Section"InputDevice"
  Identifier"Appletouch"
  Driver"synaptics"
  Option"Device""/dev/psaux"
  Option"Protocol""auto-dev"
  Option"LeftEdge""100"
  Option"RightEdge""1120"
  Option"TopEdge""50"
  Option"BottomEdge""310"
  Option"FingerLow""25"
  Option"FingerHigh""30"
  Option"MaxTapMove""220"
  Option"TapButton1""1"
  Option"TapButton2""3"
  Option"TapButton3""2"
  Option"MinSpeed""0.79"
  Option"MaxSpeed""0.88"
  Option"AccelFactor""0.0015"
  Option"SHMConfig""on"
EndSection

Section"InputDevice"
  Identifier"PS/2 Mouse"
  Driver"mouse"
  Option"Protocol""auto"
  Option"Device""/dev/psaux"
  Option"Emulate3Buttons""false"
  Option"Emulate3Timeout""70"
  Option"ZAxisMapping""4 5"
  Option"Buttons""5"
EndSection

Section"InputDevice"
  Identifier"USB Mouse"
  Driver"mouse"
  Option"Device""/dev/input/mice"
  Option"Protocol""ExplorerPS/2"
  Option"ZAxisMapping""4 5"
  Option"Buttons""5"
EndSection

Section"InputDevice"
  Identifier"Stylus"
  Driver"wacom"
  Option"Mode""Absolute"
  Option"Type""stylus"
  Option"Device""/dev/input/wacom"
Endsection

# Settings for wacom eraser
Section"InputDevice"
  Identifier"Eraser"
  Driver"wacom"
  Option"Mode""Absolute"
  Option"Type""eraser"
  Option"Device""/dev/input/wacom"
Endsection

# Settings for wacom cursor (mouse)
Section"InputDevice"
  Identifier"Cursor"
  Driver"wacom"
  Option"Mode""Relative"
  Option"Type""cursor"
  Option"Device""/dev/input/wacom"
Endsection

Section"Monitor"
  Identifier"Monitor0"
  VendorName"unknown"
  ModelName"unknown"
  Option"DPMS""true"
  HorizSync    30-75
  VertRefresh  55-70

EndSection

Section"Monitor"
  Identifier"Monitor1"
  VendorName"unknown"
  ModelName"unknown"
  Option"DPMS""true"
  HorizSync    30-75
  VertRefresh  55-70
EndSection

Section"Monitor"
  Identifier "ATIMonitor"
  VendorName"unknown"
  ModelName"unknown"
  Option"DPMS""true"
  HorizSync    30-75
  VertRefresh  55-70
EndSection

Section"Device"
  Identifier "Card0"
  Driver"nv"
  BoardName"unknown"

  Screen 0
 #Option"UseDisplayDevice""dfp"
 #Option"MonitorLayout""crt,crt"
 #BusID "PCI:1:0:0"
 #Option"sw_cursor" # needed for some ati cards
 #Option"hw_cursor"
 #Option"NoAccel"
 #Option"ShowCache"
 #Option"ShadowFB"
 #Option"UseFBDev"
 #Option"Rotate"
  Option"UseInternalAGPGART""no"

  Option"XAANoOffscreenPixmaps""true"

# savage special options, use with care
 #Option"NoUseBios"
 #Option"BusType""PCI"
  Option"DmaMode""None"

# nvidia special options, use with care
  Option"CursorShadow""1"
  Option"CursorShadowAlpha""63"
  Option"CursorShadowYOffset""2"
  Option"CursorShadowXOffset""4"
  Option"FlatPanelProperties""Scaling = native"
  Option"NoLogo""true"
  Option"UseEDID""true"
  Option"AddARGBGLXVisuals""true"
  Option"RenderAccel""true"
 #Option"AllowGLXWithComposite""true"
EndSection

Section"Device"
  Identifier "Card1"
  Driver"nv"
  BoardName"unknown"

  Screen 1
 #Option"MonitorLayout""crt,crt"
 #BusID "PCI:1:0:0"
EndSection

Section"Screen"
  Identifier"Screen0"
  Device"Card0"
  Monitor"Monitor0"
  DefaultColorDepth 16
  
  SubSection"Display"
  Depth 8
  Modes"1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 15
  Modes"1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 16
  Modes"1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 24
  Modes"1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 32
  Modes"1024x768""800x600"
  EndSubSection
  
  # Only the official NVIDIA driver supports twinview
  # these setting are an example
  Option"TwinView""false"
  Option"SecondMonitorVendorName""unknown"
  Option"SecondMonitorModelName""unknown"
  Option"SecondMonitorHorizSync""30-75"
  Option"SecondMonitorVertRefresh""55-70"
 #Option"MetaModes""1024x768, 1024x768"
  Option"TwinViewOrientation""RightOf"
  Option"ConnectedMonitor""dfp,dfp"
EndSection

Section"Screen"
  Identifier"Screen1"
  Device"Card1"
  Monitor"Monitor1"
  DefaultColorDepth 16
  
  SubSection"Display"
  Depth 8
  Modes"1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 15
  Modes"1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 16
  Modes"1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 24
  Modes"1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 32
  Modes"1024x768""800x600"
  EndSubSection
EndSection

Section"Screen"
  Identifier"ATIScreen"
  Device"Card0"
  Monitor"ATIMonitor"
  DefaultColorDepth 24
  
  SubSection"Display"
  Depth 24
  Modes"1024x768""800x600"
  EndSubSection
EndSection

Section"DRI"
  Mode 0666
EndSection

Section"Extensions"
  Option"Composite""Enable"
EndSection
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Try editing Option"XKbOptions"""

to read

Option"XKbOptions""br"

You'll need to restart X
secipolla
Joined: 15 Jun 2008
#3
The solution was:
Option"XkbModel""abnt2" instead of Option"XkbModel""pc105"
Option"XkbLayout""br" instead of Option"XkbLayout""br-abnt2"
So if you can mend that, it's one more country (a big one) properly supported by Antix. __{{emoticon}}__

Another consideration: I use a GeForce4 MX460 video card (nVidia legacy driver). When I first installed Antix the graphics was awful, the monitor settings defaulted to 70Hz and squeezed the screen at the left and the right sides. My monitor operates in between 50Hz and 60Hz but when I chose 60Hz under the 'change screen resolution' in Control Panel it kept flickering even though the distortion disappeared. I couldn't imagine it would be so easy to install the nVidia proprietary driver (and the xorg.conf file was quite intimidating). I thought it was GNOME that was so much refined (there's an ubuntu install here) but no, Antix is looking good now.
You see (anticapitalista and the other guys that contribute with coding), it seems Antix isn't the kind of o.s. that sees your video card and pops up an advice asking if you want to install the cards prop. driver, but it's so easy and it works so much better that it should be more highlighted somewhere. I'm pretty ignorant about this but I thought it could be not so good to the monitor to work with wrong (higher) refresh rates too.
Thank you very much for all of you for this nice software!
Sergio.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#4
You are right on both points.
I hadn't read carefully about the xorg.conf settings, and, of course your solution is correct.

For the second point about nvidia and screen, I have the same problem on 2 of the desktops I use, ie the screen doesn't centre correctly until the nvidia driver is installed and then it is perfect.

I'll look into this for future releases.

Have fun with antiX.
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#5
Maybe a 'post install' script would be a good idea? Something that would start automatically after the first reboot. You could use it to install things like graphics drivers or locales, maybe bring it up to date or set up some customizing.

Another addition could be a quick antiX walk through. Something that would 'explain' the control center.

Food for thought.