LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-20-2009, 04:28 AM   #16
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled

It might be worth posting the contents of /etc/X11/xorg.conf so we can see exactly what entry you have regarding keyboards.
Here's an example from mine:

Code:
Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc104"
    Option         "XkbLayout" "gb"
EndSection
 
Old 07-20-2009, 04:37 AM   #17
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Original Poster
Rep: Reputation: 17
Hi,
I am afraid my "xorg.conf" is empty!
I don't know if it's normal...
Are you using Lenny?
I don't know which is the file used as a replacement
for "xorg.conf", if such a file exists :/

All the best ,
--
Léa
 
Old 07-20-2009, 04:45 AM   #18
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
I am afraid my "xorg.conf" is empty!
Yes that's quite normal after a fresh install.
I had to manually add the entry's in my file.

Quote:
Are you using Lenny?
No,Testing i'm afraid.

Quote:
I don't know which is the file used as a replacement
It's the right file,post the output of cat /etc/X11/xorg.conf.
Let's see if there's anything there at all.
 
Old 07-20-2009, 05:32 AM   #19
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Original Poster
Rep: Reputation: 17
Thank you for your answer "the trooper".

Well, my "/etc/X11/xorg.conf file" is really really empty.
No doubt about that.

Lenny MUST be using some kind of other file to make its
stuff work: my mouse, keyboard and display are working
perfectly...

All the best,
--
Léa
 
Old 07-20-2009, 06:03 AM   #20
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps you can find some answers at
http://forums.debian.net/viewtopic.php?p=162636#162636
 
Old 07-20-2009, 06:06 AM   #21
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Original Poster
Rep: Reputation: 17
Thank you repo, I'll have a look at your link.
All the best,
--
Léa
 
Old 07-20-2009, 07:17 AM   #22
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
Originally Posted by leamassiot View Post
Thank you for your answer "the trooper".

Well, my "/etc/X11/xorg.conf file" is really really empty.
No doubt about that.

Lenny MUST be using some kind of other file to make its
stuff work: my mouse, keyboard and display are working
perfectly...

All the best,
--
Léa
Well i'm really surprised about that.
Especially as repo showed you how to generate the file in an earlier post.
I believe mine was generated when i installed the Nvidia driver.

Well i hope the link helps you out.
Please post back how you get on or if we can help further
 
Old 07-20-2009, 08:28 AM   #23
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Original Poster
Rep: Reputation: 17
Hi again,

Thank you so much for your help.

Yes, that's true, "repo" showed me how to generate a "xorg.conf" file
but as I said, when I did it, I got an "awful messy result" (well, I
know, this description is a bit insufficient but maybe, you see what
I mean... :/). So I emptied again the "xorg.conf" file after this try.

I tried something else that might highlight things a little...
I had a look at X11 log file (/var/log/Xorg.0.log) and here are a
few excerpts from it:

First one:
Code:
X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.2-10.lenny2)
Current Operating System: Linux chrome 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686
Build Date: 08 June 2009  09:12:57AM
Second one:
Code:
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
  (++) from command line, (!!) notice, (II) informational,
  (WW) warning, (EE) error, (NI) not implemented, (??) unknown.

(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 20 09:53:30 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) No Layout section.  Using the first Screen section.
(==) No screen section available. Using defaults.
(**) |-->Screen "Default Screen Section" (0)
(**) |   |-->Monitor "<default monitor>"
(==) No monitor specified for screen "Default Screen Section".
  Using a default monitor configuration.
(==) |-->Input Device "<default pointer>"
(==) |-->Input Device "<default keyboard>"
(==) The core pointer device wasn't specified explicitly in the layout.
  Using the default mouse configuration.
(==) The core keyboard device wasn't specified explicitly in the layout.
  Using the default keyboard configuration.
Third one:
Code:
 (**) Option "CoreKeyboard"
 (**) <default keyboard>: always reports core events
 (**) Option "Protocol" "standard"
 (**) <default keyboard>: Protocol: standard
 (**) Option "AutoRepeat" "500 30"
 (**) Option "XkbRules" "xorg"
 (**) <default keyboard>: XkbRules: "xorg"
 (**) Option "XkbModel" "pc105"
 (**) <default keyboard>: XkbModel: "pc105"
 (**) Option "XkbLayout" "us"
 (**) <default keyboard>: XkbLayout: "us"
 (**) Option "CustomKeycodes" "off"
 (**) <default keyboard>: CustomKeycodes disabled
I noticed two things:
(1) apparently a "default" configuration is used as "xorg.conf" is empty;
(2) the "XkbLayout" is set to "us". The problem may come from here, no?

Do you know about a kind of temporary directory in which one could
find the configuration file corresponding to these (temporary?) settings?
A file that I would copy to "/etc/X11/xorg.conf" and in which I would
change "us" to "fr" or something like that ?

