You are not logged in.

#1 2009-10-25 09:23:17

mip0
Member
Registered: 2009-10-12
Posts: 10

can't start x, parsing error

I execute the startx (or xinit) command as non-root user but something's wrong.
Here's /var/log/Xorg.0.log and /etc/X11/xorg.conf

(...)
Parse error on line 7 of section InputDevice in file /etc/X11/xorg.conf
            This section must have an Identifier line.
(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
no screens found
(...)
(WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
(WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
Section "ServerFlags"
            Option "AutoAddDevices" "False"
EndSection
Section "InputDevice"
            Option "XkbLayout" "us"
            Option "XkbVariant" "Classic Dvorak"
EndSection

(I have a Swedish keyboard but would like to use the us(dvorak-classic) layout.)
Please tell me what to do and Thanks in advance.

Offline

#2 2009-10-25 10:43:25

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: can't start x, parsing error

With an error like "This section must have an Identifier line." it seems like you need a line

Identifier     "foobar"

or something like that.

Try something like this:

Section "ServerFlags"
            Option "AutoAddDevices" "False"
EndSection
Section "InputDevice"
            Identifier "Yourkeyboard identifier"
            Option "XkbLayout" "us"
            Option "XkbVariant" "Classic Dvorak"
EndSection

With your keyboard identifier from

Section "InputDevice"
    Identifier     "Keyboard0"

Last edited by Cdh (2009-10-25 10:45:09)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#3 2009-10-25 11:58:43

mip0
Member
Registered: 2009-10-12
Posts: 10

Re: can't start x, parsing error

Thanks! It doesn't complain about an Identifier line anymore - It now complains about a Driver line:

(...)
Data incomplete in file /etc/X11/xorg.conf
           InputDevice section "Keyboard0" must  have a Driver line.
(...)

Offline

#4 2009-10-25 14:51:27

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: can't start x, parsing error

I think your xorg should look something like this:

Section "InputDevice"
  Identifier "Keyboard0"
  Driver "keyboard"
  Option "CoreKeyboard"
  Option "XkbModel" "pc105"
  Option "XkbLayout" "de"
  Option "XKbOptions" ""
EndSection

Offline

#5 2009-10-26 13:40:08

mip0
Member
Registered: 2009-10-12
Posts: 10

Re: can't start x, parsing error

I added Driver "keyboard" and it now works, thank you! (Solved)

Offline

#6 2009-10-26 17:36:15

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: can't start x, parsing error

It would be good, if you could edit the thread title and add "solved", so that others can see it without the need to enter the thread.

Offline

Board footer

Powered by FluxBB