[Debian-eeepc-devel] 1101ha internal/external monitors

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sat Apr 10 21:07:57 UTC 2010


On Sat, 27 Mar 2010, Juha Heinanen wrote:

> when i boot my 1101ha without external monitor connected, and then
> connect it after boot, xrand only shows the internal Screen 0 "default"
> monitor. nothing changes, if i press Fn-F8 key although acli_listen
> reports
>
> $ acpi_listen
> video/switchmode VMOD 00000080 00000000
> hotkey ASUS010:00 00000031 00000001
> video/switchmode VMOD 00000080 00000000
> hotkey ASUS010:00 00000032 00000002
> video/switchmode VMOD 00000080 00000000
> hotkey ASUS010:00 00000030 00000002
> video/switchmode VMOD 00000080 00000000
> hotkey ASUS010:00 00000031 00000002
>
> if i boot 1101ha so that external monitor is connected, i first get the
> bios screen on both external and internal monitor, but grub screen
> appears only on the external monitor and the internal monitor gets
> turned off.  if i then boot linux, only external monitor is found and
> the internal one stays turned off.
>
> does anyone know how to make 1101ha detect both monitors at the same
> time?

Reason is /etc/acpi/actions/vga-toggle.sh, which is triggerd by that
button, does not have any notion of what VGA and LVDS is, as:

	# xrandr -q

returns (in my case):

	Screen 0: minimum 800 x 600, current 1368 x 768, maximum 1368 x 768
	default connected 1368x768+0+0 0mm x 0mm
	   1366x768        0.0
	   1024x768        0.0
	   800x600        61.0
	   1368x768        0.0*

vga-toggle.sh is parsing the output from 'xrandr -q' for the VGA and LVDS
strings, does not do error ckecks and using empty strings for screen names
attempts to switch screens, like in:

	xrandr --output $VGA --off --output $LVDS --auto

The attached patch will at least give you a hint (in /var/log/syslog)
about what's going on.  The patch cleans up some parts of the script too.

Another problem is that the 'eeepc-acpi-scripts' package, uses
'/usr/bin/xrandr' in '/etc/acpi/actions/vga-toggle.sh' script but does not
depend on package 'x11-xserver-utils'.


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vga-toggle.sh.patch
Type: text/x-diff
Size: 2576 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20100410/4339542a/attachment.patch>


More information about the Debian-eeepc-devel mailing list