Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
I can't seem to get the display resolution and mouse working correctly at the same time on an old Thinkpad 380D. I'm using Debian Etch. Everything was fine until an ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Location
    Tukwila, WA
    Posts
    7

    Question No xorg.conf?

    I can't seem to get the display resolution and mouse working correctly at the same time on an old Thinkpad 380D. I'm using Debian Etch. Everything was fine until an apt-get upgrade tripped things up.

    I used dpkg-reconfigure xserver-xorg to rebuild the config file. It puts in defaults for my monitor but when I start X I only get 640x480 even though 800x600 is listed in the config file. At least the mouse works. OK, so delete the xorg.conf and see what happens - before upgrading I was running without the file just fine.

    If I have no xorg.conf file, the the screen works great! But the mouse is not detected (it is at /dev/psaux). What is X using for settings if there is no xorg.conf? How can I change it to point to the correct mouse port?

    Thanks

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    No xorg.conf file ? Then you are not using Etch's default X 7.1. You upgraded from Sarge ?

    Make sure you are using "etch" in your /etc/apt/sources.list file.

    Also, make sure you have the package "xorg" installed :
    Code:
    apt-get install xorg
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Location
    Tukwila, WA
    Posts
    7
    I had previously upgraded to etch from Sarge without problems. This occured after an otherwise innocent apt-get upgrade. I confirmed Xorg is installed, not XFree86.

    My main question is, if I don't have an xorg.conf what is X using for settings?

  4. #4
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Quote Originally Posted by dertiger
    My main question is, if I don't have an xorg.conf what is X using for settings?
    One thing for sure, you either have a /etc/X11/XF86Config-4 file or a /etc/X11/xorg.conf one.

    If you think something is wrong, just run :
    Code:
    dpkg-reconfigure xserver-xorg
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  5. #5
    Just Joined!
    Join Date
    Nov 2006
    Location
    Tukwila, WA
    Posts
    7
    I guarantee that I have neither. Is there a way to see where X is looking to get its config data?

    When I run dpkg-reconfigure xserver-xorg, it does indeed create an xorg.conf file. The trouble with this is that X refuses to display 800x600, which is the max resolution of the display (old laptop!). It defaults to 640x480 even though 800x600 is listed first in the xorg.conf. I get the impression that X is ignoring the monitor setup section of the file because they are all set to defaults ("Generic Monitor" and default synch rates). The command to change the resolution (I forget what the command is now, it starts with "r") only lists 640x480! The good news with this route is that the mouse works!

    Hence my dilemma - one solution gives me 800x600 but no mouse, the other gives me 640x480 with a mouse.

    Thanks for listening!

  6. #6
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    Could you post your xorg.conf please?

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  7. #7
    Just Joined!
    Join Date
    Nov 2006
    Location
    Tukwila, WA
    Posts
    7
    Code:
    # /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/fonts/X11/misc"
    	FontPath	"/usr/X11R6/lib/X11/fonts/misc"
    	FontPath	"/usr/share/fonts/X11/cyrillic"
    	FontPath	"/usr/X11R6/lib/X11/fonts/cyrillic"
    	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
    	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
    	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    	FontPath	"/usr/share/fonts/X11/Type1"
    	FontPath	"/usr/X11R6/lib/X11/fonts/Type1"
    	FontPath	"/usr/share/fonts/X11/100dpi"
    	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi"
    	FontPath	"/usr/share/fonts/X11/75dpi"
    	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi"
    	# path to defoma fonts
    	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    EndSection
    
    Section "Module"
    	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"	"pc101"
    	Option		"XkbLayout"	"us"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    	Option		"CorePointer"
    	Option		"Device"		"/dev/psaux"
    	Option		"Protocol"		"PS/2"
    	Option		"Emulate3Buttons"	"true"
    EndSection
    
    Section "Device"
    	Identifier	"Neomagic Corporation NM2093 [MagicGraph 128ZV]"
    	Driver		"neomagic"
    	BusID		"PCI:0:3:0"
    EndSection
    
    Section "Monitor"
    	Identifier	"Generic Monitor"
    	Option		"DPMS"
    	HorizSync	28-38
    	VertRefresh	43-72
    EndSection
    
    Section "Screen"
    	Identifier	"Default Screen"
    	Device		"Neomagic Corporation NM2093 [MagicGraph 128ZV]"
    	Monitor		"Generic Monitor"
    	DefaultDepth	24
    	SubSection "Display"
    		Depth		1
    		Modes		"800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		4
    		Modes		"800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		8
    		Modes		"800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		15
    		Modes		"800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		16
    		Modes		"800x600" "640x480"
    	EndSubSection
    	SubSection "Display"
    		Depth		24
    		Modes		"800x600" "640x480"
    	EndSubSection
    EndSection
    
    Section "ServerLayout"
    	Identifier	"Default Layout"
    	Screen		"Default Screen"
    	InputDevice	"Generic Keyboard"
    	InputDevice	"Configured Mouse"
    EndSection
    
    Section "DRI"
    	Mode	0666
    EndSection

  8. #8
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    And what's the video card on that machine ?
    Code:
    lspci | grep -i vga
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  9. #9
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    107
    The video card is a neomagic with about 1mb of video memory.

    My guess is this is your problem with your current xorg.conf file
    DefaultDepth 24
    change it to
    DefaultDepth 16
    and see if it works at 800x600 then

  10. #10
    Just Joined!
    Join Date
    Nov 2006
    Posts
    10
    ok try this as root X -configure then copy the file to you /etc/X11/xorg.conf
    after that edit the file and change
    Option "Device" "/dev/psaux"

    Option "Device" "/dev/input/mice"

    that should do the job for you.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •