-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (4) .- Knowledge Base  . 

Laptop external display hotplugging

   2.0.0  

GTK Hardware Utility

Score 61%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--
Laptop external display hotplugging
zoom


Laptop external display hotplugging
zoom


Downloads:  934
Submitted:  Feb 15 2011
Updated:  Jun 26 2011

Description:

Hate having to switch to a second display or projector with your laptop?
Here's your solution. Install this package to your Ubuntu laptop and whenever you plug in an external monitor or projector, the laptop will change to using the projector instantly and automatically.


To install:
sudo add-apt-repository ppa:hughescih/ppa && sudo apt-get update && sudo apt-get install autoswitcher


Testing:
- Works on Ubuntu 10.04, 10.10, 11.04
- Tested on Nvidia graphics cards
- Should work just fine on Intel and ATI cards




Changelog:

2.0.0 : New AppIndicator menu. Support for clone desktop, extend desktop. Remembers settings after reboot and applies them. Menu hides if no external display detected.

1.0.3 : After a reboot, it will switch back to the second monitor on startup if connected.




LicenseGPL
Donate
Send to a friend
Subscribe
Other  Apps  from qb89dragon
Report inappropriate content



-

 ubuntu

 
 by brainvision on: Feb 15 2011
 
Score 35%

I can't understand why people think that all the world is using ubuntu! those people are quite exactly like winzozz users!!
I'm starting to hate them, I'm sorry!! or better, a part of them..


Reply to this

-

 Re: ubuntu

 
 by qb89dragon on: Feb 15 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Care to elaborate on your point in complete and meaningful sentences?


Reply to this

-

 Re: ubuntu

 
 by qb89dragon on: Feb 15 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Oh, you are concerned that I put 'Ubuntu' in the description.
I just happen to do so for some of the following reasons:
- It has only been tested on Ubuntu
- It has been built and packaged for Ubuntu (deb)
- It ties into Ubuntu features, such as libnotify which cannot be guaranteed present in other distros
- It is hosted on Launchpad and will be updated through that (Ubuntu/Debian/etc)
- Ubuntu is the most popular distro with the strongest focus on usability and seamless ease of use, which makes it an ideal target for this kind of technology.
- You can port this to most mainstream distributions with 'alien', or could just figure out that it is written in python and you can strip out the libnotify components and run it as a daemon on any distro, even on KDE.


Reply to this

-

 Re: Re: ubuntu

 
 by brainvision on: Feb 15 2011
 
Score 35%

yes exactly.. but this is a place for linux lovers,not ubuntu users!


Reply to this

-

 Re: Re: Re: ubuntu

 
 by qb89dragon on: Feb 15 2011
 
Score 58%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

This is also a place where people post things that they build for the community at no cost.
If someone brought cookies they baked themselves to a party, would you harass that person because they didn't make cookies in your favorite flavor?
Just because someone didn't make it for 'whatever-you-use-distro' does not suddenly entitle you to troll this site and harass other developers trying to help others have a better experience.
It's open source, if it's not right for you, take it, fix it, publish it yourself.
I built this because it solves a problem I was having. I didn't have to put it up on this site. In case it was of use to someone out there, it is put up here and packaged it with an installer. If you don't like free software, don't download it!
Nobody obliges me to make my software work for every single distribution known to man... lease of all yourself.


Reply to this

-

 Re: Re: Re: Re: ubuntu

 
 by brainvision on: Feb 15 2011
 
Score 31%

yes man you are right.. the problem in fact is not the single contribution, but all the big number of contributions ONLY for ubuntu: themes, wallpapers, icons etc. etc. A large part of them are branded ubuntu, the rest are packaged for it!
you can understand that a non-ubuntu user coul start to think that something is wrong.. can't you??

but anyway I don't want to troll nothing and nobody, I can assure you! sorry if my post looked like it!!


Reply to this

-

 Re: Re: Re: Re: Re: ubuntu

 
 by qb89dragon on: Feb 15 2011
 
Score 36%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Are you still upset that your video store doesn't have BetaMax?
Things come and go, and currently Ubuntu is gaining popularity with a larger and more mainstream crowd. With a greater base of users, and more popularity and media attention it is hardly surprising that the content on this site is growing organically towards ubuntu. Standing up to it would be like Egypt's Mubarek resisting popular uprising. As linux distros mature, there becomes less need to have 30+ distributions all promoting limited subsets of different ideas, and consolidating them helps developers hone their work in on accelerating the progress of a few distributions.


