You are not logged in.

#1 2009-01-03 00:22:08

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Laptop lid switch problem

First sorry if thread is placed in the wrong forum, but I suspect this is somehow X or DE related.

Here's the problem, my screen won't turn back on when I close and open my laptop lid. It doesn't freeze (I can still type sudo reboot in terminal and reboot my system), the screen just remains blank.

I am using Xorg 1.5.3, Openbox, my rc.conf modules are: syslog-ng @hal @alsa @network !netfs !crond

Offline

#2 2009-01-03 01:18:08

aksdb
Member
Registered: 2007-10-07
Posts: 38

Re: Laptop lid switch problem

Try switching to a console TTY (Ctrl+Alt+F1) and back to the X-Server (Ctrl+Alt+F7). It would at least be a workaround and maybe indicate where the problem stems from.

Offline

#3 2009-01-03 02:54:11

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Laptop lid switch problem

What is the output of dmesg and the last few output of /var/log/messages.log?
I believe this is acpi related.

Last edited by archlinuxsagi (2009-01-03 02:57:19)

Offline

#4 2009-01-03 11:58:49

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: Laptop lid switch problem

aksdb wrote:

Try switching to a console TTY (Ctrl+Alt+F1) and back to the X-Server (Ctrl+Alt+F7). It would at least be a workaround and maybe indicate where the problem stems from.

well that turns my screen back on but my touchpad stops working.
xorg output says something like this:

(EE) AlpsPS/2 ALPS GlidePoint: Device has changed - disabling.

archlinuxsagi wrote:

What is the output of dmesg and the last few output of /var/log/messages.log?
I believe this is acpi related.

here's my new messages.log (I deleted the old one, rebooted, closed my lid and opened it then copied messages.log on blind from terminal and rebooted).

http://karabaja.pondi.hr/unrelated/messages_fresh.log

Offline

#5 2009-01-03 13:25:53

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Laptop lid switch problem

karabaja4 wrote:

:syslog-ng @hal @alsa @network !netfs !crond

You run a tight ship.

I had almost the same problem.

I had to add the following to my /etc/acpi/actions/lm_lid.sh

#! /bin/sh
if grep -q open /proc/acpi/button/lid/LID/state
then
        XAUTHORITY=$XAUTHORITY /usr/bin/xset -display :0.0 dpms force on
        /usr/sbin/laptop_mode auto
        /usr/bin/logger dpms force on
        /usr/bin/logger $XAUTHORITY
else
        XAUTHORITY=$XAUTHORITY /usr/bin/xset -display :0.0 dpms force off
        /usr/in/logger dpms force off
        /usr/bin/logger $XAUTHORITY
fi
#test -f /usr/sbin/laptop_mode || exit 0

# lid button pressed/released event handler

#/usr/sbin/laptop_mode auto

This should work for you.

Offline

#6 2009-01-03 16:46:25

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: Laptop lid switch problem

Unfortunately it doesn't change anything sad

I have laptop-mode-tools installed btw, I even tried to load laptop-mode in rc.conf... Same thing.

Offline

#7 2009-01-09 17:46:10

steff
Member
Registered: 2009-01-08
Posts: 57

Re: Laptop lid switch problem

karabaja4 wrote:

well that turns my screen back on but my touchpad stops working.

This happens after hibernating/suspend on my laptop too. 

#!/bin/sh

# The touchpad module has to be reloaded after hibernating
# (and after suspending, though), because otherwise the touchpad
# remains frozen upon awakening.
modprobe -r psmouse
modprobe psmouse

saved as 95-fixpad.sh in /etc/pm/sleep.d/

did it. Maybe you have another driver.

Offline

#8 2009-02-07 12:42:14

decco
Member
Registered: 2009-02-07
Posts: 2

Re: Laptop lid switch problem

Try removing "/usr/bin/" from xset to make it like this:

#! /bin/sh
if grep -q open /proc/acpi/button/lid/LID/state
then
        XAUTHORITY=$XAUTHORITY xset -display :0.0 dpms force on
        /usr/sbin/laptop_mode auto
        /usr/bin/logger dpms force on
        /usr/bin/logger $XAUTHORITY
else
        XAUTHORITY=$XAUTHORITY xset -display :0.0 dpms force off
        /usr/bin/logger dpms force off
        /usr/bin/logger $XAUTHORITY
fi
#test -f /usr/sbin/laptop_mode || exit 0

# lid button pressed/released event handler

#/usr/sbin/laptop_mode auto

That worked for me, but I also removed the laptop_mode line because I don't have laptop-mode-tools.

Offline

#9 2009-03-12 07:22:15

vajorie
Member
Registered: 2009-03-12
Posts: 66

Re: Laptop lid switch problem

I'm having a related problem: if I switch to a vt (ctrl+alt+f1 etc), my mouse (touchpad) stops working. removing and reinserting psmouse works, but is there a better solution to this? thanks.

Offline

#10 2009-03-25 00:48:22

cphase
Member
From: Newnan. GA
Registered: 2006-11-06
Posts: 116
Website

Re: Laptop lid switch problem

Having same problem on a Dell D610: after suspend or after switching to another vt then back to X the touchpad does not work. I have not tried installing the synaptics driver though. May try and see if it helps.


Power to the Penguin

http://counter.li.org/ #386007

Offline

#11 2009-03-31 02:15:27

Maverick1712
Member
From: Ottawa, Ontario
Registered: 2009-01-08
Posts: 7

Re: Laptop lid switch problem

Bump. Same issue when changing to a vc

Offline

#12 2009-03-31 02:44:01

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: Laptop lid switch problem

I managed to solve this (at least for my laptop)... added acpid daemon to my rc.conf (install with pacman first) and now screen turns on properly, also touchpad works when switching from TTY to X smile

Offline

#13 2009-03-31 06:01:44

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Laptop lid switch problem

There are also some hooks for pm-utils, which, I think (not home atm) go in /etc/pm-utils/sleep.d/.

You can put a script like this there:

#!/bin/bash
case $1 in
suspend)
chvt 1
;;
resume)
chvt 7
;;

Feel free to add module removal/probing as you see fit, it's a script, so you can't basically do anything you want with it.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB