[RISOLTO] Problemi con DBus e HAL - Freeze di X sotto utente

Installazione, configurazione e uso di programmi e strumenti.
jenkin
Prode Principiante
Messaggi: 15
Iscrizione: domenica 24 dicembre 2006, 11:48

[RISOLTO] Problemi con DBus e HAL - Freeze di X sotto utente

Messaggio da jenkin »

Ciao a tutti...

ho installato Ubuntu Edgy (aggiornato ad oggi) su un portatile che monta una ATI Mobility Radeon X1600.
Ho configurato correttamente quest'ultima, non senza fatica, con i driver fglrx, scaricando i pacchetti dai repository e seguendo il wiki.

Ora la mia situazione è che gdm, per quanto l'abbia reinstallato, non funziona... (possibile causa: vedi oltre) quando avvio in modalità normale, si vede correttamente l'immagine di boot di Ubuntu, carica tutto, quando la barra è completa appare una linea blu spezzata in mezzo al video, poi una verde e si pianta tutto. Smette di lavorare (hd fermo), anche se non è del tutto ko. Infatti un ctrl-alt-canc fa riavviare il pc correttamente.

Finora ho aggirato il problema avviando in modalità provvisoria, ma credo che questo mi generi altri problemi.

In modalità provvisoria, se entro da root con xorg.conf adatto alla mia ATI, funziona alla grande, con l'accelerazione 3D attiva.
Riporto il mio xorg.conf, potrebbe essee utile a qualcuno.

Codice: Seleziona tutto


# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"

#	InputDevice    "stylus" "SendCoreEvents"
#	InputDevice    "cursor" "SendCoreEvents"
#	InputDevice    "eraser" "SendCoreEvents"
	Identifier     "Default Layout"
	Screen      0  "aticonfig-Screen[0]" 0 0
	InputDevice    "Generic Keyboard"
	InputDevice    "Configured Mouse"
EndSection

Section "Files"

	# path to defoma fonts
	FontPath     "/usr/share/X11/fonts/misc"
	FontPath     "/usr/share/X11/fonts/cyrillic"
	FontPath     "/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath     "/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath     "/usr/share/X11/fonts/Type1"
	FontPath     "/usr/share/X11/fonts/100dpi"
	FontPath     "/usr/share/X11/fonts/75dpi"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load  "i2c"
	Load  "bitmap"
	Load  "ddc"
	Load  "dri"
	Load  "extmod"
	Load  "freetype"
	Load  "glx"
	Load  "int10"
	Load  "type1"
	Load  "vbe"
EndSection

Section "InputDevice"
	Identifier  "Generic Keyboard"
	Driver      "kbd"
	Option	    "CoreKeyboard"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "it"
#	Option	    "XkbOptions" "lv3:ralt_switch"
EndSection

Section "InputDevice"
	Identifier  "Configured Mouse"
	Driver      "mouse"
	Option	    "CorePointer"
	Option	    "Device" "/dev/input/mice"
	Option	    "Protocol" "ExplorerPS/2"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "true"
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
	Identifier  "stylus"
	Driver      "wacom"
	Option	    "Device" "/dev/wacom"          # Change to 
	Option	    "Type" "stylus"
	Option	    "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
	Identifier  "eraser"
	Driver      "wacom"
	Option	    "Device" "/dev/wacom"          # Change to 
	Option	    "Type" "eraser"
	Option	    "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
	Identifier  "cursor"
	Driver      "wacom"
	Option	    "Device" "/dev/wacom"          # Change to 
	Option	    "Type" "cursor"
	Option	    "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "Monitor"
	Identifier   "Generic Monitor"
	HorizSync    28.0 - 64.0
	VertRefresh  43.0 - 60.0
	Option	    "DPMS"
EndSection

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

Section "Device"
	Identifier  "ATI Technologies, Inc. ATI Default Card"
	Driver      "vesa"
	BusID       "PCI:1:0:0"
EndSection

