Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 28/03/2006, à 18:43

esperanto

xorg.conf pour ibook G4

Chapitre 1er : Où l'auteur nous dit  << Je suis incapable d'éditer correctement un fichier de configuration>>

Bonjour,

J'ai un ibook G4 sous breezy, et il me reste trois points à régler :
- une carte clavier avec les crochets, etc ...
- l'activation de la sortie vga
- le défilement avec le pavé tactile (j'ai activé le clic actif)

Malgré mes recherches, mes tentatives se sont soldées par la mort de mon serveur graphique. Je sais qu'il est possible d'obtenir cela.
Existe-t-il une synthèse (en français ?) des modifications à apporter ?

Cordialement

#2 Le 28/03/2006, à 19:49

moijbt

Re : xorg.conf pour ibook G4

Voilà mon xorg.conf pour un Ibook G4 1,42ghz

Section "ServerLayout"
	Identifier	"X"
	Screen	     0  "Screen" 0 0
	InputDevice	"SynapticsTouchpad" "CorePointer"
	InputDevice	"Mouse"
	InputDevice	"Keyboard" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath		"/usr/lib/X11/rgb"
	ModulePath	"/usr/lib/modules"
	FontPath 	"/usr/share/fonts/misc"
	FontPath 	"/usr/share/fonts/TTF"
	FontPath 	"/usr/share/fonts/Type1"
	FontPath 	"/usr/share/fonts/75dpi"
	FontPath 	"/usr/share/fonts/100dpi"
	FontPath 	"/usr/local/share/fonts"
EndSection

Section "Module"
	Load  "extmod"
	Load  "dri"
	Load  "dbe"
	Load  "record"
	Load  "xtrap"
	Load  "glx"
	Load  "type1"
	Load  "freetype"
EndSection

Section "InputDevice"
	Identifier	"Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules" "xorg"
	Option		"XkbModel" "macintosh"
	Option		"XkbLayout" "fr_new2"
EndSection

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

Section "InputDevice"
	Identifier	"SynapticsTouchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
#	Option		"Device"		"/dev/input/mice"
	Option		"Device"		"/dev/input/appletouch"
	Option		"Protocol"		"auto-dev"
	Option		"LeftEdge"		"50"
	Option		"RightEdge"		"900"          # max 950
	Option		"TopEdge"		"30"
	Option		"BottomEdge"		"304"          # max 334
	Option		"FingerLow"		"15"
	Option		"FingerHigh"		"20"
	Option		"MaxTapTime"		"180"
	Option		"MaxTapMove"		"100"
	Option		"MaxDoubleTapTime"	"180"
	Option		"ClickTime"		"100"
	Option		"FastTaps"		"0"
	Option		"VertScrollDelta"	"30"
	Option		"HorizScrollDelta"	"30"
	Option		"EdgeMotionMinZ"	"30"
	Option		"EdgeMotionMaxZ"	"160"
	Option		"EdgeMotionMinSpeed"	"1"
	Option		"EdgeMotionMaxSpeed"	"400"
	Option		"EdgeMotionUseAlways"	"false"
	Option		"MinSpeed"		"0.5"
	Option		"MaxSpeed"		"2.0"
	Option		"AccelFactor"		"0.12"
	Option		"LockedDrags"		"false"
	Option		"RTCornerButton"	"0"
	Option		"RBCornerButton"	"0"
	Option		"LTCornerButton"	"0"
	Option		"LBCornerButton"	"0"
	Option		"TapButton1"		"1"
	Option		"TapButton2"		"2"
	Option		"TapButton3"		"3"
	Option		"CircularScrolling"	"1"
	Option		"CircScrollDelta"	"0.1"
	Option		"CircScrollTrigger"	"1"
	Option		"PalmDetect"		"false"	# not supported
	Option		"CoastingSpeed"		"1"
	Option		"SHMConfig"		"on"
EndSection

Section "Monitor"
	Identifier   "InternalMonitor"
	VendorName   "Apple"
	ModelName    "LCD"
	DisplaySize  246 185
EndSection

Section "Device"
	Identifier  "GraphicCard"
	Driver      "ati"
	VendorName  "ATI Technologies Inc"
	BoardName   "Radeon 9550"
	BusID       "PCI:0:16:0"
	Option      "AGPMode" "4"
	Option      "PanelSize" "1024x768"

# Clone Mode:
#	Option      "MonitorLayout" "LVDS,CRT"
#	Option      "CRT2HSync" "31.5-80"
#	Option      "CRT2VRefresh" "60-85"
#	Option      "MetaModes" "1024x768-1024x768"

EndSection

Section "Screen"
	Identifier "Screen"
	Device     "GraphicCard"
	Monitor    "InternalMonitor"
	DefaultDepth 24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection

Pour la sortie VGA, j'en sais rien, je l'utilise pas...
Le défilement avec le pavé est activé avec ce xorg.conf.
Pour le mapping clavier voilà la carte fr_new2 à copier dans /etc/X11/xkb/symbols et dans /etc/X11/xkb/symbols/macintosh (par mesure de précaution, je sais plus dans lequel faut le copier exactement donc autant faire les deux wink ) :

// Marc.Shapiro@inria.fr 19-sep-1998
// modifications : Etienne Herlent <eherlent@linux-france.org> june 2000
// adapted to the new input layer :
//        Martin Costabel <costabel@wanadoo.fr> 3-jan-2001
// adapted for Latin9 alphabet (ISO-8859-15): 
//        Etienne Herlent <eherlent@linux-france.org> march 2005

// This map is an almost-complete mapping of the standard French
// MacIntosh keyboard under Xwindows.  I tried to remain as faithful
// as possible to the Mac meaning of each key.	I did this entirely by
// hand and by intuition, relying on the Clavier (Keyboard?) Desktop
// Accessory for the Mac meaning of keys, and on reading keysymdef.h
// to intuit the corresponding X names.	 Lacking proper documentation,
// I may have made some mistakes.

// Entries marked CHECK are particularly uncertain

// Entries marked MISSING mark Mac characters for which I was unable
// to find a corresponding keysym.  (Some for sure don't: e.g. the
// Apple mark and the oe/OE character; others I may have simply not
// found.)

xkb_symbols "extended" {

    name[Group1]= "FR-1";
    key <ESC>  {	[ Escape			]	};

    // Alphanumeric section
    key <TLDE> {	[	   at,	  numbersign	],
			[periodcentered,  Ydiaeresis	]	}; // MISSING: Ydiaeresis; eherlent : ok in Latin9
    key <ENTR> {        [    KP_Enter                   ]       };
    key <AE01> {	[   ampersand,	  1		],
			[  VoidSymbol,	  dead_acute	]	}; // MISSING: Apple
    key <AE02> {	[      eacute,	  2		],
			[  ediaeresis,	  Eacute	]	};
    key <AE03> {	[    quotedbl,	  3		],
			[  VoidSymbol,    VoidSymbol	] 	}; // CHECK all quotemarks
    key <AE04> {	[  apostrophe,	  4		],
			[  VoidSymbol,	  VoidSymbol	] 	};
    key <AE05> {	[   parenleft,	  5		],
			[   braceleft,	  bracketleft	]	};
    key <AE06> {	[     section,	  6		],	// CHECK section
			[   paragraph,	  aring		]	};
    key <AE07> {	[      egrave,	  7		],
			[guillemotleft,	  guillemotright]	};
    key <AE08> {	[      exclam,	  8		],
			[  exclamdown,	  Ucircumflex	]	};
    key <AE09> {	[    ccedilla,	  9		],
			[    Ccedilla,	  Aacute	]	};
    key <AE10> {	[      agrave,	  0		],
			[      oslash,	  VoidSymbol	]	}; // MISSING: Oslash
    key <AE11> {	[  parenright,	  degree	],
			[  braceright,	  bracketright	]	};
    key <AE12> {	[	minus,	  underscore	],
			[      emdash,	  endash	]	}; // CHECK dashes
    key <BKSP> {	[   BackSpace,    VoidSymbol	],
			[      Delete,	  VoidSymbol	]	};

    key	 <TAB> {	[	  Tab,	ISO_Left_Tab	]	};
    key <AD01> {	[	    a,	A		],
			[	   ae,	AE		]	};
    key <AD02> {	[	    z,	Z		],
			[ Acircumflex,	Aring		]	};
    key <AD03> {	[	    e,	E		],
			[ ecircumflex,	Ecircumflex	]	};
    key <AD04> {	[	    r,	R		],
			[  registered,	currency	]	};
    key <AD05> {	[	    t,	T		],
			[  VoidSymbol,	VoidSymbol	]	};
    key <AD06> {	[	    y,	Y		],
			[      Uacute,  Ydiaeresis	]	}; // MISSING: Ydiaeresis; eherlent : ok in Latin9
    key <AD07> {	[	    u,	U		],
			[  VoidSymbol,	ordfeminine	]	}; // MISSING: ordmasculine?
    key <AD08> {	[	    i,	I		],
			[ icircumflex,	idiaeresis	]	};
    key <AD09> {	[	    o,	O		],
			[          oe,	OE      	]	}; // MISSING: oe, OE lacking in Latin1; eherlent ok in Latin9
    key <AD10> {	[	    p,	P		],
			[  VoidSymbol,  VoidSymbol	]	};
    key <AD11> {	[dead_circumflex,dead_diaeresis	],
			[ ocircumflex, Ocircumflex	]	};
    key <AD12> {	[      dollar,	asterisk	],
			[  EuroSign, yen		]	}; // eherlent : EuroSign in Latin9

    key <CAPS> {	[	Caps_Lock		]	};
    key <AC01> {	[	  q,	Q		],
			[acircumflex,	Agrave		]	};
    key <AC02> {	[	  s,	S		],
			[    Ograve,	VoidSymbol	]	};
    key <AC03> {	[	  d,	D		],
			[VoidSymbol,	VoidSymbol	]	};
    key <AC04> {	[	  f,	F		],
			[VoidSymbol,	periodcentered	]	}; // MISSING: oblong script f??
    key <AC05> {	[	  g,	G		],
			[VoidSymbol,	VoidSymbol	]	}; // MISSING: kerned fi, fl
    key <AC06> {	[	  h,	H		],
			[    Igrave,	Icircumflex	]	};
    key <AC07> {	[	  j,	J		],
			[Idiaeresis,	Iacute		]	};
    key <AC08> {	[	  k,	K		],
			[   Egrave,	Ediaeresis	]	};
    key <AC09> {	[	  l,	L		],
			[   notsign,	bar		]	};
    key <AC10> {	[	  m,	M		],
			[  	 mu,	Oacute		]	};
    key <AC11> {	[    ugrave,	percent		],
			[    Ugrave,	ucircumflex	]	}; // MISSING: per-mille
    key <BKSL> {	[ dead_grave,	sterling	],
			[	 at,	numbersign	]	};
    key <RTRN> {	[    Return			]	};

    key <LSGT> {	[	 less,	  greater	],
			[VoidSymbol, 	VoidSymbol	]	};
    key <AB01> {	[	  w,	W		],
			[VoidSymbol,	VoidSymbol	]	};	// MISSING: half-guillemot (single angle bracket)
    key <AB02> {	[	  x,	X		],
			[VoidSymbol,	VoidSymbol	]	}; // CHECK similarequal; MISSING: extra-slanted slash
    key <AB03> {	[	  c,	C		],
			[ copyright,	cent		]	};
    key <AB04> {	[	  v,	V		],
			[   diamond,	leftradical	]	}; // CHECK diamond, leftradical
    key <AB05> {	[	  b,	B		],
			[    ssharp,    VoidSymbol	]	}; // CHECK: Greek_beta or ssharp?; MISSING: oblong script s
    key <AB06> {	[	  n,	N		],
			[ dead_tilde,	asciitilde	]	};
    key <AB07> {	[     comma,	question	],
			[VoidSymbol,	questiondown	]	};
    key <AB08> {	[ semicolon,	period		],
			[VoidSymbol,	periodcentered	]	};
    key <AB09> {	[     colon,	slash		],
			[  division,	backslash	]	};
    key <AB10> {	[     equal,	plus		],
			[VoidSymbol,	plusminus	]	};

    key <SPCE> {	[     space,	space		],
			[nobreakspace,	nobreakspace	]	};
    // End alphanumeric section

    // Begin modifier mappings
    key <LWIN> {	[  Alt_L, 	Meta_L	]	};
    key <LFSH> {	[  Shift_L		]	};
    key <LCTL> {	[  Control_L		]	};
   // key <LALT> {	[  Mode_switch		]	};
    key <LALT> {        [ Mode_switch, Mode_switch ]    };
    key <RMTA> {	[  Meta_R		]	};
    key <RTSH> {	[  Shift_R		]	};
    key <RCTL> {	[  Control_R		]	};
    key <RALT> {	[  script_switch	]	};
    // End modifier mappings

    // Begin "Function" section
    key <FK01> {	[  F1			]	};
    key <FK02> {	[  F2			]	};
    key <FK03> {	[  F3			]	};
    key <FK04> {	[  F4			]	};
    key <FK05> {	[  F5			]	};
    key <FK06> {	[  F6			]	};
    key <FK07> {	[  F7			]	};
    key <FK08> {	[  F8			]	};
    key <FK09> {	[  F9			]	};
    key <FK10> {	[  F10			]	};
    key <FK11> {	[  F11			]	};
    key <FK12> {	[  F12			]	};
    key <FK13> {	[  F13, Print		]	};
    key <FK14> {	[  F14, Scroll_Lock	]	};
    key <FK15> {	[  F15, Pause		]	};
    // End "Function" section

    // Begin "Editing" section
    key	 <INS> {	[  Insert		]	};
    key <HOME> {	[  Home			]	};
    key <PGUP> {	[  Prior		]	};
    key <DELE> {	[  Delete		]	};
    key	 <END> {	[  End			]	};
    key <PGDN> {	[  Next			]	};

    key	  <UP> {	[  Up			]	};
    key <LEFT> {	[  Left			]	};
    key <DOWN> {	[  Down			]	};
    key <RGHT> {	[  Right		]	};
    // End "Editing" section

    // Begin "Keypad" section
    key <KPCL> {	[  Clear		]	};
    key <KPEQ> {	[  KP_Equal		]	};
    key <KPDV> {	[  KP_Divide		]	};
    key <KPMU> {	[  KP_Multiply		]	};

    key	 <KP7> {	[  KP_7			]	};
    key	 <KP8> {	[  KP_8			]	};
    key	 <KP9> {	[  KP_9			]	};
    key <KPSU> {	[  KP_Subtract		]	};

    key	 <KP4> {	[  KP_4			]	};
    key	 <KP5> {	[  KP_5			]	};
    key	 <KP6> {	[  KP_6			]	};
    key <KPAD> {	[  KP_Add		]	};

    key	 <KP1> {	[  KP_1			]	};
    key	 <KP2> {	[  KP_2			]	};
    key	 <KP3> {	[  KP_3			]	};
    key <KPEN> {	[  KP_Enter		]	};

    key	 <KP0> {	[  KP_0			]	};
    key <KPDL> {	[  comma,KP_Decimal	]	};
 // End "Keypad" section


    // begin modifier mappings
    modifier_map Shift	{ Shift_L,   Shift_R   };
    modifier_map Lock	{ Caps_Lock	       };
    modifier_map Control{ Control_L, Control_R };
    modifier_map Mod1	{ Meta_L, Meta_R       };
    modifier_map Mod2   { Alt_L, Alt_R         };
    modifier_map Mod3	{ Mode_switch	       };
    // end modifier mappings
};

Bon Courage, chez moi avec ces fichiers tout marche bien en tout cas. wink

Hors ligne

#3 Le 28/03/2006, à 23:11

esperanto

Re : xorg.conf pour ibook G4

Bonsoir,

Merci beaucoup, mais mon serveur X est têtu. Ou je suis maladroit.

J'ai copié vos fichiers dans
/etc/X11/xorg.conf
/etc/X11/xkb/symbols et symbols/macintosh_vndr

Et mon serveur est HS

Après rétablissement, même combat pour la carte du clavier : pas de souris sous xfce4 (j'ai pas ouvert gnome)

Je vais éditer mes fichiers et faire des comparaisons, j'ai voulu aller trop vite.

Encore merci,

Cordialement

ps : la sortie vga est très utile pour envoyer des vidéos sur un téléviseur (via un adaptateur).
Sous Mac OSX cela fonctonne bien.

#4 Le 28/03/2006, à 23:44

moijbt

Re : xorg.conf pour ibook G4

Tu peux démarrer X en console avec startx et renvoyer le message d'erreur histoire de voir ce qui va pas ?

Hors ligne

#5 Le 28/03/2006, à 23:46

esperanto

Re : xorg.conf pour ibook G4

Bonsoir,

Ok, je vais voir cela demain matin

Cordialement

#6 Le 29/03/2006, à 14:25

esperanto

Re : xorg.conf pour ibook G4

Bonjour,

J'ai recommencé à tête reposée :

- La carte clavier est en place alt+( = {
Elle se trouve dans "/etc/X11/xkb/symbols/macintosh_vndr" en tant que "fr_modif"
J'ai édité xorg.conf en conséquence :

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "macintosh"
    Option        "XkbLayout"    "fr_modif"
#     Option          "XkbOptions"    "lv3:lwin_switch"
EndSection

Avec XFCE aucun problème, avec Gnome je n'ai pas essayé.

Par contre pour obtenir le défilement je tatonne encore.

Votre Xorg.conf :

Section "InputDevice"
    Identifier    "SynapticsTouchpad"
    Driver        "synaptics"
    Option        "SendCoreEvents"    "true"
#    Option        "Device"        "/dev/input/mice"
    Option        "Device"        "/dev/input/appletouch"
    Option        "Protocol"        "auto-dev"
    Option        "LeftEdge"        "50"
    Option        "RightEdge"        "900"          # max 950
    Option        "TopEdge"        "30"
    Option        "BottomEdge"        "304"          # max 334
    Option        "FingerLow"        "15"
    Option        "FingerHigh"        "20"
    Option        "MaxTapTime"        "180"
    Option        "MaxTapMove"        "100"
    Option        "MaxDoubleTapTime"    "180"
    Option        "ClickTime"        "100"
    Option        "FastTaps"        "0"
    Option        "VertScrollDelta"    "30"
    Option        "HorizScrollDelta"    "30"
    Option        "EdgeMotionMinZ"    "30"
    Option        "EdgeMotionMaxZ"    "160"
    Option        "EdgeMotionMinSpeed"    "1"
    Option        "EdgeMotionMaxSpeed"    "400"
    Option        "EdgeMotionUseAlways"    "false"
    Option        "MinSpeed"        "0.5"
    Option        "MaxSpeed"        "2.0"
    Option        "AccelFactor"        "0.12"
    Option        "LockedDrags"        "false"
    Option        "RTCornerButton"    "0"
    Option        "RBCornerButton"    "0"
    Option        "LTCornerButton"    "0"
    Option        "LBCornerButton"    "0"
    Option        "TapButton1"        "1"
    Option        "TapButton2"        "2"
    Option        "TapButton3"        "3"
    Option        "CircularScrolling"    "1"
    Option        "CircScrollDelta"    "0.1"
    Option        "CircScrollTrigger"    "1"
    Option        "PalmDetect"        "false"    # not supported
    Option        "CoastingSpeed"        "1"
    Option        "SHMConfig"        "on"
EndSection

et chez moi :

Section "InputDevice"
    Identifier    "Synaptics Touchpad"
    Driver        "synaptics"
    Option        "SendCoreEvents"    "true"
    Option        "Device"        "/dev/psaux"
    Option        "Protocol"        "auto-dev"
        Option        "HorizScrollDelta"    "0"
EndSection

J'ai essayé de rajouter les lignes d'options sans résultat (?)
Mais il n'existe pas chez moi de "/dev/input/appletouch" j'ai "/dev/psaux" ou "/dev/input/mice"

La solution ne doit plus être très loin & je vais la trouver.

En tout cas encore merci

Cordialement

#7 Le 29/03/2006, à 21:02

moijbt

Re : xorg.conf pour ibook G4

Ce que je trouve hallucinant, c'est que j'ai pas non plus de /dev/input/appletouch lol
En fait j'ai repris ce Xorg.conf sur ce site :
http://catmur.co.uk/%7Eed/ibook/
C'est fait à la base pour un Ibook avec Gentoo et chez moi ca marche bien. J'ai jamais essayé ce xorg.conf sur Ubuntu mais je vois pas pourquoi ca marcherait moins bien que sous Gentoo. En fait je l'avais essayé en désespoir de cause et voyant que ca marchait, je l'ai pas retouché depuis wink .
Appletouch, il me semble que c'est pour les powerbooks les plus récents (si je me souviens bien) donc à priori y'en a pas besoin...
Quel est exactement le modèle de ton Ibook ? Moi c'est un 1,42ghz de 2005, si le tien est plus récent ou plus vieux, il se peut qu'il y ait certaines différences...

Dernière modification par moijbt (Le 29/03/2006, à 21:03)

Hors ligne

#8 Le 29/03/2006, à 21:13

esperanto

Re : xorg.conf pour ibook G4

Bonjour,

C'est un ibook 12' 1,2 Ghz de 2005.
Je n'ai pas beaucoup avancé. C'est à croire qu'il y a autant de xorg.conf que de machines.
Rien que sur le mien il y en a trois et j'ai bricolé un quatrième sans succès.
Le plus drôle : sous firefox, la touche F11 provoque le défilement, avec le pavé & la souris.

Cordialement

#9 Le 29/03/2006, à 21:53

moijbt

Re : xorg.conf pour ibook G4

Bizarre... C'est possible que les trackpad soient pas les mêmes entre un 12" et un 14". Essaie de diminuer la valeur de Right_Edge. Peut être que les trackpads font pas la même largeur... tongue
Sinon, si jamais tu parles anglais, je te conseille de poser une question sur le forum PPC de gentoo : ici
Désolé de faire de la pub pour un autre forum tongue mais la communauté ppc est un peu plus importante qu'içi et surtout, elle inclut quelques développeurs ppc qui savent à peu près résoudre toutes les questions. wink

Hors ligne

#10 Le 29/03/2006, à 22:15

esperanto

Re : xorg.conf pour ibook G4

Bonsoir,

Merci du conseil, même si mon anglais est approximatif.
Je vais me concentrer sur la sortie vga et le double écran. C'est plus important pour moi que le  défilement du pavé.
J'ai plusieurs exemples de xorg.conf venant de mac. Avec un peu d'application ...

Cordialement