Just a quick thought on your mouse. Before running
startx try re-configuring your mouse using the command
mouseconfig.
Nothing atop my head for your keyboard.
Quote:
The keyboard layout for the X-Window system is independent from the keyboard layout of the textual console.
|
. Have a look at
X11 keyboard setup here. Perhaps your localisation settings are not correct.