Section "Device"
	Identifier  "aticonfig-Device[0]"
	Driver      "fglrx"
	Option	    "VideoOverlay" "on"
	Option	    "OpenGLOverlay" "off"
EndSection

Section "Screen"
	Identifier "Default Screen"
	Device     "ATI Technologies, Inc. ATI Default Card"
	Monitor    "Generic Monitor"
	DefaultDepth     24
	SubSection "Display"
		Depth     1
		Modes    "1280x800"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes    "1280x800"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes    "1280x800"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes    "1280x800"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "1280x800"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1280x800" "1200x800" "1024x768" "800x600"
	EndSubSection
EndSection

Section "Screen"
	Identifier "aticonfig-Screen[0]"
	Device     "aticonfig-Device[0]"
	Monitor    "aticonfig-Monitor[0]"
	DefaultDepth     24
	SubSection "Display"

#		Modes    "1280x800" "1200x800" "1024x768" "800x600"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "DRI"
	Mode         0666
EndSection

Section "Extensions"
	Option	    "Composite" "Disable"
EndSection

Ha cmq dei problemi con il mounting automatico delle penne usb (lo si deve fare a mano) e con la gestione dell'alimentazione.

Nel primo caso il problema và ricercato nel dbus-daemon che effettivamente non viene avviato (fondamentalmente tutti gli errori fanno riferimento a /var/run/dbus/system_bus_socket che non esiste). Lo si può fare a mano prima dell'avvio di X e infatti poi tutto funziona (in realtà il comando "/etc/init.d/dbus restart" restituisce tutti [ok] tranne l'arresto dell'avahi-daemon, che fallisce... che roba è?).
DOMANDA: il dbus non viene avviato automaticamente perché in modalità provvisoria? Si può fare in modo che anche in questa modalità venga avviato all'avvio del sistema?

(edit: scartabellando il forum ho scoperto il mondo delle cartelle /etc/rc?.d/ e ho risolto il problema dell'avvio del dbus e di acpi mettendo nella cartella /etc/rcS.d i link "S79dbus", "S89acpid", "S99acpi-support"
ai demoni omonimi in /etc/init.d/ Purtroppo non funziona ancora l'automounting delle penne usb (nonostante gnome-volume-manager dovrebbe avviarsi sorrettamente) e cmq la gestione dell'alimentazione
non ne vuole sapere...)

CURIOSITA': che file è system_bus_socket? Nessun editor lo apre, anche da root o dopo un comando "chmod a+rwx" risulta sempre "permission denied".

Nel secondo caso è acpi che ha qualcosa che non và... seguendo la stessa strategia del dbus, però...

Codice: Seleziona tutto

:~# /etc/init.d/acpid restart
 * Stopping ACPI services...                                             [ ok ] 
 * Loading ACPI modules...                                               [ ok ] 
 * Starting ACPI services...   acpid: can't open /proc/acpi/event: Device or resource busy
Come si vede l'applicazione che occupa questa device/risorsa? Come si può liberare?

(edit: ACPI dice che non puo' connettersi al socket /var/run/acpi.socket perche' il demone acpid non e' avviato... falso, perche' in fase di boot e' proprio l'ultimo a partire e mi dice anche che
sta controllando lo stato delle batterie [ok])

Questi problemi sono noiosi, ma per ora non tragici.
Il problema più spinoso riguarda l'avvio di X da utente e non da root (come finora considerato).

Dopo aver fatto "login - nome utente - pwd", sempre in modalità provvisoria, se avvio X (startx) con xorg.conf standard, con driver vesa, quindi, funziona tutto, tranne che la scheda video non è utilizzata come ATI con la giusta risoluzione e l'accelerazione 3D.
Riporto questo xorg.conf per completezza:

