LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-11-2004, 05:00 PM   #1
Ungluun
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 15
startx doesn't work properly


Hi,
I have installed Debian but when I ran startx, I got the "no screens found" error. So I decided to use vesa drivers in place of nv(for my geforce4) in the XFree86config-4 file, and scale down the resolution. Now when I type startx, I get the KDE loading screen, but then I get an error and x fails to load.
How can I fix this?

This is the end of my xfree86.0.log:
Quote:
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
PEXExtensionInit: Couldn't open default PEX font file Roman_M
(II) Keyboard "Generic Keyboard" handled by legacy driver
(**) Option "Protocol" "NetScrollPS/2"
(**) Configured Mouse: Protocol: "NetScrollPS/2"
(**) Option "CorePointer"
(**) Configured Mouse: Core Pointer
(**) Option "Device" "/dev/psaux"
(==) Configured Mouse: Buttons: 3
(**) Option "Emulate3Buttons" "true"
(**) Configured Mouse: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Configured Mouse: ZAxisMapping: buttons 4 and 5
(**) Option "Protocol" "ImPS/2"
(**) Generic Mouse: Protocol: "ImPS/2"
(**) Option "SendCoreEvents" "true"
(**) Generic Mouse: always reports core events
(**) Option "Device" "/dev/input/mice"
(EE) xf86OpenSerial: Cannot open device /dev/input/mice
No such device.
(EE) Generic Mouse: cannot open input device
(EE) PreInit failed for input device "Generic Mouse"
(II) UnloadModule: "mouse"
(II) XINPUT: Adding extended input device "Configured Mouse" (type: MOUSE)
Could not init font path element unix/:7100, removing from list!

Fatal server error:
Caught signal 11. Server aborting
Thanks in advance.

Last edited by Ungluun; 07-11-2004 at 05:02 PM.
 
Old 07-11-2004, 05:49 PM   #2
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
You have two mouse entries and the second one is causing errors. Remove the General Mouse section.
 
Old 07-12-2004, 02:55 AM   #3
TLV
Member
 
Registered: Jun 2004
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
Do you have the mouse modules in your /etc/modules? I had to add mousedev and psmouse to get X to work properly.

/TLV
 
Old 07-12-2004, 03:43 AM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
I had to add mousedev and psmouse to get X to work properly.
I'm not sure, but I think the mousedev entry in /etc/modules is only needed for usb mice. Entry for psmouse in /etc/modules should be enough for non-usb PS/2 mice. (Still, no harm done using both.)

Another consideration is that PS/2 (or ImPS/2) mice with kernel 2.4.x use /dev/psaux but with kernel 2.6.x the correct device is /dev/input/mice.

Like already suggested, commenting out the offending mouse entry in /etc/X11/XF86Config-4 might be worth a try.

Also, you can comment out the font path entry unix/:7100 in /etc/X11/XF86Config-4 since it doesn't appear to work.
 
Old 07-12-2004, 07:03 AM   #5
Ungluun
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
I tried to comment out the mouse entry, but I keep getting errors:

This is my original XF86Config-4 file:
Quote:
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "pex5"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
Load "xie"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "be"
EndSection

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

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

Section "Device"
Identifier "Generic Video Card"
Driver "vesa"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-98
VertRefresh 50-120
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 8
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 "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "800x600" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection


I edited it to this:
Quote:
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "pex5"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
Load "xie"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "be"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "false"
Option "ZAxisMapping" "4 5"
EndSection


Section "Device"
Identifier "Generic Video Card"
Driver "vesa"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-98
VertRefresh 50-120
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 8
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 "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "800x600" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection
And this is the Xfree86.0.log:
Quote:
(==) VESA(0): Default visual is PseudoColor
(==) VESA(0): Backing store disabled
(**) Option "dpms"
(**) VESA(0): DPMS enabled
(II) Setting vga for screen 0.
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
PEXExtensionInit: Couldn't open default PEX font file Roman_M
(II) Keyboard "Generic Keyboard" handled by legacy driver
(**) Option "Protocol" "IMPS/2"
(**) Configured Mouse: Protocol: "IMPS/2"
(**) Option "CorePointer"
(**) Configured Mouse: Core Pointer
(**) Option "Device" "/dev/psaux"
(==) Configured Mouse: Buttons: 3
(**) Option "Emulate3Buttons" "false"
(**) Option "ZAxisMapping" "4 5"
(**) Configured Mouse: ZAxisMapping: buttons 4 and 5
(II) XINPUT: Adding extended input device "Configured Mouse" (type: MOUSE)

Fatal server error:
Caught signal 11. Server aborting
 
Old 07-12-2004, 08:12 PM   #6
macondo
Senior Member
 
Registered: Jul 2003
Location: Panama
Distribution: Debian Sid
Posts: 1,014

Rep: Reputation: 49
According to the boys at #debian in the IRC, the driver is nvidia-glx and you need to compile the modules (nvidia-kernel-src), what i don't understand is why it doesn't work with vesa?

Assuming you are in Woody, with kernel 2.4.18, i would reconfigure X with:

as root:
dpkg-reconfigure xserver-xfree86

and this time following the instructions in the following article TO THE LETTER:

The Very Verbose Debian 3.0 Installation Walkthrough
http://osnews.com/story.php?news_id=2016

Sections 9 and 10
Installing XFree86 Parts I and II

try with the vesa driver and whatever you do, do not touch the XFree86config-4 file, Let Debian write it for you.
 
Old 07-12-2004, 11:14 PM   #7
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
simple solution = kernel compiling with mouse support
 
Old 07-13-2004, 04:04 AM   #8
everest
Member
 
Registered: Aug 2003
Posts: 44

Rep: Reputation: 15
I had the same problem Ungluun - I was using a mouse made in about 1992, so I switched to a mouse made in about 2002, and that solved the problem. Debian doesn't have drivers for every piece of hardware, and if Debian doesn't have the right driver for your mouse then in my experience (limited to my one example) it simply won't open the GUI. So if all the above suggestions fail, you could try buying a new mouse or simply try a different one if you have one.
 
Old 07-13-2004, 06:54 AM   #9
Ungluun
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
The problem seems to be with KDE. Gnome starts without a problem. So I'm going to stick with gnome for a while
The next problem is installing the Nvidia drivers: It seems that i need the kernel headers, but can't install them:
Quote:
debian:/home/orlonth# apt-get install kernel-headers-$(uname -r)
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-headers-2.4.26
How should i do this?
 
Old 07-13-2004, 07:25 AM   #10
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
You can add "testing" repository to your sources.list and pull the kernel-headers package from testing. Here are two documents that explain the "apt-pinning" technique that allows you to do this.

http://jaqque.sbih.org/kplug/apt-pinning.html

http://www.argon.org/~roderick/apt-pinning.html

"Apt-pinning" should work fine when you use only two "branches" (stable/testing or testing/unstable) but it has problems when trying to use three "branches" (stable/testing/unstable) simultaneously.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CP command doesn't work properly? itz2000 Linux - Newbie 1 08-02-2005 01:14 PM
mysqladmin doesn't work properly Dark Severance Red Hat 0 04-21-2005 09:55 AM
NVIDIA does not work properly in 10.1 Cornholio Slackware 7 03-28-2005 03:00 PM
[help]my JuK can't work properly now... QuickTime Linux - Software 1 12-26-2003 10:33 AM
Getting apt-get to work properly pwaring Debian 15 12-12-2003 04:10 PM


All times are GMT -5. The time now is 08:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration