LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   startx on Debian gives grey background - cannot move mouse cursor or type (https://www.linuxquestions.org/questions/linux-newbie-8/startx-on-debian-gives-grey-background-cannot-move-mouse-cursor-or-type-319219/)

fdac 05-01-2005 11:06 PM

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

HappyTux 05-01-2005 11:20 PM

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.

fdac 05-02-2005 12:17 AM

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

HappyTux 05-02-2005 12:34 AM

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


fdac 05-04-2005 05:51 AM

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

fdac 05-04-2005 05:56 AM

Here also is my /etc/X11/xinit/xinitrc:

http://web.aanet.com.au/francis/xinitrc

Anything missing that should be there?

Cheers again
Francis

fdac 05-04-2005 06:03 AM

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

HappyTux 05-04-2005 03:11 PM

Quote:

Originally posted by fdac
Here also is my /etc/X11/xinit/xinitrc:

http://web.aanet.com.au/francis/xinitrc

Anything missing that should be there?

Cheers again
Francis

You should have.

Code:

exec fluxbox
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 01:36 PM.