MùPùF.org

Linux, Programming and Octopodes

--- *Projects* (website in development: svn r299)--- » PPassKeeper » ArduIDE

MuPuF's tech blog MuPuF's tech blog subscribe

Technology

Showing articles in category: (See all)

Technology

Thinkpad: How to use the Fn+F7 hot key on xrandr-compliant graphic drivers!Thinkpad: How to use the Fn+F7 hot key on xrandr-compliant graphic drivers!

in Technology
Tags: technologythinkpadtutorial

Today, after my exams, I went to the project room my school has, plugged my laptop on the 24" screen and typed the usual :

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

This is way better than using NVIDIA's utilities (it is portable) but yet, it is so boring to write the same thing on and on...

As I had a couple of hours to spare, I have decided to use the laptop hotkeys to switch between the screens (LVDS --> VGA and VGA--> LVDS).

To fulfill this goal, I have used the daemon acpid and made a bash script to detect implement the logic of the switch.

Published Feb. 11, 2010 by read more
0