You are not logged in.

#1 2012-10-09 05:38:59

yucht
Member
Registered: 2012-08-11
Posts: 20

X crashes on monitor rotation - Lenovo X220 Tablet

Problem:
I installed the most recent kernel today (3.5.6) and found that it worked with my stylus interface. However, rotating the screen now causes X to crash with the following error (from /var/log/Xorg.1.log):

[   956.135] Backtrace:
[   956.135] 0: /usr/bin/X (xorg_backtrace+0x36) [0x560366]
[   956.135] 1: /usr/bin/X (0x400000+0x1640c9) [0x5640c9]
[   956.135] 2: /usr/lib/libpthread.so.0 (0x7f60da837000+0xf170) [0x7f60da846170]
[   956.135] 3: /usr/lib/libc.so.6 (0x7f60d96c2000+0x392d3) [0x7f60d96fb2d3]
[   956.136] 4: /usr/bin/X (0x400000+0x9413a) [0x49413a]
[   956.136] 5: /usr/bin/X (xf86HandlePMEvents+0x2f) [0x47ccaf]
[   956.136] 6: /usr/bin/X (xf86Wakeup+0x159) [0x46f759]
[   956.136] 7: /usr/bin/X (WakeupHandler+0x6b) [0x43848b]
[   956.136] 8: /usr/bin/X (WaitForSomething+0x1a4) [0x55d7a4]
[   956.136] 9: /usr/bin/X (0x400000+0x34281) [0x434281]
[   956.136] 10: /usr/bin/X (0x400000+0x23615) [0x423615]
[   956.137] 11: /usr/lib/libc.so.6 (__libc_start_main+0xf5) [0x7f60d96e3725]
[   956.137] 12: /usr/bin/X (0x400000+0x238ed) [0x4238ed]
[   956.137] 
[   956.137] Segmentation fault at address (nil)
[   956.137] 
Fatal server error:
[   956.137] Caught signal 11 (Segmentation fault). Server aborting
[   956.137] 
[   956.137] 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   956.137] Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[   956.137] 
[   956.149] (II) evdev: Power Button: Close
[   956.150] (II) UnloadModule: "evdev"
[   956.157] (II) evdev: Video Bus: Close
[   956.157] (II) UnloadModule: "evdev"
[   956.160] (II) evdev: Sleep Button: Close
[   956.160] (II) UnloadModule: "evdev"
[   956.160] (II) evdev: Integrated Camera: Close
[   956.160] (II) UnloadModule: "evdev"
[   956.160] (II) UnloadModule: "wacom"
[   956.164] (II) UnloadModule: "wacom"
[   956.164] (II) evdev: AT Translated Set 2 keyboard: Close
[   956.164] (II) UnloadModule: "evdev"
[   956.165] (II) UnloadModule: "synaptics"
[   956.165] (II) evdev: TPPS/2 IBM TrackPoint: Close
[   956.165] (II) UnloadModule: "evdev"
[   956.166] (II) evdev: ThinkPad Extra Buttons: Close
[   956.166] (II) UnloadModule: "evdev"
[   956.166] (II) UnloadModule: "wacom"
[   956.167] (II) AIGLX: Suspending AIGLX clients for VT switch
[   956.186] Server terminated with error (1). Closing log file.

To rule out the possibility of another program being responsible for the crash, I ran startx from root, which has no .xinitrc file, and rotating the screen when running X as root also caused the same crash to happen. How can I fix this? Is there any other output you'd like me to provide?

Edit:
The functionality of the tablet is relatively important for me. If the fix for this might take a while, what could I do in the meanwhile that would allow me to use my tablet normally again?

Last edited by yucht (2012-10-09 05:58:54)

Offline

#2 2012-10-09 21:30:36

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: X crashes on monitor rotation - Lenovo X220 Tablet

Don't know if this helps your situation or not.

https://bbs.archlinux.org/viewtopic.php?id=147264

Offline

#3 2012-10-09 23:45:32

yucht
Member
Registered: 2012-08-11
Posts: 20

Re: X crashes on monitor rotation - Lenovo X220 Tablet

Thanks @David Batson, but I actually never experienced any of those issues on my laptop before this one. I would like to try to find out exactly in which part of my system the bug lies, so I was wondering how I might go about doing that.

Offline

#4 2012-10-10 21:11:18

tacostick
Member
Registered: 2010-07-20
Posts: 27

Re: X crashes on monitor rotation - Lenovo X220 Tablet

I have the same problem ... should we try a downgrade? I just updated my kernel to 3.5.6-1 (although before I updated, my touchpad and styus weren't working at all!)

Offline

#5 2012-10-11 15:50:25

confusedoldman
Member
Registered: 2012-10-11
Posts: 3

Re: X crashes on monitor rotation - Lenovo X220 Tablet

I am also having this problem on an x201 tablet. I can confirm that this is actually acpid. Run $/etc/rc.d/acpid stop and it should not crash.

Offline

#6 2012-10-12 01:06:02

yucht
Member
Registered: 2012-08-11
Posts: 20

Re: X crashes on monitor rotation - Lenovo X220 Tablet

@confuseoldman, I run systemd and can confirm that stopping acpid.service causes the problem to stop. What can we do from here?

Offline

#7 2012-10-12 05:59:41

yucht
Member
Registered: 2012-08-11
Posts: 20

Re: X crashes on monitor rotation - Lenovo X220 Tablet

Well, apparently a bug report was made a couple weeks ago. I'm pretty shocked that I didn't find this in my search.
https://bugs.freedesktop.org/show_bug.cgi?id=55329

Offline

#8 2012-10-16 00:51:45

Zoole
Member
Registered: 2008-07-27
Posts: 6

Re: X crashes on monitor rotation - Lenovo X220 Tablet

I'm running Arch on a X61T here. The link yucht posted on the 12th suggests that acpid is to blame. I tried adding 'exit 1' under video/tabletmode like so:

video/tabletmode)
exit 1
;;

But it didn't work. Curiously enough, running

rc.d stop acpid

before starting X stopped the segfaults upon rotation. A quick stop to the acpid manpage informed me that clients can...read all events directly from /var/run/acpid.socket (read: bypass the exit 1 in my /etc/acpi/handler.sh)?!

I now have the line

ACPID_ARGS="-S"

in /etc/conf.d/acpid. X still gets acpid events, but they get filtered through handler.sh first! No segfaults upon rotation, and no loss of functionality.

Last edited by Zoole (2012-10-16 00:53:20)

Offline

#9 2012-11-28 17:58:14

Vixus
Member
Registered: 2012-11-02
Posts: 60

Re: X crashes on monitor rotation - Lenovo X220 Tablet

Just want to confirm that this fixed the issue on my X60!

In fact, it should probably be added to the X--- laptop pages on the wiki.

Last edited by Vixus (2012-11-28 18:04:53)

Offline

Board footer

Powered by FluxBB