-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, all...
This is my first post on this mailling list, so let me present myself:
My name is Luiz Guaraldo, Brasilian from Porto Alegre (the city of FISL).
I'm part of the Debian Users Group Debian-RS and Debian-BR. I not a
programmer, but one thing that let me thinking about was the vga-toggle
of the eeepc-acpi-scripts.
So, as I know a little bit of bash scripting, I made some changes to let
it find the best resolution of the VGA display automatically and I want
to share it.
I'm sending you my /etc/default/eeepc-acpi-scripts. I just put a new
line (MODE="`\usr\bin\xrandr|grep \+|/usr/bin/head -n1|awk {'print
$1'}`") that get the answer of xrandr, separate what displays send as
"best resolution", get the first line (VGA) and put it as MODE
COMBINNED_MODE.
In the other hand, I sending some changes on vga-toggle.sh script. I've
found some problems when you unplug vga display before toggling to LVDS.
It just don't toggle. Well, Now it works perfectly and I hope to help
the Debian EeePC Project.
Thanks a lot!
- --
Atenciosamente,
Luiz Guaraldo
Tec. Redes Computadores
CREA/RS 146230
Telefones:
Porto Alegre: 55-51-4063-9076
3024-3568
São Paulo...: 55-11-4063-8864
New York....: 1-212-202-1454
Eletrônicos:
ICQ...: 256177778
YID...: guaraldo_rs
MSN...: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]
Propus Informática Ltda.
Rua Santa Rita, 282, 2o andar - Bairro Floresta
90.220-220 - Porto Alegre - RS - Brasil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjJONMACgkQo+px+8lcAcn0gwCg8nnCvsGLgFA4J3g2wKKlJkyf
9IUAoI0G9Gk3PtDYNFvrwGlTuCD1CYer
=S4H8
-----END PGP SIGNATURE-----
vga-toggle.sh
Description: Bourne shell script
#!/bin/bash
# by default OSD output of function keys is disabled because it's too slow
# set to yes if you want fancy osd overlayS
ENABLE_OSD='no'
OSD_FONT='DejaVuSans 36'
# lookup the following values by using amixer if they don't work for you
VOLUME_LABEL='Line-Out'
HEADPHONE_LABEL='Speaker'
# these are the switches for xrandr --output VGA when Fn-F5 is used to
# select LCD+VGA mode
MODE="`xrandr|grep \+|head -n1|awk {'print $1'}`";
RATE="`xrandr|grep \+|head -n1|awk {'print $2'}`";
COMBINED_DISPLAY_SWITCHES="--mode $MODE --refresh $RATE"
_______________________________________________ Debian-eeepc-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel
