startx falls down, plz help!

Hi, I'm new to FreeBSD and trying to use gnome. I've done quite everithing that is in the "gnome-handbook" on this site, but when I do (as a root user) "startx", it starts, even for 2 sec I can see a grey background with an "X" cursor (btw, why? I do use Gnome, not a standart xdm!!) and then it falls donw with this error:
"
Error: Cairo 1.4.10 does not yet support the requested image format...
"
How to solve that?
Thanks in advance.
 
What is this "gnome-handbook" you're talking about? Is it this one?

Post the contents of
* /etc/rc.conf
* /etc/X11/xorg.conf
* ~/.xinitrc
(inside
Code:
 tags)

How did you install Cairo?
 
/etc/rc.conf
Code:
# -- sysinstall generated deltas -- # Mon Oct 26 16:46:05 2009
# Created: Mon Oct 26 16:46:05 2009
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="localdomain.localdomain"
ifconfig_le0="DHCP"
ipv6_enable="YES"
keymap="ru.koi8-r"
linux_enable="YES"
moused_flags=""
# -- sysinstall generated deltas -- # Thu Oct 29 16:41:13 2009
moused_port="/dev/psm0"
moused_type="auto"
moused_enable="YES"
/etc/X11/xorg.conf
Code:
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
#    Load        "type1"
    Load        "freetype"
#    Load        "xtt"

# This loads the GLX module
#    Load       "glx"
# This loads the DRI module
#    Load       "dri"

EndSection


Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

#    RgbPath	"/usr/local/share/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
# 
# 

    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/100dpi/"
    FontPath   "/usr/local/lib/X11/fonts/75dpi/"
    FontPath   "/usr/local/lib/X11/fonts/local/"
#    FontPath   "/usr/local/lib/X11/fonts/Speedo/"
#    FontPath   "/usr/local/lib/X11/fonts/TrueType/"
#    FontPath   "/usr/local/lib/X11/fonts/freefont/"

# The module search path.  The default path is shown here.

#    ModulePath "/usr/local/lib/modules"

EndSection


Section "ServerFlags"



#    Option "NoTrapSignals"

# Uncomment this to disable the <Ctrl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Uncomment this to disable the <Ctrl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Ctrl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option "Dont Zoom"



#    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client. 

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings. 

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

EndSection



Section "InputDevice"

    Identifier	"Keyboard1"
    Driver	"kbd"

    Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option	"Xleds"      "1 2 3"

#    Option "LeftAlt"     "Meta"
#    Option "RightAlt"    "ModeShift"


# If you'd like to switch the positions of your capslock and
# control keys, use:
#    Option "XkbOptions"  "ctrl:swapcaps"

# These are the default XKB settings for Xorg
#    Option "XkbRules"    "xorg"
#    Option "XkbModel"    "pc105"
#    Option "XkbLayout"   "us"
#    Option "XkbVariant"  ""
#    Option "XkbOptions"  ""

#    Option "XkbDisable"

    Option "XkbRules"	"xorg"
    Option "XkbModel"	"pc104"
    Option "XkbLayout"	"ru"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Protocol"    "PS/2"	# PS/2 Mouse
    Option "Device"      "/dev/sysmouse"

# Mouse-speed setting for PS/2 mouse.

#    Option "Resolution"	"256"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

#    Option "BaudRate"	"9600"
#    Option "SampleRate"	"150"

# Mouse wheel mapping.  Default is to map vertical wheel to buttons 4 & 5,
# horizontal wheel to buttons 6 & 7.   Change if your mouse has more than
# 3 buttons and you need to map the wheel to different button ids to avoid
# conflicts.

    Option "ZAxisMapping"   "4 5 6 7"

# Emulate3Buttons is an option for 2-button mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection




Section "Monitor"

    Identifier  "My Monitor"



    HorizSync   31.5-80

    VertRefresh 56-75

EndSection




Section "Device"
    Identifier	"Standard VGA"
    VendorName	"Unknown"
    BoardName	"Unknown"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.

#    Chipset	"generic"



    Driver     "vga"


