All of lore.kernel.org
 help / color / mirror / Atom feed
* video breaks asus-laptop display switching
@ 2007-12-21 22:36 Andrei Gaponenko
  2007-12-22  7:53 ` Zhang Rui
  0 siblings, 1 reply; 3+ messages in thread
From: Andrei Gaponenko @ 2007-12-21 22:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: rui.zhang, corentincj, sziwan


Hi,

With 2.6.23 or newer (including 2.6.24-rc6) kernels, writing to the
/sys/devices/platform/asus-laptop/display file does not do anything:

Cold boot to single user, then connect an external monitor

# cat  /sys/devices/platform/asus-laptop/display
1

OK, only the built in LCD is enabled. Try to enable
the external monitor as well:

# echo 3 > /sys/devices/platform/asus-laptop/display

still no image on the external.

# cat  /sys/devices/platform/asus-laptop/display
1

Still "1", not the "3" we wrote. On the other hand if I boot with an
external monitor attached, the "display" file always contains 3, even
after writing 1 there, and there is image on both monitors.

In 2.6.22 I had to load asus-laptop by hand, but then display
switching worked nicely.  

I've noticed that if I do 

# rmmod video

display switching starts working again with the newer kernels.
The "video" module was auto-loaded on my system in 2.6.22, but
did not cause the conflict.

This is an ASUS Z71V based notebook (detected as M7V).

Regards,
Andrei


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: video breaks asus-laptop display switching
  2007-12-21 22:36 video breaks asus-laptop display switching Andrei Gaponenko
@ 2007-12-22  7:53 ` Zhang Rui
  2007-12-22  8:21   ` Andrei Gaponenko
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang Rui @ 2007-12-22  7:53 UTC (permalink / raw)
  To: Andrei Gaponenko; +Cc: linux-kernel, corentincj, sziwan


On Sat, 2007-12-22 at 06:36 +0800, Andrei Gaponenko wrote:
> 
> Hi,
> 
> With 2.6.23 or newer (including 2.6.24-rc6) kernels, writing to the
> /sys/devices/platform/asus-laptop/display file does not do anything:
> 
> Cold boot to single user, then connect an external monitor
> 
> # cat  /sys/devices/platform/asus-laptop/display
> 1
> 
> OK, only the built in LCD is enabled. Try to enable
> the external monitor as well:
> 
> # echo 3 > /sys/devices/platform/asus-laptop/display
> 
> still no image on the external.
> 
> # cat  /sys/devices/platform/asus-laptop/display
> 1
> 
> Still "1", not the "3" we wrote. On the other hand if I boot with an
> external monitor attached, the "display" file always contains 3, even
> after writing 1 there, and there is image on both monitors.
> 
> In 2.6.22 I had to load asus-laptop by hand, but then display
> switching worked nicely. 
> 
> I've noticed that if I do
> 
> # rmmod video
> 
> display switching starts working again with the newer kernels.
> The "video" module was auto-loaded on my system in 2.6.22, but
> did not cause the conflict.
hmm, please "echo 1 > /proc/acpi/video/xxx/DOS" in 2.6.23 and see
if there is any difference.

Thansk,
Rui



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: video breaks asus-laptop display switching
  2007-12-22  7:53 ` Zhang Rui
@ 2007-12-22  8:21   ` Andrei Gaponenko
  0 siblings, 0 replies; 3+ messages in thread
From: Andrei Gaponenko @ 2007-12-22  8:21 UTC (permalink / raw)
  To: Zhang Rui; +Cc: linux-kernel, corentincj, sziwan


On Sat, 22 Dec 2007, Zhang Rui wrote:

> On Sat, 2007-12-22 at 06:36 +0800, Andrei Gaponenko wrote:
>>
>> With 2.6.23 or newer (including 2.6.24-rc6) kernels, writing to the
>> /sys/devices/platform/asus-laptop/display file does not do anything:
>> ...
>>
> hmm, please "echo 1 > /proc/acpi/video/xxx/DOS" in 2.6.23 and see
> if there is any difference.

ls /proc/acpi/video/
shows two identically named directories "VGA" - is this normal??

Anyway,

# cat VGA/DOS
DOS setting: <1>

# echo 3 > VGA/DOS
# cat VGA/DOS
DOS setting: <3>

but no image on external.  Now

# rmmod video
# echo 3 > /sys/devices/platform/asus-laptop/display

Got image on external

# modprobe video
# cat VGA/DOS
DOS setting: <0>

I can write 1 or 3 to DOS and read it back, but it has no effect (image on 
external turned on while video module was removed does not go away).

Please Cc: me on replies - forgot to mention this in the initial posting.

Thanks!
Andrei

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-22  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21 22:36 video breaks asus-laptop display switching Andrei Gaponenko
2007-12-22  7:53 ` Zhang Rui
2007-12-22  8:21   ` Andrei Gaponenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.