LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   X11 gives me a black screen when exiting (https://www.linuxquestions.org/questions/linux-desktop-74/x11-gives-me-a-black-screen-when-exiting-529334/)

Splizxer 02-15-2007 11:28 AM

X11 gives me a black screen when exiting
 
Here's the setup I'm running:
Arch-Linux 0.8 in Microsoft Virtual PC 2004

I have installed xorg through 'pacman -Sy xorg', and installed kdebase with 'pacman -Sy kdebase'.
(My kernel and everything is up to date, I ran 'pacman -Syu' before I installed kde/x11).

installed hwd, ran the xorg configuration generator 'hwd -x', it detected my monitor just fine (please note that this problem persisted before I ran the autoconfig).


Basically, I can start X11 with the startx command, and run kde with kdm, everything works great (except for the mouse, which doesn't move).

So I'm keyboarding it in kde, I decide to exit so I logoff and try to go back into console, except my screen goes blank when exiting X11.

I try again using ctrl+alt+backspace, same thing, but here's the kicker, if I type reboot afterthat (into the console [which is black cause I can't see shit]), it goes beep and reboots like normal.

So I can still use the console and everything, I just cant see anything.

I'm using the vesa driver if that makes any difference.


Also, for the mouse problem, hwd detected it as PS/2, says serial and usb wasn't found (it is a usb mouse though), I image that is because of VirtualPC, but I tried to use the serial and usb modes, but they did not work either.


Has anyone had a similar experience or know how to figure this out, it would be greatly appreciated.

-Matthew

*These problems still happened when I installed arch w/out virtual PC (on another partition)*

EDIT: Also I'm not that technical with linux, but I can do basic shit like editing configs, so just keep that in mind when answering.
I also know that Arch is meant for advanced users, but I find this one the most straight forward to use.

Penguin of Wonder 02-15-2007 12:44 PM

Your going to need to edit your /etc/X11/xorg.conf to fix your various issues. Tools like hwd are nice, but its not very "Arch-like." Besides the philosophical points post the mouse section of your xorg.conf. Its probably just configured wrong.

For your console problem, did you include a frame buffer code in your grub.conf? Something like vga=791?

Splizxer 02-15-2007 01:46 PM

Yea, I added vga=771 (I think its 800x600 256color)

EDIT: I removed the vga line, and now it goes back to working normally. Thanks

Ill post the mouse portions of the xorg config when I figure out how to copy and paste with kde.


Code:

Section "ServerLayout"
        Identifier    "Xorg Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "PS/2 Mouse" "CorePointer"
EndSection

Section "ServerFlags"
        Option "AllowMouseOpenFail"  "true"
       
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "CoreKeyboard"
        Option "XkbRules" "xorg"
        Option "XkbModel" "pc105"
        Option "XkbLayout" ""
        Option "XkbVariant" ""
EndSection

Section "InputDevice"
        Identifier  "Serial Mouse"
        Driver      "mouse"
        Option      "Protocol" "Microsoft"
        Option      "Device" "/dev/ttyS0"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "70"
        Option            "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier  "PS/2 Mouse"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option          "ZAxisMapping"          "4 5"
        Option      "Device" "/dev/psaux"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "70"
        Option            "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
        Option                "SendCoreEvents"        "true"
        Option          "Protocol"              "IMPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"              "5"
EndSection


Penguin of Wonder 02-15-2007 02:48 PM

From what you have written there it looks like you've got three different mice setup. But it looks like your corepointer is set to the wrong one. Try changing this line
Quote:

InputDevice "PS/2 Mouse" "CorePointer"
to this
Quote:

InputDevice "USB Mouse" "CorePointer"
Then do a ctrl+alt+backspace to restart X. That should tell X to use the USB mouse by default.


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