#    BusID      "PCI:0:10:0"

#    VideoRam	128

#    Clocks	25.2 28.3

EndSection

# Device configured by xorgconfig:

Section "Device"
    Identifier  "My Video Card"
    Driver      "vga"
	# unsupported card
    #VideoRam    128000
    # Insert Clocks lines here if appropriate
EndSection


#
Section "Screen"
    Identifier  "Screen 1"
    Device      "My Video Card"
    Monitor     "My Monitor"
    DefaultDepth 1

    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection


Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Simple Layout"


    Screen "Screen 1"



    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

# Section "DRI"
#    Mode 0666
# EndSection

~/.xinitrc
Code:
/usr/local/bin/gnome-session
 
Please show us your /var/log/Xorg.0.log file, too?

Also, does X start properly if you run 'xinit /usr/local/bin/xterm' (but with just an xterm)?

EDIT:

Also, you need to add at least these two lines to /etc/rc.conf and start the appropriate services under /usr/local/etc/rc.d/

Code:
dbus_enable="YES"
hald_enable="YES"
 
sorry! Of course, my rc.conf consists of this:
Code:
# -- sysinstall generated deltas -- # Mon Oct 26 16:46:05 2009
# Created: Mon Oct 26 16:46:05 2009
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="localdomain.localdomain"
ifconfig_le0="DHCP"
ipv6_enable="YES"
keymap="ru.koi8-r"
linux_enable="YES"
moused_flags=""
# -- sysinstall generated deltas -- # Thu Oct 29 16:41:13 2009
moused_port="/dev/psm0"
moused_type="auto"
moused_enable="YES"
hald_enable="YES"
dbus_enable="YES"

I also have 2 warnings during the bootstrap process:
Code:
Starting dbus.
Unknown username "haldaemon" in message bus configuration file
/etc/rc: WARNING: $polkitd_enable is not set properly - see rc.conf(5)
Starting polkitd. (and so on...)
I thought that has nothing with the problem, but who knows.
 
does X start properly if you run 'xinit /usr/local/bin/xterm' (but with just an xterm)?
It works, but my mouse moves very strange (in CLI everything is OK!).
Thank you! I appreciate your help.

I'll post the log file soon.
 
ghoully said:
I also have 2 warnings during the bootstrap process:
Code:
Starting dbus.
Unknown username "haldaemon" in message bus configuration file
/etc/rc: WARNING: $polkitd_enable is not set properly - see rc.conf(5)
Starting polkitd. (and so on...)
I thought that has nothing with the problem, but who knows.
You're missing the haldaemon user/group. There was a similar problem recently.
Check the contents of your /etc/passwd and /etc/group files and add the missing entries accordingly.

And don't forget to restart HAL and D-Bus:
# /usr/local/etc/rc.d/dbus forcerestart
# /usr/local/etc/rc.d/hald forcerestart


ghoully said:
It works, but my mouse moves very strange
Please define "very strange".
 
ghoully said:
Code:
hostname="localdomain.localdomain"

Pick a proper hostname. Do not use localdomain as a TLD. Just pick something random like mymachine.home.lan.
 
Now /etc/passwd and /etc/group look as it has to be, but I recieve constant white messages "acd0: FAILURE - unknown CMD (0x03)...". It's now impossible to do anything, even to edit files etc, how to turn off system messages at all?
And one more question: how to stop a pocess, for example if I run "find / foo" it runs for a very long time, how to stop that when I want?

Finally I started Gnome by changing the Depth in the Screen option from 1 to 8, but the mouse still doesn't work properly, the cursor "jumps" to the right top corner and stays there as soon as I touch my mouse.

If I have a 128Mb GeForce3 Ti200 (unnamed) video-card what should I write in xorg.conf?
 
ghoully said:
And one more question: how to stop a pocess, for example if I run "find / foo" it runs for a very long time, how to stop that when I want?