I just read:
"default settings are embedded in Xorg binary - i think.
but there is no default configuration file."
(http://www.nabble.com/xorg-default-c...d15274730.html)

All the best,
--
Léa

Last edited by leamassiot; 07-20-2009 at 08:35 AM.
 
Old 07-20-2009, 09:16 AM   #24
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
Build Operating System: Linux Debian (xorg-server 2:1.4.2-10.lenny2)
Current Operating System: Linux chrome 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686
Linux chrome?


Quote:
Do you know about a kind of temporary directory in which one could
find the configuration file corresponding to these (temporary?) settings?
As far as i know Debian now tries to 'auto' configure these settings,that's why by default the file is empty.
That's why we need to generate the xorg.conf,file to adjust these default settings.

Re-reading your previous post i don't think you stopped gdm properly before creating the file:

Quote:
- So I did: CTRL_ALT_F1.
- Logged as root.
- Ran "dpkg-reconfigure xserver-xorg"
A "/root/xorg.conf.new" file was generated... as you mentionned.
- I moved that file to "/etc/X11/":
mv ~/xorg.conf.new /etc/X11/xorg.conf
- Rebooted.
I would suggest trying to generate the file again.
Here's how i would do it:

Code:
ctrl-alt-f1
To exit the gui.
Login as root.

Code:
# /etc/init.d/gdm stop  (to stop gdm.)
# X -configure
# mv ~/xorg.conf.new /etc/X11/xorg.conf
# /etc/init.d/gdm start
You should now be back in the gui,but you need to logout as root:
Code:
ctrl-alt-f1 again.
ctrl-d
ctrl-alt-f7
When you get to this point,post the contents of the xorg.conf please.

Last edited by the trooper; 07-20-2009 at 09:30 AM.
 
Old 07-20-2009, 09:40 AM   #25
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Original Poster
Rep: Reputation: 17
Took a little time to do it, sorry.

I followed your instructions to the letter.
Here is the "xorg.conf.new" generated.
When I copy this file to "/etc/X11/xorg.conf" and restart "gdm",
I have the same problem as mentionned in the previous posts.
(The problems that occur are related to the display).

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

Section "Files"
	RgbPath      "/etc/X11/rgb"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load  "glx"
	Load  "GLcore"
	Load  "dbe"
	Load  "record"
	Load  "dri"
	Load  "xtrap"
	Load  "extmod"
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     "ShadowFB"           	# [<bool>]
        #Option     "KGAUniversal"       	# [<bool>]
	Identifier  "Card0"
	Driver      "vga"
	VendorName  "nVidia Corporation"
	BoardName   "G71 [GeForce 7300 GS]"
	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
All the best,
--
Léa

Last edited by leamassiot; 07-20-2009 at 09:43 AM.
 
Old 07-20-2009, 09:49 AM   #26
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Ok we are getting somewhere

Now let's edit the file.
Make your entry for the keyboard like this:

Code:
Section "InputDevice"

    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "fr"
EndSection
Save the file.Then exit root.
Shut down the shell.

Restart X with ctrl-alt-bkspce
Login and try the keyboard layout now.
 
Old 07-20-2009, 10:05 AM   #27
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Original Poster
Rep: Reputation: 17
Dear "the trooper",

I added the various options ("XkbRules", "XkbModel" and "XkbLayout") to
the "/etc/X11/xorg.conf" "InputDevice" section,

but as I told you: I can get a proper display (I have no display, it
fails with the message mentionned in an earlier post (#10):
Code:
The display server has been shut down about 6 times
in the last 90 seconds. It is likely that something bad
is going on.
Waiting for 2 minutes before trying again on display :0.
) so I don't even get a chance to test whether these addings
are efficient or not...

I which could just set the "XkbLayout" option to "fr" in command-line...
wouldn't it be possible?

All the best,
--
Léa
 
Old 07-20-2009, 10:18 AM   #28
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Looking at your xorg.conf you are using an odd driver "vga".
Try the following.

Reboot into single user mode.
Log in as root.
vim /etc/X11/xorg.conf
Edit the driver from vga to nv.

Save the file.
Then type exit to continue to boot into the gui.

See how you go.
 
Old 07-20-2009, 10:30 AM   #29
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Original Poster
Rep: Reputation: 17
Ok, you're a boss !
I changed "vga" to "nv".
That's ok now.

Thank you for your patience and your reactivity!
So great to have a nice and efficient help like that!

Thanks to "repo" too who has also been patient and reactive.

I'll "thank" both of you.
I'll do another post to sum up what we did.
I'll do that right now.

Thanks and all the best ,
--
Léa

P.S. "chrome" is my machine hostname.

Last edited by leamassiot; 07-20-2009 at 10:32 AM.
 
Old 07-20-2009, 10:34 AM   #30
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
Originally Posted by leamassiot View Post
Ok, you're a boss !
I changed "vga" to "nv".
That's ok now.

Thank you for your patience and your reactivity!
So great to have a nice and efficient help like that!

Thanks to "repo" too who has also been patient and reactive.

I'll "thank" both of you.
I'll do another post to sum up what we did.
I'll do that right now.

Thanks and all the best ,
--
Léa

P.S. "chrome" is my machine hostname.
You are very welcome!
Good luck with Debian in the future.

Edit: It would be worth using the thread tools to mark this thread as solved.

Last edited by the trooper; 07-20-2009 at 10:36 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Linux keymap to reflect dual-booted WinXP keymap AbuKaidman Linux - Newbie 2 07-18-2009 03:05 AM
root@localhost:~# xf86config -bash: xf86config: command not found klemen Slackware 17 01-06-2005 02:56 AM
where is the XF86config-4 or XF86config file in the fedora? u2911 Fedora 4 07-24-2004 08:38 PM
where can I find the XF86Config and XF86Config-4 files? souaw Mandriva 4 04-21-2004 09:30 AM
Diff btw XF86Config-4 and XF86Config BorgKing Linux - Newbie 1 06-12-2002 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration