You are not logged in.

#1 2010-01-09 11:46:41

MrAllan
Member
Registered: 2008-12-08
Posts: 132

Clamshell mode

Hi,

I got a MacBook Pro 5,5. I'd like enable clamshell mode in Linux like it works under Mac OS X: When you close the lid with an external monitor attached to the computer, the laptop's screen will be powered off and the external monitor becomes the primary monitor.
Is there any way to do this under Linux?

Thanks for any help!

- MrAllan

Offline

#2 2010-01-09 11:54:27

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: Clamshell mode

You can do the same thing with xrandr without closing the lid. Besides, closing the lid is not a good practice because it can overheat your machine. Part of the heat goes out through the keyboard aperture.

Offline

#3 2010-01-09 13:15:51

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Clamshell mode

acpi should be able to help you. Have a look at /etc/acpi/handler.sh, trigger a script when the lid closes.

Offline

#4 2010-08-04 06:45:41

jetkid
Member
Registered: 2010-08-04
Posts: 1

Re: Clamshell mode

ArchArael wrote:

You can do the same thing with xrandr without closing the lid. Besides, closing the lid is not a good practice because it can overheat your machine. Part of the heat goes out through the keyboard aperture.

Thank you. That was exactly what I needed.

xrandr --output LVDS1 --off --output VGA1 --auto

Offline

#5 2010-08-04 10:49:53

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Clamshell mode

jetkid wrote:
ArchArael wrote:

You can do the same thing with xrandr without closing the lid. Besides, closing the lid is not a good practice because it can overheat your machine. Part of the heat goes out through the keyboard aperture.

Thank you. That was exactly what I needed.

xrandr --output LVDS1 --off --output VGA1 --auto

No real need to bump an oldish thread just to say thanks. That code can be found on almost any wiki dealing with XOrg.

Not to discourage you from thanking people or posting help, but in this case was just a bit unnecessary.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB