WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Xorg.conf readonly  (Read 4724 times)

Offline Marco Trapanese

  • Newbie
  • *
  • Posts: 28
Xorg.conf readonly
« on: May 07, 2011, 08:51:22 AM »
Hello, I'm trying to edit the xorg.conf file in /etc/X11. Of course I use sudo to get root privilege.
Anyway vi tells the file is readony. Why?

Thanks!
Marco

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: Xorg.conf readonly
« Reply #1 on: May 07, 2011, 09:02:08 AM »
Maybe this file is a link to /tmp/tcloop/Xorg-7.5/etc/X11/xorg.conf?

If so, copy that file to /etc/X11 so you can edit it

Offline Marco Trapanese

  • Newbie
  • *
  • Posts: 28
Re: Xorg.conf readonly
« Reply #2 on: May 07, 2011, 09:59:01 AM »
You're right, thank you.

I was able to edit the xorg.conf file. I added the following:

Code: [Select]
Section “InputDevice”
Identifier “Keyboard0”
Driver “kbd”
Option “XkbLayout” “it”
Option “XkbModel” “pc105”
EndSection

and I inserted a new line at the end of the file.

The Xserver doens't start anymore.
If I remove the xorg.conf it works again (of course with a different keyboard layout)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: Xorg.conf readonly
« Reply #3 on: May 07, 2011, 10:01:40 AM »
Are there any useful error messages in /var/log/Xorg.0.log?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Xorg.conf readonly
« Reply #4 on: May 07, 2011, 10:09:50 AM »
Tried using regular " "?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Xorg.conf readonly
« Reply #5 on: May 08, 2011, 05:06:54 PM »
You're right, thank you.

I was able to edit the xorg.conf file. I added the following:

Code: [Select]
Section “InputDevice”
Identifier “Keyboard0”
Driver “kbd”
Option “XkbLayout” “it”
Option “XkbModel” “pc105”
EndSection

and I inserted a new line at the end of the file.

The Xserver doens't start anymore.
If I remove the xorg.conf it works again (of course with a different keyboard layout)

see my conf below.
Difference to youre:
- "de" instead of "it"
- youre and my "" are different
- no Xkbmodel
- my conf looks dirty..


Section "ServerLayout"
        Identifier     "TCL Xorg7.4 configured and manually changed 2011_04_13"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option         "aiglx"    "true"
EndSection

Section "Files"
        ModulePath   "/usr/local/lib/X11/modules"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/TTF/"
#        FontPath     "/usr/local/lib/X11/fonts/OTF/"
        FontPath     "/usr/local/lib/X11/fonts/Type1/"
        FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
        Load  "extmod"
           SubSection "extmod"
                option "omit xfree86-dga" # according knoppix
           EndSubSection
        Load  "glx"
        Load  "dri"
        Load  "dbe"
#       Load  "xtrap"
#       Load  "speedo"
#       Load  "type1"   # uncomment for avoiding errors in log file
#       Load  "xtt"   
#       Load  "freetype"   # uncomment for avoiding errors in log file
EndSection

Section "DRI"
        Group "staff"
        Mode    0666
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"

        Driver      "kbd"   # this driver gives no shift taste in xorg74
#        Driver      "keyboard"  # perhaps works in xorg 74, 75 dont know

#        Option      "CoreKeyboard"    # dont know if necessary

#        Option      "XkbRules" "xorg"   # ok in xorg75, perhaps 74
#        Option      "XkbRules" "Xfree86"  # test in xorg74 and 75

#       Option      "XkbModel" "pc105"  # ok in xorg75, perhaps 74
        Option      "XkbLayout" "de"  # de ok in xorg75, not 74 because no shift. de-latin1 nok.   
#       put this line  [ -e /usr/local/bin/setxkbmap ] && setxkbmap -layout "de" -variant "nodeadkeys"
#       as the last line of the file /home/tc/.xsession in Xorg74
#        Option      "Xkbkeymap" "de"  # test in xorg74 and 75
#        Option      "XkbVariant" "nodeadkeys"  # test is still ok when away
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
#       Option       "CalcAlgorithm" "CheckDesktopGeometry"
#       DisplaySize      320   240     # mm, size spec S704HT
        Identifier   "Monitor0"
        VendorName   "IIYAMA"
        ModelName    "S704HT Vision Master 404"
