[SLiM] Qwerty au démarrage (résolu)

Xorg, Compiz, KDE / Gnome / Xfce / Fluxbox / e17 / fvwm ... GDM/KDM/XDM...
XeloS
Hankyu
Messages : 43
Inscription : ven. 22 janv. 2010, 20:18

[SLiM] Qwerty au démarrage (résolu)

Message par XeloS »

Salut,

Au démmarrage de Slim, mon clavier est en querty.
Quand je ne démarre pas slim, mon clavier est bien en français, et j'ai bien configurer les fichiers policy.fdi et rc.conf
Je vous met içi mon slim.conf :

Code : Tout sélectionner

# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        ./:/bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon	yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            openbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user        mori

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login          yes


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       archlinux-darch-grey

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log

Dernière modification par XeloS le ven. 19 févr. 2010, 16:45, modifié 1 fois.
Avatar de l’utilisateur
CroK
Elfe
Messages : 607
Inscription : dim. 26 juil. 2009, 14:27
Localisation : France > Auxerre

Re: [SLiM] Qwerty au démarrage

Message par CroK »

http://wiki.archlinux.fr/install/langue

Rubrique clavier dans Xorg. Faut penser à aller voir sur le Wiki avant de poster sur le forum, ça a été un dit un nombre de fois...
Save the penguins, burn the flags ! -- c[] <- beeeeeeeeer!
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [SLiM] Qwerty au démarrage

Message par tuxce »

enfin bon, il dit qu'il les a modifié les fichiers ...
@XeloS poste le log de slim.
Avatar de l’utilisateur
CroK
Elfe
Messages : 607
Inscription : dim. 26 juil. 2009, 14:27
Localisation : France > Auxerre

Re: [SLiM] Qwerty au démarrage

Message par CroK »

Tu pourrais aussi poster ton .fdi ?
Save the penguins, burn the flags ! -- c[] <- beeeeeeeeer!
XeloS
Hankyu
Messages : 43
Inscription : ven. 22 janv. 2010, 20:18

Re: [SLiM] Qwerty au démarrage

Message par XeloS »

Olala, 124 mb le fichier...
Avatar de l’utilisateur
hatdn
Daikyu
Messages : 60
Inscription : mar. 24 nov. 2009, 19:23

Re: [SLiM] Qwerty au démarrage

Message par hatdn »

ajoute dans ton xorg.conf l'option "XkbLayout" "fr"

Section "InputDevice"
Identifier "Keyboard0"
option "XkbLayout" "fr"
Driver "kbd"

cela m'a suffit pour avoir un clavier français au demarrage.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17567
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [SLiM] Qwerty au démarrage

Message par benjarobin »

@Xelos 124 Mo ??? Tu parle de quel fichier !!!
@hatdn Si on n'utilise pas hal mais les anciennes méthodes oui cela marche...
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
hatdn
Daikyu
Messages : 60
Inscription : mar. 24 nov. 2009, 19:23

Re: [SLiM] Qwerty au démarrage

Message par hatdn »

il a le choix donc :wink:
soit en éditant /etc/hal/fdi/policy/10-keymap.fdi ou xorg.conf

ça te guidera j'épère http://wiki.archlinux.fr/howto/indispensable/xorg
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [SLiM] Qwerty au démarrage

Message par tuxce »

un fichier, ça s'efface, ça se recrée etc., s'il te crée 124mo en une fois, y a un gros problème.
@hatdn, c'est pas vraiment un choix, c'est ou l'un ou l'autre, pas les deux en même temps ;)
Avatar de l’utilisateur
Ricard
yeomen
Messages : 255
Inscription : lun. 03 sept. 2007, 20:59

Re: [SLiM] Qwerty au démarrage

Message par Ricard »

Chez moi c'est les deux. Sinon, ça ne fonctionne pas. :wink:
Avatar de l’utilisateur
CroK
Elfe
Messages : 607
Inscription : dim. 26 juil. 2009, 14:27
Localisation : France > Auxerre

Re: [SLiM] Qwerty au démarrage

Message par CroK »

Perso : 4,0K /etc/hal/fdi/policy/10-keymap.fdi
Save the penguins, burn the flags ! -- c[] <- beeeeeeeeer!
XeloS
Hankyu
Messages : 43
Inscription : ven. 22 janv. 2010, 20:18

Re: [SLiM] Qwerty au démarrage

Message par XeloS »

Le log de slim dans /var/log il fait 124mb ... autant dire qu'il me faut un bon quart-d'heure avant de tout afficher.

10-keymap.fdi :

Code : Tout sélectionner

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">fr</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>
xorg.conf :

Code : Tout sélectionner

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc"
	FontPath     "/usr/share/fonts/100dpi:unscaled"
	FontPath     "/usr/share/fonts/75dpi:unscaled"
	FontPath     "/usr/share/fonts/TTF"
	FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
	Load  "extmod"
	Load  "glx"
	Load  "dri2"
	Load  "dri"
	Load  "dbe"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

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

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "PrintVGARegs"       	# [<bool>]
        #Option     "PrintTVRegs"        	# [<bool>]
        #Option     "I2CScan"            	# [<bool>]
        #Option     "VBEModes"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "ExaNoComposite"     	# [<bool>]
        #Option     "ExaScratchSize"     	# <i>
        #Option     "SWCursor"           	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "Rotate"             	# [<str>]
        #Option     "VideoRAM"           	# <i>
        #Option     "ActiveDevice"       	# [<str>]
        #Option     "BusWidth"           	# [<str>]
        #Option     "Center"             	# [<bool>]
        #Option     "PanelSize"          	# [<str>]
        #Option     "ForcePanel"         	# [<bool>]
        #Option     "TVDotCrawl"         	# [<bool>]
        #Option     "TVDeflicker"        	# <i>
        #Option     "TVType"             	# [<str>]
        #Option     "TVOutput"           	# [<str>]
        #Option     "TVPort"             	# [<str>]
        #Option     "DisableVQ"          	# [<bool>]
        #Option     "DisableIRQ"         	# [<bool>]
        #Option     "EnableAGPDMA"       	# [<bool>]
        #Option     "NoAGPFor2D"         	# [<bool>]
        #Option     "NoXVDMA"            	# [<bool>]
        #Option     "VbeSaveRestore"     	# [<bool>]
        #Option     "DisableXvBWCheck"   	# [<bool>]
        #Option     "ModeSwitchMethod"   	# [<str>]
        #Option     "MaxDRIMem"          	# <i>
        #Option     "AGPMem"             	# <i>
	Identifier  "Card0"
	Driver      "openchrome"
	VendorName  "VIA Technologies, Inc."
	BoardName   "KM400/KN400/P4M800 [S3 UniChrome]"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "ServerFlags"
	Option       "AutoaddDevices"		"false"