Reply to this

-

 Re: Re: Re: Re: Re: Re: ubuntu

 
 by brainvision on: Feb 15 2011
 
Score 21%

???????????????

ok,ok.. stop please! sorry again but please stop, ok?
thanks..



-
.

 Re: Re: Re: Re: Re: Re: ubuntu

 
 by xyzzymagicat on: Apr 12 2011
 
Score 50%
xyzzymagicatxyzzymagicat
-
Xyzzy Magicat 3

United States of America, Petaluma, California
Last visit Nov 16 2014
0 Friends
3 Groups

More info
Send a message
Add as friend
Other contents
--

Not trolling, but for whatever it's worth: most of the content that's not for Ubuntu (here or elsewhere) also doesn't specify a distro or use a distro-specific repository; at most it uses a particular packaging type that most other distros also read. (DEBs packaged for Ubuntu often won't run even on other Debian-based distros.)

That's just something I've noticed as a "mainstream" user since leaving Ubuntu behind a year ago. The attitude folks from those other distros have is that the distros are like family members or flavors -- the real rivals are Windows & OS X. (I also noticed that the idea of Ubuntu being more user-friendly was already an outdated myth.)

I hope you have a good week!



-

 Re: Re: ubuntu

 
 by brainvision on: Feb 15 2011
 
Score 21%

I put Ubuntu in the description???

wtf are you saying??? the problem is that this is ONLY for ubuntu!,I don't care a cent of the description!


Reply to this

-

 Re: Re: Re: ubuntu

 
 by gnumdk on: Feb 15 2011
 
Score 70%

Mouahaha!

If you want stuff about your favorite distro on this site, just contribute, it's free software, you can package, create themes, wallpapers...

Sure, it's easy to speak while doing nothing...


Reply to this

-

 Re: Re: Re: Re: ubuntu

 
 by brainvision on: Feb 15 2011
 
Score 21%

bla bla bla bla!

the same for you, man!

all my contents are posted at gnome-look.org; I'm a slackware package; I don't have knowledge on programming, but I don't think you have it, too..

