LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Laptop Debian Freeze (https://www.linuxquestions.org/questions/linux-newbie-8/laptop-debian-freeze-340040/)

aeuzent 07-04-2005 08:16 PM

Laptop Debian Freeze
 
Alright I'm used to Fedora which solves little problems like this for you. But since I'm out of the playpen now I need a little help.

I have a Gateway Solo 9550 with the newest version of Debain installed. If I leave the system alone for a few minutes it will freeze (specifically the mouse) and if I close the lid it will freeze. I'm guessing there is some package or setting I'm missing here. Just tell me where to go.

mjrich 07-04-2005 08:43 PM

For starters, I would remove gpm if you have it enabled, and also install acpid
Code:

apt-get update
apt-get remove gpm
apt-get install acpid

Gpm seems to interfere with X on some laptops (mine included). Acpid may help with the lid button etc.

Cheers,

mj

aeuzent 07-04-2005 08:49 PM

I installed it and got something about recompiling the kernel to get advanced support but aside from that it in stalled finr. I am compiling MPlayer now so I don't want to test it just yet. While I'm waiting though do you know where I can go to make the mouse wheel button work?

mjrich 07-04-2005 09:00 PM

Has the system stopped freezing up...?

Anyway, to enable the middle mouse roller button, you'll just need to edit your /etc/X11/XF86Config-4, so that it includes the following lines
Code:

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

Note that the identifier and driver for your mouse may vary. Also, this is assuming a standard two button plus roller ball/button usb mouse. Now, just restart X and you should be done.

Cheers,

mj

aeuzent 07-04-2005 09:12 PM

No it didn't stop the freezing

Also no luck with the mouse

And it also seems my laptop is getting hotter than usual

...lots of fun here

mjrich 07-04-2005 10:39 PM

For the freezing, it would help if you can narrow it down a bit. What happens if you start X, but don't touch the mouse at all ? Does it still freeze ? Does it take the same amount of time ? Any interesting warnings (WW) or errors (EE) in /var/log/XFree86.0.log ?

For the mouse wheel button, the above format will work if you have entered it correctly. Check your existing X config file, and then modify it as necessary. As a last resort, post the mouse entry here if you're still having trouble.

Cheers,

mj

aeuzent 07-05-2005 04:01 PM

Here's my XFree86 log, it's only a piece though. The thing is huge. Alot of it confuses me but see if you can make any sense of it.

Code:

(II) NV(0): Using XFree86 Acceleration Architecture (XAA)
        Screen to screen bit blits
        Solid filled rectangles
        8x8 mono pattern filled rectangles
        Indirect CPU to Screen color expansion
        Solid Lines
        Scanline Image Writes
        Offscreen Pixmaps
        Setting up tile and stipple cache:
                32 128x128 slots
                32 256x256 slots
                16 512x512 slots
(==) NV(0): Backing store disabled
(==) NV(0): Silken mouse enabled
(**) Option "dpms"
(**) NV(0): DPMS enabled
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Keyboard "Generic Keyboard" handled by legacy driver
(**) Option "Protocol" "PS/2"
(**) Configured Mouse: Protocol: "PS/2"
(**) Option "CorePointer"
(**) Configured Mouse: Core Pointer
(**) Option "Device" "/dev/psaux"
(**) Option "Buttons" "5"
(**) Option "Emulate3Buttons" "true"
(**) Configured Mouse: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Configured Mouse: ZAxisMapping: buttons 4 and 5
(**) Configured Mouse: Buttons: 5
(**) Option "Protocol" "ImPS/2"
(**) Generic Mouse: Protocol: "ImPS/2"
(**) Option "SendCoreEvents" "true"
(**) Generic Mouse: always reports core events
(**) Option "Device" "/dev/input/mice"
(EE) xf86OpenSerial: Cannot open device /dev/input/mice
        No such device.
(EE) Generic Mouse: cannot open input device
(EE) PreInit failed for input device "Generic Mouse"
(II) UnloadModule: "mouse"
(II) XINPUT: Adding extended input device "Configured Mouse" (type: MOUSE)
(II) Configured Mouse: ps2EnableDataReporting: succeeded
Warning: font renderer for ".pcf" already registered at priority 0
Warning: font renderer for ".pcf.Z" already registered at priority 0
Warning: font renderer for ".pcf.gz" already registered at priority 0
Warning: font renderer for ".snf" already registered at priority 0
Warning: font renderer for ".snf.Z" already registered at priority 0
Warning: font renderer for ".snf.gz" already registered at priority 0
Warning: font renderer for ".bdf" already registered at priority 0
Warning: font renderer for ".bdf.Z" already registered at priority 0
Warning: font renderer for ".bdf.gz" already registered at priority 0
Warning: font renderer for ".pmf" already registered at priority 0
Could not init font path element unix/:7100, removing from list!
GetModeLine - scrn: 0 clock: 135000
GetModeLine - hdsp: 1280 hbeg: 1296 hend: 1440 httl: 1688
              vdsp: 1024 vbeg: 1025 vend: 1028 vttl: 1066 flags: 5
(II) Open APM successful
(II) Configured Mouse: ps2EnableDataReporting: succeeded

And here is the mouse entry

Code:

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver        "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "PS/2"
        Option          "Emulate3Buttons"      "true"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"              "5"
EndSection
Section "InputDevice"
        Identifier      "Generic Mouse"
        Driver          "mouse"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"      "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

That second entry wasn't there when I originally edited it

mjrich 07-05-2005 04:12 PM

The part that you want to look at will be at the bottom of the log file (for the most recent addition) -- just scroll to the end, then back up until you see it beginning to repeat itself. Alternatively, you can simply 'grep' out the error and warning messages...
Code:

grep "EE\|WW" /var/log/XFree86.0.log
It looks like at least one error is coming from the incorrect mouse device location -- you may want to change /dev/input/mice back to whatever you had before. The only bits you'll probably want to change will be the "buttons" and "z axis mapping" lines.

Cheers,

mj

mjrich 07-05-2005 04:16 PM

Quote:

That second entry wasn't there when I originally edited it
Meaning that you added it, or that it appeared mysteriously...? Anyhoo, it's the one giving the error, so best to delete it.

How many mice do you have on your system, that you want to use (and what type(s) are they ?).

Cheers,

mj

aeuzent 07-05-2005 04:22 PM

Just the touchpad on the laptop. Any guess as to which entry it is?

mjrich 07-05-2005 04:27 PM

Almost certainly the first one. Does it have a wheel button as well, or was this on some external mouse you had plugged in ?

Cheers,

mj

aeuzent 07-05-2005 04:39 PM

No, just the touchpad the whole way through

Any ideas on how to fix the freezing?

And here's the greped errors

Code:

(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/lib/X11/fonts/cyrillic" does not exist.
(WW) The directory "/usr/lib/X11/fonts/CID" does not exist.
(II) Loading extension MIT-SCREEN-SAVER
(WW) System lacks support for changing MTRRs
(EE) xf86OpenSerial: Cannot open device /dev/input/mice
(EE) Generic Mouse: cannot open input device
(EE) PreInit failed for input device "Generic Mouse"


EDIT: Also I deleted the second mouse entry and it killed X so I put it back on.

mjrich 07-05-2005 04:48 PM

Quote:

While I'm waiting though do you know where I can go to make the mouse wheel button work?
:confused: Was this on a different system ?

Anyway, delete the second entry (the generic mouse) from your /etc/X11/XF86Config-4, restart X, and then grep for the errors from a console after it has frozen (switch to another screen by pressing CTRL - ALT - F1). Also, have a look at the tail end of /var/log/messages for clues.

Cheers,

mj

mjrich 07-05-2005 04:51 PM

Oh, nearly forgot -- you will also need to delete (or comment out, by placing a # at the beginning of the line) the line near the top of your XF86Config-4 file, that references your generic mouse. It will be in the "Server Layout" section, and the line will begin with "Input device".

Cheers,

mj

aeuzent 07-05-2005 04:51 PM

Alright it's commented out. But I still don't have a working middle button.


And it's still freezing.


All times are GMT -5. The time now is 10:56 AM.