You are not logged in.

#1 2009-09-12 16:33:01

corny
Member
Registered: 2009-09-12
Posts: 4

wireless mouse USB plug needed on laptop, otherwise X crash

Hi there,

I've installed Arch about a fortnight on my laptop, and it's working nicely on the whole, but I'm having quite a curious issue:

I've realized that X crashes whenever the usb-thingy that receives my logitech wireless keyboard & mouse is NOT plugged in.
Well that's no big deal, but still, my computer's a laptop, and having to plug that anywhere I go can prove a bit annoying.

The thing was plugged in during the install, I don't know whether this has anything to do with it, but the fact is that I just can never unplug it.

Any clues?

Sorry if I've asked something you people find really easy to solve but I have not found anything on it in forums and nothing at all comes to my mind as a bgg of a solution.

The synaptic mouse and the embedded keyboard on my laptop work just fine, and the wireless keyboard and mouse as well, no problem at all. It's just like the receiver worked as a key to make X work right.

Thx for reading, not a problem if you don't know, that's not crucial but if I could get rid of it I just wouldn't mind :-)

Corny

Offline

#2 2009-09-12 16:56:22

cobra2
Member
From: deep in Dixie with Arch64
Registered: 2009-09-10
Posts: 27

Re: wireless mouse USB plug needed on laptop, otherwise X crash

Are you using an xorg.conf or hal?


Hardware is like a parachute.... works best when open.

Offline

#3 2009-09-12 18:33:20

corny
Member
Registered: 2009-09-12
Posts: 4

Re: wireless mouse USB plug needed on laptop, otherwise X crash

[Thanks for answering :-)]

xorg.conf.

On the install, the new X thing that is supposed to detect everything didn't do for my laptop, so I worked out a basic xorg.conf by copy/pasting bits and pieces from samples posted here and there. In case you should find it useful:

Section "InputDevice"
    Driver    "synaptics"
    Identifier    "touchpad"
    Option    "Device"    "/dev/psaux"
    Option    "Protocol"    "auto-dev"
    Option    "SHMConfig"    "on"
    Option     "VertEdgeScroll" "true"
    Option "TapButton1" "1"
    Option "TapButton2" "2"
    Option "TapButton3" "3"
#    Option    "HorizEdgeScroll" "true"
#    Option  "SHMConfig" "on"
#    Option "Device" "/dev/input/mouse0"
#    Option "Protocol" "auto-dev"
#    Option "LeftEdge" "130"
#    Option "RightEdge" "840"
#    Option "TopEdge" "130"
#    Option "BottomEdge" "640"
#    Option "FingerLow" "7"
#    Option "FingerHigh" "8"
#    Option "MaxTapTime" "180"
#    Option "MaxTapMove" "110"
#    Option "EmulateMidButtonTime" "75"
#    Option "VertScrollDelta" "20"
#    Option "HorizScrollDelta" "20"
#    Option "MinSpeed" "0.25"
#    Option "MaxSpeed" "0.50"
#    Option "AccelFactor" "0.010"
#    Option "EdgeMotionMinSpeed" "200"
#    Option "EdgeMotionMaxSpeed" "200"
#    Option "UpDownScrolling" "1"
#    Option "CircularScrolling" "1"
#    Option "CircScrollDelta" "0.1"
#    Option "CircScrollTrigger" "2"
EndSection

Section "Monitor"
    Identifier    "Monitor0"
    Option        "PreferredMode" "1280x800"
Endsection

Section "Screen"
    Identifier    "ScreenÂ0"
    Monitor        "Monitor0Â"
Endsection

Section "ServerFlags"
    Option "DontZap" "False"
#    Option "AutoDevices" "False"
EndSection

Section "Serverlayout"
    Identifier "single head configuration"
    InputDevice "Touchpad" "SendCoreEvents"
Endsection

Section "Module"
    Load "ddc"
    Load "dbe"
    Load "dri"
    Load "extmod"
    Load "glx"
    Load "bitmap"
    Load "type1"
    Load "freetype"
    Load "int10"
    Load "vbe"
    Load "record"
    Load "synaptics"
Endsection

Section "Device"
    Identifier "aticonfig-Device[Ã0]"
    Driver "radeon"
    
    Option "AccelMethod" "EXA"
    Option "RenderAccel" "true"
    Option "DRI" "true"
EndSection

Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER" "Enable"
Endsection

Section "DRI"
    Mode 0666
Endsection

But I also have hal in my rc.conf's daemons list because it's supposed to manage hotplugging isn't it? here's my /etc/rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="fr_Fr.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Paris"
KEYMAP="fr-latin9"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="lolopc"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="dhcp"
eth0="dhcp"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond hal gdm alsa)

I'm aware that these files may not be as crystal pure as they could, but apart from minor hitches, this works alright. Just tell me if there's anything you think awful!

Offline

#4 2009-09-12 19:06:22

cobra2
Member
From: deep in Dixie with Arch64
Registered: 2009-09-10
Posts: 27

Re: wireless mouse USB plug needed on laptop, otherwise X crash

try going with something a little more generic in your xorg.conf. This is what i have in mine. I also hotplug a logitech mx3000 keyboard and a lx600 mouse.


Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

also you might want to switch when hal loads.

DAEMONS=(syslog-ng hal network netfs crond gdm alsa)

this is my rc.conf

DAEMONS=(syslog-ng dbus hal !network !dhcdbd !networkmanager netfs crond sshd alsa mpd mpdscribble)

Hardware is like a parachute.... works best when open.

Offline

Board footer

Powered by FluxBB