Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-01-2005, 11:06 PM
|
#1
|
LQ Newbie
Registered: Apr 2005
Posts: 10
Rep:
|
startx on Debian gives grey background - cannot move mouse cursor or type
G'day all,
I have a Debian installation on an old Pentium box. When I 'startx', I cannot move the mouse or use the keyboard. (Ctrl-Alt-Bkspc works to kill X though!)
I get the standard grey background with X mouse cursor, which then changes to a black 'arrow' cursor. A bar appears at the bottom of screen with the words 'Workspace 1', some arrows and the time displayed.
At this point I cannot move the mouse cursor and no keyboard keys respond except Ctrl-Alt-Bkspc to kill X or the function keys to switch consoles.
I have a two-button serial mouse. /dev/mouse is symlinked to /dev/ttyS1 which is where I think the serial port is mounted.
Any ideas on what is causing this? /etc/X11/XF86Config-4 attached below...
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "speedo"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/mouse"
Option "Emulate3Buttons" "true"
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 "DefaultRefresh" # [<bool>]
Identifier "Card0"
Driver "vesa"
Option "UseFBDev" "false"
VendorName "S3 Inc."
BoardName "86c767 [Trio 64UV+]"
BusID "PCI:0:19:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
EndSubSection
SubSection "Display"
Depth 24
EndSubSection
EndSection
Thanks
Francis
|
|
|
05-01-2005, 11:20 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Try using CTRL + ALT + F1 to switch to the first console then login as root. Once there dpkg-reconfigure xserver-xfree86 to reconfigure the X server and select a default depth and resolution for the X server you have none in your config file at the moment along with the settings for your keyboard. You may also want to install a display manager like xdm unless of course you want to continue to use the startx to start it although I think you may have missed some X packages when setting it up because xdm should have been installed as part of the server install.
|
|
|
05-02-2005, 12:17 AM
|
#3
|
LQ Newbie
Registered: Apr 2005
Posts: 10
Original Poster
Rep:
|
Thanks HappyTux..
I re-ran dpkg-reconfigure xserver-xfree86 as you suggested.
This unfortunately hasn't changed anything. In fact, I checked /etc/X11/XF86Config-4 and it had not been altered.
Any ideas where dpkg might have stored the new X config file if not there?
It seems that the X Server loads up ok, because previously it wouldn't load at all when I had specified the wrong mouse location. I fixed this, and now I get to the graphical display with the cursor, but no further.
I also checked xdm and I definitely have the xdm package installed. I've also got fluxbox window manager (installed with apt-get) but haven't configured it yet.
Cheers
Francis
|
|
|
05-02-2005, 12:34 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Re: startx on Debian gives grey background - cannot move mouse cursor or type
Alright try this for an /etc/X11/XF86Config-4 it is just a basic one based on what you posted you may need to change the number of keys through the "XkbModel" and "XkbLayout" if you use a layout other than us and change the Driver "vesa" to "s3".
Code:
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "speedo"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/mouse"
Option "Emulate3Buttons" "true"
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 "DefaultRefresh" # [<bool>]
Identifier "Card0"
Driver "vesa"
Option "UseFBDev" "false"
VendorName "S3 Inc."
BoardName "86c767 [Trio 64UV+]"
BusID "PCI:0:19:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
EndSubSection
EndSection
|
|
|
05-04-2005, 05:51 AM
|
#5
|
LQ Newbie
Registered: Apr 2005
Posts: 10
Original Poster
Rep:
|
Thanks for the info, HappyTux.
I tried your suggested modifications but nothing changed. I don't think it's a problem with the display driver as I am getting an X-like screen, it's just that I can't move the mouse or use the keyboard when I'm at this screen.
Here's the output of my /var/log/XFree86.0.log after I have run startx , gotten to the grey screen, then used Ctrl-Alt-Backspace to kill X and return to the console:
http://web.aanet.com.au/francis/xlog.txt
Any ideas?
Cheers
Francis
|
|
|
05-04-2005, 05:56 AM
|
#6
|
LQ Newbie
Registered: Apr 2005
Posts: 10
Original Poster
Rep:
|
Here also is my /etc/X11/xinit/xinitrc:
http://web.aanet.com.au/francis/xinitrc
Anything missing that should be there?
Cheers again
Francis
|
|
|
05-04-2005, 06:03 AM
|
#7
|
LQ Newbie
Registered: Apr 2005
Posts: 10
Original Poster
Rep:
|
Maybe it's the mouse...
Here's another thought.
I tried (as root) cat /dev/mouse and cat /dev/ttyS1 (the former is symlinked to the latter anyway, and the mouse is on the second serial port).
If the mouse is working correctly, I should get stuff on the screen when I move or click the mouse, right? I got nothing. Just a blank line until I killed the cat with Ctrl-C.
I have tried two different serial mice with the same result. I'm pretty sure the mice and the serial port work OK because this box was running Windows 98 with the same mouse with no problems.
(Well, not mouse problems anyway
How else can I check that Linux is recognising my mouse?
Thanks
Francis
|
|
|
05-04-2005, 03:11 PM
|
#8
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
You should have.
I believe in there to tell it to start your desktop environment. Try that and see if it works as to the X log I do not see any resolutions being tested but it looks like it is going to use the vesa modes so hopefully it works.
|
|
|
All times are GMT -5. The time now is 11:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|