Codice: Seleziona tutto

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/X11/fonts/misc"
	FontPath	"/usr/share/X11/fonts/cyrillic"
	FontPath	"/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/Type1"
	FontPath	"/usr/share/X11/fonts/100dpi"
	FontPath	"/usr/share/X11/fonts/75dpi"
	FontPath	"/usr/share/fonts/X11/misc"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"it"
	Option		"XkbOptions"	"lv3:ralt_switch"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ExplorerPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"ATI Technologies, Inc. ATI Default Card"
	Driver		"vesa"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	28-64
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"ATI Technologies, Inc. ATI Default Card"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x800"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice     "stylus" "SendCoreEvents"
	InputDevice     "cursor" "SendCoreEvents"
	InputDevice     "eraser" "SendCoreEvents"
EndSection

Section "DRI"
	Mode	0666
EndSection

Con lo xorg.conf giusto (il primo riportato), invece, X parte, ma appena carica le barre e un paio di icone del desktop, si blocca tutto, irrimediabilmente (tasto di accensione per 5 secondi, per capirci). Succede con o senza dbus avviato prima di startx. PERCHE'?

E' evidente che sia un problema connesso sia ai fglrx sia a permessi legati all'utente non root.
Premetto che ho già risolto il problema di .Xauthority (all'inizio non mi avviava X da utente perché non avrebbe avuto il permesso di farlo) modificando il file /etc/X11/Xwrapper.config (allowed_users=anybody).

Le ho provate un po' tutte, senza successo... sotto utente, X si blocca... QUASI sempre. Anche questo è strano: in rarissime occasioni anche sotto utente X con fglrx si è avviato funzionando correttamente (anche se l'avvio di HAL risultava fallito). Al primo riavvio del sistema, però, tornava tutto come prima.

(edit: aggiungo che sotto root, avendo l'accelerazione grafica funzionante, ho installato beryl come da wiki e al primo avvio ha funzionato alla grande (anche se mi ha dato errore del demone gnome e mi ha avviato X con failsafe). Ci ho giocato un po', quando ho riavviato, mi si e' piantato... non arriva a fare vedere la barra arancione di ubuntu che indica i processi in avvio, il mouse si muove ma sullo sfondo grigio a puntini... rimane cosi' fino a ctrl-alt-backspace. Ho anche disabilitato tutti gli effetti di beryl entrando con startx normale, ma non c'e' niente da fare.)

Riporto il contenuto di .xsession-errors:

Codice: Seleziona tutto

Xsession: X session started for jenkin at mar feb 20 23:52:38 CET 2007
SESSION_MANAGER=local/acimarel:/tmp/.ICE-unix/4874
Gnome-Message: gnome_execute_async_with_env_fds: returning -1

** (gnome-cups-icon:4959): WARNING **: IPP request failed with status 1280

** (gnome-cups-icon:4959): WARNING **: IPP request failed with status 1280
evolution-alarm-notify-Message: Setting timeout for 4040 1172016000 1172011960
evolution-alarm-notify-Message:  Wed Feb 21 01:00:00 2007

evolution-alarm-notify-Message:  Tue Feb 20 23:52:40 2007
Spero di essere stato esaustivo, e spero che ci sia qualcuno che possa darmi qualche suggerimento... :)

Ciao
Ultima modifica di jenkin il mercoledì 7 marzo 2007, 11:56, modificato 1 volta in totale.
jenkin
Prode Principiante
Messaggi: 15
Iscrizione: domenica 24 dicembre 2006, 11:48

Re: [Boot] Problemi con DBus e HAL - Freeze di X sotto utente

Messaggio da jenkin »

nessuno ne sa niente? forse non e' correttissimo, ma cerco di spingere nuovamente questo topic in cima al forum... non riesco ad uscirne ed e' davvero fastidioso... (mad)
jenkin
Prode Principiante
Messaggi: 15
Iscrizione: domenica 24 dicembre 2006, 11:48

Re: [Boot] Problemi con DBus e HAL - Freeze di X sotto utente

Messaggio da jenkin »

Bene, nessuno si e' fatto avanti...

Intanto sono arrivato alla conclusione che ci sia un problema in gnome, dato che installando Kubuntu (ma anche utilizzando kde sotto ubuntu) funziona tutto.

Ciao ciao, alla prossima
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 4 ospiti