Try ^C (That's ctrl-C ).


Finally I started Gnome by changing the Depth in the Screen option from 1 to 8, but the mouse still doesn't work properly, the cursor "jumps" to the right top corner and stays there as soon as I touch my mouse.
Depth should be 24 for true color. It has nothing to do with the mouse acting weird though. Without starting X does the mouse work properly on the console?

If I have a 128Mb GeForce3 Ti200 (unnamed) video-card what should I write in xorg.conf?
You shouldn't need an xorg.conf at all. Most, if not all, is auto-detected.
 
ghoully said:
Now /etc/passwd and /etc/group look as it has to be
So you have both haldaemon user AND group, and you're still having the "Unknown username" error at startup? Weird.


ghoully said:
but I recieve constant white messages "acd0: FAILURE - unknown CMD (0x03)...". It's now impossible to do anything, even to edit files etc, how to turn off system messages at all?
HAL has problems talking to your CD drive. You must disable polling:
# hal-disable-polling --device /dev/acd0
But I guess you'll lose any automounting feature in GNOME.
BTW, you can use another tty by pressing alt+Fx (F2, F3, etc.)


ghoully said:
Finally I started Gnome by changing the Depth in the Screen option from 1 to 8, but the mouse still doesn't work properly, the cursor "jumps" to the right top corner and stays there as soon as I touch my mouse.
Bad mouse? Interference/noise? High speed mouse settings?


ghoully said:
If I have a 128Mb GeForce3 Ti200 (unnamed) video-card what should I write in xorg.conf?
You may not need any. But if you need one and you generated it as described in the handbook (# Xorg -configure), it should work by default, provided you have the appropriate driver (I don't know which one). If you have specific problems, just say so.
 
Protocol should be sysmouse not PS/2.

And how to hide white system messages?
Not sure what they are. What version of Freebsd are you running?
 
Beastie said:
White messages are kernel messages. In this case they're caused by HAL having problems understanding the CD drive.

That's why I asked about the version ;) IIRC I had similar issues with 7.1 at some point.
 
So you have both haldaemon user AND group, and you're still having the "Unknown username" error at startup? Weird.
No, now it's fixed!
Protocol should be sysmouse not PS/2.
Thanks!
What version of Freebsd are you running?
7.2
I recieve constant white messages "acd0: FAILURE - unknown CMD (0x03)..." even if I'm editing files/typing commands! How to turn them off without Alt+F1,2,3... ? What config to edit? ))

I can't understand the Screen section, when the DefaultDepth is 8 Gnome starts, then it ries to create windows ...and fails, so in the end I'v got only a green background and a properly moving cursor :)). If I change the DefaultDepth to 16 or 24 gnome doesn't run and there's an Error "IO Error: Can't find a screen" Where to dig? ))
 
ghoully said:
I can't understand the Screen section, when the DefaultDepth is 8 Gnome starts, then it ries to create windows ...and fails, so in the end I'v got only a green background and a properly moving cursor :)). If I change the DefaultDepth to 16 or 24 gnome doesn't run and there's an Error "IO Error: Can't find a screen" Where to dig? ))

Just try without a /etc/X11/xorg.conf. It should just work.
 
ghoully said:
I recieve constant white messages "acd0: FAILURE - unknown CMD (0x03)..." even if I'm editing files/typing commands! How to turn them off without Alt+F1,2,3... ? What config to edit? ))
Re-read my post carefully. I gave you the command to stop HAL polling on your CD drive.


ghoully said:
I can't understand the Screen section, when the DefaultDepth is 8 Gnome starts, then it ries to create windows ...and fails, so in the end I'v got only a green background and a properly moving cursor :)). If I change the DefaultDepth to 16 or 24 gnome doesn't run and there's an Error "IO Error: Can't find a screen" Where to dig? ))
If it doesn't work without xorg.conf, try this:
Code:
Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth  16
	SubSection "Display"
		Viewport   0 0
		Depth     16
                Modes   "____x____"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
                Modes   "____x____"
	EndSubSection
EndSection
Try both DefaultDepth 16 and DefaultDepth 24 and change the ____ accordingly.


ghoully said:
How? Just to comment every line in xorg.conf?
Rename it: # mv xorg.conf xorg.conf.old
 
Back
Top