EndSection

Section "Extensions"
	Option "Composite" "Enable"
EndSection
J'ai utilisé X -configure.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17567
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [SLiM] Qwerty au démarrage

Message par benjarobin »

Si tu utilise hal tu devrai nettoyer ton xorg.conf

Code : Tout sélectionner

Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
EndSection

Section "Files"
   ModulePath   "/usr/lib/xorg/modules"
   FontPath     "/usr/share/fonts/misc"
   FontPath     "/usr/share/fonts/100dpi:unscaled"
   FontPath     "/usr/share/fonts/75dpi:unscaled"
   FontPath     "/usr/share/fonts/TTF"
   FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
   Load  "extmod"
   Load  "glx"
   Load  "dri2"
   Load  "dri"
   Load  "dbe"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
EndSection

Section "Device"
   Identifier  "Card0"
   Driver      "openchrome"
   VendorName  "VIA Technologies, Inc."
   BoardName   "KM400/KN400/P4M800 [S3 UniChrome]"
   BusID       "PCI:1:0:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   SubSection "Display"
      Viewport   0 0
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

Section "Extensions"
   Option "Composite" "Enable"
EndSection
Si tu n'utilise pas hal, ne cherche pas plus loin pour ton probleme...
Et quel est le chemin du fichier .fdi

PS: Je n'avais pas compris que l'on parler des log (fichier > 100 Mo) :oops:

Edit le AutoaddDevices = false expliquerai des choses !!! Il faut lire un minimum le wiki quand même.
Donc tu n'utilise pas hal et si tu le lance il sert a rien... Donc soit tu garde ton xorg.conf et tu le modifie pour le mettre en français (voir wiki) soit tu t'assure que hal est bien lance et tu utilise le xorg que je te propose..
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
XeloS
Hankyu
Messages : 43
Inscription : ven. 22 janv. 2010, 20:18

Re: [SLiM] Qwerty au démarrage

Message par XeloS »

Je comprend pas, j'ai bien lu le wiki enfin bref.

Donc je fais quoi ? car je pensais que j'utilisais hal, je l'ai mis dans les daemons etc..
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17567
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [SLiM] Qwerty au démarrage

Message par benjarobin »

Comme c'est explique dans mon poste, utilise mon xorg.conf
Soit je m'exprime très mal, soit tu ne sais pas lire, on va dire que je m'exprime mal hein :?
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [SLiM] Qwerty au démarrage

Message par tuxce »

Ricard a écrit :Chez moi c'est les deux. Sinon, ça ne fonctionne pas. :wink:
si t'utilises hal, xorg ne lis même pas la section concernant les périphériques dans le xorg.conf, donc tu as peut être un X qui se lance avec autre chose, mais si c'est le même, il prend pas les deux.

Code : Tout sélectionner

(II) config/hal: Adding input device AT Translated Set 2 keyboard
[...]
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "fr"
[...]
Avatar de l’utilisateur
Ricard
yeomen
Messages : 255
Inscription : lun. 03 sept. 2007, 20:59

Re: [SLiM] Qwerty au démarrage

Message par Ricard »

J'ai généré le xorg.conf via nvida-xconfig. Il n'y a rien dedans à ce niveau là. Mais j'ai changé les locales dans le rc.sysint pour régler le problème. Ça fonctionne, je n'y touche plus (règle de base :lol: )
Avatar de l’utilisateur
hatdn
Daikyu
Messages : 60
Inscription : mar. 24 nov. 2009, 19:23

Re: [SLiM] Qwerty au démarrage

Message par hatdn »

je crois que le problème doit être resolu quelle que soit la méthode utilisée (hal,xorg.conf ou peut être autre)
les solutions données suffient dans tous les cas.
mais tu dois éssayer chacune à part et le wiki est bien clair donc essaies une autre fois et bonne chance :wink:
XeloS
Hankyu
Messages : 43
Inscription : ven. 22 janv. 2010, 20:18

Re: [SLiM] Qwerty au démarrage

Message par XeloS »

On va dire que je comprends mal :P .

J'ai utilisé ton xorg.conf et il manque un S à section à la 1ère ligne et une autre erreur à la deuxième, j'ai pas pu noter le mess d'erreur.
Avatar de l’utilisateur
CroK
Elfe
Messages : 607
Inscription : dim. 26 juil. 2009, 14:27
Localisation : France > Auxerre

Re: [SLiM] Qwerty au démarrage

Message par CroK »

C'est résolu ou toujours pas ?

Juste modifier ton 10-keymap.fdi suffit..
Save the penguins, burn the flags ! -- c[] <- beeeeeeeeer!
Répondre