anyway.. remember that if you know ubuntu, all you know is ubuntu! (I will not mention other half of the sentence, it's not so important)..


Reply to this

-

 Re: Re: Re: Re: Re: ubuntu

 
 by gnumdk on: Feb 15 2011
 
Score 69%

>the same for you, man!

I do not have time to loose trolling about Ubuntu...

>all my contents are posted at gnome-
>look.org; I'm a slackware package; I
>don't have knowledge on programming,

Great, so where is the problem ? Do you wan't someone to tell you that posting slackware stuff sux ?

>but I don't think you have it, too..

Compiz, Rekonq, Oxygen-gtk, ...

Sorry but i hate Ubuntu haters (and i don't use Ubuntu).


Reply to this

-

 Re: Re: Re: Re: Re: Re: ubuntu

 
 by brainvision on: Feb 15 2011
 
Score 21%

you are the troll, man, 'cause if only a person try to say something that you don't like that's the result..



-

 Re: Re: Re: Re: ubuntu

 
 by cwickert on: Jun 25 2011
 
Score 50%

So how would one package this for other distros if all people are publishing are Ubuntu binaries?

Where is the sourcecode and why is it not linked from this page?


Reply to this

-

 Re: Re: ubuntu

 
 by cwickert on: Jun 25 2011
 
Score 50%

I am not concerned there is Ubuntu in the description, I am concerned that all that is offered for download are Ubuntu packages and there is no link to the sourcecode.

I know it's written in python, still this or alien cannot replace a proper source tarball. Please be so kind to link it from this page. TIA!


Reply to this

-

 Re: Re: Re: ubuntu

 
 by qb89dragon on: Jun 25 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Thanks for your interest in trying this on other distros.
A little known fact about deb packages is they're just renamed tar.gz files that can be opened with your archive manager to reveal, in this case, the original python source file. The install script in there might also be useful as it copies a .desktop file to /usr/share/gnome/autostart


Reply to this

-

 Problem

 
 by wacmemphis on: Feb 19 2011
 
Score 50%

unfortunately it doesn't work for me... nothing changes when i plug in an external monitor.
i don't know how to debug it, since it starts new threads...
i'm using intel gma graphics chip.


Reply to this

-

 Re: Problem

 
 by qb89dragon on: Feb 20 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

I will update this with an option to not daemonize. Then you should be able to see a python traceback of whatever happened. It's based off of the disper libraries. Perhaps you could try using that and see if it works for you switching displays from the command line with it.


Reply to this

-

 Re: Re: Problem

 
 by qb89dragon on: Feb 20 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

I've added the updates (via the ppa). You should be able to see what the problem is when running autoswitcher in a terminal as follows:

/usr/lib/autoswitcher/autoswitcher.py -v -d

Thanks for your help debugging this.


Reply to this

-

 Re: Re: Re: Problem

 
 by wacmemphis on: Feb 20 2011
 
Score 50%

ok, using just the internal monitor i get:

Initially Configured Displays set(['LVDS1'])
Resolution {'LVDS1': <switcher.resolutions.Resolution instance at 0x8a2f38c>}


plugging the external display in, doesn't result in any change.

however restarting the autoswitcher when the external monitor is plugged in, i get:

Initially Configured Displays set(['LVDS1', 'VGA1'])
Resolution {'LVDS1': <switcher.resolutions.Resolution instance at 0x90b838c>, 'VGA1': <switcher.resolutions.Resolution instance at 0x90b86ec>}


so it extends the desktop to both screens. unplugging the external monitor doesn't switch back to just the internal monitor...

any ideas?


Reply to this

-

 Re: Re: Re: Re: Problem

 
 by qb89dragon on: Feb 20 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Hmm. It looks like you got no errors there and the detection is working fine if VGA1 shows up in that list. The displays should switch over completely not extend however.
To switch back the program waits for the display VGA1 to be removed from the list. I'll add a option (when I get back from work tonight) that shows the display polling results so you can see if VGA1 disappears from the list when you pull the plug on it.


Reply to this

-

 Re: Re: Re: Re: Re: Problem

 
 by wacmemphis on: Feb 23 2011
 
Score 50%

did you update something? in the last days i had no time to check for updates. the latest version from the ppa does not show any events when i plug in a monitor...


Reply to this

-
.

 Thank you!

 
 by luv2hike on: Mar 2 2011
 
Score 50%

This rocks! It works perfectly on my zareason laptop running mythbuntu 10.04. This saved me all kinds of time. Thanks for sharing it with us.


Reply to this

-

 Re: Thank you!

 
 by qb89dragon on: Mar 2 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Thanks for the comment. I'm glad you like it. If you don't mind me asking, what GPU do you have. This is so I can add it to the list of ones known to work.


Reply to this

-

 Re: Re: Thank you!

 
 by luv2hike on: Mar 4 2011
 
Score 50%

Hi. It's a laptop with NVIDIA GeForce GT 330M.

I did just discover one issue, though. My screensaver no longer works when using it as a regular laptop if the autoswitcher daemon is running.

After the idle timeout period, it starts to dim the display as normal, but then instead of showing the ants screensaver in GNOME, it returns to the desktop at the original brightness. Any ideas?


Reply to this

-

 Re: Re: Re: Thank you!

 
 by qb89dragon on: Mar 4 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

I'm guessing it turns off the screen when it puts the display to sleep by 'unplugging' the main display internally.
You can confirm this for me though by running
/usr/lib/autoswitcher/autoswitcher.py -v -d
and letting it kick on the screensaver, and post the output from the terminal up here so I can see what it's up to.
Thanks!


Reply to this

-

 Re: Re: Re: Re: Thank you!

 
 by luv2hike on: Mar 4 2011
 
Score 50%

It didn't say much.

Initially Configured Displays set(['DFP-0'])
Resolution {'DFP-0': <switcher.resolutions.Resolution instance at 0x28fe050>}

Nothing more when the screensaver tried doing its thing. The daemon is still running though. Maybe I need to kill it first? What is the proper way to stop and start the daemon without a reboot?


Reply to this

-

 Re: Re: Re: Re: Re: Thank you!

 
 by qb89dragon on: Mar 4 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

The daemon runs at userlevel, not as a system service, therefore cannot write a pid file in the usual place - therefore it doesn't act like a normal daemon, more like pulseaudio or something like that.

Having more than one instance doesn't stop the detection parts from working however. But perhaps you could try and see if the issue persists after you have stopped the daemon.

Here's how to stop it:
ps -A -f | grep autoswitcher.py

and you have to look for something like this:

1000 1432 1 0 Mar02 ? 00:02:07 python /usr/lib/autoswitcher/autoswitcher.py

the number you're looking for here is 1432. So now you type in

kill 1432

and you won't have it running anymore.

To start it back up, run the following:
/usr/lib/autoswitcher/autoswitcher.py


Reply to this

-

 Re: Re: Re: Re: Re: Re: Thank you!

 
 by luv2hike on: Mar 4 2011
 
Score 50%

Ok, thanks. I killed the running daemon which was running as root so I used:

sudo pkill -f autoswitcher

Then I started it from the Terminal with -v -d and waited for the screen saver. Still the same thing: No other info except what I posted before from when it just starts up.



-
.

 Ubuntu Natty 11.04

 
 by boamaod on: Jun 17 2011
 
Score 50%

Do you suppose it also works on Ubuntu 11.04?


Reply to this

-

 Re: Ubuntu Natty 11.04

 
 by qb89dragon on: Jun 18 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Yes it's working fine for me on my macbook pro 5,5 running 11.04.


Reply to this

-

 Failure

 
 by cewanf on: Jun 29 2011
 
Score 50%

Doesn't work for me on my Thinkpad T410 (intel graphics):

:~$ /usr/lib/autoswitcher/autoswitcher.py -v -d
Display Resolution Detected: 1440x900
Traceback (most recent call last):
File "/usr/lib/autoswitcher/autoswitcher.py", line 327, in <module>
autoModeSwitcher = ModeSwitchAutomator(menu, debug=options.verbose)
File "/usr/lib/autoswitcher/autoswitcher.py", line 99, in __init__
self.set_display_mode(self.mode, self.direction)
File "/usr/lib/autoswitcher/autoswitcher.py", line 172, in set_display_mode
self.sw.switch_clone(displays, resolution)
File "/usr/lib/autoswitcher/switcher/swxrandr.py", line 71, in switch_clone
ress = ResolutionSelection(res, displays)
File "/usr/lib/autoswitcher/switcher/resolutions.py", line 145, in __init__
self.set(sress, displays)
File "/usr/lib/autoswitcher/switcher/resolutions.py", line 165, in set
raise ValueError('unrecognised resolution selection')
ValueError: unrecognised resolution selection


Reply to this

-

 Re: Failure

 
 by qb89dragon on: Jun 29 2011
 
Score 50%
qb89dragonqb89dragon
CairoMenu / Wacom Control Panel
Home
-
Chris Hughes 22

CairoMenu / Wacom Control Panel
Canada, Vancouver
Last visit Jun 18 2014
1 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

I've updated it to try and correct the issue you're having. Give it a try when it becomes available in about 15 mins on the ppa.
Thanks!


Reply to this

-

 Re: Re: Failure

 
 by cewanf on: Jun 30 2011
 
Score 50%

Thanks for the quick reply! I now get a slightly different error:

:~$ /usr/lib/autoswitcher/autoswitcher.py -v -d
Display Resolution Detected: 1600x1200
Traceback (most recent call last):
File "/usr/lib/autoswitcher/autoswitcher.py", line 322, in <module>
autoModeSwitcher = ModeSwitchAutomator(menu, debug=options.verbose)
File "/usr/lib/autoswitcher/autoswitcher.py", line 99, in __init__
self.set_display_mode(self.mode, self.direction)
File "/usr/lib/autoswitcher/autoswitcher.py", line 174, in set_display_mode
self.sw.switch_clone(displays, resolution)
File "/usr/lib/autoswitcher/switcher/swxrandr.py", line 71, in switch_clone
ress = ResolutionSelection(res, displays)
File "/usr/lib/autoswitcher/switcher/resolutions.py", line 145, in __init__
self.set(sress, displays)
File "/usr/lib/autoswitcher/switcher/resolutions.py", line 165, in set
raise ValueError('unrecognised resolution selection')
ValueError: unrecognised resolution selection


Reply to this

-

 Thanks

 
 by jjack92 on: Jun 30 2011
 
Score 50%

Thank you very much for this very nice Indicator applet. It works perfectly on my HP 8540W running Ubuntu Natty and my external ACER screen.


Reply to this

Add commentBack






-
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About GTK-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2014 GTK-Apps.org Team  
All rights reserved. GTK-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.