#        HorizSync    27-96
#        VertRefresh  50-160
#        Option       "DPMS" "true"   # seems ok in xorg74 and 75; da kein acpi,
                                      # test wenn die Option weg ist
#        UseModes     "Modes[0]"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "mga"
#        Driver      "vesa"
        VendorName  "Matrox"
        BoardName   "MGA G400 AGP"
#        ChipSet     "mgag400"
        BusID       "PCI:1:0:0"
#        VideoRam     16384
#        Option      "SWcursor"  "TRUE"
#        Option      "HWcursor"  "FALSE"
#        Option      "UseInternalAGPGART" "no"       
         Option      "AGPMode"               "2"
#        Option      "XAANoOffscreenPixmaps" "true"
        Option "OldDmaInit" "On"   # according https://wiki.archlinux.org/index.php/Xorg
EndSection

#Section "Modes"
#  Identifier   "Modes[0]"
#  Modeline    "1024x768" 73.89 1024 1080 1192 1360 768 769 772 799
#  Modeline    "1024x768" 86.18 1024 1088 1200 1376 768 769 772 803
#  Modeline    "1024x768" 97.84 1024 1088 1200 1376 768 769 772 808
#  Modeline    "1024x768" 110.91 1024 1096 1208 1392 768 769 772 813
#  Modeline    "1024x768" 122.97 1024 1096 1208 1392 768 769 772 818
#  Modeline    "1024x768" 131.43 1024 1096 1208 1392 768 769 772 821
#  Modeline    "1600x1200" 184.66 1600 1712 1888 2176 1200 1201 1204 1248
#  Modeline    "1600x1200" 205.99 1600 1720 1896 2192 1200 1201 1204 1253
#  Modeline    "1280x1024" 125.14 1280 1368 1504 1728 1024 1025 1028 1065
#  Modeline    "1280x1024" 145.69 1280 1376 1512 1744 1024 1025 1028 1071
#  Modeline    "1280x1024" 165.29 1280 1376 1512 1744 1024 1025 1028 1077
#  Modeline    "1024x768" 73.89 1024 1080 1192 1360 768 769 772 799
#  Modeline    "1024x768" 86.18 1024 1088 1200 1376 768 769 772 803
#  Modeline    "1024x768" 97.84 1024 1088 1200 1376 768 769 772 808
#  Modeline    "1024x768" 110.91 1024 1096 1208 1392 768 769 772 813
#  Modeline    "1024x768" 122.97 1024 1096 1208 1392 768 769 772 818
#  Modeline    "1024x768" 131.43 1024 1096 1208 1392 768 769 772 821
#  Modeline    "800x600" 44.13 800 840 920 1040 600 601 604 624
#  Modeline    "800x600" 51.73 800 840 928 1056 600 601 604 628
#  Modeline    "800x600" 58.73 800 840 928 1056 600 601 604 632
#  Modeline    "800x600" 66.71 800 848 936 1072 600 601 604 635
#  Modeline    "800x600" 73.98 800 848 936 1072 600 601 604 639
#  Modeline    "800x600" 82.55 800 856 944 1088 600 601 604 643
#  Modeline    "800x600" 90.10 800 856 944 1088 600 601 604 647
#  Modeline    "800x600" 97.59 800 856 944 1088 600 601 604 650
#EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 16
        SubSection "Display"
                ViewPort    0 0
                Depth     8
                Modes     "1600x1200" "1280x960" "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                ViewPort    0 0
                Depth     15
                Modes     "1600x1200" "1280x960" "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                ViewPort    0 0
                Depth     16
                Modes     "1600x1200" "1280x960" "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                ViewPort    0 0
                Depth     24
                Modes     "1600x1200" "1280x960" "1024x768" "800x600"
        EndSubSection
EndSection

Section "Extensions"
        Option "Composite" "Enable"
EndSection
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed