Gentoo Archives: gentoo-user

From: Erik <sigra@××××.se>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Xorg and KDE on Gentoo going crazy with my laptop display.
Date: Tue, 26 Dec 2006 21:36:33
Message-Id: 45919522.1060205@home.se
1 I have a laptop (Dell INSPIRON | 8600) with a LCD. It has worked before,
2 but since a few months it is going haywire. There are some really
3 strange interactions between the power cable and the display. It could
4 be caused by Linux, udev, acpid, xorg, KDE or something else. I have no
5 Idea. I just want the display to be off after 1 minute of inactivity and
6 when the lid is closed and then stay off until I touch the keyboard or
7 pointing device. But that seems to be really difficult to achieve in
8 Gentoo. For example if the display is off and I connect or disconnect
9 the power cable, (only) the backlight of the display is turned on. This
10 behaviour is completely useless and will obviously make the laptop shut
11 down sooner in the case of a power outage. The backlight must never be
12 on when the display itself is off. Sometimes when the display should
13 have been off, it even dares to show some kind of idle animation. It is
14 a strange looking X at random position and size, on black background. I
15 have certainly never configured it to do that. Why is it shown? How do I
16 remove it? Sometimes the display just stays on forever as if it has
17 completely forgotten that it should shut off after 1 minute. I always
18 have kcontrol->Peripherals->Display->Power Control open, because
19 changing a setting, changing it back and pressing Apply fixes the
20 problem, but only for a little while. I really need to put an end to all
21 this craziness now!
22
23 System information
24 ==================
25
26 Package settings:
27 [ebuild R ] sys-kernel/gentoo-sources-2.6.18-r5 USE="-build
28 -symlink (-ultra1)" 0 kB
29 [ebuild R ] sys-fs/udev-103 USE="(-selinux)" 0 kB
30 [ebuild R ] sys-power/acpid-1.0.4-r3 USE="doc -logrotate" 0 kB
31 [ebuild R ] x11-base/xorg-server-1.1.1-r3 USE="dri ipv6 nptl sdl
32 xorg -3dfx -aiglx -debug -dmx -kdrive -minimal -xprint"
33 INPUT_DEVICES="keyboard mouse -acecad -aiptek -calcomp -citron
34 -digitaledge -dmc -dynapro -elo2300 -elographics -evdev -fpit -hyperpen
35 -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount
36 -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom"
37 VIDEO_CARDS="radeon -apm -ark -chips -cirrus -cyrix -dummy -epson -fbdev
38 -fglrx -glint -i128 -i740 -i810 (-impact) -imstt -mach64 -mga -neomagic
39 (-newport) -nsc -nv -nvidia -r128 -rendition -s3 -s3virge -savage
40 -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6)
41 (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -vga
42 -via -vmware -voodoo" 0 kB
43 [ebuild R ] kde-base/kdelibs-3.5.5-r7 USE="acl alsa arts cups doc
44 fam jpeg2k kdeenablefinal kdehiddenvisibility kerberos openexr spell ssl
45 tiff xinerama zeroconf -avahi -debug -legacyssl -lua -utempter"
46 LINGUAS="-he" 0 kB
47 [ebuild R ] kde-base/kcontrol-3.5.5 USE="arts kdeenablefinal
48 kdehiddenvisibility opengl ssl xinerama -debug -ieee1394
49 -logitech-mouse" 0 kB
50
51 "/usr/src/linux" points to "linux-2.6.17-gentoo-r8". acpid is in
52 runlevel default.
53
54 Log output after disconnecting the power cable:
55 Oct 4 22:08:20 localhost logger: ACPI group ac_adapter / action
56 ac_adapter is
57 not defined
58 Oct 4 22:08:20 localhost logger: ACPI group battery / action battery is not
59 defined
60 Oct 4 22:08:20 localhost logger: ACPI group processor / action processor is
61 not defined
62 Oct 4 22:08:23 localhost logger: ACPI group battery / action battery is not
63 defined
64 Oct 4 22:08:23 localhost logger: ACPI group battery / action battery is not
65 defined
66
67 Log output after connecting the power cable:
68 Oct 4 22:08:36 localhost logger: ACPI group processor / action processor is
69 not defined
70 Oct 4 22:08:36 localhost logger: ACPI group ac_adapter / action
71 ac_adapter is
72 not defined
73 Oct 4 22:08:36 localhost logger: ACPI group battery / action battery is not
74 defined
75 Oct 4 22:08:40 localhost logger: ACPI group battery / action battery is not
76 defined
77 Oct 4 22:08:40 localhost logger: ACPI group battery / action battery is not
78 defined
79
80 When I press the lid button I get the following in /var/log/acpid:
81 [Tue Dec 19 01:20:53 2006] received event "button/lid LID 00000080 0000000e"
82 [Tue Dec 19 01:20:53 2006] notifying client 6176[0:0]
83 [Tue Dec 19 01:20:53 2006] executing action "/etc/acpi/default.sh button/lid
84 LID 00000080 0000000e"
85 [Tue Dec 19 01:20:53 2006] BEGIN HANDLER MESSAGES
86 [Tue Dec 19 01:20:53 2006] END HANDLER MESSAGES
87 [Tue Dec 19 01:20:53 2006] action exited with status 0
88 [Tue Dec 19 01:20:53 2006] executing action "/etc/acpi/actions/lm_lid.sh
89 button/lid LID 00000080 0000000e"
90 [Tue Dec 19 01:20:53 2006] BEGIN HANDLER MESSAGES
91 Laptop mode disabled, not active [unchanged].
92 [Tue Dec 19 01:20:54 2006] END HANDLER MESSAGES
93 [Tue Dec 19 01:20:54 2006] action exited with status 0
94 [Tue Dec 19 01:20:54 2006] completed event "button/lid LID 00000080
95 0000000e"
96
97 When I release it again I get this:
98 [Tue Dec 19 01:20:56 2006] received event "button/lid LID 00000080 0000000f"
99 [Tue Dec 19 01:20:56 2006] notifying client 6176[0:0]
100 [Tue Dec 19 01:20:56 2006] executing action "/etc/acpi/default.sh button/lid
101 LID 00000080 0000000f"
102 [Tue Dec 19 01:20:56 2006] BEGIN HANDLER MESSAGES
103 [Tue Dec 19 01:20:56 2006] END HANDLER MESSAGES
104 [Tue Dec 19 01:20:56 2006] action exited with status 0
105 [Tue Dec 19 01:20:56 2006] executing action "/etc/acpi/actions/lm_lid.sh
106 button/lid LID 00000080 0000000f"
107 [Tue Dec 19 01:20:56 2006] BEGIN HANDLER MESSAGES
108 Laptop mode disabled, not active [unchanged].
109 [Tue Dec 19 01:20:56 2006] END HANDLER MESSAGES
110 [Tue Dec 19 01:20:56 2006] action exited with status 0
111 [Tue Dec 19 01:20:56 2006] completed event "button/lid LID 00000080
112 0000000f"
113
114
115 The last number (0000000e when pressed and 0000000f when released) is just a
116 (hexadecimal) counter that is incremented each time the button is pressed or
117 released, so on the next press it will be 00000010. I looked what "client
118 6176[0:0]" could possibly meand and "ps ax|grep 6176" shows /usr/bin/X,
119 so X is
120 notified, but it simply does not obey.
121
122 In /proc/acpi/button/lid/LID/state the state of the lid button can be
123 observed
124 as "state: open" or "state: closed".
125
126 Setting in /etc/X11/xorg.conf:
127 Section "ServerFlags"
128 Option "off time" "1"
129 EndSection
130
131 Settings in kcontrol->Peripherals->Display->Power Control:
132 [X] Enable display power management
133 Standby after: Disabled
134 Suspend after: Disabled
135 Power off after: 1 min
136
137 Settings in kcontrol->Power Control->Battery->Laptop Battery->Battery:
138 [X] Show battery monitor
139 [ ] Notify me whenever my battery becomes fully charged
140 [ ] Use blank screen saver when running on battery
141 Check status every: 20 sec
142
143 Kernel configuraion:
144 --- Power Management support
145 [ ] Legacy Power Management API
146 [ ] Power Management Debug Support
147 [*] Software Suspend
148
149 [*] ACPI Support
150 [*] Sleep States
151 [ ] /proc/acpi/sleep (deprecated)
152 <M> AC Adapter
153 <M> Battery
154 <M> Button
155 <M> Video
156 < > Generic Hotkey (EXPERIMENTAL)
157 <M> Fan
158 < > Dock
159 <*> Processor
160 <*> Thermal Zone
161 < > ASUS/Medion Laptop Extras
162 < > IBM ThinkPad Laptop Extras
163 < > Toshiba Laptop Extras
164 (0) Disable ACPI for systems before Jan 1st this year
165 [ ] Debug Statements
166 < > ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL)
167 < > Smart Battery System (EXPERIMENTAL)
168
169 # cat --number Xorg.0.log|egrep "\(EE\)|\(WW\)|acpid|OffTime"
170 13 (WW) warning, (EE) error, (NI) not implemented, (??)
171 unknown.
172 32 (**) Option "OffTime" "1"
173 33 (II) Open ACPI successful (/var/run/acpid.socket)
174 522 (WW) RADEON(0): Bad V_BIOS checksum
175 565 (WW) RADEON(0): Unknown DDCType 6 found
176 566 (WW) RADEON(0): LCD DDC Info Table found!
177 590 (WW) RADEON(0): Failed to detect secondary monitor,
178 MergedFB/Clone mode
179 disabled
180 783 (WW) RADEON(0): DRI init changed memory map, adjusting ...
181 784 (WW) RADEON(0): MC_FB_LOCATION was: 0xd7ffd000 is: 0xd7ffd000
182 785 (WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0xe07fe000
183 849 (WW) AIGLX: 3D driver claims to not support visual 0x23
184 850 (WW) AIGLX: 3D driver claims to not support visual 0x24
185 851 (WW) AIGLX: 3D driver claims to not support visual 0x25
186 852 (WW) AIGLX: 3D driver claims to not support visual 0x26
187 853 (WW) AIGLX: 3D driver claims to not support visual 0x27
188 854 (WW) AIGLX: 3D driver claims to not support visual 0x28
189 855 (WW) AIGLX: 3D driver claims to not support visual 0x29
190 856 (WW) AIGLX: 3D driver claims to not support visual 0x2a
191 857 (WW) AIGLX: 3D driver claims to not support visual 0x2b
192 858 (WW) AIGLX: 3D driver claims to not support visual 0x2c
193 859 (WW) AIGLX: 3D driver claims to not support visual 0x2d
194 860 (WW) AIGLX: 3D driver claims to not support visual 0x2e
195 861 (WW) AIGLX: 3D driver claims to not support visual 0x2f
196 862 (WW) AIGLX: 3D driver claims to not support visual 0x30
197 863 (WW) AIGLX: 3D driver claims to not support visual 0x31
198 864 (WW) AIGLX: 3D driver claims to not support visual 0x32
199 917 (II) Open ACPI successful (/var/run/acpid.socket)
200
201 # grep button /etc/modules.autoload.d/kernel-2.6
202 button
203
204 # lsmod|grep button
205 button 4880 0
206
207 # uname -a
208 Linux localhost 2.6.18-gentoo-r4 #2 Tue Dec 19 00:42:42 CET 2006 i686
209 Intel(R)
210 Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux
211
212
213 Link to bug: http://bugs.gentoo.org/show_bug.cgi?id=150028
214 --
215 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: Xorg and KDE on Gentoo going crazy with my laptop display. Remy Blank <remy.blank@×××××.com>